/*
 * School website. Colours come from the school's theme as CSS variables (see App\Services\SchoolSite\SiteTheme):
 * --c-primary*, --c-accent*, --c-success* (buttons and ticks), --c-soft, --c-muted, plus --font-head, --font-body
 * and --radius*. Everything below only uses those, so any colour or font a school picks works.
 */

/* ---------------------------------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: #0f172a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-700); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; color: #0b1220; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-primary-strong); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-primary); color: var(--c-on-primary); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 900px; }
.muted { color: var(--c-muted); }

/* ---------------------------------------------------------------------------------------------------- buttons */
.btn {
    --btn-bg: var(--c-primary);
    --btn-fg: var(--c-on-primary);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .78em 1.35em;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700; font-size: .96rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(var(--c-primary-rgb), .6); }
.btn:active { transform: none; }
.btn-primary:hover { --btn-bg: var(--c-primary-600); }
.btn-cta { --btn-bg: var(--c-success-600); --btn-fg: var(--c-on-success); }
.btn-cta:hover { --btn-bg: var(--c-success-700); box-shadow: 0 10px 22px -12px rgba(var(--c-success-rgb), .7); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--c-primary-ink); border-color: var(--c-primary-200); }
.btn-outline:hover { --btn-bg: var(--c-primary-50); --btn-fg: var(--c-primary-700); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--c-primary-700); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--c-primary-700); }
.btn-white:hover { --btn-bg: var(--c-primary-50); --btn-fg: var(--c-primary-700); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; }
.btn-lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn-sm { padding: .5em .95em; font-size: .86rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--c-primary-ink); text-decoration: none; white-space: nowrap; }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------------------------------------------- chips */
.chip { display: inline-flex; align-items: center; gap: .3em; padding: .2em .65em; border-radius: 999px; background: var(--c-primary-50); color: var(--c-primary-ink); font-size: .78rem; font-weight: 700; line-height: 1.5; }
.chip-new { background: var(--c-accent-50); color: var(--c-accent-ink); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    color: var(--c-primary-ink); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--c-accent); }
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: var(--c-accent); }
.eyebrow .icon { display: none; }

