@font-face{font-family:'Baloo 2';font-style:normal;font-weight:600 800;font-display:swap;src:url('../fonts/wXKrE3kTposypRyd51fcANwr.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-style:normal;font-weight:600 800;font-display:swap;src:url('../fonts/wXKrE3kTposypRyd51bcANwr.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Baloo 2';font-style:normal;font-weight:600 800;font-display:swap;src:url('../fonts/wXKrE3kTposypRyd51jcAA.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:'Quicksand';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/6xKtdSZaM9iE8KbpRA_hJFQNcOM.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:'Quicksand';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/6xKtdSZaM9iE8KbpRA_hJVQNcOM.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Quicksand';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/6xKtdSZaM9iE8KbpRA_hK1QN.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:'Birthstone';font-style:normal;font-weight:400 400;font-display:swap;src:url('../fonts/8AtsGs2xO4yLRhy87sv_LLHzjCfZ.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:'Birthstone';font-style:normal;font-weight:400 400;font-display:swap;src:url('../fonts/8AtsGs2xO4yLRhy87sv_LLDzjCfZ.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Birthstone';font-style:normal;font-weight:400 400;font-display:swap;src:url('../fonts/8AtsGs2xO4yLRhy87sv_LL7zjA.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}

/* ==========================================================================
   Trường Mầm Non Tuổi Thơ: giao diện.
   Bố cục theo mẫu tham khảo, viết lại hoàn toàn. Màu theo logo trường.
   Bán kính: nút = viên thuốc, thẻ = 24px, khối lớn = 40px, ảnh người = tròn.
   ========================================================================== */
:root {
	--brand: #326f97; --brand-deep: #24597d; --sky: #bde9ff; --sky-soft: #eaf7ff;
	--sun: #ffd449; --sun-soft: #fff0b8; --mint: #e1f0d9; --ink: #1f3b4d; --muted: #4a6274;
	--primary: #bfe3ff; --paper: #f8fcff; --line: #cfe6f2; --white: #fff;
	--ease: cubic-bezier(.16, 1, .3, 1); --r-card: 24px; --r-panel: 40px; --wrap: 1200px;
	--shadow: 0 22px 40px -26px rgba(36, 89, 125, .55);
	--font-head: 'Baloo 2', 'Segoe UI', sans-serif; --font-body: Quicksand, 'Segoe UI', sans-serif; --font-script: Birthstone, cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { zoom: .86; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper) url("../images/deco-grid.svg") 0 0 / 84px 69px repeat; font: 500 17px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--brand); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 18px; background: var(--sun); color: var(--brand-deep); border-radius: 999px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - 48px)); }

/* Icons: Phosphor Bold (MIT), tô màu theo currentColor bằng mask. */
.ico { display: inline-block; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-facebook-logo { --i: url('../images/icons/facebook-logo.svg'); }
.ico-youtube-logo { --i: url('../images/icons/youtube-logo.svg'); } .ico-tiktok-logo { --i: url('../images/icons/tiktok-logo.svg'); }
.ico-arrow-right { --i: url('../images/icons/arrow-right.svg'); } .ico-arrow-left { --i: url('../images/icons/arrow-left.svg'); }
.ico-arrow-up { --i: url('../images/icons/arrow-up.svg'); } .ico-check { --i: url('../images/icons/check.svg'); }
.ico-map-pin { --i: url('../images/icons/map-pin.svg'); } .ico-phone { --i: url('../images/icons/phone.svg'); }
.ico-envelope-simple { --i: url('../images/icons/envelope-simple.svg'); } .ico-clock { --i: url('../images/icons/clock.svg'); }
.ico-paper-plane-tilt { --i: url('../images/icons/paper-plane-tilt.svg'); } .ico-list { --i: url('../images/icons/list.svg'); }
.ico-quotes { --i: url('../images/icons/quotes.svg'); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 26px; border: 2px solid transparent; border-radius: 999px; font: 800 16px/1 var(--font-head); white-space: nowrap; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn-dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; transition: transform .25s; }
.btn--light { background: var(--white); color: var(--brand-deep); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); } .btn--light .btn-dot { background: var(--brand); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; } .btn--outline .btn-dot { background: var(--brand); color: #fff; }
.btn--solid { background: var(--primary); color: var(--ink); border-color: rgba(50, 111, 151, .22); } .btn--solid .btn-dot { background: var(--sun); color: var(--brand-deep); }
.btn:hover { transform: translateY(-2px); } .btn:hover .btn-dot { transform: translateX(3px); }
.btn--outline:hover { background: var(--primary); color: var(--ink); } .btn--outline:hover .btn-dot { background: var(--sun); color: var(--brand-deep); }
.btn:active { transform: translateY(0) scale(.98); }

/* Topbar + header */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; }
.topbar-item { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 600; } .topbar-item .ico { color: var(--brand); font-size: 16px; } .topbar-item a { color: inherit; } .topbar-item a:hover { color: var(--brand); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-login { padding: 6px 18px; border-radius: 999px; background: var(--brand); color: #fff; font: 800 13px/1.2 var(--font-head); letter-spacing: .03em; transition: background .25s, transform .25s; } .topbar-login:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--brand-deep); font-size: 16px; }
.socials a:hover { background: var(--sun); color: var(--brand-deep); }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--primary); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .6); }
.navbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { position: relative; z-index: 2; display: block; margin-top: 4px; margin-bottom: -34px; }
.brand-badge { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--sun); border: 5px solid var(--white); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); overflow: hidden; }
.brand-badge img { width: 78%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.nav li { list-style: none; }
.nav a { position: relative; padding: 6px 0; color: var(--ink); font: 700 14px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
.nav a:hover, .nav a.active, .nav a[aria-current] { color: var(--brand); }
.nav a:hover::after, .nav a.active::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 30px; place-items: center; }

/* Sections */
.section { padding: clamp(20px, 2.6vw, 36px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(20px, 2.6vw, 32px); }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.section-head::before { content: ''; display: block; width: 70px; height: 35px; margin: 0 auto 8px; background: url("../images/deco-arc.svg") center / contain no-repeat; }
.section-title { font-weight: 800; font-size: clamp(32px, 4vw, 52px); text-transform: uppercase; color: var(--brand); letter-spacing: .01em; }
.script-line { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--font-script); color: var(--sun); margin: 0 0 6px; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: clamp(520px, calc(100dvh - 110px), 720px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: 0; transition: opacity 1s ease; }
.hero-slides img.is-active { opacity: 1; }
.hero-in { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-block: 70px 44px; }
.hero-copy { width: min(520px, 46%); margin-right: 2vw; text-align: center; text-shadow: 0 2px 4px rgba(15, 45, 70, .4), 0 4px 26px rgba(15, 45, 70, .5); }
.hero h1 { font-weight: 800; font-size: clamp(28px, 3.4vw, 48px); text-transform: uppercase; line-height: 1; }
.hero h1 span { display: block; color: var(--sun); }
.hero-sub { font: 700 clamp(14px, 1.2vw, 17px)/1.4 var(--font-head); margin: 8px auto 0; max-width: 30ch; }
.hero-dots { position: absolute; left: 0; bottom: 26px; display: flex; align-items: flex-end; gap: 16px; }
.hero-dots .dot { position: relative; display: block; width: 123px; height: 123px; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.hero-dots .dot:nth-child(2) { width: 145px; height: 145px; margin-bottom: 26px; }
.hero-dots .dot:hover { transform: scale(1.06); }
.hero-dots .dot::after { content: ''; position: absolute; inset: -11px; border: 2px dashed var(--sun); border-radius: 50%; opacity: .85; pointer-events: none; }
.hero-dots img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--sun); box-shadow: var(--shadow), 0 0 0 9px rgba(255, 255, 255, .18); background: var(--sky); }

/* Stats */
.stats { position: relative; z-index: 1; }
.stats-panel { margin-left: max(24px, calc((100vw - var(--wrap)) / 2 - 40px)); background: var(--primary); color: var(--ink); border-bottom-left-radius: 200px; padding: 64px 0; }
.stats-panel, .enroll-panel { --grid-line: rgba(50, 111, 151, .1); }
.stats-panel { position: relative; overflow: hidden; isolation: isolate; }
.stats-panel::before, .enroll-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask: linear-gradient(90deg, #000, transparent 70%); mask: linear-gradient(90deg, #000, transparent 70%); }
.stats-in { position: relative; z-index: 1; }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr); width: min(var(--wrap), calc(100% - 96px)); margin-inline: auto; }
.stat { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 20px; }
.stat + .stat { border-left: 1px solid rgba(31, 59, 77, .18); }
.stat img { width: 56px; height: 56px; }
.stat p { margin: 0; line-height: 1.1; }
.stat b { display: block; font: 800 clamp(44px, 5vw, 64px)/1 var(--font-head); }
.stat span { display: block; margin-top: 6px; color: var(--brand-deep); font-weight: 700; }

