/* ==========================================================================
   NavkarSoft School Website CMS — public website design system
   Tokens are overridden from the admin theme settings.
   ========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('../fonts/Mukta-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #0a2342;
    --primary-deep: #061729;
    --accent: #c9a227;
    --accent-ink: #80600d;
    --accent-soft: #e7cf94;
    --accent-light: #f6edd2;
    --cream: #faf7f1;
    --mist: #f4f6fa;
    --white: #fff;
    --ink: #111c2d;
    --text: #3b4859;
    --muted: #5f6b7a;
    --line: #e4e9f1;
    --success: #0f7b5f;
    --danger: #b42318;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-btn: 12px;
    --shadow-sm: 0 2px 10px rgba(10, 35, 66, .05);
    --shadow: 0 22px 48px -28px rgba(10, 35, 66, .38);
    --shadow-lg: 0 36px 80px -40px rgba(10, 35, 66, .5);
    --container: 1240px;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.site.font-mukta { font-family: 'Mukta', 'Plus Jakarta Sans', sans-serif; }
body.site.font-system { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
svg.ico { width: 20px; height: 20px; flex-shrink: 0; }
::selection { background: var(--accent); color: #1a1404; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 999;
    background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 880px; }
.muted { color: var(--muted); }
.fine-print { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- topbar */

.topbar { background: var(--primary-deep); color: #c6d2e0; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; flex-wrap: wrap; }
.topbar__contacts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #dbe4ef; transition: color .18s ease; font-weight: 500; }
.topbar a:hover { color: var(--accent-soft); }
.topbar svg.ico { width: 14px; height: 14px; color: var(--accent); }
.topbar__notice { display: flex; align-items: center; gap: 9px; color: var(--accent-light); font-weight: 500; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 39, .22); flex-shrink: 0; }
.topbar__link { margin-left: 6px; color: var(--accent-soft); font-weight: 600; }
.topbar__link svg.ico { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- header */

.header {
    position: sticky; top: 0; z-index: 70;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(10, 35, 66, .6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 13px; min-width: 0; max-width: 340px; flex-shrink: 1; }
.brand__mark {
    width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(150deg, var(--primary), var(--primary-deep));
    color: var(--accent-light); font-weight: 800; font-size: 21px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.brand__text { min-width: 0; }
.brand__name { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--primary); letter-spacing: -.015em; overflow-wrap: break-word; word-break: normal; }
.brand__tagline { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); }
.footer__brand .brand__tagline { color: var(--accent-soft); }

.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 5px; padding: 9px 7px;
    font-size: 13px; font-weight: 600; color: var(--ink); border-radius: 9px;
    white-space: nowrap; transition: color .16s ease, background .16s ease;
}
.nav__link:hover, .nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { color: var(--primary); background: var(--mist); }
.nav__link.is-active { color: var(--primary); }
.nav__link.is-active::after {
    content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px;
    background: var(--accent); border-radius: 2px;
}
.nav__chev { display: inline-flex; }
.nav__chev svg.ico { width: 12px; height: 12px; opacity: .55; transition: transform .18s ease; }
.nav__item:hover .nav__chev svg.ico, .nav__item:focus-within .nav__chev svg.ico { transform: rotate(180deg); }

.nav__dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 9px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 80;
}
.nav__dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 14px; }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
    font-size: 14.5px; font-weight: 500; color: var(--text); transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.nav__dropdown a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; flex-shrink: 0; }
.nav__dropdown a:hover { background: var(--cream); color: var(--primary); padding-left: 16px; }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__cta { padding: 12px 16px; font-size: 13.5px; white-space: nowrap; }
.header__menu {
    display: none; width: 44px; height: 44px; border-radius: 11px;
    border: 1px solid var(--line); background: #fff; color: var(--primary);
    align-items: center; justify-content: center; cursor: pointer;
}
.header__menu svg.ico { width: 23px; height: 23px; }

body.header-minimal .topbar { display: none; }
body.header-centered .header__inner { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
body.header-centered .brand { margin-right: auto; }
body.header-centered .nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding-top: 8px; }

/* ------------------------------------------------------------------ drawer */

