/* GOFA English · bộ giao diện chung cho Trang chủ và 4 trang khóa học.
   Hướng thiết kế: trang giáo dục chuyên nghiệp, ảnh thật làm chủ đạo, một màu thương hiệu.
   - Màu xanh GOFA (#1283C5) lấy đúng từ file logo, nền navy cho các dải nhấn.
   - Font Be Vietnam Pro (thiết kế cho tiếng Việt), góc bo nhỏ 6–10px, đường kẻ mảnh thay cho khung dày.
   - Giữ cho phụ huynh lớn tuổi: chữ gốc 18px, nút tối thiểu 52px, bộ chọn cỡ chữ, thanh gọi nhanh trên điện thoại.
   - Chủ ý chỉ dùng giao diện sáng để giữ độ tương phản quen thuộc với phụ huynh. */
:root {
  color-scheme: light;
  --brand: #1283C5;
  --brand-dark: #0E6AA3;
  --brand-50: #EAF4FB;
  --brand-100: #D3E8F6;
  --navy: #0B2545;
  --navy-2: #12325B;
  --navy-3: #071A33;
  --ink: #18212F;
  --muted: #536072;
  --line: #E1E7EF;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FA;
  --white: #FFFFFF;
  --call: #138A43;
  --zalo: #0068FF;
  /* Bậc màu 4 chặng: cùng họ xanh GOFA, đậm dần theo tuổi */
  --s1: #5DB3E3;
  --s2: #1283C5;
  --s3: #0D5C93;
  --s4: #0B2545;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .06);
}
html { font-size: 112.5%; scroll-behavior: smooth; } /* 18px */
html.size-2 { font-size: 125%; }
html.size-3 { font-size: 137.5%; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.65; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3 { line-height: 1.22; margin: 0; text-wrap: balance; color: var(--navy); letter-spacing: -.015em; }
h1 { font-weight: 700; }
h2 { font-weight: 700; font-size: clamp(1.55rem, 2.9vw, 2.15rem); }
h3 { font-weight: 600; font-size: 1.12rem; }
p { margin: 0; }
a { color: var(--brand-dark); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus-visible { outline: 3px solid #F5A524; outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Thanh tiện ích + đầu trang ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
.util { background: var(--navy); color: #C9D6E6; font-size: .78rem; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding-top: env(safe-area-inset-top, 0px); }
.util b { color: var(--white); font-weight: 600; }
.util a { color: var(--white); text-decoration: none; }
.textsize { display: flex; align-items: center; gap: 2px; }
.textsize span { margin-right: 6px; }
.textsize button { min-width: 40px; min-height: 36px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #C9D6E6; font: inherit; font-weight: 600; cursor: pointer; }
.textsize button[aria-pressed="true"] { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .08); }
@media (max-width: 560px) { .util .hide-sm { display: none; } }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; padding: 10px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover { color: var(--brand-dark); background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 600; }
.top-cta { display: flex; align-items: center; gap: 10px; }
.top-cta .btn { min-height: 46px; font-size: .88rem; padding: 0 18px; white-space: nowrap; }
.top-cta .tel { display: none; color: var(--navy); font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.top-cta .tel svg { vertical-align: -3px; margin-right: 6px; color: var(--brand); }
@media (min-width: 760px) { .top-cta .tel { display: inline; } }
@media (min-width: 1180px) { .nav { display: flex; } }
@media (max-width: 420px) { .brand img { height: 32px; } .top-cta .btn { padding: 0 14px; } }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); font-family: var(--font); font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { flex: none; }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: var(--white); color: var(--navy); border-color: #C5D0DE; }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--brand-50); }
.btn-call { background: var(--call); color: var(--white); }
.btn-zalo { background: var(--zalo); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--brand-dark); min-height: 44px; }
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Khối chung ---------- */
.sec { padding-block: 88px; }
.sec.alt { background: var(--bg-alt); }
.sec > .wrap { display: flex; flex-direction: column; gap: 44px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.head.center { align-self: center; text-align: center; align-items: center; }
.head p { color: var(--muted); font-size: 1.02rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--brand); }
@media (max-width: 760px) { .sec { padding-block: 60px; } .sec > .wrap { gap: 32px; } }

/* ---------- Mở đầu trang chủ ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 51, .94) 0%, rgba(7, 26, 51, .84) 38%, rgba(7, 26, 51, .25) 70%, rgba(7, 26, 51, 0) 100%); }
.hero .wrap { position: relative; min-height: min(78vh, 640px); display: flex; align-items: center; padding-block: 72px; }
.hero-text { max-width: 36rem; display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { color: #9FD0F0; }
.hero .eyebrow::before { background: #9FD0F0; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.15rem); }
.hero .lead { color: #DCE6F2; font-size: 1.05rem; }
.hero .ask { color: var(--white); font-weight: 600; font-size: 1.05rem; padding-left: 14px; border-left: 3px solid var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero-bg { position: relative; aspect-ratio: 4 / 3; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(7, 26, 51, 0) 55%, rgba(11, 37, 69, 1) 100%); }
  .hero .wrap { min-height: 0; padding-block: 8px 48px; }
  .hero-bg img { object-position: 60% 40%; }
}

/* Dải số liệu */
.stats { background: var(--navy-2); color: var(--white); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 26px 24px; border-left: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 2px; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.stats span { color: #B8C7DA; font-size: .85rem; }
@media (max-width: 860px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li { padding: 18px 16px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); } .stats li:nth-child(-n+2) { border-top: 0; } .stats li:nth-child(odd) { padding-left: 0; } .stats b { font-size: 1.25rem; } }

/* ---------- Lộ trình con đường ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.stage { display: flex; flex-direction: column; min-width: 0; }
.stage:nth-child(1) { padding-top: 108px; --c: var(--s1); }
.stage:nth-child(2) { padding-top: 72px; --c: var(--s2); }
.stage:nth-child(3) { padding-top: 36px; --c: var(--s3); }
.stage:nth-child(4) { --c: var(--s4); }
.stage-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r); padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.stage-top { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stage-card h3 { font-size: 1.15rem; }
.stage-goal { color: var(--brand-dark); font-weight: 600; font-size: .9rem; }
.lv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lv li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.lv b { font-weight: 600; color: var(--ink); }
.lv span { color: var(--muted); font-size: .8rem; grid-column: 1; line-height: 1.3; }
.lv b { line-height: 1.35; }
.lv em { font-style: normal; grid-column: 2; grid-row: 1 / span 2; color: var(--navy); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stage .link-arrow { font-size: .9rem; }
.pole { flex: 1; min-height: 28px; width: 2px; margin-left: 27px; background: var(--c); }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 6px solid var(--c); margin-left: 17px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9); }
.road-band { height: 64px; margin-top: -42px; position: relative; z-index: 0; }
.road-band svg { width: 100%; height: 100%; display: block; overflow: visible; }
.road-band .asphalt { fill: none; stroke: #2F3E52; stroke-width: 34; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road-band .edge { fill: none; stroke: #CBD5E1; stroke-width: 42; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road-band .dash { fill: none; stroke: #F5D06B; stroke-width: 2.5; stroke-dasharray: 18 14; vector-effect: non-scaling-stroke; }
.road-note { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.road-note b { color: var(--navy); font-weight: 600; }
.cefr { display: flex; flex-wrap: wrap; gap: 6px; }
.cefr span { border: 1px solid var(--line); background: var(--white); border-radius: 4px; padding: 2px 10px; color: var(--ink); font-size: .82rem; }
.cefr span i { font-style: normal; color: var(--brand-dark); font-weight: 600; margin-left: 4px; }
@media (max-width: 960px) {
  .road { grid-template-columns: 1fr; gap: 18px; padding-left: 56px; }
  .road::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 30px; border-radius: 15px; background: #2F3E52; box-shadow: 0 0 0 4px #CBD5E1; }
  .road::after { content: ""; position: absolute; left: 20px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(180deg, #F5D06B 0 14px, transparent 14px 26px); }
  .stage:nth-child(n) { padding-top: 0; position: relative; }
  .pole { display: none; }
  .dot { position: absolute; left: -50px; top: 22px; margin: 0; z-index: 2; box-shadow: none; }
  .road-band { display: none; }
}

/* ---------- Khóa học theo tuổi ---------- */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
.course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course:nth-child(1) { --c: var(--s1); } .course:nth-child(2) { --c: var(--s2); } .course:nth-child(3) { --c: var(--s3); } .course:nth-child(4) { --c: var(--s4); }
.course-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); border-bottom: 4px solid var(--c); }
.course-photo img { width: 100%; height: 100%; object-fit: cover; }
.course-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-meta { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.course h3 { font-size: 1.2rem; }
.course p { color: var(--muted); font-size: .9rem; }
.facts { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: var(--ink); }
.facts li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--brand); }
.course .fit { font-size: .86rem; color: var(--muted); font-style: italic; }
.course .btn { margin-top: auto; width: 100%; min-height: 50px; font-size: .88rem; padding: 0 14px; }
@media (max-width: 1100px) { .courses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .courses { grid-template-columns: 1fr; } }

/* ---------- Vì sao chọn GOFA ---------- */
.why { display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; }
.why-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); position: relative; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.why-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: var(--white); font-size: .85rem; font-weight: 500; background: linear-gradient(180deg, transparent, rgba(7, 26, 51, .8)); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; counter-reset: w; }
.why-list li { counter-increment: w; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.why-list li::before { content: counter(w, decimal-leading-zero); font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.why-list b { font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.why-list span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 32px; } .why-photo { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Thư viện ảnh ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery figure { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-alt); min-width: 0; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; color: var(--white); font-size: .82rem; font-weight: 500; background: linear-gradient(180deg, transparent, rgba(7, 26, 51, .78)); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 140px; gap: 8px; } }

/* ---------- Phụ huynh chia sẻ ---------- */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.voice { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.voice .mark { color: var(--brand); }
.voice blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); flex: 1; }
.voice footer { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.voice img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; flex: none; }
.voice cite { font-style: normal; display: flex; flex-direction: column; }
.voice cite b { color: var(--navy); font-weight: 600; }
.voice cite span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } .voice { padding: 24px; } }