/* ---------------------------------------------------------------------------------------------------- topbar & ticker */
.topbar { background: var(--c-band-a); color: rgba(255, 255, 255, .88); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar ul { list-style: none; display: flex; align-items: center; gap: 22px; }
.topbar li { display: inline-flex; align-items: center; gap: .45em; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { width: 1em; height: 1em; opacity: .85; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: block; min-width: 160px; padding: 6px; background: #fff; border-radius: var(--radius-sm); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .35); }
.lang-menu ul li { display: block; }
.lang-menu ul a { display: block; padding: 8px 12px; color: #0f172a; border-radius: 6px; }
.lang-menu ul a:hover, .lang-menu ul a.is-current { background: var(--c-primary-50); color: var(--c-primary-ink); text-decoration: none; }

.ticker { background: var(--c-accent-50); border-bottom: 1px solid rgba(var(--c-accent-rgb), .18); font-size: .9rem; }
.ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em; border-radius: 999px; background: var(--c-accent-600); color: var(--c-on-accent); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.ticker-label:hover { color: var(--c-on-accent); }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-list { display: flex; gap: 48px; list-style: none; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track:hover .ticker-list, .ticker-track:focus-within .ticker-list { animation-play-state: paused; }
.ticker-list a { color: #1e293b; text-decoration: none; font-weight: 600; white-space: nowrap; }
.ticker-list a:hover { color: var(--c-primary-ink); text-decoration: underline; }
.ticker-date { color: var(--c-accent-ink); font-weight: 800; margin-right: .55em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #edf1f7; transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo { height: 52px; width: auto; max-width: 260px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--c-primary), var(--c-primary-700)); color: var(--c-on-primary); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; line-height: 1.2; color: #0b1220; }
.brand-tagline { font-size: .76rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3em; padding: 10px 13px; border: 0; background: none; border-radius: 8px; color: #1e293b; font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--c-primary-ink); background: var(--c-primary-50); }
.icon-caret { width: .95em; height: .95em; transition: transform .15s ease; }
.dropdown { position: absolute; left: 0; top: calc(100% + 6px); min-width: 220px; padding: 8px; list-style: none; background: #fff; border: 1px solid #edf1f7; border-radius: var(--radius-sm); box-shadow: 0 22px 44px -20px rgba(15, 23, 42, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.has-children:hover > .dropdown, .has-children.is-open > .dropdown, .has-children:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-children.is-open .icon-caret, .has-children:hover .icon-caret { transform: rotate(180deg); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: #1e293b; font-weight: 600; font-size: .92rem; text-decoration: none; }
.dropdown a:hover, .dropdown a[aria-current] { background: var(--c-primary-50); color: var(--c-primary-ink); }
.nav-cta { white-space: nowrap; }
.nav-logins { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.header-brand .site-header { background: var(--c-primary); border-color: transparent; }
.header-brand .brand-name { color: var(--c-on-primary); }
.header-brand .brand-tagline { color: rgba(255, 255, 255, .78); }
.header-brand .brand-mark { background: #fff; color: var(--c-primary-ink); }
.header-brand .nav-link { color: var(--c-on-primary); }
.header-brand .nav-link:hover, .header-brand .nav-item.is-active > .nav-link { background: rgba(255, 255, 255, .14); color: var(--c-on-primary); }
.header-brand .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .4); color: var(--c-on-primary); }
.header-brand .brand-logo { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15)); }

/* ---------------------------------------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; min-height: clamp(520px, 74vh, 700px); padding-block: 72px 112px; }
.hero-slides .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 680px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-size: .84rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); }
.hero-eyebrow .icon { color: var(--c-accent); }
.hero-title { margin-top: 22px; color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hero-text { margin-top: 20px; max-width: 580px; color: rgba(255, 255, 255, .9); font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-plain { background: radial-gradient(1100px 520px at 85% 15%, rgba(var(--c-accent-rgb), .28), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(var(--c-success-rgb), .22), transparent 60%), linear-gradient(135deg, var(--c-band-a), var(--c-primary) 55%, var(--c-primary-600)); }
.hero-plain::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000); }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-badge { position: absolute; inset: 12%; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 14px rgba(255, 255, 255, .12), 0 0 0 30px rgba(255, 255, 255, .06); }
.hero-badge img { width: 70%; height: 70%; object-fit: contain; }
.hero-badge span { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 8vw, 5.5rem); color: var(--c-primary); }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: .5em; padding: .65em 1em; border-radius: 999px; background: #fff; color: #0f172a; font-weight: 700; font-size: .9rem; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .5); animation: float 6s ease-in-out infinite; }
.hero-chip .icon { color: var(--c-primary); }
.chip-1 { top: 6%; left: 0; }
.chip-2 { top: 42%; right: -4%; animation-delay: -2s; }
.chip-2 .icon { color: var(--c-accent-600); }
.chip-3 { bottom: 6%; left: 10%; animation-delay: -4s; }
.chip-3 .icon { color: var(--c-success-600); }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero-slides { background: #0b1220; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease; }
.hero-slide.is-active img { transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 14, 30, .86) 0%, rgba(8, 14, 30, .6) 45%, rgba(8, 14, 30, .15) 100%), linear-gradient(0deg, rgba(8, 14, 30, .55), transparent 40%); pointer-events: none; }
.hero-controls { position: absolute; right: max(24px, calc((100vw - 1220px) / 2 + 24px)); bottom: 120px; z-index: 2; display: flex; align-items: center; gap: 14px; }
.hero-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: #fff; color: var(--c-primary-700); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.hero-dots button.is-active { width: 28px; background: var(--c-accent); }

/* board, affiliation no., established: a credentials strip under the buttons */
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts .icon { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(255, 255, 255, .14); color: var(--c-accent); }
.hero-facts span { color: #fff; font-weight: 750; font-size: 1rem; line-height: 1.25; }
.hero-facts small { display: block; margin-bottom: 2px; color: rgba(255, 255, 255, .72); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------------------------------------------- sections */
.section { padding-block: 92px; }
.section-soft { background: var(--c-soft); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head.is-center { align-items: center; text-align: center; margin-inline: auto; max-width: 760px; }
.section-head.has-link:not(.is-center) { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head.is-center.has-link .link-arrow { margin-top: 4px; }
.section-head-copy { display: flex; flex-direction: column; gap: 12px; }
.section-head.is-center .section-head-copy { align-items: center; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 800; text-wrap: balance; }
.section-text { color: var(--c-muted); font-size: 1.06rem; max-width: 640px; }
.card-title { font-size: 1.12rem; font-weight: 750; line-height: 1.3; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--c-primary-ink); }
.card-text { color: var(--c-muted); font-size: .95rem; }
.panel { background: #fff; border: 1px solid #e8edf5; border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 36px -30px rgba(15, 23, 42, .5); }
.panel + .panel { margin-top: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title { display: flex; align-items: center; gap: .55em; font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.panel-title .icon { color: var(--c-primary-ink); }
.panel-head .panel-title { margin: 0; }
.panel-brand { background: linear-gradient(140deg, var(--c-primary-700), var(--c-primary)); color: rgba(255, 255, 255, .92); border: 0; }
.panel-brand .panel-title { color: #fff; }
.panel-brand p { margin: 8px 0 18px; }
.panel-brand a:not(.btn) { color: #fff; }
.list-heading { font-size: 1.35rem; font-weight: 800; margin: 8px 0 22px; }
.list-heading:not(:first-child) { margin-top: 56px; }

/* stats */
.stats-band { position: relative; z-index: 4; padding-block: 0; }
.hero + .stats-band { margin-top: -54px; }
.stats-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); list-style: none; background: #fff; border-radius: var(--radius); box-shadow: 0 26px 60px -34px rgba(15, 23, 42, .45); border: 1px solid #eef2f7; overflow: hidden; }
.stat { display: flex; align-items: center; gap: 16px; padding: 26px 26px; border-right: 1px solid #eef2f7; }
.stat:last-child { border-right: 0; }
.stat-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--c-accent-50); color: var(--c-accent-ink); }
.stat-icon .icon { width: 26px; height: 26px; }
.stat:nth-child(3n+2) .stat-icon { background: var(--c-primary-50); color: var(--c-primary-ink); }
.stat:nth-child(3n) .stat-icon { background: var(--c-success-50); color: var(--c-success-ink); }
.stat-copy { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-head); font-size: 1.85rem; font-weight: 800; line-height: 1.1; color: #0b1220; }
.stat-label { color: var(--c-muted); font-size: .9rem; font-weight: 600; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -36px rgba(15, 23, 42, .55); }
.about-media::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; z-index: -1; border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, rgba(var(--c-primary-rgb), .1) 0 2px, transparent 2px 12px); }
.about-collage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 5 / 4; }
.about-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-collage img:first-child { grid-row: span 2; }
.about-emblem { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); background: radial-gradient(circle at 30% 20%, var(--c-primary-200), transparent 55%), linear-gradient(140deg, var(--c-primary-50), var(--c-soft)); }
.about-emblem-mark { font-family: var(--font-head); font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--c-primary); }
.about-emblem-icon { position: absolute; right: 12%; bottom: 14%; width: 64px; height: 64px; color: var(--c-accent); }
.about-badge { position: absolute; left: -18px; bottom: 28px; display: flex; flex-direction: column; padding: 18px 22px; border-radius: var(--radius); background: var(--c-accent-600); color: var(--c-on-accent); box-shadow: 0 20px 40px -20px rgba(var(--c-accent-rgb), .9); }
.about-badge strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.about-badge span { font-size: .85rem; font-weight: 700; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.about-text { display: flex; flex-direction: column; gap: 12px; color: #334155; font-size: 1.04rem; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; list-style: none; margin-block: 6px 10px; width: 100%; }
.check-list.compact { grid-template-columns: 1fr; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: #1e293b; }
.check-list .icon { width: 22px; height: 22px; color: var(--c-success-ink); margin-top: 1px; }

/* leaders */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.leader-grid.is-single { max-width: 860px; margin-inline: auto; grid-template-columns: 1fr; }
.leader-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; box-shadow: 0 18px 40px -32px rgba(15, 23, 42, .5); }
.leader-person { display: flex; align-items: center; gap: 16px; }
.leader-photo { width: 76px; height: 76px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--c-primary-50); }
.leader-name { font-size: 1.12rem; font-weight: 800; }
.leader-role { color: var(--c-accent-ink); font-weight: 700; font-size: .9rem; }
.leader-quote { position: absolute; top: 24px; right: 26px; width: 40px; height: 40px; color: var(--c-primary-100); }
.leader-message { color: #334155; }
.leader-message.prose p + p { margin-top: 12px; }
.avatar { display: grid; place-items: center; background: linear-gradient(140deg, var(--c-primary), var(--c-primary-700)); color: var(--c-on-primary); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }

/* programs */
/* cards in centred rows, with the column count chosen in Blade (--cols-lg) so no card sits alone */
.fit-grid { --cols: var(--cols-lg, 4); --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.fit-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.program-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e8edf5; border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(15, 23, 42, .55); }
.program-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.program-photo-icon { display: grid; place-items: center; background: radial-gradient(rgba(var(--c-primary-rgb), .10) 1px, transparent 1px) 0 0 / 18px 18px, var(--c-primary-50); color: var(--c-primary-ink); }
.program-photo-icon .icon { width: 64px; height: 64px; stroke-width: 1.5; }
.program-card:nth-child(4n+2) .program-photo-icon { background-color: var(--c-accent-50); color: var(--c-accent-ink); }
.program-card:nth-child(4n+3) .program-photo-icon { background-color: var(--c-success-50); color: var(--c-success-ink); }
.program-icon { display: grid; place-items: center; margin: 26px 26px 0; width: 60px; height: 60px; border-radius: 16px; background: var(--c-primary-50); color: var(--c-primary-ink); }
.program-icon .icon { width: 30px; height: 30px; }
.program-card:nth-child(4n+2) .program-icon { background: var(--c-accent-50); color: var(--c-accent-ink); }
.program-card:nth-child(4n+3) .program-icon { background: var(--c-success-50); color: var(--c-success-ink); }
.program-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px 26px; }
.program-classes { display: inline-flex; align-items: center; gap: .45em; margin-top: auto; color: var(--c-primary-ink); font-size: .86rem; font-weight: 700; }

/* facilities */
.facility-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.program-grid.fit-grid, .facility-grid.fit-grid { display: flex; }
.facility-card { overflow: hidden; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; transition: transform .2s ease, box-shadow .2s ease; }
.facility-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(15, 23, 42, .55); }
.facility-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facility-photo-blank { display: block; background: radial-gradient(rgba(var(--c-primary-rgb), .10) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(135deg, var(--c-primary-50), var(--c-soft)); }
.facility-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.facility-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-50); color: var(--c-primary-ink); }
.facility-icon .icon { width: 26px; height: 26px; }
.facility-card.has-photo .facility-icon { margin-top: -50px; background: #fff; box-shadow: 0 12px 24px -12px rgba(15, 23, 42, .45); }

/* notices & events */
.updates-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.updates-grid.is-single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.notice-list, .event-list { list-style: none; }
.notice-row, .event-row { display: flex; gap: 16px; padding-block: 16px; border-top: 1px solid #eef2f7; }
.notice-row:first-child, .event-row:first-child { border-top: 0; padding-top: 6px; }
.date-box { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 62px; flex: none; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary-ink); line-height: 1; }
.date-box strong { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; }
.date-box span { margin-top: 4px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.date-box-accent { background: var(--c-accent-50); color: var(--c-accent-ink); }
.notice-body, .event-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notice-title, .event-title { color: #0f172a; font-weight: 700; text-decoration: none; line-height: 1.4; }
.notice-title:hover, .event-title:hover { color: var(--c-primary-ink); text-decoration: underline; }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notice-file { display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; font-weight: 800; color: var(--c-accent-ink); text-decoration: none; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; color: var(--c-muted); font-size: .86rem; }
.event-meta li { display: inline-flex; align-items: center; gap: .4em; }
.event-meta .icon { width: 1em; height: 1em; color: var(--c-primary-ink); }

/* achievements */
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.achievement-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 22px 24px; text-align: center; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; transition: transform .2s ease, box-shadow .2s ease; }
.achievement-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(15, 23, 42, .55); }
.achievement-card.is-hidden { display: none; }
.achievement-photo-wrap { position: relative; margin-bottom: 14px; }
.achievement-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--c-accent); }
.score-badge { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); padding: .25em .8em; border-radius: 999px; background: var(--c-accent-600); color: var(--c-on-accent); font-weight: 800; font-size: .86rem; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(var(--c-accent-rgb), .9); }
.achievement-class { color: var(--c-muted); font-size: .9rem; font-weight: 600; }
.achievement-card .card-text { margin-top: 4px; }
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filter-tabs button { padding: .55em 1.2em; border: 1px solid #dfe6f0; border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; }
.filter-tabs button:hover { border-color: var(--c-primary-300); color: var(--c-primary-ink); }
.filter-tabs button.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

/* gallery */
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.album-grid.is-page { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 230px; }
.album-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-primary-100); text-decoration: none; }
.album-card.is-big { grid-column: span 2; grid-row: span 2; }
/* fewer than five albums: stretch cards so the grid has no empty cells */
.album-grid.count-1 .album-card { grid-column: 1 / -1; grid-row: span 2; }
.album-grid.count-2 .album-card { grid-column: span 2; grid-row: span 2; }
.album-grid.count-3 .album-card:not(.is-big), .album-grid.count-4 .album-card:last-child { grid-column: span 2; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover img { transform: scale(1.06); }
.album-overlay { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 4px; padding: 44px 18px 16px; background: linear-gradient(0deg, rgba(8, 14, 30, .85), transparent); color: #fff; }
.album-title { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.album-card.is-big .album-title { font-size: 1.4rem; }
.album-count { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; color: rgba(255, 255, 255, .85); }
.album-count .icon:not(:first-child) { margin-left: .6em; }
.photo-grid { columns: 4 240px; column-gap: 14px; }
.photo-item { display: block; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.photo-item img { width: 100%; transition: transform .4s ease; }
.photo-item:hover img { transform: scale(1.04); }

/* faculty */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.teacher-grid.is-scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.teacher-grid.is-scroller .teacher-card { flex: 0 0 220px; scroll-snap-align: start; }
.teacher-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; text-align: center; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; }
.teacher-photo { width: 120px; height: 120px; margin-bottom: 10px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--c-primary-50); }
.teacher-meta { color: var(--c-muted); font-size: .88rem; }

/* testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; box-shadow: 0 18px 40px -32px rgba(15, 23, 42, .5); }
.stars { display: flex; gap: 3px; color: #cbd5e1; }
.stars .icon { width: 18px; height: 18px; }
.stars .icon.is-on { color: var(--c-accent); fill: currentColor; }
.testimonial-card blockquote { margin: 0; color: #334155; font-size: 1.02rem; line-height: 1.7; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-person strong { display: block; font-weight: 800; }
.testimonial-person small { display: block; color: var(--c-muted); font-size: .84rem; }
.avatar-sm { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; font-size: 1rem; }

/* admission band */
.admission-band-wrap { padding-block: 40px 92px; }
.section + .admission-band-wrap, .section-soft + .admission-band-wrap { padding-top: 92px; }
.admission-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; overflow: hidden; padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-lg); color: rgba(255, 255, 255, .92); background: radial-gradient(700px 360px at 100% 0%, rgba(var(--c-accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--c-band-a), var(--c-primary)); }
.admission-band.has-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.admission-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); pointer-events: none; }
.admission-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.admission-title { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; text-wrap: balance; }
.admission-text { max-width: 600px; font-size: 1.06rem; }
.admission-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.admission-photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }

/* news & events cards */
.news-grid, .event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.news-card, .event-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover, .event-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(15, 23, 42, .55); }
.news-media, .event-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-primary-50); }
.news-media img, .event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-media img, .event-card:hover .event-media img { transform: scale(1.05); }
.news-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-primary-300); }
.news-placeholder .icon { width: 54px; height: 54px; }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.news-date { display: inline-flex; align-items: center; gap: .4em; color: var(--c-accent-ink); font-size: .82rem; font-weight: 800; }
.date-box-float { position: absolute; left: 16px; top: 16px; background: #fff; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .5); }
.event-cards.is-past .event-card { opacity: .92; }

/* faq */
.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e3e9f2; border-radius: var(--radius-sm); transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item[open] { border-color: var(--c-primary-200); box-shadow: 0 16px 34px -28px rgba(var(--c-primary-rgb), .9); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; font-weight: 750; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-ink); transition: transform .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--c-primary); color: var(--c-on-primary); }
.faq-answer { padding: 0 22px 20px; color: #475569; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-grid.is-form-only { grid-template-columns: minmax(0, 640px); justify-content: center; }
.contact-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { display: flex; gap: 14px; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; }
.info-card h3 { font-size: .98rem; font-weight: 800; margin-bottom: 4px; }
.info-card p { color: #475569; font-size: .94rem; overflow-wrap: anywhere; }
.info-card a { color: inherit; text-decoration: none; }
.info-card a:hover { color: var(--c-primary-ink); text-decoration: underline; }
.info-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary-ink); }
.map-frame { grid-column: 1 / -1; overflow: hidden; border-radius: var(--radius); border: 1px solid #e8edf5; aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: .9rem; color: #1e293b; }
.field input, .field select, .field textarea, .phone-input select, .phone-input input {
    width: 100%; padding: .78em .95em;
    border: 1px solid #d6dee9; border-radius: var(--radius-sm);
    background: #fff; color: #0f172a;
    font: inherit; font-weight: 500; font-size: .96rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus, .phone-input select:focus, .phone-input input:focus { outline: none; border-color: var(--c-primary-400); box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .14); }
.field input[type="file"] { padding: .55em; background: var(--c-soft); }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 6px; font-weight: 500; }
.radio-row label { display: inline-flex; align-items: center; gap: .45em; cursor: pointer; }
.radio-row input { accent-color: var(--c-primary); width: 18px; height: 18px; }
.phone-input { display: flex; }
.phone-input select { width: 112px; flex: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.phone-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form-panel { border: 1px solid #e8edf5; margin: 0 0 24px; }
.form-panel legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; }
.form-panel legend + * { clear: both; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-weight: 700; font-size: .92rem; }
.form-status.is-ok { color: var(--c-success-ink); }
.form-status.is-error { color: #b42318; }
.g-recaptcha { margin-block: 6px; }

/* ---------------------------------------------------------------------------------------------------- inner pages */
.page-hero { position: relative; overflow: hidden; padding-block: 56px 52px; background: radial-gradient(800px 300px at 90% -20%, rgba(var(--c-accent-rgb), .16), transparent 60%), linear-gradient(180deg, var(--c-primary-50), var(--c-soft)); border-bottom: 1px solid #e8edf5; }
.page-hero::after { content: ""; position: absolute; right: 6%; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); border-radius: 50%; border: 28px solid rgba(var(--c-primary-rgb), .06); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; font-size: .86rem; color: var(--c-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #94a3b8; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; display: inline-flex; }
.breadcrumb a:hover { color: var(--c-primary-ink); }
.breadcrumb [aria-current] { color: #0f172a; font-weight: 600; }
.page-title { margin-top: 14px; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; text-wrap: balance; }
.page-lead { margin-top: 12px; max-width: 720px; color: #475569; font-size: 1.08rem; }

.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.vm-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: #fff; border-radius: var(--radius); border: 1px solid #e8edf5; }
.vm-card p { color: #475569; }
.vm-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c-primary); color: var(--c-on-primary); }
.vm-card:nth-child(2) .vm-icon { background: var(--c-accent-600); color: var(--c-on-accent); }
.vm-card:nth-child(3) .vm-icon { background: var(--c-success-600); color: var(--c-on-success); }

.admission-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.admission-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.admission-aside .panel + .panel { margin-top: 0; }
.aside-phone { display: flex; align-items: center; gap: .45em; margin: 16px 0 0 !important; font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 16px; list-style: none; margin-bottom: 28px; counter-reset: step; }
.step { display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid #e8edf5; border-radius: var(--radius); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.step .card-title { margin-bottom: 4px; }

.doc-list { list-style: none; }
.doc-row { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid #eef2f7; }
.doc-row:first-child { border-top: 0; padding-top: 4px; }
.doc-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--c-primary-50); color: var(--c-primary-ink); }
.doc-icon.is-pdf { background: #fef0ef; color: #c0362c; }
.doc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.doc-title { font-weight: 700; color: #0f172a; overflow-wrap: anywhere; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--c-muted); font-size: .82rem; }
.doc-list.compact .doc-row { gap: 10px; }
.doc-list.compact .btn { padding: .4em .7em; }
.doc-group + .doc-group { margin-top: 24px; }

.table-wrap { overflow-x: auto; }
.info-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.info-table th, .info-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.info-table th { width: 38%; color: #475569; font-weight: 650; background: var(--c-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.article-wrap:not(:has(.article-aside)) { grid-template-columns: minmax(0, 860px); justify-content: center; }
.article { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; list-style: none; color: var(--c-muted); font-size: .92rem; font-weight: 600; }
.article-meta li { display: inline-flex; align-items: center; gap: .45em; }
.article-meta .icon { color: var(--c-primary-ink); }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.article-lead { font-size: 1.15rem; color: #334155; font-weight: 500; }
.article-aside { position: sticky; top: 110px; padding: 24px; background: var(--c-soft); border-radius: var(--radius); }
.aside-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.aside-list { list-style: none; margin-bottom: 16px; }
.aside-list li + li { border-top: 1px solid rgba(var(--c-primary-rgb), .1); }
.aside-list a { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; color: #0f172a; text-decoration: none; }
.aside-list a:hover .aside-item-title { color: var(--c-primary-ink); text-decoration: underline; }
.aside-item-title { font-weight: 700; line-height: 1.4; }
.aside-item-date { color: var(--c-muted); font-size: .82rem; }
.prose { width: 100%; color: #334155; font-size: 1.04rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c-accent); color: #1e293b; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid #e2e8f0; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px; text-align: center; background: var(--c-soft); border-radius: var(--radius); color: #475569; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--c-primary-ink); }
.empty-icon .icon { width: 30px; height: 30px; }

/* lightbox & video */
.lightbox, .video-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 10, 22, .92); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1200px, 100%); }
.lightbox-figure img { max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox-figure figcaption { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.lightbox-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lightbox-close:hover { background: #fff; color: #0f172a; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lightbox-nav:hover { background: #fff; color: #0f172a; }
.lightbox-nav.is-prev { left: 18px; }
.lightbox-nav.is-next { right: 18px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.video-card { position: relative; display: block; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); background: #0b1220; aspect-ratio: 16 / 9; cursor: pointer; text-align: left; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s ease, opacity .2s ease; }
.video-card:hover img { transform: scale(1.04); opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #e11d48; }
.video-play .icon { width: 34px; height: 34px; }
.video-title { position: absolute; inset: auto 0 0; padding: 30px 16px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); color: #fff; font-weight: 700; font-size: .95rem; }
.video-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }

/* ---------------------------------------------------------------------------------------------------- footer */
.site-footer { position: relative; background: #0b1220; color: rgba(226, 232, 240, .78); font-size: .94rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-success)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 44px; }
.footer-about { display: flex; flex-direction: column; gap: 16px; }
.brand-footer .brand-logo { height: 54px; padding: 8px 12px; border-radius: 10px; background: #fff; }
.brand-footer .brand-name { color: #fff; }
.footer-text { line-height: 1.7; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .15s ease, transform .15s ease; }
.socials a:hover { background: var(--c-primary); color: var(--c-on-primary); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
.footer-title { margin-bottom: 18px; color: #fff; font-size: 1.02rem; font-weight: 800; font-family: var(--font-head); }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a, .contact-lines a { color: inherit; text-decoration: none; }
.footer-links a:hover, .contact-lines a:hover { color: #fff; text-decoration: underline; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.contact-lines li { display: flex; align-items: flex-start; gap: 10px; }
.contact-lines .icon { margin-top: 3px; color: var(--c-accent); }
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.15; }
.app-badge small { display: block; font-weight: 500; font-size: .7rem; color: rgba(255, 255, 255, .7); }
.app-badge .icon { width: 22px; height: 22px; }
.app-badge:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 20px; font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; }
.footer-legal a, .powered a { color: inherit; }
.footer-legal a:hover, .powered a:hover { color: #fff; }

.whatsapp-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 16px 34px -14px rgba(37, 211, 102, .9); transition: transform .15s ease; }
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.whatsapp-float .icon { width: 30px; height: 30px; }
.to-top { position: fixed; right: 24px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--c-primary-ink); box-shadow: 0 12px 28px -12px rgba(15, 23, 42, .45); cursor: pointer; }
body:not(:has(.whatsapp-float)) .to-top { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* reveal: elements start visible and only animate when the script marks them */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------------------------------- responsive */
@media (max-width: 1140px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(380px, 88vw);
        flex-direction: column; align-items: stretch; gap: 18px; margin: 0;
        padding: 88px 22px calc(28px + env(safe-area-inset-bottom, 0px));
        background: #fff; overflow-y: auto;
        box-shadow: -30px 0 60px -30px rgba(15, 23, 42, .45);
        transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .nav-open::before { content: ""; position: fixed; inset: 0; z-index: 75; background: rgba(15, 23, 42, .45); }
    /* the drawer lives inside the sticky header (its own stacking context), so the header must sit above the dimmed page */
    .nav-open .site-header { z-index: 90; }
    .nav-toggle { position: relative; z-index: 85; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid #eef2f7; list-style: none; }
    .nav-logins a { display: flex; align-items: center; justify-content: center; gap: .5em; padding: 11px 10px; border-radius: 10px; background: var(--c-soft); color: #1e293b; font-weight: 700; font-size: .92rem; text-decoration: none; }
    .nav-logins a:hover { background: var(--c-primary-50); color: var(--c-primary-ink); }
    .nav-link { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1rem; }
    .dropdown { position: static; min-width: 0; padding: 0 0 6px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
    .has-children.is-open > .dropdown { display: block; }
    .has-children:hover > .dropdown { display: none; }
    .has-children.is-open:hover > .dropdown { display: block; }
    .has-children:hover .icon-caret { transform: none; }
    .has-children.is-open .icon-caret { transform: rotate(180deg); }
    .header-brand .main-nav .nav-link { color: #1e293b; }
    .header-brand .nav-open .nav-toggle { color: #0f172a; background: #fff; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .section { padding-block: 70px; }
    .hero-inner { grid-template-columns: 1fr; text-align: left; min-height: 0; padding-block: 64px 132px; }
    .hero-art { display: none; }
    .hero-controls { bottom: 72px; }
    .fit-grid { --cols: 2; }
    .about-grid, .contact-grid, .updates-grid, .admission-page, .article-wrap { grid-template-columns: 1fr; gap: 40px; }
    .admission-band.has-photo { grid-template-columns: 1fr; }
    .admission-photo { display: none; }
    .admission-aside, .article-aside { position: static; }
    .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
    .stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid #eef2f7; }
    .about-badge { left: 12px; }
    /* an odd last item takes the whole row instead of leaving a hole */
    .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .container { padding-inline: 18px; }
    .section { padding-block: 56px; }
    .section-head { margin-bottom: 30px; }
    .section-head.has-link:not(.is-center) { flex-direction: column; align-items: flex-start; }
    .header-inner { min-height: 66px; gap: 12px; }
    .brand-logo { height: 42px; max-width: 200px; }
    .brand-mark { width: 42px; height: 42px; font-size: 1rem; }
    .brand-tagline { display: none; }
    .hide-sm { display: none !important; }
    .topbar-inner { justify-content: center; }
    .topbar-contact li:not(:first-child) { display: none; }
    .ticker-label span, .ticker-label { font-size: .72rem; }
    .hero-inner { padding-block: 48px 128px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-controls { left: 18px; right: auto; bottom: 70px; }
    .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; padding-top: 20px; }
    .hero-facts .icon { width: 32px; height: 32px; padding: 7px; }
    .hero-facts span { font-size: .92rem; }
    .stats-list { grid-template-columns: 1fr 1fr; }
    .stat { padding: 16px; gap: 10px; }
    .stat-icon { width: 42px; height: 42px; }
    .stat-value { font-size: 1.45rem; }
    .check-list, .contact-info, .form-row, .form-grid { grid-template-columns: 1fr; }
    /* long card lists become a swipeable row on phones instead of a very long column */
    .fit-grid { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; margin-inline: -18px; padding: 4px 18px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: thin; }
    .fit-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
    .fit-grid > :only-child { flex-basis: 100%; }
    .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .achievement-card { padding: 20px 12px 18px; gap: 6px; }
    .achievement-photo { width: 84px; height: 84px; }
    .achievement-photo-wrap { margin-bottom: 10px; }
    .achievement-card .card-title { font-size: 1rem; }
    .achievement-card .card-text { font-size: .84rem; }
    .album-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
    .album-card.is-big { grid-column: span 2; grid-row: span 1; }
    .photo-grid { columns: 2 140px; column-gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .panel { padding: 20px; }
    .leader-card, .testimonial-card { padding: 22px; }
    .lightbox-nav { width: 42px; height: 42px; }
    .lightbox-nav.is-prev { left: 8px; }
    .lightbox-nav.is-next { right: 8px; }
    .whatsapp-float { width: 52px; height: 52px; right: 14px; }
}
@media (min-width: 641px) and (max-width: 1140px) { .hide-md { display: none !important; } }
@media (max-width: 1140px) { .topbar .hide-md { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ticker-list { animation: none; }
    .reveal-ready .reveal { opacity: 1; transform: none; }
}
@media print {
    .topbar, .ticker, .site-header, .whatsapp-float, .to-top, .hero-controls, .site-footer { display: none !important; }
    .section { padding-block: 24px; }
}
