/* ==========================================================================
   Royal Academy theme — cream, gold, orange & navy
   ========================================================================== */
:root {
    --cream: #f8f3e6;
    --cream-2: #f2ead3;
    --paper: #fffdf6;
    --gold: #c9a24a;
    --gold-light: #ecd48f;
    --gold-dark: #8f6e24;
    --gold-grad: linear-gradient(180deg, #f6e3a3 0%, #d9b55d 45%, #b48b33 100%);
    --orange: #f2a33a;
    --orange-dark: #dc8a1c;
    --navy: #0f2557;
    --navy-2: #0a1a40;
    --ink: #2a2620;
    --muted: #6f6656;
    --line: #e3d4a8;
    --radius: 4px;
    --shadow: 0 10px 30px -12px rgba(60, 40, 0, .25);
    --shadow-lg: 0 24px 50px -20px rgba(40, 25, 0, .35);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1240px;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, .h1 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.mt-4 { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; color: #fff; }
.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border: 1px solid transparent; border-radius: var(--radius);
    font-family: var(--sans); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: var(--gold-grad); color: #3b2a07; border-color: #a98431;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 18px -8px rgba(140, 100, 20, .8);
    text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover { color: #2a1d03; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 24px -8px rgba(140, 100, 20, .9); }
.btn-orange { background: var(--orange); color: #3a2304; text-transform: none; letter-spacing: .01em; font-size: 1rem; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .55rem 1.1rem; font-size: .8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--gold-dark); }
.link-arrow:hover { gap: .7rem; }
.link-arrow, .link-arrow:hover { transition: gap .2s, color .2s; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #d9cfae; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a, .topbar span { color: #e8dcb6; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar__contact, .topbar__right { display: flex; align-items: center; gap: 1.4rem; }
.topbar__badge { background: var(--gold-grad); color: #3b2a07 !important; padding: 2px 12px; border-radius: 20px; font-weight: 700; }
.social { display: flex; gap: .5rem; }
.social a {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(233, 207, 134, .5); color: var(--gold-light);
}
.social a:hover { background: var(--gold); color: var(--navy); }
.social--sm a { width: 26px; height: 26px; border: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-top: 4px solid var(--gold);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(0,0,0,.35); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); flex-shrink: 0; align-self: flex-start; height: var(--header-h); }
.brand__tab {
    position: relative; align-self: flex-start; width: 112px; height: 128px; margin-top: 0;
    display: grid; place-items: center; padding: 10px 10px 22px;
    background: var(--paper);
    border: 1px solid var(--line); border-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.12));
    z-index: 2; transition: height .3s, width .3s;
}
.brand__tab::after { content: ''; position: absolute; inset: 4px 6px 10px; border: 1px solid var(--gold-light); clip-path: inherit; pointer-events: none; }
.brand__tab .crest { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.is-scrolled .brand__tab { height: 92px; width: 84px; }
.brand__text { display: none; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; }
.brand__text small { color: var(--gold-dark); font-family: var(--serif); font-style: italic; font-size: .82rem; white-space: nowrap; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a:not(.btn) {
    position: relative; display: block; padding: .5rem .7rem; font-family: var(--serif); font-size: 1rem; color: var(--ink);
}
.main-nav a:not(.btn)::after {
    content: ''; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; background: var(--gold);
    transform: scaleX(0); transition: transform .25s; transform-origin: center;
}
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--gold-dark); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.icon-btn { background: none; border: 0; color: var(--gold-dark); padding: .5rem; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--cream-2); }
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: block; }
.nav-open .nav-toggle .when-closed { display: none; }


/* ---------- Frame & ornaments ---------- */
.frame { position: relative; border: 2px solid var(--gold); box-shadow: inset 0 0 0 6px rgba(201, 162, 74, .25); }
.corner { position: absolute; width: 74px; height: 74px; z-index: 3; fill: none; stroke: var(--gold-light); stroke-width: 2; pointer-events: none; }
.corner circle { fill: var(--gold-light); stroke: none; }
.corner--tl { top: 10px; left: 10px; }
.corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner--br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

/* ---------- Hero ---------- */
.hero { padding: 0; max-width: none; margin: 0; }
.hero .frame { height: clamp(520px, 78vh, 760px); overflow: hidden; background: var(--navy); border-top: 0; border-left: 0; border-right: 0; }
.hero__slide {
    position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
    background:
        linear-gradient(180deg, rgba(10, 20, 50, .15) 0%, rgba(10, 20, 50, .25) 40%, rgba(10, 15, 35, .82) 100%),
        var(--bg) center / cover no-repeat;
    opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide.is-active .hero__content > * { animation: rise .9s both; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: .3s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: .45s; }
.hero__content { text-align: center; color: #fff; padding: 0 1.5rem 5.5rem; max-width: 960px; }
.hero__content .eyebrow { color: var(--gold-light); }
.hero h1, .hero .h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.9rem); text-shadow: 0 3px 18px rgba(0,0,0,.45); margin-bottom: .35em; }
.hero__content p { font-size: clamp(1rem, 1.6vw, 1.25rem); color: #f3ead2; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; z-index: 4; }
.hero__dots button, .carousel-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold-light); background: transparent; padding: 0; transition: all .3s;
}
.hero__dots button.is-active, .carousel-dots button.is-active { background: var(--gold-light); width: 28px; border-radius: 6px; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--paper); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 1rem; height: 52px; overflow: hidden; }
.ticker__label {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; background: var(--navy); color: var(--gold-light);
    padding: .4rem 1rem; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px;
}
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__items { display: flex; gap: 3rem; width: max-content; animation: ticker 40s linear infinite; }
.ticker__items span, .ticker__items a { color: var(--ink); white-space: nowrap; font-size: .93rem; position: relative; padding-left: 1.4rem; }
.ticker__items span::before, .ticker__items a::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: .2rem; }
.ticker:hover .ticker__items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--cream-2); background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 40%), radial-gradient(circle at 85% 80%, rgba(255,255,255,.45), transparent 40%); }
.section-heading { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading.is-center { text-align: center; }
.section-heading.is-center .lead { margin-inline: auto; }
.section-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3rem; }
.section-heading .lead { max-width: 640px; color: var(--muted); font-size: 1.07rem; margin-top: .8rem; margin-bottom: 0; }
.section-heading.is-light h2 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .6rem; }
.divider { display: inline-flex; align-items: center; gap: .5rem; }
.divider i { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider i:last-child { transform: scaleX(-1); }
.divider b { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-start { align-items: start; }

/* ---------- Welcome card ---------- */
.welcome-card {
    display: grid; grid-template-columns: 1.5fr 1fr; background: var(--paper);
    border: 2px solid var(--gold); box-shadow: var(--shadow), inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold-light);
    max-width: 1020px; margin: 0 auto;
}
.welcome-card__text { padding: clamp(1.8rem, 4vw, 3rem); }
.welcome-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.welcome-card__image { border-left: 2px solid var(--gold); min-height: 320px; }
.welcome-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); background-image: linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%); background-size: 28px 28px; border-block: 3px solid var(--gold); }
.stats__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.stat { text-align: center; padding: 2.6rem 1rem; color: #e6dcbc; }
.stat + .stat { border-left: 1px solid rgba(233, 207, 134, .25); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat > span { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; }

/* ---------- Program cards ---------- */
.program-card {
    background: var(--paper); border: 2px solid var(--gold-light); display: flex; flex-direction: column;
    padding: 1.4rem 1.2rem 1.2rem; text-align: center; transition: transform .3s, box-shadow .3s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card__head { color: var(--gold); }
.program-card__head h3 { font-size: 1.3rem; margin: .6rem 0 1rem; font-weight: 600; }
.program-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.program-card p { color: var(--muted); margin: 1rem 0 1.2rem; flex: 1; }

/* Stage cards */
.stage-card { background: var(--paper); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; overflow: hidden; }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.stage-card__img { overflow: hidden; aspect-ratio: 4 / 3; }
.stage-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.stage-card:hover img { transform: scale(1.07); }
.stage-card__body { padding: 0 1.3rem 1.4rem; position: relative; }
.stage-card__icon { width: 52px; height: 52px; margin-top: -26px; margin-bottom: .6rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); border: 3px solid var(--paper); position: relative; }
.stage-card small { color: var(--gold-dark); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.stage-card h3 { font-size: 1.25rem; margin: .2rem 0 .5rem; }
.stage-card p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; max-width: 1080px; margin: 0 auto 3rem; }
.video-card {
    position: relative; min-height: 420px; border: 2px solid var(--gold-light); color: #fff; overflow: hidden;
    background: linear-gradient(90deg, rgba(10,20,50,.1) 30%, rgba(10,20,50,.75)), var(--bg) center / cover;
}
.video-card__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); font-size: .95rem; }
.video-card__bar .crest { width: 36px; height: 36px; }
.play-btn {
    position: absolute; top: 50%; left: 40%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(15, 37, 87, .85); color: #fff; border: 2px solid var(--gold-light); padding-left: 4px;
    box-shadow: 0 0 0 0 rgba(236, 212, 143, .6); animation: pulse 2.4s infinite;
}
.play-btn:hover { color: var(--navy); background: var(--gold-light); }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(236, 212, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 212, 143, 0); } }
.video-card__list { position: absolute; right: 1.5rem; bottom: 1.5rem; display: grid; gap: .5rem; font-family: var(--serif); font-size: 1.1rem; }
.video-card__list li { display: flex; align-items: center; gap: .5rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.video-card__list .icon { color: var(--gold-light); }

.form-card { background: var(--paper); border: 2px solid var(--gold-light); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-card > h3, .form-title { font-size: 1.4rem; margin-bottom: .3rem; }
.form-card .muted { font-size: .92rem; }

.feature { text-align: center; padding: 1.8rem 1.2rem; background: var(--paper); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.feature:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature__icon { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--gold-dark); background: var(--cream-2); border: 1px solid var(--gold-light); margin-bottom: 1rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Forms ---------- */
.enquiry-form { display: grid; gap: .9rem; margin-top: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; letter-spacing: .02em; }
.field input, .field select, .field textarea {
    width: 100%; padding: .72rem .85rem; font: inherit; font-size: .95rem; color: var(--ink);
    background: #fffef9; border: 1px solid #d8c792; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 74, .2); }
.field .is-invalid { border-color: #c0392b; }
.field .error { color: #b03a2e; font-size: .8rem; display: block; margin-top: .25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* ---------- Facilities ---------- */
.facility-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.facility-mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
.facility-mosaic > :nth-child(n+6) { grid-column: span 2; }
.facility-tile { position: relative; overflow: hidden; border: 2px solid var(--gold-light); }
.facility-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.facility-tile:hover img { transform: scale(1.08); }
.facility-tile__label {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; color: #fff; font-family: var(--serif); font-size: 1.15rem;
    background: linear-gradient(transparent, rgba(10, 20, 50, .88)); display: flex; align-items: center; gap: .5rem;
}
.facility-tile__label .icon { color: var(--gold-light); }

.facility-card { background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.facility-card__img { position: relative; aspect-ratio: 16 / 10; }
.facility-card__img img { width: 100%; height: 100%; object-fit: cover; }
.facility-card__icon { position: absolute; right: 1rem; bottom: -24px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #3b2a07; border: 3px solid var(--paper); }
.facility-card__body { padding: 1.6rem 1.4rem 1.4rem; }
.facility-card h3 { font-size: 1.25rem; }
.facility-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.alumni-section { background: var(--cream-2); }
.testimonials { position: relative; max-width: 900px; margin: 0 auto; padding: 0 3.5rem; }
.testimonials__viewport { display: grid; }
.testimonial {
    grid-area: 1 / 1; margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center;
    background: var(--paper); border: 2px solid var(--gold-light); padding: 2rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateX(30px); transition: all .6s ease;
}
.testimonial.is-active { opacity: 1; visibility: visible; transform: none; }
.testimonial img { width: 220px; height: 260px; object-fit: cover; object-position: top; border: 1px solid var(--gold); box-shadow: 8px 8px 0 var(--gold-light); }
.testimonial__body { text-align: center; }
.laurel { width: 64px; color: var(--gold); margin: 0 auto .5rem; }
.testimonial blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.6; }
.testimonial figcaption strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.testimonial figcaption span { color: var(--muted); font-size: .88rem; }
.stars { color: var(--gold); margin-top: .5rem; display: flex; gap: 2px; justify-content: center; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--paper); color: var(--gold-dark); display: grid; place-items: center; z-index: 2; }
.carousel-btn:hover { background: var(--gold); color: #fff; }
.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.carousel-dots button { border-color: var(--gold); }
.carousel-dots button.is-active { background: var(--gold); }

/* ---------- News ---------- */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.news-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.2rem; margin: .3rem 0 .5rem; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--gold-dark); }
.news-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.meta { color: var(--gold-dark); font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: .35rem; text-transform: uppercase; letter-spacing: .06em; }
.tag { display: inline-block; padding: .2rem .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--navy); color: var(--gold-light); }
.news-card .tag { position: absolute; top: 1rem; left: 1rem; }
.tag--event { background: var(--orange); color: #3a2304; }
.tag--achievement { background: var(--gold-grad); color: #3b2a07; }

.events-panel { background: var(--navy); color: #e6dcbc; padding: 1.6rem; border: 2px solid var(--gold); display: grid; gap: .3rem; }
.events-panel h3 { color: var(--gold-light); font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(233,207,134,.3); }
.events-panel .link-arrow { color: var(--gold-light); margin-top: .6rem; }
.event-item, .mini-post { display: flex; gap: 1rem; align-items: center; padding: .8rem 0; color: #f2ead3; border-bottom: 1px dashed rgba(233,207,134,.22); }
.event-item:hover, .mini-post:hover { color: var(--gold-light); }
.event-item b, .mini-post b { display: block; font-family: var(--serif); font-weight: 500; line-height: 1.35; }
.event-item small, .mini-post small { color: #b7ad8f; font-size: .8rem; display: flex; align-items: center; gap: .3rem; }
.event-date { flex-shrink: 0; width: 58px; text-align: center; background: var(--gold-grad); color: #3b2a07; padding: .4rem 0; line-height: 1.1; }
.event-date strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.event-date small { color: #3b2a07 !important; justify-content: center; text-transform: uppercase; font-weight: 700; }
.mini-post img { width: 70px; height: 56px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--gold); }

.news-toolbar { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.news-toolbar .filters { margin: 0; }
.filters a, .filters button { padding: .5rem 1.2rem; border: 1px solid var(--gold); background: transparent; color: var(--gold-dark); font-weight: 700; font-size: .85rem; letter-spacing: .05em; border-radius: 30px; }
.filters a:hover, .filters button:hover, .filters .is-active { background: var(--gold); color: #fff; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .icon { color: var(--gold); margin: 0 auto 1rem; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold-light); background: var(--paper); color: var(--ink); padding: 0 .6rem; }
.pagination a:hover, .pagination .is-current { background: var(--gold); color: #fff; border-color: var(--gold); }
.pagination .is-disabled { opacity: .45; }

.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.article h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: .8rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.article__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article__meta .icon { color: var(--gold); }
.article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--gold-light); margin-bottom: 2rem; }
.prose { font-size: 1.07rem; }
.prose p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6rem; line-height: .9; padding: .3rem .6rem 0 0; color: var(--gold-dark); }
.back { margin-top: 1.5rem; }
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- Gallery ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.gallery-strip__item { position: relative; aspect-ratio: 1; overflow: hidden; }
.gallery-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: saturate(.85); }
.gallery-strip__item span { position: absolute; inset: auto 0 0; padding: 1rem; color: #fff; font-family: var(--serif); background: linear-gradient(transparent, rgba(10,20,50,.85)); opacity: 0; transform: translateY(10px); transition: all .3s; }
.gallery-strip__item:hover img { transform: scale(1.08); filter: none; }
.gallery-strip__item:hover span { opacity: 1; transform: none; }

.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-item { display: block; position: relative; margin-bottom: 1rem; break-inside: avoid; overflow: hidden; border: 2px solid var(--gold-light); }
.gallery-item:nth-child(3n+1) img { aspect-ratio: 4 / 5; }
.gallery-item:nth-child(3n+2) img { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(3n) img { aspect-ratio: 1; }
.gallery-item img { width: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__caption { position: absolute; inset: auto 0 0; padding: 2rem 1rem .9rem; background: linear-gradient(transparent, rgba(10,20,50,.85)); color: #fff; display: grid; }
.gallery-item__caption b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.gallery-item__caption small { color: var(--gold-light); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.gallery-item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 15, 35, .95); display: grid; place-items: center; animation: fade .25s; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border: 2px solid var(--gold); }
.lightbox figcaption { color: var(--gold-light); font-family: var(--serif); font-size: 1.2rem; margin-top: 1rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(236,212,143,.5); color: #fff; border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 15, 35, .9); }
.modal__dialog { position: relative; width: min(92vw, 960px); }
.modal__video { aspect-ratio: 16 / 9; border: 2px solid var(--gold); background: #000; }
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: -52px; right: 0; background: none; border: 0; color: #fff; }

/* ---------- Page banner ---------- */
.page-banner { padding: 0; max-width: none; margin: 0; }
.page-banner .frame { border-top: 0; border-left: 0; border-right: 0; background: linear-gradient(180deg, rgba(10,20,50,.55), rgba(10,20,50,.8)), var(--banner) var(--banner-pos, center) / cover; }
.page-banner__inner { text-align: center; color: #fff; padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .2em; text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.page-banner p { color: #f0e6c8; font-size: 1.1rem; }
.breadcrumb { display: inline-flex; gap: .6rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); border-top: 1px solid rgba(236,212,143,.4); padding-top: .8rem; margin-top: .4rem; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--gold); box-shadow: 18px 18px 0 -2px var(--cream-2), 18px 18px 0 0 var(--gold-light); }
.split__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split__text > p { color: var(--muted); }
.badge-years { position: absolute; left: -18px; bottom: 28px; background: var(--navy); color: var(--gold-light); padding: 1rem 1.4rem; text-align: center; border: 2px solid var(--gold); box-shadow: var(--shadow); }
.badge-years strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.badge-years span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.checklist { display: grid; gap: .6rem; margin-top: 1.2rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist .icon { color: #fff; background: var(--gold); border-radius: 50%; padding: 3px; margin-top: 3px; }

.mv-card { background: var(--paper); border: 2px solid var(--gold-light); padding: 2.4rem; text-align: center; position: relative; }
.mv-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.mv-card h3 { font-size: 1.6rem; }
.mv-card p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.message-card { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; background: var(--paper); border: 2px solid var(--gold-light); padding: 2rem; max-width: 1040px; margin: 0 auto 2rem; }
.message-card--reverse { grid-template-columns: 1fr 300px; }
.message-card--reverse img { order: 2; }
.message-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 1px solid var(--gold); }
.message-card h3 { font-size: 1.7rem; }
.message-card img.is-placeholder { object-fit: contain; padding: 2.5rem; background: var(--cream-2); }
.message-card .link-arrow { margin-top: .4rem; }
.leader-links { display: grid; gap: 1rem; }
.leader-link { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); color: var(--ink); transition: transform .25s, box-shadow .25s; }
.leader-link:hover { transform: translateX(6px); box-shadow: var(--shadow); color: var(--ink); }
.leader-link img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); flex: none; }
.leader-link img.is-placeholder { object-fit: contain; padding: 8px; background: var(--cream-2); }
.leader-link span { flex: 1; }
.leader-link strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.leader-link small { color: var(--muted); }
.leader-link .icon { color: var(--gold-dark); }
.message-card p { color: var(--muted); }
.quote-mark { color: var(--gold-light); }
.signature { font-family: var(--serif); font-size: 1.2rem; color: var(--ink) !important; margin: 0; }
.signature span { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }

.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold-light), var(--gold), var(--gold-light)); transform: translateX(-50%); }
.timeline li { position: relative; width: 50%; padding: 0 2.5rem 2.5rem; }
.timeline li:nth-child(odd) { text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; }
.timeline li::before { content: ''; position: absolute; top: .45rem; width: 14px; height: 14px; background: var(--gold); border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--gold); transform: rotate(45deg); }
.timeline li:nth-child(odd)::before { right: -8px; }
.timeline li:nth-child(even)::before { left: -8px; }
.timeline__year { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-dark); display: block; line-height: 1.2; }
.timeline p { color: var(--muted); margin: .3rem 0 0; }

/* ---------- Admissions ---------- */
.steps { display: grid; grid-template-columns: repeat(min(var(--steps, 5), 5), 1fr); gap: 1rem; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); }
.steps li { text-align: center; position: relative; }
.steps__num { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-family: var(--serif); font-size: 1.6rem; border: 3px solid var(--gold); position: relative; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .92rem; }
.info-card { background: var(--paper); border: 2px solid var(--gold-light); padding: 2rem; height: 100%; }
.info-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; }
.info-card h3 .icon { color: var(--gold); }
.table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.table th, .table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--navy); color: var(--gold-light); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.table tbody tr:nth-child(even) { background: var(--cream); }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-mini { display: grid; gap: .2rem; margin-bottom: 1.5rem; }
.contact-mini p { display: flex; align-items: center; gap: .6rem; margin: 0; }
.contact-mini .icon { color: var(--gold); }
.rounded-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid var(--gold-light); }
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--paper); border: 1px solid var(--gold-light); }
.faq summary { cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.4rem; font-family: var(--serif); font-size: 1.12rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Alumni / contact ---------- */
.alumni-card { text-align: center; background: var(--paper); border: 1px solid var(--line); padding: 2rem 1.5rem; }
.alumni-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 1rem; border: 3px solid var(--gold); box-shadow: 0 0 0 6px var(--cream-2); }
.alumni-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.alumni-card span { color: var(--muted); font-size: .9rem; }
.contact-card { text-align: center; background: var(--paper); border: 1px solid var(--line); padding: 2rem 1.3rem; border-top: 3px solid var(--gold); }
.contact-card h3 { font-size: 1.2rem; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }
.map-card { border: 2px solid var(--gold-light); min-height: 460px; height: 100%; }
.map-card iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: sepia(.25); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: linear-gradient(90deg, rgba(10,26,64,.95), rgba(15,37,87,.82)), var(--cta) center / cover; padding: 3.5rem 0; border-top: 3px solid var(--gold); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band .eyebrow { color: var(--gold-light); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.cta-band p { color: #d8cfb2; margin: 0; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.site-footer { background: var(--navy); color: #c9c0a4; border-top: 1px solid rgba(233,207,134,.25); position: relative; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-crest { width: 150px; height: auto; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; font-size: 1.35rem; }
.site-footer h4 { color: var(--gold-light); font-size: 1.15rem; margin-bottom: 1.2rem; padding-bottom: .6rem; position: relative; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.site-footer p { font-size: .93rem; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: #c9c0a4; font-size: .94rem; }
.footer-links a::before { content: '›'; color: var(--gold); margin-right: .5rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact { display: grid; gap: .9rem; font-size: .93rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-contact a { color: #c9c0a4; }
.footer-contact a:hover { color: var(--gold-light); }
.site-footer__bottom { border-top: 1px solid rgba(233,207,134,.2); background: var(--navy-2); font-size: .85rem; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 0; }
.site-footer__bottom p { margin: 0; }

.back-to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #a98431; background: var(--gold-grad); color: #3b2a07; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.back-to-top .icon { transform: rotate(90deg); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 130; display: flex; align-items: center; gap: .8rem; background: var(--navy); color: #fff; padding: .9rem 1rem .9rem 1.2rem; border: 1px solid var(--gold); border-left: 5px solid var(--gold); box-shadow: var(--shadow-lg); max-width: min(92vw, 560px); animation: rise .5s; }
.toast > .icon { color: var(--gold-light); }
.toast--error { border-left-color: #e74c3c; }
.toast--error > .icon { color: #ff8a7a; }
.toast button { background: none; border: 0; color: #fff; opacity: .7; padding: .2rem; }
.toast.is-leaving { opacity: 0; transition: opacity .4s; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Faculty & staff ---------- */
.staff-group { font-size: 1.35rem; color: var(--navy); margin: 2.4rem 0 1.2rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gold-light); }
.staff-group:first-of-type { margin-top: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
.staff-card { background: var(--paper); border: 1px solid var(--line); padding: 1.6rem 1.2rem 1.4rem; text-align: center; transition: transform .3s, box-shadow .3s, border-color .3s; }
.staff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.staff-card__photo { width: 128px; height: 128px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 0 0 5px var(--cream-2); background: var(--cream-2); display: grid; place-items: center; }
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card__initials { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-dark); }
.staff-card h4 { font-size: 1.12rem; margin: 0 0 .2rem; }
.staff-card p { margin: 0; }
.staff-card__role { color: var(--gold-dark); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.staff-card .staff-card__subject { color: var(--navy); font-size: .93rem; margin-top: .2rem; }
.staff-card .staff-card__meta { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.photo-row__item { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--gold-light); }
.photo-row__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-row__item:hover img { transform: scale(1.05); }

/* ---------- Careers ---------- */
.job-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 1.4rem 1.6rem; }
.job-card + .job-card { margin-top: 1rem; }
.job-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.job-card h3 { font-size: 1.3rem; margin: 0; }
.job-card__meta { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .9rem; }
.job-card__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.job-card__meta .icon { color: var(--gold-dark); }
.job-card__text { margin-top: .8rem; font-size: .95rem; }
.job-card__text p:last-child { margin-bottom: 0; }
.field input[type="file"] { padding: .55rem; background: var(--paper); cursor: pointer; }

/* ---------- Student Corner ---------- */
.corner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.corner-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.3rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); color: var(--ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.corner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); color: var(--ink); }
.corner-card__icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); border: 3px solid var(--gold); margin-bottom: 1rem; transition: background .3s, color .3s; }
.corner-card:hover .corner-card__icon { background: var(--gold-grad); color: #3b2a07; }
.corner-card h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.corner-card p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.corner-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.corner-tabs { margin-bottom: 2.2rem; }
.tag--new { background: #c0392b; color: #fff; font-size: .62rem; padding: .12rem .5rem; vertical-align: middle; margin-left: .35rem; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.table-wrap + .doc-list { margin-top: 1.6rem; }
.doc-item { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.doc-item__icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; background: var(--cream-2); color: var(--gold-dark); border: 1px solid var(--gold-light); }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item h3 { font-size: 1.12rem; margin: 0; }
.doc-item__meta { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.doc-item__text { margin-top: .35rem; font-size: .92rem; }
.doc-item__text p { margin: 0 0 .3rem; }
.doc-item > .btn, .doc-item > .muted { flex: none; }

.doc-mini { list-style: none; margin: .4rem 0 1.2rem; padding: 0; }
.doc-mini li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.doc-mini li > a, .doc-mini li > span:first-child { flex: 1 1 60%; font-weight: 700; color: var(--navy); }
.doc-mini li > a:hover { color: var(--gold-dark); }
.doc-mini small { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.holiday-table { margin: 0; }
.holiday-table td.nowrap { white-space: nowrap; font-weight: 700; color: var(--navy); }
.holiday-table .t-right { text-align: right; }
.holiday-table .d-block { display: block; }
.holiday-table tr.is-past td { color: var(--muted); }
.holiday-table tr.is-past td.nowrap { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) {
    .doc-item { flex-wrap: wrap; }
    .doc-item > .btn { width: 100%; }
    .holiday-table td.nowrap { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    /* Keep the notice board moving (slower) even with "Reduce motion" on — otherwise later notices can't be read.
       Hovering still pauses it. */
    .ticker__items { animation: ticker 70s linear infinite !important; }
    .ticker:hover .ticker__items { animation-play-state: paused !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
    .main-nav a:not(.btn) { font-size: .95rem; padding: .5rem .5rem; }
    .main-nav a:not(.btn)::after { left: .5rem; right: .5rem; }
}

@media (max-width: 1140px) {
    :root { --header-h: 72px; }
    .hide-md { display: none !important; }
    .brand__tab { width: 70px; height: 84px; padding: 6px 6px 16px; }
    .is-scrolled .brand__tab { width: 64px; height: 76px; }
    .brand__text { display: block; }
    .nav-toggle { display: grid; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 60;
        background: var(--paper); border-left: 3px solid var(--gold); flex-direction: column; justify-content: flex-start;
        padding: 5.5rem 1.5rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease; box-shadow: var(--shadow-lg);
    }
    .nav-open .main-nav { transform: none; }
    .nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(10,20,50,.5); z-index: 45; }
    .nav-open .nav-toggle { position: relative; z-index: 70; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a:not(.btn) { font-size: 1.15rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
    .main-nav a:not(.btn)::after { display: none; }
    .nav-cta { display: inline-flex; margin-top: 1.5rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
    .steps::before { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .welcome-card, .why-grid, .news-layout, .split, .apply-grid, .article-layout { grid-template-columns: 1fr; }
    .welcome-card__image { border-left: 0; border-top: 2px solid var(--gold); max-height: 380px; }
    .split--reverse .split__media { order: 0; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(233, 207, 134, .25); }
    .facility-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery-strip { grid-template-columns: repeat(3, 1fr); }
    .testimonial { grid-template-columns: 1fr; text-align: center; }
    .testimonial img { width: 140px; height: 160px; margin: 0 auto; }
    .message-card, .message-card--reverse { grid-template-columns: 1fr; }
    .message-card img, .message-card--reverse img { order: 0; max-width: 260px; margin: 0 auto; }
    .sidebar { position: static; }
    .timeline::before { left: 8px; }
    .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; text-align: left; padding: 0 0 2rem 2.4rem; }
    .timeline li:nth-child(odd)::before, .timeline li:nth-child(even)::before { left: 1px; right: auto; }
    .hide-lg { display: none !important; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .topbar__contact a:nth-child(2) { display: none; }
    .topbar { font-size: .75rem; }
    .topbar a, .topbar span { white-space: nowrap; }
    .topbar__badge { padding: 2px 10px; }
    .topbar .social { display: none; }
    .brand__text strong { font-size: 1rem; }
    .hero, .page-banner { padding: 0; }
    .hero .frame, .page-banner .frame { border-left: 0; border-right: 0; }
    .corner { width: 44px; height: 44px; }
    .hero__content { padding-bottom: 4.5rem; }
    .hero__actions .btn { width: 100%; }
    .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .facility-mosaic { grid-template-columns: 1fr; }
    .facility-mosaic > * { grid-column: auto !important; grid-row: auto !important; }
    .gallery-strip { grid-template-columns: repeat(2, 1fr); }
    .testimonials { padding: 0; }
    .carousel-btn { display: none; }
    .testimonial { padding: 1.4rem; }
    .video-card { min-height: 340px; }
    .play-btn { left: 50%; }
    .video-card__list { left: 1.2rem; right: 1.2rem; font-size: 1rem; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta-band__actions .btn { width: 100%; }
        .badge-years { left: 10px; }
    .lightbox__nav--prev { left: .5rem; } .lightbox__nav--next { right: .5rem; }
}

.footer-fullname { color: var(--gold-light); font-family: var(--serif); font-style: italic; margin-top: -.4rem; }
.ticker__items a:hover { color: var(--gold-dark); }

/* Header brand: never push the menu button off-screen on small phones */
.brand { min-width: 0; flex-shrink: 1; }
.brand__text { min-width: 0; }
.brand__text strong, .brand__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { flex-shrink: 0; }
@media (max-width: 420px) {
    .brand__text small { display: none; }
    .brand__text strong { font-size: .95rem; white-space: normal; line-height: 1.2; }
    .site-header__inner { gap: .6rem; }
}

/* ==========================================================================
   MODERN header (Settings → School Details → Appearance)
   Round logo + school name, uppercase menu on a navy bar. When scrolling,
   the logo row slides away and the menu bar stays pinned at the top.
   ========================================================================== */
.site-header--modern { --masthead-h: 108px; top: calc(-1 * var(--masthead-h)); }
.site-header--modern.is-scrolled { box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--masthead-h); }
.masthead__brand { display: flex; align-items: center; gap: 1.1rem; color: var(--ink); min-width: 0; }
.masthead__brand:hover { color: var(--ink); }
.masthead__logo {
    width: 86px; height: 86px; flex-shrink: 0; border-radius: 50%; padding: 3px; background: var(--paper);
    box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px var(--paper), 0 0 0 7px var(--gold-light), 0 8px 18px -8px rgba(0,0,0,.45);
    transition: transform .3s;
}
.masthead__brand:hover .masthead__logo { transform: rotate(-6deg) scale(1.03); }
.masthead__logo .crest { width: 100%; height: 100%; object-fit: contain; display: block; }
.masthead__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.masthead__text strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.masthead__text span { font-family: 'Montserrat', var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }
.masthead__text small { font-family: var(--serif); font-style: italic; font-size: .98rem; color: var(--gold-dark); margin-top: .2rem; }
.masthead__text strong, .masthead__text span, .masthead__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masthead__call { display: flex; align-items: center; gap: .65rem; color: var(--ink); padding-right: 1.2rem; margin-right: .3rem; border-right: 1px solid var(--line); }
.masthead__call:hover { color: var(--gold-dark); }
.masthead__call-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--gold-dark); border: 1px solid var(--gold-light); }
.masthead__call small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.masthead__call b { font-family: 'Montserrat', var(--sans); font-weight: 600; font-size: .95rem; color: var(--navy); }
.navbar { background: var(--navy); border-top: 3px solid var(--gold); }

@media (min-width: 1141px) {
    .site-header--modern .main-nav { justify-content: center; }
    .site-header--modern .main-nav ul { gap: 0; flex-wrap: wrap; justify-content: center; }
    .site-header--modern .main-nav a:not(.btn) {
        font-family: 'Montserrat', var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .09em;
        text-transform: uppercase; color: #e6dfc6; padding: 1.05rem 1.1rem;
    }
    .site-header--modern .main-nav a:not(.btn):hover,
    .site-header--modern .main-nav a.is-active { color: var(--gold-light); background: rgba(255,255,255,.05); }
    .site-header--modern .main-nav a:not(.btn)::after { left: 1.1rem; right: 1.1rem; bottom: 0; height: 3px; }
    /* Tighter spacing so a longer menu (10+ items) still fits on one line. */
    .site-header--modern .main-nav ul:has(> li:nth-child(10)) a:not(.btn) {
        font-size: clamp(.72rem, .55rem + .25vw, .8rem); letter-spacing: .06em; padding-inline: clamp(.5rem, -.2rem + .9vw, .95rem);
    }
    .site-header--modern .main-nav ul:has(> li:nth-child(10)) a:not(.btn)::after { left: .6rem; right: .6rem; }
    .site-header--modern .main-nav ul:has(> li:nth-child(12)) a:not(.btn) {
        font-size: clamp(.68rem, .45rem + .3vw, .8rem); letter-spacing: clamp(.03em, -.1em + .015vw, .06em); padding-inline: clamp(.38rem, -.6rem + 1vw, .9rem);
    }
}

@media (max-width: 1140px) {
    .site-header--modern { --masthead-h: 80px; top: 0; }
    .site-header--modern .navbar { background: none; border: 0; }
    .masthead__call { display: none; }
    .site-header--modern .main-nav a:not(.btn) { font-family: 'Montserrat', var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
    .masthead__logo { width: 60px; height: 60px; }
    .masthead__text strong { font-size: 1.25rem; }
    .masthead__text small { font-size: .85rem; }
}
@media (max-width: 640px) {
    .masthead__text span { display: none; }
    .masthead__brand { gap: .75rem; }
    .masthead__logo { width: 52px; height: 52px; box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px var(--paper), 0 0 0 5px var(--gold-light); }
    .masthead__text strong { font-size: 1.05rem; }
}
@media (max-width: 420px) {
    .masthead__text small { display: none; }
    .masthead__text strong { white-space: normal; line-height: 1.2; }
}

/* ==========================================================================
   DARK header — same look as the footer: navy background, full laurel logo,
   white name, gold motto. Builds on the MODERN header above.
   ========================================================================== */
.site-header--dark {
    background: var(--navy);
    background-image: radial-gradient(ellipse at 20% 0%, rgba(236, 212, 143, .12), transparent 55%),
                      linear-gradient(180deg, #13306b 0%, var(--navy) 100%);
    border-bottom: 0;
}
.site-header--dark .masthead__brand, .site-header--dark .masthead__brand:hover { color: #fff; }
.site-header--dark .masthead__logo {
    width: 104px; height: 90px; border-radius: 0; padding: 0; background: none; box-shadow: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.site-header--dark .masthead__brand:hover .masthead__logo { transform: scale(1.04); }
.site-header--dark .masthead__text strong { color: #fff; }
.site-header--dark .masthead__text span { color: var(--gold-light); opacity: .9; }
.site-header--dark .masthead__text small { color: var(--gold-light); }
.site-header--dark .masthead__call { color: #fff; border-right-color: rgba(236, 212, 143, .3); }
.site-header--dark .masthead__call:hover { color: var(--gold-light); }
.site-header--dark .masthead__call-icon { background: rgba(255,255,255,.06); color: var(--gold-light); border-color: rgba(236, 212, 143, .5); }
.site-header--dark .masthead__call small { color: #b9b29a; }
.site-header--dark .masthead__call b { color: #fff; }
.site-header--dark .navbar { background: var(--navy-2); border-top: 1px solid rgba(236, 212, 143, .35); border-bottom: 3px solid var(--gold); }
.site-header--dark .icon-btn { color: var(--gold-light); }
.site-header--dark .icon-btn:hover { background: rgba(255,255,255,.08); }
/* Topbar sits flush on the dark header */
.site-header--dark { border-top-color: var(--gold); }

@media (max-width: 1140px) {
    .site-header--dark .masthead__logo { width: 72px; height: 62px; }
    .site-header--dark .navbar { border: 0; background: none; }
    .site-header--dark { border-bottom: 3px solid var(--gold); }
}
@media (max-width: 640px) {
    .site-header--dark .masthead__logo { width: 62px; height: 54px; box-shadow: none; }
}
/* Close (X) button sits over the light menu drawer when open */
.nav-open .site-header--dark .nav-toggle { color: var(--gold-dark); background: var(--cream-2); }

/* ==========================================================================
   Compact sizing for MODERN + DARK headers (header was too tall)
   ========================================================================== */
.site-header--modern { --masthead-h: 82px; }
.masthead { gap: 1.2rem; }
.masthead__brand { gap: .85rem; }
.masthead__logo { width: 64px; height: 64px; }
.site-header--dark .masthead__logo { width: 76px; height: 66px; }
.masthead__text strong { font-size: 1.38rem; }
.masthead__text span { font-size: .62rem; margin-top: .2rem; letter-spacing: .13em; }
.masthead__text small { font-size: .86rem; margin-top: .1rem; }
.masthead__call-icon { width: 36px; height: 36px; }
.masthead__call small { font-size: .64rem; }
.masthead__call b { font-size: .88rem; }
@media (min-width: 1141px) {
    .site-header--modern .main-nav a:not(.btn) { padding: .78rem 1.05rem; font-size: .78rem; }
}
@media (max-width: 1140px) {
    .site-header--modern { --masthead-h: 70px; }
    .masthead__logo { width: 52px; height: 52px; }
    .site-header--dark .masthead__logo { width: 60px; height: 52px; }
    .masthead__text strong { font-size: 1.15rem; }
}
@media (max-width: 640px) {
    .site-header--modern { --masthead-h: 64px; }
    .masthead__logo { width: 46px; height: 46px; }
    .site-header--dark .masthead__logo { width: 52px; height: 45px; }
    .masthead__text strong { font-size: 1rem; }
}

/* Phone + email opposite the logo (MODERN / DARK headers) */
.masthead__contacts { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.4rem; margin-right: .2rem; border-right: 1px solid var(--line); }
.masthead__contacts .masthead__call { padding-right: 0; margin-right: 0; border-right: 0; }
.site-header--dark .masthead__contacts { border-right-color: rgba(236, 212, 143, .3); }
.masthead__call b { white-space: nowrap; }
@media (max-width: 1240px) {
    .masthead__contacts { gap: 1.1rem; }
    .masthead__text span { display: none; }   /* full name gives way so phone & email fit */
}
@media (max-width: 1140px) {
    .masthead__contacts { display: none; }
}

/* Full-width slider & banners: keep the gold corner ornaments inside the page margins */
.hero .corner--tl, .hero .corner--bl, .page-banner .corner--tl, .page-banner .corner--bl { left: max(16px, calc((100vw - var(--container)) / 2 - 40px)); }
.hero .corner--tr, .hero .corner--br, .page-banner .corner--tr, .page-banner .corner--br { right: max(16px, calc((100vw - var(--container)) / 2 - 40px)); }

/* Recognition strip: board affiliation, affiliation no., UDISE code */
.recognition { display: grid; gap: .8rem; }
.recognition__item { display: flex; align-items: center; gap: .7rem; }
.recognition__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--gold-dark); border: 1px solid var(--gold-light); }
.recognition__item small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.recognition__item b { font-family: "Montserrat", var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em; font-variant-numeric: lining-nums; color: var(--navy); line-height: 1.3; }
.recognition--stack { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.recognition--band { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; padding: 1.4rem 1.6rem; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.recognition--footer { margin: 0 0 1.4rem; gap: .55rem; }
.recognition--footer .recognition__icon { width: 30px; height: 30px; background: rgba(255,255,255,.05); border-color: rgba(236, 212, 143, .4); color: var(--gold-light); }
.recognition--footer .recognition__icon .icon { width: 15px; height: 15px; }
.recognition--footer small { color: #a9a28a; font-size: .64rem; }
.recognition--footer b { color: #f1ead2; font-family: var(--sans); font-weight: 700; font-size: .88rem; }
@media (max-width: 900px) { .recognition--band { grid-template-columns: 1fr; } }

/* ---------- Fee payment ---------- */
.fee-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; max-width: 1040px; margin: 0 auto; }
.fee-card {
    text-align: center; color: #e9e1c5; padding: 2.4rem 2rem; border: 2px solid var(--gold);
    background: radial-gradient(ellipse at 50% 0%, rgba(236, 212, 143, .16), transparent 60%), linear-gradient(180deg, #13306b, var(--navy-2));
    box-shadow: var(--shadow-lg), inset 0 0 0 6px var(--navy-2), inset 0 0 0 7px rgba(236, 212, 143, .35);
}
.fee-card__icon { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--gold-grad); color: #3b2a07; margin-bottom: 1rem; }
.fee-card small { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--gold-light); }
.fee-card__number { font-family: 'Montserrat', var(--sans); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: .06em; color: #fff; margin: .4rem 0 1rem; font-variant-numeric: lining-nums; }
.fee-card__copy { text-transform: none; letter-spacing: .02em; }
.fee-card__apps { font-size: .85rem; color: #b9b29a; margin: 1rem 0 0; }
.fee-card__divider { height: 1px; background: rgba(236, 212, 143, .3); margin: 1.6rem 0; }
.fee-card__note { color: #fff; font-size: 1rem; }
.fee-card .fee-card__wa { margin-top: .8rem; letter-spacing: .06em; text-transform: none; color: #c8c0a4; font-size: .85rem; }
.btn-whatsapp { background: #25d366; color: #073b1c; border-color: #1fb457; text-transform: none; letter-spacing: .01em; font-size: 1rem; padding: .85rem 1.4rem; }
.btn-whatsapp:hover { background: #1fb457; color: #fff; }
.fee-steps__title { font-size: 1.6rem; margin-bottom: 1.2rem; }
.fee-steps { display: grid; gap: 1rem; }
.fee-steps li { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.fee-steps__num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-family: var(--serif); font-size: 1.15rem; border: 2px solid var(--gold); }
.fee-steps b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.fee-steps p { margin: .15rem 0 0; color: var(--muted); font-size: .94rem; }
.fee-help { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.4rem; color: var(--muted); }
.fee-help .icon { color: var(--gold); margin-top: 3px; }
.admission-fee-box { margin-top: 1.4rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); display: flex; gap: .9rem; align-items: center; }
.admission-fee-box > .icon { color: var(--gold-dark); }
.admission-fee-box p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .fee-grid { grid-template-columns: 1fr; } }

/* ---------- Academics: subjects by class ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.scheme-table { margin: 0; }
.scheme-table td { vertical-align: top; line-height: 1.6; }
.scheme-table td b { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.scheme-table .nowrap { white-space: nowrap; color: var(--gold-dark); font-weight: 700; }
@media (max-width: 640px) { .scheme-table .nowrap { white-space: normal; } }

/* ---------- Academics: +1 / +2 streams ---------- */
.stream-card { background: var(--paper); border: 2px solid var(--gold-light); border-top: 4px solid var(--gold); padding: 2rem 1.6rem 1.8rem; text-align: center; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.stream-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stream-card__icon { width: 68px; height: 68px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); border: 3px solid var(--gold); }
.stream-card h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.stream-card p { color: var(--muted); font-size: .95rem; }
.stream-card__label { display: block; margin-top: auto; padding-top: .6rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.stream-card__subjects { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: .7rem; }
.stream-card__subjects li { background: var(--cream-2); border: 1px solid var(--gold-light); color: var(--ink); font-size: .85rem; padding: .3rem .75rem; border-radius: 20px; }
.streams-common { display: flex; gap: .6rem; align-items: center; justify-content: center; text-align: center; margin: 2rem auto 0; max-width: 760px; color: var(--ink); font-weight: 700; }
.streams-common .icon { color: #fff; background: var(--gold); border-radius: 50%; padding: 3px; flex-shrink: 0; }

/* Academic journey on the home page: one column per stage */
.grid-stages { grid-template-columns: repeat(var(--cols, 4), 1fr); }
@media (max-width: 1140px) { .grid-stages { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid-stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-stages { grid-template-columns: 1fr; } }

/* ==========================================================================
   Dropdown menus (all header styles)
   ========================================================================== */
.nav-caret { display: inline-block; width: 0; height: 0; margin-left: .4em; vertical-align: .18em; border-left: .3em solid transparent; border-right: .3em solid transparent; border-top: .36em solid currentColor; opacity: .75; transition: transform .2s; }
.submenu-toggle { display: none; }
.main-nav .dropdown { display: block; list-style: none; margin: 0; padding: 0; }
.main-nav .dropdown a:not(.btn)::after { display: none; }

@media (min-width: 1141px) {
    .main-nav .has-dropdown { position: relative; }
    .main-nav .dropdown {
        position: absolute; top: 100%; left: 0; z-index: 80; min-width: 230px; padding: .45rem 0;
        background: var(--paper); border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav .has-dropdown:hover > .dropdown,
    .main-nav .has-dropdown:focus-within > .dropdown,
    .main-nav .has-dropdown.is-touch-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
    .main-nav .has-dropdown:hover > a .nav-caret,
    .main-nav .has-dropdown:focus-within > a .nav-caret { transform: rotate(180deg); }
    /* The last items open towards the left so they stay on screen. */
    .main-nav > ul > .has-dropdown:nth-last-child(-n+2) > .dropdown { left: auto; right: 0; }

    /* Dropdown links look the same in every header style. */
    .main-nav .dropdown a:not(.btn),
    .site-header--modern .main-nav .dropdown a:not(.btn) {
        display: block; padding: .62rem 1.3rem; white-space: nowrap; background: none;
        font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--navy);
        border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
    }
    .main-nav .dropdown a:not(.btn):hover,
    .main-nav .dropdown a:not(.btn):focus-visible,
    .site-header--modern .main-nav .dropdown a:not(.btn):hover,
    .main-nav .dropdown a.is-active,
    .site-header--modern .main-nav .dropdown a.is-active { background: var(--cream-2); color: var(--gold-dark); border-left-color: var(--gold); }
}

/* Mobile drawer: tap the arrow to open a submenu. */
@media (max-width: 1140px) {
    .main-nav .has-dropdown { display: flex; flex-wrap: wrap; align-items: stretch; }
    .main-nav .has-dropdown > a { flex: 1; }
    .main-nav .has-dropdown > a .nav-caret { display: none; }
    .submenu-toggle {
        display: grid; place-items: center; width: 48px; background: none; border: 0; border-bottom: 1px solid var(--line);
        color: var(--gold-dark); cursor: pointer;
    }
    .submenu-toggle .nav-caret { margin: 0; font-size: 1.3rem; }
    .has-dropdown.is-open > .submenu-toggle .nav-caret { transform: rotate(180deg); }
    .main-nav .dropdown { flex-basis: 100%; display: none; padding: .2rem 0 .5rem 1rem; border-bottom: 1px solid var(--line); background: var(--cream); }
    .main-nav .has-dropdown.is-open > .dropdown { display: block; }
    .main-nav .dropdown a:not(.btn),
    .site-header--modern .main-nav .dropdown a:not(.btn) { font-size: 1rem; padding: .55rem .2rem; border-bottom: 0; text-transform: none; letter-spacing: .01em; font-family: var(--sans); font-weight: 600; }
    .main-nav .dropdown a.is-active { color: var(--gold-dark); }
}