.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6, 23, 41, .55); backdrop-filter: blur(2px); }
.drawer__panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 90vw);
    background: #fff; box-shadow: -24px 0 60px -30px rgba(6, 23, 41, .7);
    display: flex; flex-direction: column; overflow-y: auto;
    transform: translateX(100%); transition: transform .27s cubic-bezier(.32, .72, .3, 1);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.drawer__brand { font-weight: 800; color: var(--primary); font-size: 15px; }
.drawer__close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--primary); display: grid; place-items: center; cursor: pointer; }
.drawer__body { padding: 10px 16px 26px; }
.drawer__link, .drawer__group summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 15px 6px; font-size: 16px; font-weight: 700; color: var(--ink);
    border-bottom: 1px solid var(--line); cursor: pointer; list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary svg.ico { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.drawer__group[open] summary svg.ico { transform: rotate(180deg); }
.drawer__sub { padding: 4px 6px 10px; display: grid; }
.drawer__sub a { padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--text); }
.drawer__sub a:hover { background: var(--cream); color: var(--primary); }
.drawer__actions { margin-top: 18px; display: grid; gap: 10px; }
.drawer__contact { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.drawer__contact a, .drawer__contact span { display: flex; align-items: flex-start; gap: 8px; }
.drawer__contact svg.ico { width: 15px; height: 15px; color: var(--accent); margin-top: 3px; }
body.drawer-open { overflow: hidden; }

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: var(--radius-btn);
    font-size: 15px; font-weight: 700; line-height: 1.2; border: 1px solid transparent;
    cursor: pointer; text-align: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn svg.ico { width: 17px; height: 17px; }
.btn--gold { background: linear-gradient(140deg, #d9b64a, var(--accent)); color: #1b1505; box-shadow: 0 14px 26px -16px rgba(201, 162, 39, .9); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(201, 162, 39, .95); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 14px 26px -18px rgba(10, 35, 66, .9); }
.btn--primary:hover { background: #123559; transform: translateY(-2px); }
.btn--outline { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--primary); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); background: var(--cream); }
.btn--sm { padding: 10px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--primary); }
.link-arrow svg.ico { width: 16px; height: 16px; color: var(--accent); transition: transform .18s ease; }
.link-arrow:hover svg.ico { transform: translateX(4px); }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; isolation: isolate; background: var(--primary-deep); color: #fff; overflow: hidden; }
.hero__viewport { position: relative; height: clamp(470px, 64vh, 640px); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; display: flex; align-items: center; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.05); transition: transform 7s linear; }
.hero__slide.is-active .hero__image { transform: scale(1); }
.hero__overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(100deg, rgba(6, 23, 41, .95) 0%, rgba(6, 23, 41, .82) 44%, rgba(6, 23, 41, .45) 76%, rgba(6, 23, 41, .55) 100%),
        linear-gradient(to top, rgba(6, 23, 41, .88), transparent 58%);
}
.hero .container { position: relative; z-index: 2; }
.hero__content { padding-block: 50px; max-width: 760px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, .55); background: rgba(201, 162, 39, .14);
    color: var(--accent-light); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hero__eyebrow svg.ico { width: 14px; height: 14px; }