/* Intro + collage */
.intro { overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.intro-text p { color: var(--muted); }
.intro-text .section-title { margin-bottom: 22px; }
.checklist { margin: 26px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.checklist .ico { width: 30px; height: 30px; padding: 7px; border: 2px solid var(--brand); border-radius: 50%; color: var(--brand); }
.checklist--light li { color: var(--ink); } .checklist--light .ico { border-color: var(--brand); color: var(--brand); }
.enroll .script-line, .site-footer .script-line { color: var(--brand); }
.collage { position: relative; aspect-ratio: 1 / .92; }
.blob { position: absolute; object-fit: cover; border: 7px solid var(--sun); background: var(--sky); box-shadow: var(--shadow); }
.collage .b1 { left: 0; top: 4%; width: 44%; height: 40%; border-radius: 58% 42% 54% 46% / 52% 56% 44% 48%; }
.collage .b2 { right: 0; top: 0; width: 42%; height: 38%; border-radius: 46% 54% 44% 56% / 58% 46% 54% 42%; }
.collage .b3 { left: 14%; top: 24%; width: 66%; height: 50%; border-radius: 40% 60% 52% 48% / 56% 44% 56% 44%; z-index: 2; }
.collage .b4 { right: 2%; bottom: 0; width: 44%; height: 38%; border-radius: 54% 46% 60% 40% / 44% 58% 42% 56%; z-index: 3; }

/* Programs slider */
.slider { position: relative; }
.slide { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.js .slides { display: grid; }
.js .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.js .slide.is-active { opacity: 1; visibility: visible; }
.slide-text { position: relative; padding: 24px 0; }
.slide-num { position: absolute; z-index: 0; left: -8px; top: -48px; font: 800 clamp(150px, 20vw, 260px)/1 var(--font-head); color: var(--brand); opacity: .12; pointer-events: none; }
.slide-text > *:not(.slide-num) { position: relative; z-index: 1; }
.slide h3 { font-size: clamp(26px, 3vw, 38px); color: var(--brand-deep); margin-bottom: 14px; }
.slide-text p { color: var(--muted); max-width: 42ch; margin-bottom: 26px; }
.slide-photos { position: relative; aspect-ratio: 16 / 11; }
.slide-photos img { position: absolute; object-fit: cover; border: 6px solid var(--white); border-radius: 32px; box-shadow: var(--shadow); background: var(--sky); }
.slide-photos img:nth-child(1) { top: 0; left: 14%; width: 74%; height: 76%; }
.slide-photos img:nth-child(2) { bottom: 0; left: 0; width: 46%; height: 52%; transform: rotate(-4deg); }
.slide-photos img:nth-child(3) { right: 0; bottom: 4%; width: 40%; height: 46%; transform: rotate(3deg); }
.slider-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 30px; }
.slider-nav button { min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 800 16px var(--font-head); }
.slider-nav button[aria-current] { background: var(--primary); color: var(--ink); }
.slider-nav button:hover:not([aria-current]) { color: var(--brand); background: var(--sky); }

/* Teachers carousel */
.carousel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.carousel-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px 8px 8px; }
.carousel-track::-webkit-scrollbar { display: none; }
.round-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--brand); border-radius: 50%; background: var(--white); color: var(--brand); font-size: 20px; transition: background .2s, color .2s; }
.round-btn:hover { background: var(--primary); color: var(--ink); }
.teacher { flex: 0 0 calc((100% - 84px) / 4); scroll-snap-align: start; text-align: center; }
.teacher-photo { position: relative; display: block; width: min(220px, 100%); aspect-ratio: 1; margin: 0 auto 20px; }
.teacher-photo::after { content: ''; position: absolute; inset: -9px; border: 2px dashed var(--brand); border-radius: 50%; opacity: .45; transition: transform .6s, opacity .3s; }
.teacher:hover .teacher-photo::after { transform: rotate(40deg); opacity: 1; }
.teacher-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--white); box-shadow: var(--shadow); }
.teacher h3 { font-size: 20px; color: var(--brand-deep); }
.teacher p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); margin-top: 28px; }
.leaders figure { margin: 0; overflow: hidden; border-radius: var(--r-panel); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.leaders img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .leaders { grid-template-columns: 1fr; } }
.leaders + .team-title { margin-top: clamp(36px, 5vw, 60px); }
.groups-lead { margin: 0 0 20px; text-align: center; color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; list-style: none; }
.groups li { display: grid; justify-items: center; gap: 2px; padding: 22px 12px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); text-align: center; }
.groups b { color: var(--brand); font: 800 40px / 1.1 var(--font-head); }
.groups span { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.groups h4 { margin: 8px 0 0; color: var(--brand-deep); font-size: 18px; }
@media (max-width: 900px) { .groups { grid-template-columns: repeat(2, 1fr); } }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.team-photos figure { margin: 0; overflow: hidden; border-radius: var(--r-panel); box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.team-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.team-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merge { display: grid; justify-items: center; max-width: 1040px; margin: 0 auto; }
.merge-from { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin: 0; padding: 0; list-style: none; }
.merge-from li { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); text-align: center; }
.merge-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.merge-from h3 { margin: 0; color: var(--brand-deep); font-size: 20px; }
.merge-from small { color: var(--brand); font-weight: 700; }
.merge-join { position: relative; display: grid; justify-items: center; margin: 0; padding: 22px 0 36px; }
.merge-join span { position: relative; z-index: 1; padding: 6px 18px; border-radius: 999px; background: var(--sun); color: var(--brand-deep); font: 800 15px var(--font-head); text-align: center; }
.merge-join::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 3px dashed var(--brand); opacity: .6; transform: translateX(-50%); }
.merge-join::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 24px; height: 24px; border: 4px solid var(--white); border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--brand); transform: translateX(-50%); }
.merge-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 3vw, 40px); width: 100%; margin-top: 12px; padding: clamp(16px, 2vw, 24px); border: 2px solid var(--line); border-radius: var(--r-panel); background: var(--white); }
.merge-card figure { margin: 0; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 960 / 550; }
.merge-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merge-quote { margin: 28px 0 0; padding: 0; border: 0; background: none; text-align: center; }
.merge-quote p { margin: 0; color: var(--brand-deep); font: 800 clamp(20px, 2.4vw, 28px) / 1.4 var(--font-head); }
.merge-card h3 { margin-bottom: 8px; font-size: clamp(22px, 2.4vw, 28px); color: var(--brand-deep); }
.merge-card p { margin: 0; color: var(--muted); }
.timeline-year { display: inline-block; margin-bottom: 8px; padding: 4px 16px; border-radius: 999px; background: var(--sun); color: var(--brand-deep); font: 800 15px var(--font-head); }
@media (max-width: 900px) {
	.merge-from { grid-template-columns: 1fr; }
	.merge-card { grid-template-columns: 1fr; }
}
.page-hero + .section::before { content: ''; position: absolute; z-index: 2; top: -56px; right: 10px; width: clamp(110px, calc((100vw - 1200px) / 2 - 10px), 190px); aspect-ratio: 453 / 289; background: url("../images/deco/kids-walk.png") center / contain no-repeat; pointer-events: none; }
.page-van-ban-cong-khai .page-hero + .section::before { background-image: url("../images/deco/kids-wave.png"); aspect-ratio: 381 / 285; }
.blog .page-hero + .section::before, .page-lien-he .page-hero + .section::before { right: auto; left: 10px; background-image: url("../images/deco/kids-wave.png"); aspect-ratio: 381 / 285; }
.page-thu-vien-anh-video .page-hero + .section::before { right: auto; left: 10px; }
@media (max-width: 1360px) { .page-hero + .section::before { display: none; } }
.team-title { margin-bottom: 8px; text-align: center; color: var(--brand-deep); font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: .04em; }
.carousel + .team-photos { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) { .team-photos { grid-template-columns: 1fr; } .team-photos figure:first-child { aspect-ratio: 3 / 2; } }
.center-action { display: flex; justify-content: center; margin-top: 44px; }

