/* Sao Biển English Centre — tươi sáng, vui mà vẫn đáng tin. */
:root {
  --blue: #2445c4;
  --blue-dark: #1a3399;
  --sky: #eef2ff;
  --sun: #ffc53d;
  --coral: #ff6b57;
  --mint: #3ccf91;
  --plum: #7b3fb8;
  --navy: #1b2240;
  --cream: #fffaf0;
  --ink: #1b2240;
  --muted: #4b5272;
  --line: #e4e7f3;
  --round: "Baloo 2", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 16.5px/1.6 var(--body); overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--round); line-height: 1.1; margin: 0 0 .45em; font-weight: 800; }
h2 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 24px; border-radius: 16px;
  border: 2.5px solid transparent; font: 800 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 5px 0 #d99a12; }
.btn-sun:active { transform: translateY(3px); box-shadow: 0 2px 0 #d99a12; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-dark); }
.btn-blue:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--sky); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; box-shadow: 0 4px 0 #d99a12; }

/* Đầu trang */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 3px solid var(--sky); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 800 1.5rem/1 var(--round); color: var(--blue); }
.brand-sub { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: 800 14px var(--body); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 20px 22px; background: #fff; border-bottom: 3px solid var(--sky); box-shadow: 0 18px 30px rgba(27, 34, 64, .1); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 14px; padding: 0; }
.site-nav li a { display: flex; align-items: center; min-height: 50px; color: var(--ink); text-decoration: none; font-weight: 800; border-bottom: 2px dashed var(--line); }
.site-nav .btn { width: 100%; }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 20px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: 2px; margin: 0; }
  .site-nav li a { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; font-size: 15px; }
  .site-nav li a:hover { background: var(--sky); color: var(--blue); }
  .site-nav .btn { width: auto; }
}