.hero__title {
    margin-top: 22px; color: #fff; font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.08; letter-spacing: -.02em;
    text-shadow: 0 2px 34px rgba(0, 0, 0, .3); max-width: 19ch;
}
.hero__text { margin-top: 20px; max-width: 56ch; color: #d9e3ef; font-size: clamp(1rem, 1.3vw, 1.13rem); line-height: 1.75; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; }

.hero__control {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(6, 23, 41, .4); color: #fff;
    display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.hero__control:hover { background: var(--accent); border-color: var(--accent); color: #1b1505; }
.hero__control--prev { left: 18px; }
.hero__control--next { right: 18px; }
.hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 9px; }
.hero__dot { width: 32px; height: 4px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .2s ease, width .2s ease; }
.hero__dot.is-active { background: var(--accent); width: 50px; }
.hero__pause {
    position: absolute; right: 18px; bottom: 18px; z-index: 6;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(6, 23, 41, .4); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.hero__pause svg.ico { width: 13px; height: 13px; }
.hero--fallback { padding-block: 90px; background: radial-gradient(900px 420px at 12% 0%, rgba(201, 162, 39, .18), transparent 60%), linear-gradient(160deg, var(--primary), var(--primary-deep)); }
.hero--fallback .hero__content { max-width: 720px; }

/* -------------------------------------------------------------- sections */

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(34px, 4vw, 52px); }
.section--mist { background: var(--mist); }
.section--cream { background: var(--cream); }
.section--navy { background: radial-gradient(1100px 380px at 12% -10%, rgba(201, 162, 39, .16), transparent 62%), linear-gradient(160deg, var(--primary), var(--primary-deep)); color: #c8d5e4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--quick { padding-top: 0; }
.section--quick .quick-grid { transform: translateY(-46px); margin-bottom: -46px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink);
}
.section--navy .eyebrow { color: var(--accent-soft); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: var(--accent-soft); }
.eyebrow--light::before { background: var(--accent-soft); }

.section__head { max-width: 720px; margin-bottom: 42px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.section__title { margin-top: 14px; font-size: clamp(1.8rem, 2.7vw, 2.45rem); }
.section__subtitle { margin-top: 12px; color: var(--muted); font-size: 17px; }
.section--navy .section__subtitle { color: #b7c6d8; }
.lead { font-size: 17.5px; line-height: 1.75; color: var(--text); }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ quick cards */

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.quick-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
    display: block; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.quick-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 39, .45); }
.quick-card:hover::after { transform: scaleX(1); }
.quick-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--accent); margin-bottom: 15px; }
.quick-card__icon svg.ico { width: 22px; height: 22px; }
.quick-card h2 { font-size: 18.5px; margin-bottom: 7px; }
.quick-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.quick-card__link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.quick-card__link svg.ico { width: 14px; height: 14px; color: var(--accent); }

/* ------------------------------------------------------------- split/about */

.split { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split__media { position: relative; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--mist); aspect-ratio: 4 / 3.1; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__badge { position: absolute; left: 22px; bottom: 22px; background: rgba(255, 255, 255, .96); border-radius: 13px; padding: 13px 17px; box-shadow: var(--shadow); }
.media-frame__badge strong { display: block; font-size: 20px; color: var(--primary); line-height: 1.1; }
.media-frame__badge span { font-size: 12px; color: var(--muted); font-weight: 600; }
.checklist { margin-top: 24px; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--text); }
.checklist svg.ico { width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.split__body .section__title { margin-top: 14px; }

/* ---------------------------------------------------------------- stats */

.stats-band { padding-block: clamp(52px, 6vw, 76px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { text-align: center; padding: 28px 18px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); transition: background .2s ease, transform .2s ease; }
.stat:hover { background: rgba(255, 255, 255, .11); transform: translateY(-4px); }
.stat__icon { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 13px; display: grid; place-items: center; background: rgba(201, 162, 39, .16); color: var(--accent-light); }
.stat__icon svg.ico { width: 23px; height: 23px; }
.stat strong { display: block; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; color: #fff; line-height: 1.05; letter-spacing: -.02em; }
.stat > span:last-child { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(219, 228, 239, .82); }

/* ------------------------------------------------------------ principal */

.principal { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.principal--compact { align-items: start; padding-block: 0; }
.principal__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.5; box-shadow: var(--shadow-lg); background: var(--mist); }
.principal__media img { width: 100%; height: 100%; object-fit: cover; }
.principal__monogram { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--primary), #123559); color: var(--accent-light); font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem); }
.principal__body .section__title { margin-top: 14px; }
.quote { position: relative; margin-top: 22px; padding-left: 26px; border-left: 3px solid var(--accent); }
.quote::before { content: "\201C"; position: absolute; left: 12px; top: -42px; font-family: var(--font-display); font-size: 100px; line-height: 1; color: rgba(201, 162, 39, .2); pointer-events: none; }
.quote p { font-family: var(--font-display); font-size: clamp(1.03rem, 1.5vw, 1.18rem); line-height: 1.8; color: var(--ink); font-weight: 500; }
.quote p + p { margin-top: 13px; }
.signature { margin-top: 24px; display: flex; align-items: center; gap: 13px; }
.signature__rule { width: 50px; height: 2px; background: var(--accent); }
.signature strong { display: block; color: var(--primary); font-size: 16px; }
.signature small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.principal__body .link-arrow { margin-top: 22px; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 39, .4); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); background: linear-gradient(150deg, #f7f3e8, #eef3fa); }
.card__placeholder svg.ico { width: 40px; height: 40px; opacity: .8; }
.card__tag { position: absolute; left: 13px; top: 13px; background: rgba(255, 255, 255, .95); color: var(--primary); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; box-shadow: 0 4px 12px rgba(6, 23, 41, .14); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 20px; }
.card__body p { font-size: 14.5px; color: var(--muted); }
.card__body .link-arrow { margin-top: auto; padding-top: 12px; }

/* ------------------------------------------------------------- facilities */

.facility-grid { align-items: stretch; }
.facility-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, .4); }
.facility-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.facility-card__icon svg.ico { width: 23px; height: 23px; }
.facility-card h3 { font-size: 18.5px; }
.facility-card p { margin-top: 7px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

.facility-cards { display: grid; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
.facility-large { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.facility-large__media { aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; display: grid; place-items: center; }
.facility-large__media img { width: 100%; height: 100%; object-fit: cover; }
.facility-large__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--cream); color: var(--accent); display: grid; place-items: center; }
.facility-large__icon svg.ico { width: 26px; height: 26px; }
.facility-large__body { padding: 24px 26px 28px; }
.facility-large__body .facility-large__icon { margin-bottom: 14px; }
.facility-large h2 { font-size: 22px; }
.facility-large p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------- achievements */

.achievement-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.achievement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.achievement-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.achievement-card__icon svg.ico { width: 23px; height: 23px; }
.achievement-card__tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent-ink); }
.achievement-card h3 { margin-top: 6px; font-size: 19px; }
.achievement-card p { margin-top: 7px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.achievement-card--large { padding: 0; }
.achievement-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.achievement-card__media img { width: 100%; height: 100%; object-fit: cover; }
.achievement-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; }
.achievement-card__body .achievement-card__icon { margin-bottom: 12px; }