/* Enrollment */
.enroll { padding: clamp(12px, 2vw, 24px) 24px; }
.enroll-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 5fr 6fr; align-items: center; max-width: 1320px; margin-inline: auto; border-radius: var(--r-panel); background: linear-gradient(140deg, var(--primary) 25%, #a6d6f7); color: var(--ink); isolation: isolate; }
.enroll-panel::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, rgba(50, 111, 151, .2) 2px, transparent 3px) 0 0 / 22px 22px; -webkit-mask: linear-gradient(120deg, transparent 55%, #000); mask: linear-gradient(120deg, transparent 55%, #000); }
.enroll-art { position: relative; align-self: end; display: grid; justify-items: center; min-height: 420px; }
.enroll-art::before { content: ''; position: absolute; left: 50%; bottom: -26%; width: min(78%, 420px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--sun-soft); }
.enroll-art img { position: relative; align-self: end; width: min(85%, 380px); height: auto; }
.enroll-copy { padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(36px, 5vw, 64px) 0; }
.enroll h2 { font-weight: 800; font-size: clamp(30px, 3.8vw, 50px); text-transform: uppercase; }
.bubble { display: inline-block; position: relative; margin: 22px 0 22px; padding: 14px 28px; border-radius: 22px 22px 22px 4px; background: var(--sun); color: var(--brand-deep); font: 800 clamp(20px, 2.2vw, 28px)/1.2 var(--font-head); text-transform: uppercase; transform: rotate(-1.5deg); }

/* News */
.news-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 24px; }
.news-home .news-card { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 16px; }
.news-archive { display: grid; gap: 22px; }
.news-archive { grid-template-columns: repeat(2, 1fr); }
.news-card { display: grid; grid-template-columns: 38% 1fr; gap: 22px; align-items: center; padding: 16px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); transition: border-color .25s, transform .25s, box-shadow .25s; }
.news-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.news-thumb { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-thumb { background: var(--sky-soft); } .news-thumb img.is-logo { object-fit: contain; padding: 14px; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.news-filter a { padding: 9px 20px; border: 2px solid var(--brand); border-radius: 999px; color: var(--brand-deep); font-weight: 700; transition: background .25s, color .25s; }
.news-filter a:hover, .news-filter a.active { background: var(--brand); color: var(--white); }
.news-meta { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.news-meta b { color: var(--brand); }
.news-card h3 { font-size: 21px; color: var(--brand-deep); margin-bottom: 8px; }
.news-card h3 a { color: inherit; }
.news-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.empty-card { padding: 40px 32px; border: 2px dashed var(--brand); border-radius: var(--r-card); background: var(--sky-soft); text-align: center; }
.empty-card h2, .empty-card h3 { font-size: 24px; color: var(--brand-deep); margin-bottom: 8px; }
.empty-card p { color: var(--muted); }
.pagination { margin-top: 40px; } .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); font: 800 15px var(--font-head); color: var(--brand); }
.page-numbers.current, .page-numbers:hover { background: var(--primary); border-color: var(--brand); color: var(--ink); }

/* Notices (home): bảng thông báo dạng danh sách, khác lưới thẻ của Tin tức */
.notices-panel { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-panel); background: var(--sky-soft); }
.notices-copy p { margin: 14px 0 26px; color: var(--muted); max-width: 40ch; }
.notice-list { display: grid; gap: 12px; }
.notice-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 12px 20px 12px 12px; border: 2px solid transparent; border-radius: 22px; background: var(--white); color: var(--ink); transition: transform .3s var(--ease), border-color .25s, box-shadow .3s var(--ease); }
.notice-row:hover { transform: translateX(6px); border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.notice-date { display: grid; place-items: center; align-content: center; width: 66px; height: 66px; border-radius: 18px; background: var(--sun); color: var(--brand-deep); text-align: center; }
.notice-date b { font: 800 26px/1 var(--font-head); } .notice-date small { font: 700 12px/1.2 var(--font-body); }
.notice-title { font: 800 17px/1.35 var(--font-head); color: var(--brand-deep); }
.notice-row > .ico { color: var(--brand); font-size: 20px; transition: transform .25s; } .notice-row:hover > .ico { transform: translateX(3px); }
@media (max-width: 900px) { .notices-panel { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .notice-row { gap: 12px; padding-right: 14px; } .notice-date { width: 56px; height: 56px; } .notice-date b { font-size: 22px; } .notice-title { font-size: 15.5px; } }

/* Messages (quote slider) */
/* Bốn giá trị cốt lõi: lưới bất đối xứng 7/5 rồi 5/7, mỗi ô một màu có sẵn trong bảng màu của trường. */
.ico-heart { --i: url('../images/icons/heart.svg'); } .ico-shield-check { --i: url('../images/icons/shield-check.svg'); }
.ico-users-three { --i: url('../images/icons/users-three.svg'); } .ico-lightbulb { --i: url('../images/icons/lightbulb.svg'); }
.values { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin: 0 auto clamp(40px, 6vw, 72px); padding: 0; max-width: 980px; list-style: none; }
.value { grid-column: span 5; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 220px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-card); background: var(--sky-soft); color: var(--ink); transition: transform .35s var(--ease); }
.value:nth-child(4n+1), .value:nth-child(4n) { grid-column: span 7; }
.value:nth-child(1) { background: var(--brand-deep); color: #fff; } .value:nth-child(2) { background: var(--sun-soft); } .value:nth-child(3) { background: var(--mint); } .value:nth-child(4) { background: var(--sky); }
.value-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: auto; border-radius: 50%; background: var(--white); color: var(--brand-deep); font-size: 28px; }
.value:nth-child(1) .value-icon { background: var(--sun); }
.value h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; color: inherit; }
.value p { margin: 0; font-weight: 700; font-size: 18px; color: inherit; opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .value:hover { transform: translateY(-4px); } }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; gap: 14px; } .value, .value:nth-child(4n+1), .value:nth-child(4n) { grid-column: auto; min-height: 168px; } }
.voices-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 980px; margin-inline: auto; }
.voice-stage { position: relative; display: grid; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-panel); background: var(--sky-soft); }
.voice-stage > .ico-quotes { position: absolute; right: 28px; top: 20px; width: 84px; height: 84px; color: var(--sun); }
.voice { grid-area: 1 / 1; opacity: 0; visibility: hidden; margin: 0; transition: opacity .5s, visibility .5s; }
.voice.is-active, html:not(.js) .voice { opacity: 1; visibility: visible; }
html:not(.js) .voice { grid-area: auto; margin-bottom: 24px; }
.voice blockquote { margin: 0 0 24px; font: 700 clamp(20px, 2.3vw, 27px)/1.5 var(--font-head); color: var(--brand-deep); max-width: 30ch; }
.voice figcaption { display: flex; align-items: center; gap: 14px; font: 800 17px/1.25 var(--font-head); color: var(--brand); }
.voice figcaption small { font: 600 14px var(--font-body); color: var(--muted); }
.voice-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sun); border: 3px solid var(--white); }
.voice-avatar img { width: 34px; height: auto; }
.voice-dots { display: grid; gap: 14px; }
.voice-dots button { position: relative; width: 22px; height: 22px; padding: 0; border: 2px solid var(--brand); border-radius: 50%; background: transparent; }
.voice-dots button::before { content: ''; position: absolute; inset: -7px; }
.voice-dots button[aria-current] { background: var(--brand); box-shadow: 0 0 0 5px var(--sky); }

