/* ===== Font tự host ===== */
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url(/fonts/baloo-2-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url(/fonts/baloo-2-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(/fonts/baloo-2-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(/fonts/baloo-2-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(/fonts/baloo-2-vietnamese-800-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(/fonts/baloo-2-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Biến màu ===== */
:root {
  --mint: #eef7f0;
  --paper: #ffffff;
  --ink: #2a2745;
  --ink-soft: #5d5a78;
  --line: #d6e8db;
  --sun: #ffc23d;
  --sun-soft: #fff0c7;
  --coral: #f2694b;
  --coral-dark: #c4472a;
  --coral-ink: #a8381e;
  --coral-soft: #ffe1d8;
  --leaf: #2f9e74;
  --leaf-soft: #d9f2e6;
  --sky: #3e97dc;
  --sky-soft: #dceefc;
  --plum: #8b5cc6;
  --plum-soft: #ece2fa;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(42, 39, 69, .18);
  --wrap: 1160px;
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mint); color: var(--ink); font: 17px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ===== Nút ===== */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--body); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-dark); color: #fff; box-shadow: 0 6px 0 #93321c; }
.btn-primary:hover { box-shadow: 0 8px 0 #93321c; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #93321c; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ===== Header ===== */
.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; gap: 1.5rem; justify-content: flex-end; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; opacity: .9; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238, 247, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand b { font: 800 1.35rem/1 var(--head); display: block; }
.brand small { color: var(--ink-soft); font-size: .78rem; display: block; margin-top: 2px; }
.nav { display: flex; gap: .2rem; align-items: center; }
.nav a { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .97rem; }
.nav a:hover { background: var(--sun-soft); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .btn { margin-left: .5rem; padding: .65em 1.2em; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; background: var(--coral-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
  .topbar .wrap { justify-content: center; gap: 1rem; }
  .topbar span { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; background: var(--mint);
    padding: .5rem 16px 1.2rem; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; }
  .nav .btn { margin: .5rem 0 0; justify-content: center; }
}

/* ===== Section chung ===== */
section { padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral-ink); background: var(--coral-soft); padding: .3em .9em; border-radius: 999px; margin-bottom: 1rem; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.bg-white { background: var(--paper); }
.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.icon-blob { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1rem; }
.icon-blob svg { width: 30px; height: 30px; }
.t-sun { background: var(--sun-soft); color: #8a5f00; }
.t-coral { background: var(--coral-soft); color: var(--coral-dark); }
.t-leaf { background: var(--leaf-soft); color: var(--leaf); }
.t-sky { background: var(--sky-soft); color: var(--sky); }
.t-plum { background: var(--plum-soft); color: var(--plum); }

/* ===== Hero ===== */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--coral); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: var(--sun); opacity: .55; z-index: -1; border-radius: 6px; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0; }
.hero-badges { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-badges svg { color: var(--leaf); width: 20px; height: 20px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.wave { display: block; width: 100%; height: 60px; color: var(--paper); margin-top: -1px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 520px; margin-inline: auto; } }

/* ===== Số liệu ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); }
.stat b { display: block; font: 800 2.4rem/1 var(--head); margin-bottom: .3rem; }
.stat span { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Lớp học ===== */
.class-card { border-radius: var(--radius); padding: 1.8rem 1.5rem; position: relative; overflow: hidden; }
.class-card .age { font: 800 1rem/1 var(--head); background: rgba(255, 255, 255, .7); display: inline-block; padding: .45em .9em; border-radius: 999px; margin-bottom: 1rem; }
.class-card h3 { font-size: 1.7rem; }
.class-card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.class-card li { margin-bottom: .3rem; }

/* ===== Một ngày của bé ===== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: start; background: var(--paper);
  padding: 1rem 1.3rem; border-radius: 18px; box-shadow: var(--shadow); }
.timeline time { font: 800 1.15rem/1.5 var(--head); color: var(--coral-dark); }
.timeline b { display: block; }
.timeline span { color: var(--ink-soft); font-size: .95rem; }

/* ===== Tin tức ===== */
.post-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card .cover { aspect-ratio: 16/10; background: var(--sun-soft); display: grid; place-items: center; overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .cover svg { width: 72px; height: 72px; opacity: .8; }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; }
.post-card time { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.post-card h3 { margin: .35rem 0 .5rem; }
.post-card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.article { max-width: 760px; margin-inline: auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 2rem; }
.article .content p { font-size: 1.1rem; }
.article .meta { color: var(--ink-soft); font-weight: 700; }

/* ===== Thư viện ảnh ===== */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { border: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); border-radius: 999px; padding: .5em 1.1em; font: 700 .95rem var(--body); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 38, .92); display: none; place-items: center; z-index: 100; padding: 16px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; border-radius: 12px; margin-inline: auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: .8rem; }
.lightbox .close { position: absolute; top: 16px; right: 16px; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; cursor: pointer; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); background: var(--paper); border-radius: var(--radius); border: 2px dashed var(--line); }

/* ===== Form ===== */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field label i { color: var(--coral); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line);
  border-radius: 14px; padding: .75rem .95rem; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.alert { padding: 1rem 1.2rem; border-radius: 14px; font-weight: 700; }
.alert.ok { background: var(--leaf-soft); color: #17694a; }
.alert.err { background: var(--coral-soft); color: var(--coral-ink); }

/* ===== Bước tuyển sinh ===== */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { list-style: none; background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--sun); font: 800 1.3rem/1 var(--head); margin-bottom: .8rem; }
.steps { padding: 0; margin: 0; }

/* ===== Đội ngũ ===== */
.person { text-align: center; }
.person .avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font: 800 2.4rem/1 var(--head); color: #fff; }
.person small { color: var(--ink-soft); display: block; }

/* ===== Lời phụ huynh ===== */
.quote { font-size: 1.05rem; }
.quote footer { margin-top: 1rem; font-weight: 700; display: flex; align-items: center; gap: .7rem; }
.quote footer span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--head); }

/* ===== CTA ===== */
.cta-band { background: var(--coral-dark); color: #fff; border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; opacity: .95; }
.cta-band .btn { background: #fff; color: var(--coral-ink); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* ===== Page header ===== */
.page-head { padding: clamp(40px, 6vw, 70px) 0 clamp(30px, 4vw, 50px); text-align: center; }
.page-head p { max-width: 640px; margin-inline: auto; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: .8rem; }
.crumbs a { color: inherit; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #d9d7ec; padding: 60px 0 30px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Gọi nhanh trên di động */
.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--leaf); color: #fff;
  display: none; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.fab-call svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .fab-call { display: grid; } }

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