/* ---------------------------------------------------------------- gallery */

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-grid--home { grid-auto-rows: 1fr; }
.photo { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--mist); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.photo--wide { grid-column: span 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.32, .72, .3, 1); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 23, 41, .8), transparent 62%); opacity: 0; transition: opacity .28s ease; }
.photo:hover img { transform: scale(1.06); }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }
.photo__caption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 13px; font-weight: 600; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
.photo:hover .photo__caption, .photo:focus-visible .photo__caption { opacity: 1; transform: translateY(0); }
.photo.is-hidden { display: none; }
.gallery-hint { margin-top: 18px; font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .16s ease; }
.filter:hover { border-color: var(--accent); color: var(--primary); }
.filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.album-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.album-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-card:hover .album-card__media img { transform: scale(1.05); }
.album-card__count { position: absolute; right: 12px; top: 12px; background: rgba(6, 23, 41, .72); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.album-card__body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; }
.album-card__body strong { color: var(--ink); font-size: 16px; }
.album-card__body small { color: var(--muted); font-size: 12.5px; }

.video-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--primary), var(--primary-deep)); }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--primary); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.video-card__play svg.ico { width: 22px; height: 22px; margin-left: 2px; }
.video-card strong { padding: 0 18px; font-size: 16px; color: var(--ink); }
.video-card small { padding: 0 18px 16px; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.video-card small svg.ico { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- notices */

.notice-list { display: grid; gap: 12px; }
.notice-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) 30px; gap: 20px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.notice-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(201, 162, 39, .45); }
.notice-item.is-pinned { border-left: 3px solid var(--accent); }
.notice-item__date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.notice-item__date strong { display: block; font-size: 27px; font-weight: 800; color: var(--primary); line-height: 1; }
.notice-item__date small { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); }
.notice-item__body { min-width: 0; display: grid; gap: 4px; }
.notice-item__title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 17px; font-weight: 700; color: var(--ink); }
.notice-item__text { font-size: 14.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-item__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.notice-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.notice-item__meta svg.ico { width: 13px; height: 13px; color: var(--accent); }
.notice-item__arrow { color: var(--muted); justify-self: end; }
.notice-item__arrow svg.ico { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--mist); color: var(--text); }
.pill--accent { background: var(--accent-light); color: #6b5000; }

/* ----------------------------------------------------------------- events */

.event-card { position: relative; display: flex; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card__date { flex-shrink: 0; width: 68px; height: 76px; border-radius: 12px; background: var(--cream); border: 1px solid #ecdfbe; display: grid; place-items: center; align-content: center; text-align: center; }
.event-card__date span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent-ink); }
.event-card__date strong { font-size: 26px; line-height: 1; color: var(--primary); font-weight: 800; }
.event-card__date small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.event-card__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.event-card h3 { font-size: 18.5px; }
.event-card h3 a:hover { color: var(--primary); }
.event-card p { font-size: 14px; color: var(--muted); }
.event-card .link-arrow { margin-top: auto; }
.event-card--large { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.event-card--large .event-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.event-card--large .event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card--large .event-card__date { width: 62px; height: 68px; margin: -34px 0 0 20px; position: relative; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.event-card--large .event-card__body { padding: 14px 22px 24px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.meta-list li, .meta-list > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-list svg.ico { width: 14px; height: 14px; color: var(--accent); }
.meta-list--lg { margin-top: 18px; font-size: 14px; }
.meta-list--inline { gap: 12px; }

.event-archive { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.event-archive__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 200px 20px; gap: 16px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; transition: background .16s ease; }
.event-archive__row:last-child { border-bottom: 0; }
.event-archive__row:hover { background: var(--cream); }
.event-archive__date { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.event-archive__title { color: var(--ink); font-weight: 600; }
.event-archive__row > svg.ico { color: var(--muted); width: 16px; height: 16px; }

/* ----------------------------------------------------------- testimonials */

.testimonial { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.testimonial__mark { position: absolute; right: 22px; top: 6px; font-family: var(--font-display); font-size: 84px; line-height: 1; color: rgba(201, 162, 39, .16); }
.testimonial__stars { display: flex; gap: 2px; color: var(--accent); }
.testimonial__stars svg.ico { width: 15px; height: 15px; fill: var(--accent); stroke: var(--accent); }
.testimonial blockquote { margin: 4px 0 8px; font-size: 15px; line-height: 1.75; color: var(--text); }
.testimonial figcaption { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.testimonial__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: var(--accent-light); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.testimonial figcaption strong { display: block; font-size: 14.5px; color: var(--ink); }
.testimonial figcaption small { display: block; font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------------- cta bands */

.cta-band { background: radial-gradient(800px 340px at 12% 0%, rgba(201, 162, 39, .24), transparent 62%), linear-gradient(150deg, var(--primary), var(--primary-deep)); color: #d5e0ed; padding-block: clamp(46px, 6vw, 72px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band h2 { margin-top: 12px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cta-band p { margin-top: 10px; color: #bac9da; max-width: 54ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 11px; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.cta-inline h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-inline p { margin-top: 7px; color: var(--muted); }

/* ---------------------------------------------------------------- contact */

.contact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-tile { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .18s ease, transform .18s ease; }
a.contact-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-tile__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-tile__icon svg.ico { width: 19px; height: 19px; }
.contact-tile span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-tile strong { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.map-frame { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-detail-list { margin-top: 26px; display: grid; gap: 14px; }
.contact-detail { display: flex; gap: 13px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--cream); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-detail__icon svg.ico { width: 20px; height: 20px; }
.contact-detail span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-detail strong { display: block; margin-top: 3px; font-size: 15.5px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-detail strong a:hover { color: var(--primary); text-decoration: underline; }
.contact-detail small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ forms */

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); }
.form__head h2 { margin-top: 10px; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.form__head p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
    font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 39, .15); }
.field__error { font-size: 12px; color: var(--danger); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.check-row a { color: var(--primary); text-decoration: underline; }
.form .btn { margin-top: 20px; }
.form__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.form__note a { color: var(--primary); text-decoration: underline; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-top: 16px; }
.alert--error { background: #fef3f2; border: 1px solid #f5c6c2; color: var(--danger); }

.enquiry-form .form__head { margin-bottom: 4px; }
.aside-card { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card h3 { font-size: 17px; }
.aside-card__row { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font-size: 14px; color: var(--text); }
.aside-card__row svg.ico { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.aside-card .btn { margin-top: 16px; }
.download-callout { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid #ecdfbe; background: #fffdf6; border-radius: 14px; }
.download-callout__icon { width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid #ecdfbe; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.download-callout > div { flex: 1; min-width: 200px; }
.download-callout strong { display: block; color: var(--ink); font-size: 15px; }
.download-callout p { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------- faq */

.faq { margin-top: 42px; }
.faq__list { margin-top: 18px; display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg.ico { width: 17px; height: 17px; color: var(--muted); transition: transform .18s ease; flex-shrink: 0; }
.faq__item[open] summary svg.ico { transform: rotate(180deg); }
.faq__answer { padding: 0 18px 16px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.faq__answer p + p { margin-top: 8px; }
.status-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 13px; background: #eef8f3; border: 1px solid #c8e8d8; margin-bottom: 26px; }
.status-banner__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(15, 123, 95, .14); margin-top: 7px; flex-shrink: 0; }
.status-banner strong { display: block; color: #0c5c48; font-size: 14.5px; }
.status-banner p { margin-top: 3px; font-size: 13px; color: #3f6d5e; }
.admissions-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.admissions-aside { position: sticky; top: 104px; }

/* ------------------------------------------------------------ page hero */

.page-hero { position: relative; background: radial-gradient(900px 380px at 10% 0%, rgba(201, 162, 39, .18), transparent 60%), linear-gradient(150deg, var(--primary), var(--primary-deep)); color: #d6e0ec; padding-block: clamp(46px, 6vw, 78px); overflow: hidden; }
.page-hero__pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to right, transparent, #000 40%, transparent); opacity: .5; }
.page-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #93a8c0; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb span[aria-current] { color: #cfdbe8; }
.page-hero h1 { margin-top: 12px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; }
.page-hero__subtitle { margin-top: 14px; max-width: 62ch; color: #bccbdb; font-size: 16.5px; }

/* ----------------------------------------------------------------- prose */

.prose { font-size: 16px; line-height: 1.8; color: var(--text); }
.prose--wide { max-width: 900px; }
.prose h2 { margin: 34px 0 12px; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; font-size: 1.2rem; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; display: grid; gap: 7px; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(201, 162, 39, .6); text-underline-offset: 3px; }
.prose a:hover { color: #7a5c10; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 22px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--cream); border-radius: 0 10px 10px 0; color: var(--ink); font-style: italic; }
.prose img { border-radius: 12px; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--mist); color: var(--ink); font-weight: 700; }
.prose figure { margin: 20px 0; }
.article { margin-top: 6px; }
.article-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow); }
.article-image img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-footer-links { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(30px, 4vw, 54px); align-items: start; }
.fact-card { background: var(--cream); border: 1px solid #ecdfbe; border-radius: var(--radius); padding: 26px; }
.fact-card h2 { font-size: 18px; }
.fact-card dl { margin-top: 16px; display: grid; gap: 11px; }
.fact-card dl div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(201, 162, 39, .22); padding-bottom: 9px; font-size: 13.5px; }
.fact-card dt { color: var(--muted); }
.fact-card dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.fact-card .link-arrow { margin-top: 16px; }

.academic-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.calendar-preview, .calendar-list { margin-top: 26px; display: grid; gap: 8px; }
.calendar-list { margin-top: 40px; }
.calendar-list h2 { font-size: 1.4rem; margin-bottom: 6px; }
.calendar-row { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .16s ease, transform .16s ease; }
.calendar-row:hover { border-color: var(--accent); transform: translateX(2px); }
.calendar-row__date { width: 46px; text-align: center; flex-shrink: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.calendar-row__date strong { display: block; font-size: 18px; color: var(--primary); line-height: 1.1; }
.calendar-row__date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); font-weight: 700; }
.calendar-row > span:nth-child(2) { flex: 1; min-width: 0; }
.calendar-row > span:nth-child(2) strong { display: block; font-size: 14px; color: var(--ink); }
.calendar-row > span:nth-child(2) small { font-size: 12px; color: var(--muted); }
.calendar-row > svg.ico { width: 16px; height: 16px; color: var(--muted); }

/* -------------------------------------------------------------- faculty */

.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person-card__photo { aspect-ratio: 4 / 4.3; background: var(--mist); display: grid; place-items: center; overflow: hidden; }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card__photo span { font-family: var(--font-display); font-size: 46px; color: var(--accent); }
.person-card__body { padding: 20px 22px 24px; }
.person-card__role { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent-ink); }
.person-card h3 { margin-top: 5px; font-size: 19px; }
.person-card__qual { margin-top: 4px; font-size: 13px !important; color: var(--muted); font-weight: 600; }
.person-card__body p { margin-top: 7px; font-size: 14px; color: var(--muted); }

.department-block { margin-top: 42px; }
.department-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.department-block__head h3 { font-size: 21px; }
.department-block__head span { font-size: 12.5px; color: var(--muted); }
.department-block__desc { margin-top: 8px; font-size: 14px; color: var(--muted); }
.staff-grid { margin-top: 20px; gap: 18px; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.staff-card__photo { aspect-ratio: 4 / 4.2; background: var(--mist); display: grid; place-items: center; overflow: hidden; }
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card__photo span { font-size: 30px; color: var(--accent); font-weight: 700; }
.staff-card__body { padding: 14px 16px 16px; position: relative; }
.staff-card h4 { font-size: 15.5px; }
.staff-card p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.staff-card small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.staff-card__body > a { position: absolute; right: 14px; bottom: 14px; color: var(--accent); }
.staff-card__body > a svg.ico { width: 15px; height: 15px; }

/* -------------------------------------------------------------- downloads */

.download-group { margin-bottom: 34px; }
.download-group h2 { font-size: 20px; margin-bottom: 12px; }
.download-list { display: grid; gap: 9px; }
.download-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.download-row__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.download-row__icon svg.ico { width: 19px; height: 19px; }
.download-row__body { flex: 1; min-width: 0; }
.download-row__body strong { display: block; font-size: 14.5px; color: var(--ink); }
.download-row__body small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* -------------------------------------------------------------- empty/flash */

.empty-state { text-align: center; padding: 54px 26px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: #fff; }
.empty-state > span { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; background: var(--cream); color: var(--accent); display: grid; place-items: center; }
.empty-state > span svg.ico { width: 26px; height: 26px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { margin-top: 7px; color: var(--muted); font-size: 14.5px; max-width: 46ch; margin-inline: auto; }

.flash { margin-block: 16px 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 11px; font-size: 14px; background: #eef4ff; border: 1px solid #cad9f5; color: #1f3d70; }
.flash svg.ico { width: 18px; height: 18px; }
.flash--success { background: #ecfdf5; border-color: #b7e6d4; color: var(--success); }
.flash--error { background: #fef3f2; border-color: #f5c6c2; color: var(--danger); }
.flash span { flex: 1; }
.flash__close { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .65; }
.flash__close svg.ico { width: 15px; height: 15px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.pagination__link { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text); }
.pagination__link:hover { border-color: var(--accent); color: var(--primary); }
.pagination__link.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination__gap { padding: 8px; color: var(--muted); }

/* --------------------------------------------------------------- lightbox */

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(3, 10, 20, .96); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; color: #e7edf5; }
.lightbox__counter { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.lightbox__tools { display: flex; gap: 8px; }
.lightbox__btn { width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); color: #1b1505; }
.lightbox__stage { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 70px; position: relative; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.lightbox__caption { padding: 14px 20px; text-align: center; color: #cfdbe8; font-size: 14px; }
.lightbox__caption strong { color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* --------------------------------------------------------------- footer */

.footer { background: #061729; color: #9fb2c7; padding-top: clamp(48px, 6vw, 70px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 38px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__mark { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.footer__about { margin-top: 18px; font-size: 13.5px; line-height: 1.75; color: #8fa3b9; max-width: 38ch; }
.footer__social { margin-top: 18px; display: flex; gap: 8px; }
.footer__social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); display: grid; place-items: center; color: #cfdbe8; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #1b1505; }
.footer__social svg.ico { width: 17px; height: 17px; }
.footer__col h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 800; }
.footer__col ul { margin-top: 16px; display: grid; gap: 9px; }
.footer__col a { font-size: 13.5px; color: #9fb2c7; transition: color .16s ease; }
.footer__col a:hover { color: var(--accent-soft); }
.footer__contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.55; }
.footer__contact svg.ico { width: 15px; height: 15px; color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer__enquire { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-soft); }
.footer__enquire svg.ico { width: 14px; height: 14px; }
.footer__bottom { margin-top: 44px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #7f93a9; }
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer__bottom-links a:hover { color: var(--accent-soft); }
.footer__credit { color: #6d8198; }

.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; background: #1faf54; color: #fff; border-radius: 999px; padding: 11px 17px; font-size: 13.5px; font-weight: 700; box-shadow: 0 16px 34px -14px rgba(31, 175, 84, .8); transition: transform .18s ease; }
.whatsapp:hover { transform: translateY(-2px); }
.whatsapp svg.ico { width: 19px; height: 19px; }

.maintenance { padding-block: clamp(60px, 10vw, 120px); background: var(--mist); min-height: 55vh; display: grid; place-items: center; }
.maintenance__card { max-width: 620px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px); text-align: center; box-shadow: var(--shadow-lg); }
.maintenance__mark { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 16px; background: var(--primary); color: var(--accent-light); display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.maintenance__card h1 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; }
.maintenance__card p { margin-top: 12px; color: var(--muted); }
.maintenance__contact { font-size: 14px; }
.maintenance__contact a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1500px) {
    .brand { max-width: 320px; }
}

/* Keep the admission button only while brand + nav + button fit the 1240px
   container; below this the nav needs the room, otherwise it overflows. */
@media (max-width: 1259px) {
    .header__cta { display: none; }
}

@media (max-width: 1100px) {
    .nav { display: none; }
    .header__menu { display: inline-flex; }
    .header__cta { display: none; }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facility-cards { grid-template-columns: 1fr; }
    .contact-layout, .admissions-layout { grid-template-columns: 1fr; }
    .admissions-aside { position: static; }
}

@media (max-width: 800px) {
    body.site { font-size: 16px; }
    .topbar__contacts { display: none; }
    .topbar__inner { justify-content: center; }
    .header__inner { min-height: 74px; }
    .brand__name { font-size: 16.5px; }
    .brand__mark { width: 46px; height: 46px; border-radius: 12px; font-size: 18px; }
    .section--quick .quick-grid { transform: translateY(-30px); margin-bottom: -30px; }
    .split, .principal, .principal--compact, .about-grid, .academic-columns { grid-template-columns: 1fr; }
    .principal__media { max-width: 380px; }
    .grid, .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid, .gallery-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo--wide { grid-column: span 2; }
    .event-archive__row { grid-template-columns: 110px minmax(0, 1fr) 20px; }
    .event-archive__row .muted { display: none; }
    .admissions-layout .form { position: static; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .hero__viewport { height: clamp(430px, 66vh, 560px); }
    .hero__control { display: none; }
    .quick-card { padding: 22px 20px; }
    .footer { padding-bottom: 10px; }
    .whatsapp span { display: none; }
    .whatsapp { padding: 13px; }
    .lightbox__stage { padding: 0 12px; }
    .lightbox__nav { display: none; }
}

@media (max-width: 620px) {
    .container { padding-inline: 18px; }
    .quick-grid, .grid, .grid--2, .grid--3, .grid--4, .stats, .gallery-grid, .contact-strip, .staff-grid { grid-template-columns: 1fr; }
    .photo--wide { grid-column: span 1; }
    .form-grid { grid-template-columns: 1fr; }
    .notice-item { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .notice-item__arrow { display: none; }
    .notice-item__date { padding-right: 12px; }
    .notice-item__date strong { font-size: 22px; }
    .event-card { flex-direction: column; }
    .event-card__date { width: 60px; height: 66px; }
    .footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .brand__tagline { white-space: normal; }
    .brand { max-width: 260px; }
    .hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .section__head--row { align-items: flex-start; }
    .event-card--large .event-card__date { margin: -30px 0 0 16px; }
    .toolbar-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .hero__slide.is-active .hero__image { transform: none; }
}