/* Contact panel (home + contact page) */
.contact-home { padding: clamp(12px, 2vw, 24px) 0 clamp(20px, 2.6vw, 36px); }
.contact-panel { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 32px; width: min(1320px, calc(100% - 24px)); margin-inline: auto; padding: clamp(36px, 5vw, 72px); border-radius: var(--r-panel); background: var(--mint); }
.contact-copy > p { color: var(--muted); max-width: 46ch; margin: 14px 0 28px; }
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
.field { display: grid; gap: 4px; } .field--wide, .form-actions { grid-column: 1 / -1; }
.field label { font: 800 15px var(--font-head); color: var(--brand-deep); }
.field abbr { color: var(--brand); text-decoration: none; }
.field input, .field textarea { width: 100%; padding: 10px 2px; border: 0; border-bottom: 2px solid #8fb5c9; border-radius: 0; background: transparent; font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 2px 0 var(--brand); }
.field textarea { resize: vertical; min-height: 84px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 0; min-height: 1.5em; font-weight: 700; } .form-note.is-ok { color: #25683a; } .form-note.is-loi { color: #a3262d; }
.contact-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.art-disc { display: grid; place-items: end center; width: min(360px, 82%); aspect-ratio: 1; border-radius: 50%; background: var(--primary); overflow: hidden; box-shadow: 0 0 0 10px var(--sun-soft); }
.art-disc img { width: 92%; height: auto; }
.badge { position: absolute; z-index: 2; padding: 12px 20px; border: 2px solid var(--brand); border-radius: 16px; background: var(--white); color: var(--brand-deep); font: 800 18px/1.1 var(--font-head); box-shadow: var(--shadow); }
.badge b { font-size: 30px; color: var(--brand); }
.badge--a { right: 0; top: 8%; transform: rotate(6deg); } .badge--b { left: 0; bottom: 14%; transform: rotate(-6deg); }

/* Marquee (the only one on the site) */
.marquee { overflow: hidden; background: var(--sun); color: var(--brand-deep); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font: 800 clamp(24px, 3vw, 34px)/1 var(--font-head); text-transform: uppercase; white-space: nowrap; }
.marquee-track span::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Footer */
.site-footer { background: var(--primary); color: var(--ink); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.5fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand { text-align: center; } .footer-brand .brand-badge { margin: 0 auto 16px; }
.brand-badge--lg { width: 132px; height: 132px; }
.footer-brand .script-line { margin: 0 auto; max-width: 14em; font-size: 28px; }
.footer-title { font: 800 17px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--brand-deep); margin-bottom: 18px; }
.site-footer a { color: var(--ink); } .site-footer a:hover { color: var(--brand); }
.site-footer ul { display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; }
.contact-list .ico { margin-top: 4px; color: var(--brand); font-size: 18px; }
.site-footer .btn--light { color: var(--brand-deep); } .site-footer .btn--light:hover { color: var(--brand-deep); }
.site-footer .socials { margin-top: 22px; } .site-footer .socials a { background: var(--white); color: var(--brand); } .site-footer .socials a:hover { background: var(--sun); color: var(--brand-deep); }
.footer-bottom { margin-top: 52px; border-top: 1px solid rgba(31, 59, 77, .16); padding: 22px 0 28px; font-size: 14.5px; }
.footer-bottom p { margin: 0; color: var(--muted); text-align: center; }
.to-top { position: fixed; right: clamp(14px, 4vw, 22px); bottom: clamp(14px, 4vw, 22px); z-index: 30; display: grid; place-items: center; width: clamp(46px, 13vw, 56px); aspect-ratio: 75 / 90; padding: 0; border: 0; background: url("../images/deco-pin-sun.svg") center / 100% 100% no-repeat; color: var(--brand-deep); font-size: clamp(19px, 5.4vw, 22px); filter: drop-shadow(0 8px 10px rgba(36, 89, 125, .25)); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; }
/* Đầu ghim là hình tròn có tâm ở khoảng 59% chiều cao: đặt mũi tên đúng tâm đó để không bị lệch ở mọi kích thước. */
.to-top .ico { position: absolute; left: 50%; top: 59%; transform: translate(-50%, -50%); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background-image: url("../images/deco-pin-brand.svg"); color: #fff; }

/* Inner pages */
.page-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 260px; overflow: hidden; color: #fff; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.page-hero-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, rgba(36, 89, 125, .92) 35%, rgba(50, 111, 151, .55)); }
.page-hero-in { padding-block: 84px 48px; }
.page-hero h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 56px); text-transform: uppercase; max-width: 22ch; overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-weight: 600; } .crumbs a { color: var(--sun-soft); } .crumbs b { font-weight: 700; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-art { position: relative; aspect-ratio: 1 / .95; }
.about-art .b3 { left: 0; top: 0; width: 82%; height: 64%; border-radius: 40% 60% 52% 48% / 56% 44% 56% 44%; }
.about-art .b4 { right: 0; bottom: 0; width: 46%; height: 42%; border-radius: 54% 46% 60% 40% / 44% 58% 42% 56%; z-index: 2; }
.about-art .b5 { left: 6%; bottom: 0; width: 42%; height: 40%; border-radius: 46% 54% 44% 56% / 58% 46% 54% 42%; z-index: 3; }
.about-copy .lead { font: 700 22px/1.4 var(--font-head); color: var(--brand-deep); }
.about-copy p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li { padding: 9px 18px; border-radius: 999px; background: var(--sun-soft); color: var(--brand-deep); font: 700 15px var(--font-head); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.info { padding: 28px 24px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.info-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; background: var(--primary); color: var(--brand-deep); font-size: 24px; }
.info h2, .info h3 { font-size: 21px; color: var(--brand-deep); margin-bottom: 10px; } .info p { margin: 0 0 8px; font-size: 15.5px; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.info-stack { display: grid; gap: 22px; }
.info-stack .info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; }
.info-stack .info-icon { margin-bottom: 0; }
.info-stack .info h2 { margin-bottom: 4px; }
.info p a { overflow-wrap: anywhere; color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.place-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.place-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.place-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.place-list b { grid-column: 1 / -1; color: var(--brand-deep); }
.place-list span { color: var(--muted); font-size: 15.5px; }
.place-list a { align-self: center; padding: 4px 14px; border: 2px solid var(--brand); border-radius: 999px; color: var(--brand-deep); font-size: 14px; font-weight: 700; white-space: nowrap; }
.place-list a:hover { background: var(--brand); color: var(--white); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.maps section:first-child, .campuses .info:first-child { grid-column: 1 / -1; }
.maps h2 { font-size: 22px; color: var(--brand-deep); } .maps p { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }
.map { width: 100%; height: 280px; border: 4px solid var(--sun); border-radius: var(--r-card); background: var(--sky-soft); }
.prose { font-size: 18px; } .prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--brand-deep); margin-top: 1.6em; } .prose h2 { font-size: 32px; } .prose h3 { font-size: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; } .prose ul { list-style: disc; padding-left: 1.4em; } .prose ol { padding-left: 1.4em; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: 18px; }
/* Ảnh trong bài: giữ tỉ lệ thật (dọc hoặc ngang), không kéo giãn quá kích thước gốc, ảnh dọc hiện đủ chiều cao. Emoji dán từ Facebook vẫn nằm trong dòng chữ. */
.prose figure { margin: 1.6em 0; }
.prose figure img, .prose p > img:only-child, .prose img[class*="wp-image-"] { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
/* Khung đọc PDF (plugin PDF.js): iframe bị height:auto ở trên nên chỉ còn 150px; ép chiều cao đủ đọc, ghi đè cả style inline của plugin. */
.prose iframe[src*="pdf"] { width: 100%; height: 90vh !important; min-height: 720px; }
/* Video/playlist (MediaElement): player gán inline width/height theo video gốc (640x360) nên tràn khung trên mobile; ép co theo khung, giữ tỉ lệ 16:9. */
.prose .wp-playlist, .prose .mejs-container, .prose .mejs-container .mejs-inner, .prose .wp-video { width: 100% !important; max-width: 100% !important; }
.prose .mejs-container { height: auto !important; aspect-ratio: 16 / 9; }
.prose .mejs-container video, .prose .mejs-container .mejs-mediaelement, .prose .mejs-container .mejs-layer { width: 100% !important; height: 100% !important; }
.prose .wp-video-playlist .wp-playlist-tracks { max-height: 220px; overflow-y: auto; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; text-align: center; }
/* Thư viện ảnh [gallery]: WordPress tự chèn <style> riêng theo id (#gallery-N: float, width 50%, viền, <br clear>) nên phải ghi đè bằng !important.
   Dùng cột kiểu masonry để ảnh dọc và ngang đều giữ đúng tỉ lệ, không bị ép cùng một khung. Số cột theo người soạn bài chọn; mobile tối đa 2 cột. */
.prose .gallery { display: block; column-count: 3; column-gap: 16px; margin: 1.6em 0; }
.prose .gallery-columns-1 { column-count: 1; } .prose .gallery-columns-2 { column-count: 2; } .prose .gallery-columns-3 { column-count: 3; }
.prose .gallery-columns-4, .prose .gallery-columns-5, .prose .gallery-columns-6 { column-count: 4; }
.prose .gallery > br { display: none; }
.prose .gallery .gallery-item { float: none !important; width: auto !important; margin: 0 0 16px !important; break-inside: avoid; }
.prose .gallery dl, .prose .gallery dt, .prose .gallery dd { margin: 0; }
.prose .gallery-icon a { display: block; }
.prose .gallery-icon img { display: block; width: 100%; max-height: none; margin: 0; border: 0 !important; }
.prose .gallery-columns-1 .gallery-icon img { width: auto; margin-inline: auto; }
.prose .gallery .gallery-caption { margin: 6px 0 0 !important; color: var(--muted); font-size: 14px; text-align: center; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; margin: 1.6em 0; }
.prose .wp-block-gallery figure { margin: 0; } .prose .wp-block-gallery img { width: 100%; max-height: none; }
@media (max-width: 720px) { .prose .gallery-columns-3, .prose .gallery-columns-4, .prose .gallery-columns-5, .prose .gallery-columns-6 { column-count: 2; } }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 5px solid var(--sun); border-radius: 0 var(--r-card) var(--r-card) 0; background: var(--sky-soft); }
.prose table { width: 100%; border-collapse: collapse; } .prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin-inline: auto; }
.back-link { margin-top: 44px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 4 / 3; color: #fff; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } .gallery-item:hover img { transform: scale(1.06); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(36, 89, 125, .92)); font: 800 18px/1.25 var(--font-head); }
.doc-list { display: grid; gap: 12px; } .doc-list li { display: flex; gap: 18px; align-items: baseline; padding: 18px 22px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.doc-list time { flex: none; color: var(--muted); font-weight: 700; font-size: 14px; } .doc-list a { font: 800 18px/1.35 var(--font-head); }
.single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.single-side { position: sticky; top: 100px; display: grid; gap: 24px; }
.side-box { padding: 22px; border: 2px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.side-title { margin-bottom: 14px; color: var(--brand-deep); font-size: 22px; }
.related { display: grid; gap: 14px; }
.related li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; }
.related-thumb { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--sky-soft); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; } .related-thumb img.is-logo { object-fit: contain; padding: 8px; }
.related-title { font: 800 16px/1.3 var(--font-head); color: var(--brand-deep); } .related-title:hover { color: var(--brand); }
.related time { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.side-contact { background: var(--sky-soft); } .side-contact .contact-list { margin-bottom: 18px; }
@media (max-width: 900px) { .single-grid { grid-template-columns: minmax(0, 1fr); } .single-side { position: static; } }

/* Motion: content is always visible; reveal is opt-in once JS has confirmed support. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.hero-copy > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; } .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
	.hero-dots .dot { animation: rise .8s .3s cubic-bezier(.16, 1, .3, 1) both, bob 5s 1.2s ease-in-out infinite; }
	.hero-dots .dot:nth-child(2) { animation-delay: .45s, 2.2s; } .hero-dots .dot:nth-child(3) { animation-delay: .6s, 3.2s; }
	.hero-dots .dot::after { animation: orbit 28s linear infinite; }
}
@keyframes bob { 50% { translate: 0 -9px; } }
@keyframes orbit { to { transform: rotate(360deg); } }
/* Site-wide motion: hover feedback, staggered reveal, page transition. Reduced-motion is handled by the global block below. */
.reveal-ready .rv:not(.in) { opacity: 0; }
.rv.in { opacity: 1; animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }
.info, .doc-list li, .stat img, .socials a, .teacher-photo img, .team-photos img, .info-icon, .site-footer li a { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s, background .25s, color .25s; }
.info:hover { transform: translateY(-4px); } .info:hover .info-icon { transform: rotate(-8deg) scale(1.08); }
.doc-list li:hover { transform: translateX(6px); border-color: var(--brand); }
.stat:hover img { transform: translateY(-4px) rotate(-5deg); }
.socials a:hover { transform: translateY(-3px); }
.teacher:hover .teacher-photo img { transform: scale(1.04); }
.team-photos figure:hover img { transform: scale(1.05); }
.site-footer li a { display: inline-block; } .site-footer li a:hover { transform: translateX(4px); }
.slide-photos img { transition: transform .5s var(--ease); }
.slide-photos:hover img:nth-child(1) { transform: scale(1.02); }
.slide-photos:hover img:nth-child(2) { transform: rotate(-7deg) translate(-8px, 6px); }
.slide-photos:hover img:nth-child(3) { transform: rotate(6deg) translate(8px, 6px); }
@keyframes pop { from { scale: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.page-hero-in > * { animation: rise .8s var(--ease) both; } .page-hero-in > :nth-child(2) { animation-delay: .1s; }
	.programs::after, .voices::before, .page-hero + .section::before { animation: bob 7s ease-in-out infinite; }
	.voices::before { animation-delay: -3s; }
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; } .marquee-track span:nth-child(n+3) { display: none; }
}

/* Tablet */
@media (max-width: 1100px) {
	.nav-toggle { display: grid; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 24px 20px; background: var(--primary); box-shadow: 0 16px 24px -18px rgba(36, 89, 125, .5); display: none; }
	.nav.open { display: flex; }
	.nav a { display: block; padding: 16px 4px; font-size: 15px; -webkit-tap-highlight-color: transparent; } .nav a::after { display: none; }
	.nav a:focus-visible { outline-offset: -3px; } .nav a:active { color: var(--brand); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.info-grid { grid-template-columns: repeat(2, 1fr); }
	.teacher { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 900px) {
	.hero { display: block; min-height: 0; background: var(--brand-deep); }
	.hero-slides { position: relative; z-index: 0; height: clamp(240px, 56vw, 360px); }
	.hero-in { display: flex; flex-direction: column; padding: 0 0 40px; }
	.hero-copy { position: relative; width: auto; margin: 0 16px; padding: 56px 10px 0; }
	.hero-dots { position: static; order: 2; justify-content: center; align-items: flex-start; gap: 4vw; margin: 26px 0 0; }
	.hero-dots .dot { width: 30vw; height: 30vw; } .hero-dots .dot:nth-child(2) { width: 35vw; height: 35vw; margin-top: 9vw; margin-bottom: 0; } .hero-dots .dot::after { inset: -7px; }
	.stats-panel { margin-left: 16px; border-bottom-left-radius: 110px; }
	.stats-in { width: calc(100% - 24px); }
	.intro-grid, .about-grid, .contact-panel, .slide { grid-template-columns: 1fr; }
	.slide-photos { order: -1; }
	.collage, .about-art { width: min(100%, 560px); margin-inline: auto; }
	.slide-num { top: -24px; }
	.enroll-panel { grid-template-columns: 1fr; }
	.enroll-art { min-height: 300px; order: 2; } .enroll-copy { padding: 40px 24px 0; }
	.voices-grid { grid-template-columns: 1fr; } .voice-dots { grid-auto-flow: column; justify-content: center; }
	.topbar-address { display: none; } .topbar-right { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
	.maps { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: repeat(2, 1fr); } .news-archive { grid-template-columns: 1fr; }
	.form { grid-template-columns: 1fr; }
	.contact-art { min-height: 300px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap, .wrap--narrow { width: min(var(--wrap), calc(100% - 32px)); }
	.topbar-in { min-height: 44px; gap: 10px; } .topbar-address { display: flex; min-width: 0; flex: 1; font-size: 13px; } .topbar-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar-right { flex: none; width: auto; } .topbar-right .topbar-item { display: none; }
	.navbar-in { min-height: 60px; } .brand-badge { width: 84px; height: 84px; border-width: 4px; } .brand { margin-bottom: -26px; }
	.stats-panel { padding: 30px 0; border-bottom-left-radius: 64px; } .stats-in { grid-template-columns: 1fr; gap: 6px; }
	.stat { justify-content: flex-start; padding: 12px 24px; } .stat + .stat { border-left: 0; border-top: 1px solid rgba(31, 59, 77, .15); } .stat img { width: 44px; height: 44px; }
	.news-card { grid-template-columns: 1fr; padding: 14px; } .news-thumb { aspect-ratio: 16 / 10; }
	.teacher { flex-basis: 78%; } .carousel { grid-template-columns: 1fr; } .carousel > .round-btn { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.info-grid, .gallery-grid { grid-template-columns: 1fr; }
	.page-hero { min-height: 220px; } .page-hero-in { padding-block: 64px 32px; }
	.badge { font-size: 15px; padding: 9px 14px; } .badge b { font-size: 22px; }
	.voice-stage { padding-top: 76px; } .voice-stage > .ico-quotes { width: 52px; height: 52px; left: 24px; right: auto; top: 18px; }
	.bubble { font-size: 19px; padding: 12px 20px; }
	.doc-list li { flex-direction: column; gap: 4px; }
	.slider-nav { justify-content: center; }
	.btn { padding-left: 20px; font-size: 15px; }
}

/* Nét vẽ tay trang trí (ảnh png trong images/deco), chỉ hiện trên màn rộng */
.intro, .teachers, .news { position: relative; }
.intro > .wrap, .teachers > .wrap, .news > .wrap { position: relative; z-index: 1; }
.intro::before, .intro::after, .teachers::before, .teachers::after, .news::before, .news::after, .site-footer::before { content: ''; position: absolute; z-index: 0; pointer-events: none; background: center / contain no-repeat; }
.intro::before { left: 0; bottom: 0; width: min(24vw, 320px); aspect-ratio: 318 / 156; background-image: url("../images/deco/doodle-book.png"); }
.intro::after { right: 0; top: 0; width: min(30vw, 420px); aspect-ratio: 807 / 455; background-image: url("../images/deco/doodle-path.png"); }
.teachers::before { left: 2vw; top: 40px; width: 92px; aspect-ratio: 184 / 191; background-image: url("../images/deco/doodle-bag.png"); }
.teachers::after { right: 2vw; top: 60px; width: 76px; aspect-ratio: 114 / 113; background-image: url("../images/deco/doodle-ruler.png"); }
.news::before { right: 0; bottom: 0; width: min(30vw, 420px); aspect-ratio: 688 / 446; background-image: url("../images/deco/doodle-plane.png"); }
.news::after { left: 2vw; top: 40px; width: 96px; aspect-ratio: 127 / 101; background-image: url("../images/deco/doodle-123.png"); }
.programs > .wrap, .voices > .wrap { position: relative; z-index: 1; }
.programs::after, .voices::before { content: ''; position: absolute; z-index: 0; top: 12px; pointer-events: none; background: center / contain no-repeat; }
.programs::after { right: 2vw; width: min(14vw, 190px); aspect-ratio: 381 / 285; background-image: url("../images/deco/kids-wave.png"); }
.voices::before { left: 2vw; width: min(15vw, 210px); aspect-ratio: 453 / 289; background-image: url("../images/deco/kids-walk.png"); }
@media (max-width: 1100px) { .programs::after, .voices::before { display: none; } }
.site-footer { position: relative; overflow: hidden; }
.site-footer > * { position: relative; z-index: 1; }
.site-footer::before { inset: auto 0 0 0; height: 70%; opacity: .5; background-size: cover; background-position: bottom; background-image: url("../images/deco/doodle-footer.png"); background-image: image-set(url("../images/deco/doodle-footer-1728.webp") 1x, url("../images/deco/doodle-footer.png") 2x); }
@media (max-width: 900px) {
	.intro::before, .intro::after, .teachers::before, .teachers::after, .news::before, .news::after { display: none; }
}

/* Dải sóng ở mép trên chân trang: màu của dải chữ chạy, lộ ra mép sóng xanh */
.site-footer::after { content: ''; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 34px; background: url("../images/deco-wave.svg") 0 0 / 160px 34px repeat-x; pointer-events: none; }

/* Sóng nhiều lớp ở nửa dưới hero (tự vẽ, chuyển động chậm) */
.hero::after { content: ''; position: absolute; z-index: 0; inset: auto 0 0 0; aspect-ratio: 1920 / 500; transform: translateY(35%); background: url("../images/deco-waves.svg?v=2") left bottom / 100% 100% no-repeat; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero::after { background-image: url("../images/deco-waves-static.svg?v=2"); } }
.hero::before { content: ''; position: absolute; z-index: 0; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, transparent, rgba(36, 89, 125, .5)); pointer-events: none; }

/* Mobile: khoảng cách giữa các section và các dòng nội dung giảm 10% */
@media (max-width: 640px) {
	p { margin-bottom: .9em; }
	.section { padding-block: 18px; } .section-head { margin-bottom: 18px; } .section-head p { margin-top: 12.6px; } .section-head::before { margin-bottom: 7px; }
	.script-line { margin-bottom: 5px; }
	.hero-in { padding-bottom: 36px; } .hero-copy { padding-top: 50px; } .hero-sub { margin-top: 7px; } .hero-dots { margin-top: 23px; }
	.stats-panel { padding-block: 27px; } .stats-in { gap: 5px; } .stat { padding-block: 11px; } .stat span { margin-top: 5px; }
	.intro-grid, .about-grid { gap: 29px; } .slide { gap: 22px; } .intro-text .section-title { margin-bottom: 20px; }
	.checklist { margin: 23px 0 29px; gap: 11px; } .checklist li { gap: 11px; }
	.slide-text { padding-block: 22px; } .slide h3 { margin-bottom: 12.6px; } .slide-text p { margin-bottom: 23px; } .slider-nav { margin-top: 27px; gap: 9px; }
	.carousel { gap: 11px; } .carousel-track { gap: 25px; padding: 14px 8px 7px; } .teacher-photo { margin-bottom: 18px; } .teacher p { margin-top: 3.6px; }
	.team-photos { gap: 11px; } .carousel + .team-photos { margin-top: 25px; } .team-title { margin-bottom: 7px; }
	.timeline-year { margin-bottom: 7px; }
	.center-action { margin-top: 40px; }
	.enroll { padding-block: 11px; } .enroll-copy { padding-top: 36px; } .bubble { margin-block: 20px; }
	.news-home { gap: 22px; } .news-home .news-card { gap: 14px; } .news-archive { gap: 20px; } .news-card { gap: 20px; } .news-meta { margin-bottom: 5px; } .news-card h3 { margin-bottom: 7px; }
	.empty-card { padding-block: 36px; } .pagination { margin-top: 36px; }
	.voices-grid { gap: 18px; } .voice-stage { padding-bottom: 29px; } .voice blockquote { margin-bottom: 22px; } .voice figcaption { gap: 13px; } .voice-dots { gap: 13px; }
	.contact-home { padding-block: 11px 18px; } .contact-panel { gap: 29px; } .contact-copy > p { margin: 13px 0 25px; }
	.form { gap: 20px 23px; } .form-actions { gap: 16px; }
	.marquee { padding-block: 20px; }
	.site-footer { padding-top: 65px; } .footer-grid { gap: 25px; } .footer-brand .brand-badge { margin-bottom: 14px; } .footer-title { margin-bottom: 16px; } .site-footer ul { gap: 9px; }
	.contact-list li { gap: 11px; } .site-footer .socials { margin-top: 20px; } .footer-bottom { margin-top: 47px; padding-block: 20px 25px; }
	.page-hero-in { padding-block: 58px 29px; } .crumbs { margin-top: 13px; }
	.chips { gap: 9px; margin-top: 20px; } .info-grid { gap: 20px; } .info { padding-block: 25px; } .info-icon { margin-bottom: 14px; } .info h2 { margin-bottom: 9px; } .info p { margin-bottom: 7px; }
	.maps { gap: 20px; margin-top: 40px; } .maps p { margin-bottom: 13px; }
	.prose > * + * { margin-top: 1em; } .back-link { margin-top: 40px; } .gallery-grid { gap: 20px; } .doc-list { gap: 11px; } .doc-list li { padding-block: 16px; }
}
@media (max-width: 640px) {
	.brand { margin-block: 0; }
	.brand .brand-badge { width: 52px; height: 52px; border: 0; background: none; box-shadow: none; overflow: visible; }
	.brand .brand-badge img { width: 100%; }
}