/* Hero */
.hero { position: relative; background: var(--blue); color: #fff; padding: 40px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.hero-grid { position: relative; display: grid; gap: 24px; align-items: center; }
.hero-tag { display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: .88rem; }
.hero h1 { font-size: clamp(2.4rem, 8.6vw, 4.2rem); color: #fff; line-height: 1.05; }
.scribble { position: relative; color: var(--sun); white-space: normal; }
.lead { font-size: 1.1rem; color: #dfe6ff; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-art { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; }
.float-card { position: absolute; margin: 0; display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: #fff; color: var(--muted); font-size: .82rem; line-height: 1.25; box-shadow: 0 10px 0 rgba(0, 0, 0, .12); }
.float-card strong { font: 800 1.35rem/1.1 var(--round); color: var(--ink); }
.fc-1 { left: 0; bottom: 14%; transform: rotate(-4deg); }
.fc-2 { right: 0; bottom: 2%; transform: rotate(3deg); }
.fc-2 strong { color: var(--coral); }
.fc-1 strong { color: var(--blue); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 120px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}

/* Con số */
.stats { padding: 8px 0 24px; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-list li { padding: 18px 16px; border-radius: 20px; background: #fff; border: 2.5px solid var(--line); }
.stat-list strong { display: block; font: 800 1.45rem/1.1 var(--round); }
.stat-list span { font-size: .86rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
.st-blue strong { color: var(--blue); }
.st-coral strong { color: #c4402e; }
.st-mint strong { color: #13804f; }
.st-sun strong { color: #9a6400; }
@media (min-width: 900px) { .stat-list { grid-template-columns: repeat(4, 1fr); gap: 18px; } .stat-list li { padding: 22px 22px; } }

/* Section */
.section { padding: 64px 0; }
.section-sky { background: var(--sky); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p:not(.kicker) { color: var(--muted); }
.kicker { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--blue); font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.section-sky .kicker { background: #fff; }
.kicker-dark { background: var(--navy); color: var(--sun); }
@media (min-width: 900px) { .section { padding: 92px 0; } }

/* Khóa học */
.course-grid { display: grid; gap: 18px; }
.course { --c: var(--blue); --c-bg: var(--sky); position: relative; padding: 26px 22px 22px; border-radius: 26px; background: #fff; border: 2.5px solid var(--c); box-shadow: 6px 6px 0 var(--c); display: flex; flex-direction: column; }
.course-age { align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--c-bg); color: var(--ink); font-weight: 800; font-size: .82rem; }
.course h3 { font-size: 1.6rem; }
.course h3 span { display: inline-block; margin-left: 4px; font: 700 .95rem var(--body); color: var(--muted); }
.course > p { color: var(--muted); font-size: .97rem; }
.course-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.course-meta li { padding: 4px 10px; border-radius: 10px; background: var(--cream); border: 1.5px solid var(--line); font-size: .84rem; font-weight: 700; }
.fee { margin-top: auto; color: var(--muted) !important; font-size: .9rem !important; }
.fee strong { display: block; font: 800 1.7rem/1.1 var(--round); color: var(--ink); }
.course-cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.course-cta::after { content: "→"; margin-left: 6px; text-decoration: none; }
.c-coral { --c: var(--coral); --c-bg: #ffe3de; }
.c-sun { --c: var(--sun); --c-bg: #fff1c9; }
.c-mint { --c: var(--mint); --c-bg: #d9f7ea; }
.c-blue { --c: var(--blue); --c-bg: var(--sky); }
.c-navy { --c: var(--navy); --c-bg: #e3e6f2; }
.c-plum { --c: var(--plum); --c-bg: #efe4fa; }
@media (min-width: 640px) { .course-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1020px) { .course-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* Kiểm tra đầu vào */
.test-band { background: var(--sun); padding: 56px 0; position: relative; overflow: hidden; }
.test-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.test-grid { position: relative; z-index: 1; display: grid; gap: 30px; align-items: center; }
.test-band h2 { color: var(--navy); }
.test-band p { color: #3d3410; font-weight: 600; }
.test-steps { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: 12px; }
.test-steps li { counter-increment: t; position: relative; padding: 18px 18px 18px 74px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(27, 34, 64, .12); }
.test-steps li::before { content: counter(t); position: absolute; left: 18px; top: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--blue); color: #fff; font: 800 1.3rem var(--round); }
.test-steps strong { display: block; font: 800 1.15rem var(--round); }
.test-steps span { color: var(--muted); font-size: .94rem; }
@media (min-width: 900px) { .test-band { padding: 80px 0; } .test-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

/* Lịch khai giảng */
.sched { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.sched thead th { text-align: left; padding: 0 18px 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sched tbody th, .sched td { background: #fff; padding: 16px 18px; border-top: 2.5px solid var(--line); border-bottom: 2.5px solid var(--line); text-align: left; vertical-align: middle; }
.sched tbody th { border-left: 2.5px solid var(--line); border-radius: 18px 0 0 18px; font: 700 1.12rem var(--round); }
.sched td:last-child { border-right: 2.5px solid var(--line); border-radius: 0 18px 18px 0; text-align: right; }
.sched td { font-weight: 700; }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 4px; vertical-align: 1px; }
.d-sun { background: var(--sun); } .d-mint { background: var(--mint); } .d-coral { background: var(--coral); }
.d-blue { background: var(--blue); } .d-navy { background: var(--navy); } .d-plum { background: var(--plum); }
.sched-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sched-btn:hover { background: var(--blue-dark); }
@media (max-width: 760px) {
  .sched, .sched tbody, .sched tr, .sched th, .sched td { display: block; }
  .sched thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sched tr { margin-bottom: 14px; padding: 18px 18px; border-radius: 20px; background: #fff; border: 2.5px solid var(--line); }
  .sched tbody th, .sched td { padding: 0; border: 0 !important; border-radius: 0 !important; background: none; text-align: left !important; }
  .sched tbody th { margin-bottom: 8px; }
  .sched td[data-label] { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 4px 0; font-size: .95rem; }
  .sched td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .sched td:last-child { margin-top: 12px; }
  .sched-btn { width: 100%; }
}

/* Ưu đãi */
.perk-grid { display: grid; gap: 16px; }
.perk { padding: 24px 22px; border-radius: 24px; background: #fff; }
.perk p { margin: 0; color: var(--muted); font-size: .96rem; }
.perk h3 { font-size: 1.22rem; }
.perk-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 16px; font: 800 1.4rem var(--round); }
.p-sun { background: var(--sun); color: var(--navy); }
.p-coral { background: var(--coral); color: var(--navy); }
.p-mint { background: var(--mint); color: var(--navy); }
.p-blue { background: var(--blue); color: #fff; }
@media (min-width: 640px) { .perk-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .perk-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.why { margin-top: 40px; display: grid; gap: 22px; align-items: center; }
.why-copy h3 { font-size: 1.7rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px; background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: 8.5px; top: 6px; width: 6px; height: 11px; border: solid #0d3d27; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.report { padding: 22px 22px; border-radius: 24px; background: #fff; border: 2.5px solid var(--blue); box-shadow: 8px 8px 0 var(--blue); transform: rotate(-1deg); }
.report-head { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px dashed var(--line); font: 800 1.08rem var(--round); color: var(--blue); }
.report dl { margin: 0 0 12px; display: grid; gap: 8px; }
.report dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: .94rem; }
.report dt { color: var(--muted); font-weight: 600; }
.report dd { margin: 0; font-weight: 700; }
.report-note { margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--sky); font-size: .92rem; }
@media (min-width: 900px) { .why { grid-template-columns: 1.1fr .9fr; gap: 56px; margin-top: 64px; } }

/* Phụ huynh nói */
.voice-grid { display: grid; gap: 18px; }
.voice { margin: 0; padding: 26px 22px; border-radius: 26px 26px 26px 6px; display: flex; flex-direction: column; }
.voice blockquote { margin: 0 0 16px; }
.voice blockquote p { margin: 0; font-size: 1.04rem; font-weight: 600; }
.voice figcaption { margin-top: auto; font: 700 1rem var(--round); }
.v-sun { background: #fff1c9; }
.v-blue { background: var(--blue); color: #fff; }
.v-mint { background: #d9f7ea; }
@media (min-width: 900px) { .voice-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Hỏi đáp */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; border: 2.5px solid transparent; }
.faq details[open] { border-color: var(--blue); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 60px; padding: 14px 20px; font: 700 1.1rem/1.3 var(--round); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--sun); color: var(--navy); font: 800 1.3rem/1 var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-more { text-align: center; margin: 26px 0 0; color: var(--muted); }
.faq-more a { font-weight: 800; }

/* Liên hệ */
.contact-grid { display: grid; gap: 24px; align-items: center; }
.contact-card { padding: 30px 22px; border-radius: 30px; background: #fff; border: 2.5px solid var(--line); }
.info { margin: 0 0 24px; display: grid; gap: 14px; }
.info div { padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.info dt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.info dd { margin: 2px 0 0; font-weight: 700; }
.info a { font: 800 1.6rem var(--round); text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-side { text-align: center; }
.contact-side svg { width: 100%; max-width: 380px; height: auto; margin: 0 auto 12px; }
.contact-side p { color: var(--muted); font-weight: 700; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .contact-card { padding: 44px 40px; } }

/* Chân trang */
.site-footer { background: var(--navy); color: #c9cfea; padding: 40px 0 120px; font-size: .92rem; }
.footer-inner p { margin: 0 0 6px; }
.footer-brand { font: 800 1.7rem/1.1 var(--round); color: var(--sun); }
.footer-brand span { font: 800 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: #c9cfea; margin-left: 6px; }
.footer-note { font-size: .84rem; color: #a5acd0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } }

@media (max-width: 420px) {
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .float-card { padding: 8px 12px; font-size: .74rem; }
  .float-card strong { font-size: 1.1rem; }
  .report dl div { grid-template-columns: 92px 1fr; }
}

/* Ảnh thật lớp học: khung bo mềm như bong bóng, viền vàng nắng */
.hero-art .hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 30%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; border: 8px solid var(--sun); box-shadow: 0 30px 60px -24px rgba(27, 34, 64, .55); }