/* ---------- 3 bước ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: st; }
.steps li { counter-increment: st; display: flex; flex-direction: column; gap: 10px; position: relative; padding-top: 56px; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--white); font-weight: 700; font-size: .9rem; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 60px; right: -16px; height: 1px; background: var(--brand-100); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 24px; } .steps li { padding: 0 0 0 64px; min-height: 44px; } .steps li::after { display: none; } }

/* ---------- Cơ sở ---------- */
.campuses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.campus { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.campus-photo { aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg-alt); }
.campus-photo img { width: 100%; height: 100%; object-fit: cover; }
.campus-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.campus-body .since { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.campus .addr { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--ink); font-size: .9rem; }
.campus .addr svg { margin-top: 3px; color: var(--brand); }
.campus .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .campuses { grid-template-columns: 1fr; } }

/* ---------- Hỏi đáp ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 44rem; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Đăng ký ---------- */
.signup { background: var(--navy); color: var(--white); }
.signup .wrap { padding-block: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.signup-text { display: flex; flex-direction: column; gap: 18px; }
.signup .eyebrow { color: #9FD0F0; }
.signup .eyebrow::before { background: #9FD0F0; }
.signup h2 { color: var(--white); }
.signup-text p { color: #CFDBEA; }
.hotline { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.hotline span { font-size: .8rem; color: #9FB3CC; letter-spacing: .06em; text-transform: uppercase; }
.hotline a { color: var(--white); text-decoration: none; font-size: 2rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.form { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.form h3 { font-size: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; font-size: 1rem; min-height: 54px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid #C5D0DE; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.err { color: #B42318; font-weight: 500; font-size: .86rem; }
.done { background: #E7F6EC; color: var(--ink); border-radius: var(--r-sm); padding: 14px 16px; font-size: .9rem; }
.form .btn { width: 100%; }
.form small { color: var(--muted); font-size: .8rem; text-align: center; }
@media (max-width: 900px) { .signup .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 60px; } .form { padding: 24px; } }

/* ---------- Chân trang ---------- */
.foot { background: var(--navy-3); color: #A9B9CD; font-size: .88rem; }
.foot .wrap { padding-block: 56px 28px; display: flex; flex-direction: column; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 10px; }
.foot img { height: 40px; width: auto; align-self: flex-start; }
.foot h4 { margin: 0 0 4px; color: var(--white); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.foot b { color: var(--white); font-weight: 600; }
.foot a { color: #DCE6F2; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; font-size: .78rem; color: #7F93AB; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Thanh gọi nhanh (điện thoại) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 37, 69, .08); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dock .btn { min-height: 54px; padding: 0 12px; }
@media (min-width: 900px) { .dock { display: none; } }

/* =================== TRANG CHI TIẾT KHÓA HỌC =================== */
.crumbs { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs span[aria-hidden] { color: #A0AEC0; }
.d-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.d-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 56px 72px; }
.d-hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.d-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.d-hero .lead { color: var(--ink); font-size: 1.02rem; }
.d-hero .quote { color: var(--muted); font-size: .95rem; padding-left: 16px; border-left: 3px solid var(--c, var(--brand)); font-style: italic; }
.d-hero figure { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); box-shadow: var(--shadow); }
.d-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.d-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-hero .chips span { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 4px 12px; font-size: .82rem; font-weight: 500; color: var(--navy); }
@media (max-width: 900px) { .d-hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 48px; } .d-hero figure { order: -1; aspect-ratio: 16 / 10; } }

.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--brand)); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.level .step { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.level h3 { font-size: 1.3rem; }
.level .age { color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
.level .meta { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 6px; }
.level .meta span { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.level p { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr; } }

.note { background: var(--brand-50); border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; font-size: .93rem; color: var(--ink); }
.note b { color: var(--navy); font-weight: 600; }
.explain { display: grid; grid-template-columns: 40px 1fr; gap: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--white); }
.explain .i { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.explain h3 { margin-bottom: 6px; }
.explain p { color: var(--muted); font-size: .93rem; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.benefit-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.benefit-list li:first-child { border-top: 1px solid var(--line); }
.benefit-list .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-dark); display: grid; place-items: center; }
.benefits figure { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.benefits figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; gap: 28px; } }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photos figure { min-width: 0; }
.photos .pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption { padding-top: 10px; font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr 1fr; } .photos figure:first-child { grid-column: 1 / -1; } }

.feature { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.feature .badge { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; }
.feature .badge img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink); }
.feature cite { display: block; margin-top: 12px; font-style: normal; font-size: .86rem; color: var(--muted); }
@media (max-width: 600px) { .feature { grid-template-columns: 1fr; padding: 22px; } .feature .badge { width: 72px; height: 72px; font-size: 1.3rem; } }

.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r); padding: 24px; }
.route:nth-child(2) { border-top-color: var(--s3); }
.route:nth-child(3) { border-top-color: var(--s4); }
.route h3 { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.route h3 small { font-size: .82rem; color: var(--muted); font-weight: 400; }
.route table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.route th, .route td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.route td { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .routes { grid-template-columns: 1fr; } }

.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: tr; }
.track li { counter-increment: tr; border-top: 2px solid var(--brand); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.track li::before { content: counter(tr, decimal-leading-zero); font-size: .8rem; font-weight: 700; color: var(--brand); }
.track p { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } }

.cta { background: var(--navy); color: var(--white); }
.cta .wrap { padding-block: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.cta p { color: #CFDBEA; margin-top: 12px; }
.cta .actions { justify-content: flex-end; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; padding-block: 48px; } .cta .actions { justify-content: flex-start; } }

.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.others a { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--oc, var(--brand)); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--white); transition: box-shadow .2s; }
.others a:hover { box-shadow: var(--shadow); }
.others b { color: var(--navy); font-weight: 600; font-size: 1.05rem; }
.others span { color: var(--muted); font-size: .88rem; }
.others em { font-style: normal; color: var(--brand-dark); font-weight: 600; font-size: .88rem; margin-top: 6px; }
@media (max-width: 860px) { .others { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===================== v6 · áp dụng đề xuất từ phân tích đối thủ ===================== */
/* Chọn cấp học ngay ở đầu trang: phụ huynh trả lời "con lớp mấy" trước khi đọc tiếp */
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick > p { font-weight: 600; color: var(--white); font-size: 1rem; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-grid a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: var(--white); text-decoration: none; transition: background-color .15s, border-color .15s; }
.pick-grid a:hover { background: rgba(255, 255, 255, .18); border-color: var(--white); }
.pick-grid b { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.pick-grid span { font-size: .8rem; color: #B8CBE0; }
@media (max-width: 560px) { .pick-grid { grid-template-columns: 1fr 1fr; } }

/* Ba mẹ băn khoăn → GOFA đồng hành */
.worries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.worry { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.worry .q { padding: 22px 24px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; border-bottom: 1px solid var(--line); background: #FBFCFD; }
.worry .q svg { color: #8A97A8; margin-top: 3px; }
.worry .q p { color: var(--navy); font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.worry .a { padding: 20px 24px 24px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; flex: 1; }
.worry .a .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; margin-top: 2px; }
.worry .a div { display: flex; flex-direction: column; gap: 6px; }
.worry .a b { color: var(--brand-dark); font-size: 1rem; font-weight: 600; }
.worry .a p { color: var(--ink); font-size: .95rem; }
.worry .a a { font-weight: 600; }
@media (max-width: 760px) { .worries { grid-template-columns: 1fr; } .worry .q, .worry .a { padding-left: 18px; padding-right: 18px; } }

/* Kết quả của các con */
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.results li { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.results b { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
.results strong { font-weight: 600; color: var(--ink); }
.results span { color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .results { grid-template-columns: 1fr; gap: 12px; } .results li { padding: 20px; } .results b { font-size: 1.4rem; } }

/* Thẻ cơ sở: 2 liên kết */
.campus-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; }
.campus-links .btn { min-height: 46px; font-size: .88rem; padding: 0 16px; }

/* Trang cơ sở */
.visit { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.visit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.visit-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: .95rem; }
.visit-card dt { color: var(--muted); }
.visit-card dd { margin: 0; color: var(--ink); font-weight: 500; }
.visit-card .actions .btn { flex: 1 1 200px; }
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prog a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--oc, var(--brand)); border-radius: var(--r-sm); background: var(--white); text-decoration: none; color: var(--ink); }
.prog a:hover { border-color: var(--oc, var(--brand)); }
.prog b { color: var(--navy); font-weight: 600; }
.prog span { color: var(--muted); font-size: .86rem; }
.prog em { font-style: normal; color: var(--brand-dark); font-size: .86rem; font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .prog { grid-template-columns: 1fr; } .visit-card { padding: 22px; } }
.signup.on-light { margin-top: 0; }
.others.others-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .others.others-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero .actions .btn, .d-hero .actions .btn { flex: 1 1 100%; } }

/* ===================== v7 · thêm màu tươi sáng, năng lượng ===================== */
/* Bảng 4 màu nhấn đi cùng xanh GOFA: cam (ấm áp), xanh lá (tiến bộ), hồng san hô (vui tươi).
   Mỗi màu có: --t (màu chính), --tt (nền nhạt), --td (chữ đậm, đủ tương phản trên nền nhạt). */
:root {
  --bg-alt: #F1F8FD;
  --a1: #1283C5; --a1-t: #E4F2FC; --a1-d: #0B5F92;
  --a2: #F28C28; --a2-t: #FFF1E1; --a2-d: #A9520A;
  --a3: #16A36A; --a3-t: #E2F6EC; --a3-d: #0B7046;
  --a4: #E8506B; --a4-t: #FDE9ED; --a4-d: #AE2944;
  --sun: #FFC531;
  /* 4 chặng học mỗi chặng một màu riêng, dễ nhớ */
  --s1: #F28C28; --s2: #1283C5; --s3: #16A36A; --s4: #6A4BD8;
}
.tone-1, .worry:nth-child(4n+1), .results li:nth-child(4n+1), .why-list li:nth-child(4n+1), .steps li:nth-child(4n+1), .voice:nth-child(4n+1), .campus:nth-child(4n+1), .benefit-list li:nth-child(4n+1), .track li:nth-child(4n+1), .route:nth-child(4n+1), .faq details:nth-child(4n+1) { --t: var(--a1); --tt: var(--a1-t); --td: var(--a1-d); }
.tone-2, .worry:nth-child(4n+2), .results li:nth-child(4n+2), .why-list li:nth-child(4n+2), .steps li:nth-child(4n+2), .voice:nth-child(4n+2), .campus:nth-child(4n+2), .benefit-list li:nth-child(4n+2), .track li:nth-child(4n+2), .route:nth-child(4n+2), .faq details:nth-child(4n+2) { --t: var(--a2); --tt: var(--a2-t); --td: var(--a2-d); }
.tone-3, .worry:nth-child(4n+3), .results li:nth-child(4n+3), .why-list li:nth-child(4n+3), .steps li:nth-child(4n+3), .voice:nth-child(4n+3), .campus:nth-child(4n+3), .benefit-list li:nth-child(4n+3), .track li:nth-child(4n+3), .route:nth-child(4n+3), .faq details:nth-child(4n+3) { --t: var(--a3); --tt: var(--a3-t); --td: var(--a3-d); }
.tone-4, .worry:nth-child(4n+4), .results li:nth-child(4n+4), .why-list li:nth-child(4n+4), .steps li:nth-child(4n+4), .voice:nth-child(4n+4), .campus:nth-child(4n+4), .benefit-list li:nth-child(4n+4), .track li:nth-child(4n+4), .route:nth-child(4n+4), .faq details:nth-child(4n+4) { --t: var(--a4); --tt: var(--a4-t); --td: var(--a4-d); }

/* Tiêu đề nhỏ: gạch cam cho có điểm nhấn */
.eyebrow::before, .head.center .eyebrow::after { background: var(--a2); }

/* Mở đầu: nút chọn cấp học có vạch màu chặng */
.pick-grid a { border-left: 4px solid var(--pc, var(--brand)); }
.pick-grid a:nth-child(1) { --pc: var(--s1); } .pick-grid a:nth-child(2) { --pc: #5DB8F0; } .pick-grid a:nth-child(3) { --pc: #3DD598; } .pick-grid a:nth-child(4) { --pc: #A48BFF; }

/* Dải số liệu: số có màu */
.stats li:nth-child(1) b { color: #7CC8F2; } .stats li:nth-child(2) b { color: #FFC27A; } .stats li:nth-child(3) b { color: #6FE0AE; } .stats li:nth-child(4) b { color: #FF9AAE; }

/* Ba mẹ băn khoăn: ảnh minh họa + khung màu */
#ba-me-lo { background: linear-gradient(180deg, #FFF7EE 0%, #FFFFFF 70%); }
.worry { border: 0; border-top: 5px solid var(--t); box-shadow: var(--shadow); }
.worry-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tt); }
.worry-photo img { width: 100%; height: 100%; object-fit: cover; }
.worry .q { background: var(--tt); border-bottom: 0; }
.worry .q svg { color: var(--t); }
.worry .q p { color: var(--td); }
.worry .a .ok { background: var(--t); }
.worry .a b { color: var(--td); }

/* Lộ trình: thẻ chặng có nền màu nhạt ở đầu */
.stage-card { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #fff) 0, #fff 120px); }
.stage-goal { color: var(--c); }
.stage-top span:last-child { color: var(--c); }
.cefr span { background: var(--a2-t); border-color: transparent; }
.cefr span i { color: var(--a2-d); }

/* Khóa học: nhãn tuổi thành viên thuốc màu */
.course { border-top: 0; }
.course-photo { border-bottom-width: 5px; }
.course-meta { align-self: flex-start; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; }
.facts li::before { background: var(--c); }
.course h3 { color: color-mix(in srgb, var(--c) 55%, var(--navy)); }

/* Vì sao chọn GOFA: mỗi điều một thẻ màu */
.why-list li { background: var(--tt); border-top: 0; border-radius: var(--r); padding: 18px 20px; }
.why-list li::before { width: 34px; height: 34px; border-radius: 50%; background: var(--t); color: #fff; display: grid; place-items: center; font-size: .78rem; }
.why-list b { color: var(--td); }
.why-list span { color: var(--ink); }

/* Kết quả của các con */
.results li { background: var(--tt); border: 0; border-top: 5px solid var(--t); }
.results b { color: var(--td); font-size: 2rem; }
.results span { color: var(--ink); }
@media (max-width: 860px) { .results b { font-size: 1.6rem; } }

/* Lời phụ huynh */
.voice { border: 0; border-top: 5px solid var(--t); box-shadow: var(--shadow); }
.voice .mark { color: var(--t); }
.voice footer { border-top-color: var(--tt); }

/* Quy trình 3 bước */
.steps li::before { background: var(--t); box-shadow: 0 0 0 6px var(--tt); }
.steps li::after { background: linear-gradient(90deg, var(--tt), var(--line)); height: 2px; }
.steps h3 { color: var(--td); }

/* Cơ sở */
.campus { border: 0; border-top: 5px solid var(--t); box-shadow: var(--shadow); }
.campus-body .since { align-self: flex-start; background: var(--tt); color: var(--td); padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; }
.campus .addr svg { color: var(--t); }

/* Hỏi đáp: câu đang mở có nền màu */
.faq details { border-left: 4px solid var(--t); border-bottom: 0; margin-bottom: 10px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 1px 2px rgba(11, 37, 69, .06); }
.faq { border-top: 0; }
.faq summary { padding: 16px 18px; }
.faq summary::after { border-color: var(--t); }
.faq details[open] { background: var(--tt); }
.faq .a { padding: 0 18px 18px; color: var(--ink); }

/* Đăng ký: nền navy có quầng màu nhẹ */
.signup { background: radial-gradient(600px 300px at 0% 0%, rgba(242, 140, 40, .22), transparent 70%), radial-gradient(700px 360px at 100% 100%, rgba(22, 163, 106, .2), transparent 70%), var(--navy); }
.cta { background: radial-gradient(500px 260px at 100% 0%, rgba(242, 140, 40, .25), transparent 70%), var(--navy); }

/* Trang chi tiết */
.d-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--brand)) 12%, #fff) 0%, #FFF8EF 100%); }
.d-hero .chips span { border-color: transparent; background: color-mix(in srgb, var(--c, var(--brand)) 14%, #fff); color: color-mix(in srgb, var(--c, var(--brand)) 70%, #000); }
.level { background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--brand)) 10%, #fff) 0, #fff 110px); }
.level .age { color: color-mix(in srgb, var(--c, var(--brand)) 80%, #000); }
.benefit-list .ok { background: var(--t); color: #fff; }
.track li { border-top: 4px solid var(--t); background: var(--tt); border-radius: 0 0 var(--r) var(--r); padding: 18px; }
.track li::before { color: var(--td); }
.track h3 { color: var(--td); }
.track p { color: var(--ink); }
.route { border-top-color: var(--t) !important; background: linear-gradient(180deg, var(--tt) 0, #fff 90px); }
.explain { background: var(--a2-t); border-color: transparent; }
.explain .i { background: var(--a2); border-color: var(--a2); color: #fff; }
.explain p { color: var(--ink); }
.note { background: var(--a3-t); border-left-color: var(--a3); }
.feature { border: 0; border-top: 5px solid var(--a2); box-shadow: var(--shadow); }
.visit-card { border: 0; border-top: 5px solid var(--a2); box-shadow: var(--shadow); }
.others a, .prog a { background: color-mix(in srgb, var(--oc, var(--brand)) 8%, #fff); }
/* v7 · giữ độ tương phản chữ màu trên nền trắng */
.stage-goal, .stage-top span:last-child { color: color-mix(in srgb, var(--c) 72%, #000); }
.course h3 { color: var(--navy); }

/* ===================== v8 · tách biệt từng phần thành khối riêng, nổi bật ===================== */
/* Nền trang xám xanh nhạt; mỗi phần là một khối bo tròn có màu riêng, cách nhau rõ ràng.
   Nhịp màu xen kẽ sáng – đậm – màu để mắt phụ huynh nhận ra mình đang ở phần nào. */
body { background: #EAF0F6; }
main { counter-reset: sec; }
.sec, .cta, .signup { width: min(1280px, calc(100% - 40px)); margin: 28px auto; border-radius: 28px; position: relative; overflow: hidden; }
.sec { background: #FFFFFF; box-shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 18px 48px rgba(11, 37, 69, .07); padding-block: 80px; counter-increment: sec; }
.sec.alt { background: radial-gradient(520px 280px at 100% 0%, rgba(18, 131, 197, .12), transparent 70%), #E8F4FC; }
.sec > .wrap { position: relative; z-index: 1; }
.foot { margin-top: 40px; }
@media (max-width: 760px) {
  .sec, .cta, .signup { width: calc(100% - 16px); margin: 12px auto; border-radius: 20px; }
  .sec { padding-block: 52px; }
}

/* Số thứ tự phần: viên thuốc màu trước tiêu đề nhỏ */
.sec .eyebrow::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; padding: 3px 10px; border-radius: 999px; background: var(--pa, var(--a2)); color: #fff; font-size: .72rem; letter-spacing: .04em; line-height: 1.4; }
.sec .eyebrow { color: var(--pd, var(--brand-dark)); }
.sec h2 { font-size: clamp(1.65rem, 3.1vw, 2.35rem); }

/* Dải số liệu thành thẻ trắng nổi lên trên ảnh mở đầu */
.stats { background: transparent; position: relative; z-index: 3; margin-top: -52px; }
.stats ul { background: #fff; border-radius: 22px; box-shadow: 0 20px 50px rgba(11, 37, 69, .16); padding: 6px 12px; }
.stats li { border-left-color: var(--line); padding: 22px 24px; }
.stats li:first-child { padding-left: 24px; }
.stats span { color: var(--muted); }
.stats li:nth-child(1) b { color: var(--a1-d); } .stats li:nth-child(2) b { color: var(--a2-d); } .stats li:nth-child(3) b { color: var(--a3-d); } .stats li:nth-child(4) b { color: var(--a4-d); }
.stats li::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; margin-bottom: 10px; background: var(--a1); }
.stats li:nth-child(2)::before { background: var(--a2); } .stats li:nth-child(3)::before { background: var(--a3); } .stats li:nth-child(4)::before { background: var(--a4); }
.hero .wrap { padding-bottom: 104px; }
@media (max-width: 860px) {
  .stats { margin-top: -36px; }
  .stats ul { border-radius: 18px; padding: 4px 16px; }
  .stats li { border-top-color: var(--line); padding: 16px 8px !important; }
  .hero .wrap { padding-bottom: 72px; }
}

/* ---- Màu riêng từng phần (trang chủ) ---- */
#ba-me-lo { --pa: var(--a2); --pd: var(--a2-d); background: radial-gradient(560px 300px at 100% 0%, rgba(242, 140, 40, .2), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(232, 80, 107, .1), transparent 70%), #FFF3E3; }
#lo-trinh { --pa: var(--a1); --pd: var(--a1-d); }
#khoa-hoc { --pa: #6A4BD8; --pd: #4A2FB0; }
#hinh-anh { --pa: var(--a4); --pd: var(--a4-d); }
#cach-dang-ky { --pa: var(--a3); --pd: var(--a3-d); background: radial-gradient(520px 260px at 100% 0%, rgba(22, 163, 106, .18), transparent 70%), #E3F6EC; }
#co-so { --pa: var(--a1); --pd: var(--a1-d); }
#hoi-dap { --pa: var(--a4); --pd: var(--a4-d); background: radial-gradient(520px 260px at 0% 0%, rgba(232, 80, 107, .14), transparent 70%), #FDEEF1; }
#hoi-dap .faq details { box-shadow: 0 2px 10px rgba(174, 41, 68, .08); }

/* Vì sao chọn GOFA: khối navy đậm, thẻ màu nổi bật trên nền tối */
#vi-sao { --pa: var(--sun); --pd: #FFD978; background: radial-gradient(600px 320px at 100% 0%, rgba(242, 140, 40, .25), transparent 70%), radial-gradient(520px 300px at 0% 100%, rgba(18, 131, 197, .35), transparent 70%), var(--navy); }
#vi-sao .eyebrow::before { color: var(--navy); }
#vi-sao h2 { color: #fff; }
#vi-sao .why-photo { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
#vi-sao .why-list li { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

/* Kết quả: khối xanh GOFA, thẻ trắng nổi */
#ket-qua { --pa: #fff; --pd: #DDF0FC; background: radial-gradient(600px 320px at 100% 0%, rgba(255, 197, 49, .3), transparent 70%), linear-gradient(135deg, #1283C5 0%, #0B5F92 100%); }
#ket-qua .eyebrow::before { color: var(--brand-dark); }
#ket-qua h2 { color: #fff; }
#ket-qua .results li { background: #fff; box-shadow: 0 14px 34px rgba(7, 26, 51, .22); }
#ket-qua .voice { box-shadow: 0 14px 34px rgba(7, 26, 51, .22); }

/* Thẻ nổi hơn khi rê chuột */
.worry, .course, .campus, .voice, .results li, .why-list li, .stage-card { transition: transform .2s, box-shadow .2s; }
@media (hover: hover) {
  .worry:hover, .course:hover, .campus:hover, .results li:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11, 37, 69, .16); }
}

/* Đăng ký + kêu gọi hành động: khối navy bo tròn */
.signup .wrap { padding-block: 80px; }
@media (max-width: 900px) { .signup .wrap { padding-block: 48px; } }
.cta .wrap { padding-block: 56px; }

/* Trang con: phần mở đầu cũng thành khối */
.d-hero { width: min(1280px, calc(100% - 40px)); margin: 24px auto 0; border-radius: 28px; border-bottom: 0; box-shadow: 0 18px 48px rgba(11, 37, 69, .07); }
@media (max-width: 760px) { .d-hero { width: calc(100% - 16px); margin-top: 8px; border-radius: 20px; } }
.campus-photo { aspect-ratio: 16 / 9; }

/* ===================== v9 · Chữ đậm, cân đối + Nấc thang Cambridge ===================== */
/* Chữ: tiêu đề nặng hơn (800), chữ phụ to và đậm màu hơn, bỏ nhãn in hoa giãn chữ (dấu hiệu "AI template"). */
:root { --ink: #121A26; --muted: #3E4A5B; }
body { line-height: 1.6; }
h1, h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
h3 { font-weight: 700; letter-spacing: -.012em; line-height: 1.28; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
.d-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.sec h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.head { gap: 14px; max-width: 50rem; }
.head p { font-size: 1.1rem; color: var(--muted); }
.hero .lead { font-size: 1.12rem; }

/* Nhãn mục: chữ thường, đậm, không giãn */
.eyebrow { font-size: .95rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.sec .eyebrow::before { font-size: .82rem; font-weight: 800; padding: 4px 11px; }

/* Tiêu đề thẻ */
.stage-card h3, .course h3, .level h3 { font-size: 1.3rem; }
.worry .q p { font-size: 1.12rem; font-weight: 700; }
.why-list b, .others b { font-size: 1.1rem; font-weight: 700; }
.steps h3, .campus h3, .form h3, .route h3 { font-size: 1.22rem; }
.faq summary { font-size: 1.06rem; font-weight: 700; }
.voice cite b, .prog b, .lv b, .results strong { font-weight: 700; }
.worry .a b, .stage-goal { font-weight: 700; }

/* Số liệu nổi bật */
.stats b { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.results b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.025em; }
.hotline a { font-weight: 800; }

/* Nhãn phụ: bỏ in hoa giãn chữ */
.stage-top, .course-meta, .campus-body .since, .level .step, .hotline span, .foot h4 { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .9rem; }
.foot h4 { font-size: 1rem; }

/* Chữ phụ: nâng cỡ tối thiểu ~16px */
.lv li { font-size: .96rem; }
.lv span { font-size: .88rem; }
.stats span, .results span, .others span, .prog span, .prog em, .others em { font-size: .95rem; }
.course p, .why-list span, .steps p, .level p, .track p, .explain p, .worry .a p { font-size: 1rem; }
.facts, .course .fit, .campus .addr, .voice cite span, .photos figcaption, .feature cite, .level .meta span { font-size: .95rem; }
.faq .a { font-size: 1.02rem; }
.stage .link-arrow, .course .btn, .campus-links .btn { font-size: .95rem; }
.field label { font-size: .95rem; }
.form small, .crumbs, .route h3 small { font-size: .88rem; }
.gallery figcaption, .why-photo figcaption { font-size: .92rem; font-weight: 600; }
.pick-grid b { font-size: 1.02rem; font-weight: 700; }
.pick-grid span { font-size: .88rem; }
.foot { font-size: .95rem; }
.foot-bottom { font-size: .86rem; }
@media (max-width: 860px) {
  .stats b { font-size: 1.5rem; }
  .results b { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  .sec h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------- Nấc thang chuẩn Cambridge ---------- */
.road-unit { margin: -12px 0 0; font-size: .92rem; color: var(--muted); }
.cam { margin: 0; background: #fff; border-radius: 22px; padding: 30px 32px 0; box-shadow: 0 1px 2px rgba(11,37,69,.06), 0 12px 32px rgba(11,37,69,.08); overflow: hidden; }
.cam-head { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 8px 32px; align-items: end; margin-bottom: 26px; }
.cam-head h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.cam-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.cam-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 0; position: relative; }
.cam-steps li { --c: var(--brand); height: calc(118px + var(--h) * 40px); background: color-mix(in srgb, var(--c) 14%, #fff); border-top: 6px solid var(--c); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.cam-steps li + li { border-left: 2px solid #fff; }
.cam-steps li:nth-child(even) { background: color-mix(in srgb, var(--c) 20%, #fff); }
.cam-lv { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: color-mix(in srgb, var(--c) 78%, #000); }
.cam-steps li:first-child .cam-lv { font-size: 1.15rem; padding-top: 6px; }
.cam-steps b { font-size: 1.05rem; font-weight: 800; color: var(--navy); line-height: 1.25; margin-top: 4px; }
.cam-steps small { margin-top: auto; align-self: flex-start; font-size: .82rem; font-weight: 700; color: #fff; background: var(--c); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cam-steps li:last-child::after { content: ""; position: absolute; right: 16px; top: -40px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 18px solid var(--c); }
@media (max-width: 860px) {
  .cam { padding: 22px 16px 18px; border-radius: 18px; }
  .cam-head { grid-template-columns: 1fr; margin-bottom: 18px; }
  .cam-head h3 { font-size: 1.25rem; }
  .cam-steps { grid-template-columns: 1fr; flex-direction: column-reverse; display: flex; gap: 6px; align-items: stretch; }
  .cam-steps li { height: auto; width: calc(46% + var(--h) * 10.8%); min-height: 62px; border-top: 0; border-left: 6px solid var(--c); border-radius: 0 12px 12px 0; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
  .cam-steps li + li { border-left: 6px solid var(--c); }
  .cam-lv { grid-row: 1 / span 2; font-size: 1.35rem; min-width: 3.2rem; }
  .cam-steps li:first-child .cam-lv { font-size: .95rem; }
  .cam-steps b { margin: 0; font-size: 1rem; }
  .cam-steps small { margin: 2px 0 0; font-size: .76rem; padding: 2px 8px; }
  .cam-steps li:last-child::after { display: none; }
}
/* v9 tinh chỉnh nấc thang */
.cam-steps li { height: calc(146px + var(--h) * 38px); }
.cam-steps li:last-child::after { display: none; }
.cam-lv, .cam-steps b { white-space: nowrap; }
@media (max-width: 860px) {
  .cam-steps li { height: auto; width: calc(56% + var(--h) * 8.8%); }
  .cam-steps small { justify-self: start; align-self: auto; }
  .cam-lv { white-space: nowrap; font-size: 1.25rem; }
  .cam-steps li:first-child .cam-lv { font-size: .85rem; min-width: 3.2rem; }
  .cam-steps b { white-space: normal; }
}
@media (max-width: 860px) {
  .cam-steps li { width: calc(66% + var(--h) * 6.8%); grid-template-columns: 4rem 1fr; column-gap: 10px; }
  .cam-lv { min-width: 0; }
  .cam-steps li:first-child .cam-lv { font-size: .8rem; }
  .cam-steps b { white-space: nowrap; }
}

/* ===================== v10 · Messenger, form thật, bố cục cân đối, rút gọn bản điện thoại ===================== */
/* Nút Messenger (màu chuyển sắc quen thuộc của Messenger) */
.btn-msg { background: linear-gradient(45deg, #0A7CFF 0%, #A033FF 60%, #FF5C87 100%); color: #fff; border: 0; }
.dock { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dock .btn { padding: 0 6px; gap: 6px; font-size: .92rem; }
/* Ô bẫy chống spam: ẩn hẳn với người thật */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done.fail { background: #FDECEC; color: #8A1C14; }
.btn[disabled] { opacity: .7; cursor: progress; }
/* Kết quả: thẻ chứng chỉ có chữ dài hơn */
.results li.certs b { font-size: 1.55rem; line-height: 1.2; }

/* Tiêu đề mục dàn rộng, không bị dồn sang nửa trái */
.sec .head { max-width: 62rem; }
.sec .head h2 { text-wrap: pretty; }
/* Vì sao: ảnh cao bằng khối chữ, không lơ lửng */
.why { align-items: stretch; }
.why-photo { aspect-ratio: auto; min-height: 100%; }
/* Thẻ cơ sở: hai nút xếp giống nhau */
.campus-links { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.campus-links .btn { width: 100%; }
.campus-links .link-arrow { justify-self: center; }
/* Khung Đăng ký: nhãn dạng viên thuốc như các mục khác */
.signup .eyebrow::before { content: "✓"; width: auto; height: auto; padding: 3px 10px; border-radius: 999px; background: var(--sun, #FFC531); color: var(--navy); font-size: .82rem; font-weight: 800; line-height: 1.4; }
.signup .actions .btn { flex: 1 1 auto; }

/* ---------- Điện thoại: nút đăng ký lên màn hình đầu, rút gọn chiều dài ---------- */
@media (max-width: 860px) {
  .hero-bg { aspect-ratio: 16 / 9; }
  .hero .wrap { padding-block: 4px 36px; }
  .hero-text { gap: 16px; }
  .hero h1 { font-size: 1.95rem; }
  .hero .lead { display: none; }
  .hero .ask { order: 2; font-size: 1rem; }
  .hero .actions { order: 3; }
  .hero .pick { order: 4; }
}
@media (max-width: 760px) {
  /* Thẻ vuốt ngang: khóa học, ảnh lớp học, cơ sở */
  .courses, .campuses, .gallery {
    display: grid; grid-template-columns: none; grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: 84%; grid-auto-rows: auto;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 0 16px 14px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .courses::-webkit-scrollbar, .campuses::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .courses > *, .campuses > *, .gallery > * { scroll-snap-align: start; }
  .gallery figure, .gallery figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .swipe-hint { display: flex; }
  /* Băn khoăn: ảnh thấp hơn */
  .worry-photo { aspect-ratio: 2 / 1; }
  /* Vì sao: bỏ ảnh lớn, thẻ gọn */
  .why-photo { display: none; }
  .why-list { gap: 10px; }
  .why-list li { padding: 16px; }
  /* Kết quả và lời phụ huynh gọn hơn */
  .results li { padding: 18px; }
  .voice { padding: 20px; }
  .sec { padding-block: 44px; }
  .sec > .wrap { gap: 26px; }
}
.swipe-hint { display: none; align-items: center; gap: 8px; margin: -14px 0 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.swipe-hint svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint svg { animation: none; } }
@media (max-width: 760px) {
  .swipe-hint { display: flex; }
  .results li.certs b { font-size: 1.2rem; }
}
/* Vì sao: tiêu đề trải ngang, ảnh và 6 thẻ cao bằng nhau */
@media (min-width: 761px) {
  .why { grid-template-columns: 5fr 7fr; grid-template-areas: "h h" "p l"; gap: 32px 40px; align-items: stretch; }
  .why > .head { display: contents; }
  .why > .head > .head { grid-area: h; }
  .why > .head > .why-list { grid-area: l; }
  .why-photo { grid-area: p; aspect-ratio: auto; min-height: 0; height: 100%; }
  .why-photo img { object-position: center 35%; }
}
@media (min-width: 761px) {
  .why { grid-template-columns: 5fr 7fr; grid-template-areas: "h l" "p l"; gap: 28px 40px; align-items: start; }
  .why-photo { aspect-ratio: 16 / 10; height: auto; align-self: end; }
  .why-photo img { object-position: center 30%; }
}

/* ===== v11: form Google Form (tuổi, cơ sở, đồng ý), nút ĐĂNG KÝ nhấp nháy, form nằm trên các nút liên hệ ===== */
.signup .wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "t f" "a f"; column-gap: 64px; row-gap: 28px; align-items: start; }
.signup-text { grid-area: t; align-self: end; }
.signup .form { grid-area: f; }
.signup-acts { grid-area: a; display: flex; flex-direction: column; gap: 18px; }
.signup-acts .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.signup-acts .actions .btn { flex: 1 1 auto; }
@media (max-width: 900px) {
  .signup .wrap { grid-template-columns: 1fr; grid-template-areas: "t" "f" "a"; row-gap: 26px; }
  .signup-text { align-self: start; }
}
.field select:invalid, .field select option[value=""] { color: var(--muted); }
.field input::placeholder { color: #8A96A8; }
.consent { display: flex; flex-direction: column; gap: 6px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.5; cursor: pointer; color: var(--ink); }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; }
.consent a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.btn-dk { min-height: 60px; font-size: 1.2rem; font-weight: 800; letter-spacing: .14em; color: #fff;
  background: linear-gradient(135deg, #D9480F, #F0761E); border: 0;
  animation: dk-blink 1.4s ease-in-out infinite; }
.btn-dk:hover { background: linear-gradient(135deg, #C2410C, #E8590C); }
.btn-dk:disabled { animation: none; opacity: .75; letter-spacing: .02em; }
@keyframes dk-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 118, 30, .6); filter: brightness(1); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(240, 118, 30, 0); filter: brightness(1.14); transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) { .btn-dk { animation: none; box-shadow: 0 0 0 4px rgba(240, 118, 30, .35); } }
.policy { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; }
.policy h2 { font-size: 1.35rem; margin-top: 18px; }
.policy ul { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 6px; }
.policy p, .policy li { line-height: 1.65; }
.policy .note { color: var(--muted); font-size: .9rem; }
.policy-hero .d-hero-text { max-width: 46rem; }
.foot-bottom a { color: inherit; text-underline-offset: 3px; }
.policy-hero .wrap { grid-template-columns: 1fr; padding-block: 40px 48px; }
.signup .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.signup .wrap > *, .form .field { min-width: 0; }
.field select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 900px) { .signup .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v14 · Trang Test trình độ online ---------- */
.t-hero .wrap { grid-template-columns: 1fr; }
.t-hero .d-hero-text { max-width: 48rem; }
.t-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.t-steps li { display: flex; align-items: center; gap: 10px; }
.t-steps b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--white); font-size: .85rem; flex: none; }
.t-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.t-card-pick { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: var(--r); box-shadow: var(--shadow); }
.t-card-pick.goi-y { outline: 3px solid var(--brand); outline-offset: 3px; }
.t-card-pick h3 { font-size: 1.35rem; }
.t-card-pick .t-age { font-weight: 700; color: var(--c); font-size: 1rem; }
.t-card-pick .t-meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.t-card-pick p:not([class]) { font-size: .92rem; color: var(--ink); }
.t-card-pick .btn { margin-top: auto; width: 100%; font-size: .9rem; padding: 0 14px; }
.t-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-50); padding: 4px 10px; border-radius: 99px; }
@media (max-width: 1060px) { .t-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .t-picks { grid-template-columns: 1fr; } }

.t-app { background: var(--bg-alt); min-height: 70vh; }
.t-app > .wrap { max-width: 820px; gap: 18px; }
.t-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.t-top h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 6px; }
.t-thoat { font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); background: none; border: 1px solid #C5D0DE; border-radius: var(--r-sm); min-height: 44px; padding: 0 14px; cursor: pointer; flex: none; }
.t-progress { height: 8px; border-radius: 99px; background: var(--brand-100); overflow: hidden; }
.t-progress span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .3s; }
.t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.t-row { display: flex; justify-content: space-between; align-items: center; }
.t-loai { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.t-loai.is-nghe { background: #FFF1E6; color: #B54708; }
.t-loai.is-doc { background: var(--brand-50); color: var(--brand-dark); }
.t-so { font-size: .9rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-nghe-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.t-nghe-wrap[hidden] { display: none; }
.t-nghe { font: inherit; font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 26px; border-radius: 99px; border: 0; background: #D9480F; color: var(--white); cursor: pointer; }
.t-nghe:disabled { background: #C5D0DE; cursor: not-allowed; }
.t-nghe.playing { animation: dk-blink 1.1s ease-in-out infinite; }
#t-nghe-note { font-size: .85rem; color: var(--muted); }
.t-loi { font-size: .88rem; background: #FFF8E6; border-radius: var(--r-sm); padding: 10px 14px; }
.t-doan { white-space: pre-line; background: var(--bg-alt); border-left: 4px solid var(--brand); border-radius: var(--r-sm); padding: 16px 18px; font-size: 1rem; line-height: 1.7; }
.t-cau { white-space: pre-line; font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.5; }
.t-chon { display: flex; flex-direction: column; gap: 10px; }
.t-opt { font: inherit; text-align: left; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px; border-radius: var(--r-sm); border: 1.5px solid #C5D0DE; background: var(--white); color: var(--ink); cursor: pointer; font-size: 1rem; }
.t-opt:hover { border-color: var(--brand); }
.t-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 2px var(--brand); }
.t-key { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--bg-alt); color: var(--navy); }
.t-opt[aria-pressed="true"] .t-key { background: var(--brand); color: var(--white); }
.t-chon.big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.t-chon.big .t-opt { flex-direction: column; justify-content: center; min-height: 130px; gap: 8px; text-align: center; }
.t-chon.big .t-txt { font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1.1; letter-spacing: .02em; }
.t-tiep { align-self: flex-end; min-width: 220px; }
.t-tiep:disabled { background: #C5D0DE; cursor: not-allowed; }
.t-qua { align-items: center; text-align: center; padding-block: 44px; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.t-qua-ic { font-size: 3rem; color: #F0A020; line-height: 1; }
@media (max-width: 600px) {
  .t-card { padding: 20px 16px; }
  .t-tiep { align-self: stretch; }
  .t-chon.big { gap: 10px; }
  .t-chon.big .t-opt { min-height: 104px; padding: 8px 4px; }
}

#nhan-ket-qua .wrap { grid-template-areas: "t f"; align-items: start; }
@media (max-width: 900px) { #nhan-ket-qua .wrap { grid-template-areas: "t" "f"; } }

.t-result > .wrap { max-width: 900px; }
.t-res { display: flex; flex-direction: column; gap: 20px; }
.t-res-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.t-res-box { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-alt); }
.t-res-box span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.t-res-box b { font-size: 1.25rem; color: var(--navy); line-height: 1.35; }
.t-res-box.is-lop { background: var(--navy); border-color: var(--navy); }
.t-res-box.is-lop span { color: #9FB3CC; }
.t-res-box.is-lop b { color: var(--white); }
.t-res-box.is-lop .link-arrow { color: #8FD0F5; }
.t-diem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.t-diem li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .95rem; }
.t-diem li i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--brand-100); position: relative; overflow: hidden; }
.t-diem li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand); border-radius: 99px; }
.t-diem li.chua { color: var(--muted); }
.t-res .done.fail { background: #FEF3F2; }
@media (max-width: 700px) { .t-res-grid { grid-template-columns: 1fr; } .t-res .actions .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .t-nghe.playing { animation: none; } .t-progress span { transition: none; } }
.t-card[hidden], .t-app[hidden], .t-result[hidden], #nhan-ket-qua[hidden] { display: none; }
.t-app .eyebrow::before, .t-result .eyebrow::before { display: none; }
#chon-bai, #lam-bai, #nhan-ket-qua, #tt-ket-qua { scroll-margin-top: 84px; }

/* ===== v15 · Nút "Làm bài test thử" to, màu cam, đặt cạnh "Xem chi tiết" ===== */
.btn-test { width: 100%; min-height: 58px; font-size: 1.05rem; font-weight: 800; color: #fff; border: 0;
  background: linear-gradient(135deg, #D9480F, #F0761E); box-shadow: 0 8px 18px rgba(217, 72, 15, .28);
  transition: transform .15s, box-shadow .15s, filter .15s; }
.btn-test:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(217, 72, 15, .36); }
.btn-test:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.stage-cta { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: auto; padding-top: 6px; }
.stage-cta .link-arrow { justify-content: center; }
.stage .btn-test { font-size: 1rem; padding: 0 12px; }
.stage-card { flex: 1; }
.course-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.course .course-cta .btn { margin-top: 0; }
.course .course-cta .btn-test { min-height: 58px; font-size: 1.02rem; }
.note-test { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.note-test .btn-test { width: auto; padding: 0 30px; min-height: 60px; font-size: 1.1rem; }
@media (max-width: 640px) { .note-test .btn-test { width: 100%; } }
.t-giong { flex-basis: 100%; font-size: .85rem; color: var(--brand-dark); font-weight: 600; }
.t-giong.thieu { color: #9A3412; background: #FFF4E5; border-radius: var(--r-sm); padding: 8px 12px; font-weight: 500; }
.t-giong:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .btn-test, .btn-test:hover { transition: none; transform: none; } }

/* ===== v16 · Hiệu ứng động nhẹ ===== */
/* 1. Mở đầu trang: chữ hero trượt lên lần lượt, ảnh nền thu nhẹ */
@keyframes up-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-text > *, .d-hero-text > * { animation: up-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2), .d-hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3), .d-hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4), .d-hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5), .d-hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-text > :nth-child(n+6), .d-hero-text > :nth-child(n+6) { animation-delay: .4s; }
.hero-bg img { animation: hero-zoom 1.8s ease-out both; }
.d-hero figure { animation: up-in .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
/* 2. Cuộn tới đâu, khối nội dung hiện dần tới đó (chỉ khi JS chạy) */
.anim .rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.anim .rv.in { opacity: 1; transform: none; }
/* 3. Lộ trình: chấm mốc trên con đường lan sóng nhẹ khi chặng hiện ra */
@keyframes dot-ping { 0% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent); } 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 18px color-mix(in srgb, var(--c) 0%, transparent); } }
.stage.seen .dot { animation: dot-ping 1.3s ease-out .5s 2; }
/* 4. Nút "Làm bài test thử": vệt sáng lướt qua mỗi 5 giây */
.btn-test { position: relative; overflow: hidden; isolation: isolate; }
.btn-test::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); animation: sheen 5s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%, 72% { left: -60%; } 100% { left: 130%; } }
/* 5. Ảnh trong thẻ phóng nhẹ khi rê chuột */
@media (hover: hover) {
  .course-photo img, .worry-photo img, .campus-photo img, .photos figure img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .course:hover .course-photo img, .worry:hover .worry-photo img, .campus:hover .campus-photo img, .photos figure:hover img { transform: scale(1.05); }
}
/* Máy bật "Giảm chuyển động": bỏ trượt, phóng, vệt sáng, sóng; giữ hiệu ứng mờ dần tại chỗ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .d-hero-text > *, .d-hero figure { animation-name: fade-in; }
  .hero-bg img, .stage.seen .dot, .btn-test::after { animation: none !important; }
  .anim .rv { transform: none; }
  .anim .rv.in { animation: fade-in .7s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
  .course:hover .course-photo img, .worry:hover .worry-photo img, .campus:hover .campus-photo img, .photos figure:hover img { transform: none; }
}
/* Lộ trình 4 cột trên màn hình vừa: nút gọn một dòng */
@media (min-width: 961px) and (max-width: 1180px) { .stage .btn-test { font-size: .9rem; padding: 0 8px; gap: 6px; white-space: nowrap; } .stage .btn-test svg { width: 18px; height: 18px; } }
@media (min-width: 961px) and (max-width: 1060px) { .stage .btn-test svg { display: none; } }
/* v19 · Menu trang chủ có mục dài "Phụ huynh nói về GOFA": số điện thoại trên thanh menu thu thành biểu tượng tròn
   (số đầy đủ vẫn ở thanh trên cùng "Hotline / Zalo" và nút Gọi dưới đáy màn hình điện thoại) */
@media (min-width: 1180px) {
  .top:has(.nav a[href="#ket-qua"]) .nav a { padding-inline: 9px; }
  .top:has(.nav a[href="#ket-qua"]) .tel { font-size: 0; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #C5D0DE; border-radius: 50%; }
  .top:has(.nav a[href="#ket-qua"]) .tel:hover { border-color: var(--brand); background: var(--brand-50); }
  .top:has(.nav a[href="#ket-qua"]) .tel svg { margin: 0; }
}
/* Ba mẹ bấm phóng chữ A+ / A++: menu ẩn khi màn hình chưa đủ rộng (giống màn hình hẹp), để nút Đăng ký không bị đẩy ra ngoài */
@media (max-width: 1499px) { html.size-2 .nav { display: none; } }
@media (max-width: 1799px) { html.size-3 .nav { display: none; } }
/* v20 · Logo mới GOFA English Center (tỉ lệ 2,7:1) */
.brand img { height: 48px; }
.foot img { height: 52px; }
@media (max-width: 420px) { .brand img { height: 40px; } }
