/* ==========================================================================
   SFS ICSE School, Koppal
   Palette comes from the school crest and the original site: navy, gold, a
   touch of crest red. Type: Instrument Serif (headings) and Inter (text).
   ========================================================================== */
:root {
    --navy-950: #08173a;
    --navy-900: #0d2552;
    --navy-800: #123268;
    --navy-700: #1a4488;
    --navy-600: #2563b0;
    --gold: #d4af37;
    --gold-deep: #8f6d17;
    --red: #cf2027;
    --paper: #f2f6fb;
    --cream: #faf9f4;
    --white: #fff;
    --ink: #0f1b33;
    --body: #4a566b;
    --line: rgba(15, 27, 51, .12);
    --line-light: rgba(255, 255, 255, .14);

    --serif: "Instrument Serif Fit", "Instrument Serif", "Times New Roman", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --max: 1280px;
    --gutter: clamp(16px, 4vw, 48px);
    --section: clamp(72px, 10vw, 136px);
    --radius: 6px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 100px;

    /* One size for every section heading and one for every section paragraph. */
    --h2-size: clamp(1.9rem, 3.8vw, 3.1rem);
    --p-size: 1.0625rem;
}
/* --- Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
/* Blocks that slide in from the side start outside the page; clip them so they never add a sideways scrollbar. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul,
ol { margin: 0; padding: 0; list-style: none; }
h1,
h2,
h3,
h4,
p,
figure,
blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
/* --- Shared pieces ------------------------------------------------------ */
.heading {
    font-family: var(--serif);
    font-weight: 500;
    font-size: var(--h2-size);
    line-height: 1.08;
    letter-spacing: -.015em;
    color: var(--ink);
}
.heading__lead {
    display: block;
    margin-bottom: .5em;
    font-size: .38em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--gold-deep);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 8px 28px;
    border-radius: 999px;
    background: var(--navy-700);
    color: var(--white);
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: .02em;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-900);
    transition: transform .45s var(--ease), background-color .35s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--navy-900); }
.btn:hover i { background: var(--navy-900); color: var(--gold); transform: translateX(4px); }
.round-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--navy-700);
    font-size: 1.125rem;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
button.round-btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
button.round-btn:active { transform: scale(.94); }
button.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn--light { border-color: rgba(255, 255, 255, .3); color: var(--white); }
button.round-btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 6px;
    font-weight: 700;
    color: var(--navy-700);
    background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
    transition: color .3s var(--ease), background-size .45s var(--ease);
}
.link-arrow i { transition: transform .45s var(--ease); }
.link-arrow:hover { color: var(--gold-deep); background-size: 40% 1px; }
.link-arrow:hover i { transform: translateX(6px); }
.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 700;
    font-size: .9375rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy-700);
    transition: color .3s var(--ease);
}
.text-btn i { transition: transform .4s var(--ease); }
.text-btn:hover { color: var(--gold-deep); }
.text-btn:first-child:hover i { transform: translateX(-5px); }
.text-btn:last-child:hover i { transform: translateX(5px); }
/* --- Scroll reveal (only when JavaScript runs) -------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    /* "translate" is the hover lift, so it can run on revealed elements without clashing with the reveal transform. */
    transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), translate .45s var(--ease), box-shadow .45s var(--ease);
}
.js [data-reveal="rise"] { transform: translateY(40px) scale(.985); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
/* The clip sits on the image, not on the observed element, so the observer still sees the element. */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.12);
    transition: clip-path 1.2s var(--ease) var(--d, 0ms), transform 1.6s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in img { clip-path: inset(0); transform: none; }
/* --- Top bar ------------------------------------------------------------ */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .86); font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 40px; }
.topbar__contact { display: flex; align-items: center; gap: 28px; min-width: 0; white-space: nowrap; overflow: hidden; }
.topbar__contact li { display: flex; align-items: center; gap: 8px; }
.topbar__contact .fa { color: var(--gold); }
.topbar__contact a { color: inherit; transition: color .25s var(--ease); }
.topbar__contact a:hover { color: var(--gold); }
.topbar__contact li:last-child { gap: 8px; }
.topbar__contact li:last-child a + a { margin-left: 4px; }
/* Phones: only the phone numbers fit; the email stays in the footer. */
@media (max-width: 767px) {
    .topbar__contact li:last-child { display: none; }
}
@media (max-width: 425px) {
    .topbar { display: none; }
}
.ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.ticker-strip { background: var(--gold); color: var(--navy-900); }
.ticker-strip .ticker { padding-block: 14px; font-size: .9375rem; }
.ticker__link { display: block; font-weight: 700; letter-spacing: .02em; color: inherit; }
.ticker__track { display: inline-flex; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker__item { flex: none; padding-right: .5em; }
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.social { display: flex; gap: 2px; flex: none; }
.social a {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    color: rgba(255, 255, 255, .78);
    transition: color .25s var(--ease), background-color .25s var(--ease);
}
.social a:hover { color: var(--navy-900); background: var(--gold); }
/* --- Header ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding-block: 12px;
    /* The floating bar overlaps the top of the hero. */
    margin-bottom: calc(-1 * (var(--header-h) + 24px));
    pointer-events: none;
}
.site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
    /* Boxed to the same width as the page content below. */
    width: calc(100% - 2 * var(--gutter));
    max-width: calc(var(--max) - 2 * var(--gutter));
    padding-inline: 16px;
    border-radius: 18px;
    background: rgba(8, 23, 58, .86);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 48px -24px rgba(0, 0, 0, .55);
    pointer-events: auto;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck .site-header__bar { background: rgba(8, 23, 58, .97); }
.nav { margin-inline: auto; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 5px 5px 5px 24px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-900);
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.header-cta i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold);
    font-size: .95rem;
    transform: rotate(45deg);
    transition: transform .45s var(--ease), background-color .3s var(--ease);
}
.header-cta:hover { background: var(--white); }
.header-cta:hover i { transform: rotate(90deg); }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .005em;
    white-space: nowrap;
    transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav__link:hover,
.nav__item:focus-within > .nav__link { color: var(--gold); }
/* Current page is dimmed, as in the reference header. */
.nav__link[aria-current="page"] { color: rgba(255, 255, 255, .55); }
/* Gold line that draws in under a menu item on hover, keyboard focus and for the current page. */
.nav__link { position: relative; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__item:hover > .nav__link::after,
.nav__item:focus-within > .nav__link::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__item:not(:hover) > .nav__link:not(:hover)::after { transform-origin: right; }
.nav__caret {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .3s var(--ease), margin .3s var(--ease);
}
.nav__sub {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 5;
    min-width: 260px;
    padding: 10px;
    background: var(--white);
    border-top: 2px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 28px 56px -24px rgba(13, 37, 82, .4), 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s;
}
/* Invisible bridge so the pointer can travel from the link to the panel. */
.nav__sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__item:nth-last-child(-n+3) .nav__sub { left: auto; right: 0; }
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.nav__item:hover > .nav__link .nav__caret,
.nav__item:focus-within > .nav__link .nav__caret { transform: rotate(225deg); margin-top: 4px; }
.nav__sub a {
    display: block;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    transition: background-color .22s var(--ease), color .22s var(--ease), padding-left .3s var(--ease);
}
.nav__sub a:hover,
.nav__sub a:focus-visible { background: var(--paper); color: var(--navy-700); padding-left: 20px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--white);
    transition: transform .5s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand__name {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--white);
}
.nav-toggle { display: block; flex: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--white); border-radius: 2px; transition: background-color .25s var(--ease), right .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; right: 18px; }
.nav-toggle:hover span { background: var(--gold); }
.nav-toggle:hover span:nth-child(3) { right: 8px; }
/* --- Mobile drawer ------------------------------------------------------ */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(8, 23, 58, .6); opacity: 0; transition: opacity .35s var(--ease); }
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 90vw);
    padding: 84px 28px 40px;
    overflow-y: auto;
    background: var(--navy-900);
    color: var(--white);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border: 1px solid var(--line-light); border-radius: 50%; }
.drawer__close span,
.drawer__close span::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: var(--white); transform: rotate(45deg); }
.drawer__close span::after { content: ""; transform: rotate(90deg); }
.drawer__item { border-bottom: 1px solid var(--line-light); }
.drawer__row { display: flex; align-items: center; }
.drawer__row > a { flex: 1; padding: 17px 0; font-family: var(--serif); font-size: 1.3rem; }
.drawer__toggle { display: grid; place-items: center; width: 46px; height: 46px; color: var(--gold); }
.drawer__toggle[aria-expanded="true"] .nav__caret { transform: rotate(225deg); margin-top: 4px; }
.drawer__sub { padding: 0 0 16px 14px; border-left: 2px solid var(--gold); margin-bottom: 16px; }
.drawer__sub[hidden] { display: none; }
.drawer__sub a { display: block; padding: 9px 0; font-size: .975rem; color: rgba(255, 255, 255, .82); }
.drawer__sub a:hover { color: var(--gold); }
/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    /* Slider photo fills the whole section; rail and quick links sit on top of it. */
    min-height: clamp(560px, calc(41.67vw + 120px), 900px);
    background: var(--navy-800);
    color: var(--white);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(13, 37, 82, .55) 0%, rgba(13, 37, 82, 0) 24%),
        linear-gradient(0deg, rgba(8, 23, 58, .97) 0%, rgba(8, 23, 58, .82) 24%, rgba(8, 23, 58, 0) 58%);
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__content { position: relative; z-index: 2; }
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 0s 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.035); transition: transform 1.8s var(--ease); }
.hero__slide.is-active img { transform: none; }
.hero__rail { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); padding-block: clamp(14px, 2vw, 22px); }
.hero__count { display: flex; align-items: baseline; gap: 8px; flex: none; font-family: var(--serif); font-size: 1.05rem; color: rgba(255, 255, 255, .5); }
.hero__count span:first-child { font-size: 1.6rem; color: var(--white); min-width: 1.4em; }
.hero__count i { font-style: normal; }
.hero__bars { display: flex; flex: 1; gap: 8px; }
.hero__bar { position: relative; flex: 1; height: 28px; }
.hero__bar::before,
.hero__bar span { content: ""; position: absolute; top: 50%; left: 0; height: 2px; margin-top: -1px; border-radius: 2px; }
.hero__bar::before { width: 100%; background: rgba(255, 255, 255, .22); transition: background-color .3s; }
.hero__bar:hover::before { background: rgba(255, 255, 255, .5); }
.hero__bar span { width: 0; background: var(--gold); }
.hero__bar.is-done span { width: 100%; }
.hero__bar.is-active span { width: 100%; }
.is-playing .hero__bar.is-active span { animation: bar var(--slider-duration, 6000ms) linear both; }
.is-playing.is-paused .hero__bar.is-active span { animation-play-state: paused; }
@keyframes bar { from { width: 0; } to { width: 100%; } }
.hero__arrows { display: flex; gap: 10px; flex: none; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.quick > li + li { border-left: 1px solid var(--line-light); }
.quick__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 28px);
}
.quick > li:first-child .quick__item { padding-left: 0; }
.quick__item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    /* White, not gold: gold would blend into the gold ticker strip under the hero. */
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.quick__item:hover::after,
.quick__item:focus-visible::after { transform: scaleX(1); }
.quick__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(245, 181, 15, .45);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.15rem;
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.quick__item:hover .quick__icon { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.quick__label { font-size: .9rem; font-weight: 800; line-height: 1.35; letter-spacing: .16em; }
.quick__label span { display: block; font-weight: 400; color: rgba(255, 255, 255, .72); }
.quick__arrow { margin-left: auto; color: var(--gold); opacity: 0; transform: translateX(-10px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.quick__item:hover .quick__arrow { opacity: 1; transform: none; }
/* --- Principal ---------------------------------------------------------- */
.principal { background: var(--paper); }
.principal__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: center;
}
.principal__figure { position: relative; margin: 26px 0 34px 26px; }
.principal__figure::before,
.principal__figure::after { content: ""; position: absolute; border-radius: var(--radius); }
.principal__figure::before { inset: -26px 38% 38% -26px; background: var(--navy-700); }
.principal__figure::after { inset: 34% -20px -20px 34%; border: 1px solid var(--gold); }
.principal__photo { position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius); aspect-ratio: 526 / 559; }
.principal__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.principal__figure:hover .principal__photo img { transform: scale(1.04); }
.principal__plate {
    position: absolute;
    right: -20px;
    bottom: -34px;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 18px 30px 18px 24px;
    background: var(--white);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 24px 48px -22px rgba(13, 37, 82, .45);
}
.principal__plate strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.principal__plate span { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.principal__text p { font-size: var(--p-size); line-height: 1.9; }
.principal__text p + p { margin-top: 1.3em; }
.principal__text p:first-child::first-letter {
    float: left;
    margin: .09em .05em 0 0;
    font-family: var(--serif);
    font-size: 4.1em;
    font-weight: 500;
    line-height: .82;
    color: var(--navy-700);
}
.principal__text blockquote {
    margin-top: clamp(28px, 3.4vw, 44px);
    padding-left: clamp(20px, 2.4vw, 32px);
    border-left: 3px solid var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.1vw, 1.8rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.42;
    color: var(--ink);
}
/* --- Story and school levels -------------------------------------------- */
/* Story photo. */
/* Text sits on a white card that overlaps the photo. */
.levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3.2vw, 44px);
    margin-top: clamp(56px, 8vw, 112px);
}
.level { position: relative; }
.level:nth-child(2) { margin-top: clamp(0px, 4vw, 56px); }
.level__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 334 / 190; background: var(--paper); }
.level__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.level:hover .level__media img { transform: scale(1.06); }
.level__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: border-color .4s var(--ease); }
.level:hover .level__body { border-color: var(--gold); }
.level__tag { font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.level__title { margin-top: 4px; font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; color: var(--ink); }
.level__title a::after { content: ""; position: absolute; inset: 0; }
.level__tag { position: relative; z-index: 1; }
.level .round-btn { transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease); }
.level:hover .round-btn { background: var(--navy-700); border-color: var(--navy-700); color: var(--gold); transform: rotate(-35deg); }
/* --- Statistics --------------------------------------------------------- */
.stats { background: var(--navy-800); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(40px, 5.4vw, 76px) clamp(16px, 2.6vw, 40px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-light); }
.stat__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .05em;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.stat__plus { font-weight: 300; color: var(--gold); }
.stat__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border: 1px solid rgba(245, 181, 15, .55); border-radius: 50%; color: var(--gold); font-size: 1.5rem; transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.stat:hover .stat__icon { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); }
.stat__label { margin-top: 18px; font-size: .8125rem; font-weight: 700; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
/* --- Facilities --------------------------------------------------------- */
.fac { background: var(--white); }
.fac .heading { margin-bottom: clamp(32px, 4.4vw, 60px); }
.fac__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(220px, 21vw, 300px);
    gap: clamp(12px, 1.6vw, 22px);
}
.fac__card { position: relative; overflow: hidden; border-radius: 18px; background: var(--navy-800); box-shadow: 0 30px 50px -38px rgba(13, 37, 82, .7); }
.fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: span 2; }
.fac__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fac__card:hover img { transform: scale(1.07); }
.fac__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 23, 58, .92) 0%, rgba(8, 23, 58, .35) 42%, rgba(8, 23, 58, 0) 68%); }
.fac__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 16px; padding: clamp(16px, 2vw, 26px); }
.fac__num { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid rgba(245, 181, 15, .7); border-radius: 50%; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--gold); transition: background-color .4s var(--ease), color .4s var(--ease); }
.fac__card:hover .fac__num { background: var(--gold); color: var(--navy-900); }
.fac__title { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.2; color: var(--white); }
@media (max-width: 991px) {
    .fac__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 575px) {
    .fac__grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 230px; }
    .fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: auto; }
}
/* --- Gallery collage ---------------------------------------------------- */
/* Base layout (phones, tablets, reduced motion): headline, button, then a simple photo grid. */
.gal { background: var(--navy-950); color: var(--white); overflow: clip; padding: clamp(64px, 8vw, 112px) clamp(12px, 1.4vw, 20px) clamp(48px, 7vw, 80px); }
.gal__overlay { text-align: center; padding-bottom: clamp(20px, 3vw, 32px); }
.gal__intro { max-width: 52rem; margin-inline: auto; padding-bottom: clamp(20px, 3vw, 32px); }
.gal__headline .heading__lead { color: var(--gold); margin-bottom: .35em; }
.gal__headline { font-family: var(--serif); font-size: var(--h2-size); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; color: var(--white); }
.gal__headline em { font-style: normal; color: var(--gold); }
.gal__action { display: flex; justify-content: center; }
.gal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); max-width: 1700px; margin-inline: auto; }
.gal__col { display: contents; }
.gal__tile { display: block; overflow: hidden; border-radius: 16px; background: var(--navy-800); aspect-ratio: 1 / 1; }
.gal__col--3 .gal__tile { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gal__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal__tile:hover img { transform: scale(1.08); }
/* Desktop with motion: the band sticks to the screen while you scroll. The photos start in a stepped
   layout around the headline, the headline fades away, and the photos settle into a full grid. */
.gal.is-scroll-driven { height: 250vh; padding: 0; }
.gal.is-scroll-driven .gal__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: calc(var(--header-h) + 36px) clamp(12px, 1.4vw, 20px) 70px;
    box-sizing: border-box;
}
.gal.is-scroll-driven .gal__overlay {
    position: absolute;
    top: calc(var(--header-h) + 40px);
    left: 50%;
    z-index: 2;
    width: min(52rem, 56%);
    padding: 0;
    /* Text keeps full strength and rides up off the top of the screen, ahead of the rising photos. */
    transform: translate(-50%, calc(var(--gp, 0) * var(--gal-d, -80vh) * -1));
    pointer-events: none;
}
.gal.is-scroll-driven .gal__intro { padding-bottom: clamp(18px, 2.4vw, 30px); }
.gal.is-scroll-driven .gal__action { pointer-events: auto; }
.gal.is-scroll-driven .gal__action .btn { visibility: visible; }
.gal.is-scroll-driven .gal__grid {
    height: 100%;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
    gap: clamp(10px, 1.2vw, 18px);
}
.gal.is-scroll-driven .gal__col { display: flex; flex-direction: column; gap: clamp(10px, 1.2vw, 18px); min-height: 0; will-change: transform; }
.gal.is-scroll-driven .gal__tile,
.gal.is-scroll-driven .gal__col--3 .gal__tile { flex: 1 1 0; min-height: 0; aspect-ratio: auto; grid-column: auto; }
.gal.is-scroll-driven .gal__col--2,
.gal.is-scroll-driven .gal__col--4 { transform: translate3d(0, calc((1 - var(--gp, 0)) * var(--gal-o2, 46vh)), 0); }
.gal.is-scroll-driven .gal__col--3 { transform: translate3d(0, calc((1 - var(--gp, 0)) * var(--gal-o3, 60vh)), 0) scale(calc(.8 + var(--gp, 0) * .2)); transform-origin: 50% 100%; }
/* --- Kala Kendra -------------------------------------------------------- */
.kala { background: var(--paper); overflow: hidden; }
.kala__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 112px);
    align-items: center;
}
.kala__wall { padding: clamp(28px, 5vw, 72px); background: var(--navy-700); border-radius: var(--radius); }
.kala__frame {
    display: block;
    padding: clamp(8px, 1.2vw, 16px);
    background: var(--white);
    box-shadow: 0 36px 70px -26px rgba(0, 0, 0, .7);
    transform: rotate(-2.4deg);
    transition: transform .9s var(--ease);
}
.kala__frame:hover { transform: rotate(0) scale(1.015); }
.kala__frame img { width: 100%; }
.kala__title {
    margin-bottom: clamp(24px, 3vw, 40px);
    font-family: var(--serif);
    font-size: var(--h2-size);
    font-style: italic;
    font-weight: 600;
    line-height: .96;
    letter-spacing: -.02em;
    color: var(--ink);
}
/* --- News and events ---------------------------------------------------- */
.news { overflow: hidden; }
.news__arrows { display: flex; gap: 10px; }
/* --- Notice board ------------------------------------------------------- */
.notice {
    position: relative;
    color: var(--white);
    background-color: var(--navy-800);
    /* Soft glows, and a square grid. */
    background-image:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 176, .45), transparent 42%),
        radial-gradient(circle at 92% 88%, rgba(201, 154, 46, .16), transparent 38%);
}
.notice__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.notice__title { font-family: var(--serif); font-size: var(--h2-size); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; }
/* Notice and Board sit on one line; Board is the italic gold word. */
.notice__title > span:last-child { font-style: italic; color: var(--gold); }
.notice__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.notice__list { border-top: 1px solid var(--line-light); }
.notice__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 1.0625rem;
    font-weight: 600;
    transition: color .3s var(--ease), padding .4s var(--ease), border-color .3s var(--ease);
}
.notice__list a i { color: var(--gold); opacity: .55; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.notice__list a:hover { color: var(--gold); padding-left: 12px; border-color: var(--gold); }
.notice__list a:hover i { opacity: 1; transform: translateX(-6px); }
/* --- Testimonials ------------------------------------------------------- */
.testi { background: var(--paper); }
.testi__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.testi__nav { display: flex; gap: 28px; margin-top: clamp(20px, 3vw, 40px); }
.testi__main { padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--line); }
.testi__slides { display: grid; }
.testi__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.testi__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.testi__text { font-family: var(--sans); font-size: var(--p-size); line-height: 1.9; color: var(--body); }
.testi__author { display: flex; align-items: center; gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
.testi__avatar { flex: none; width: 64px; height: 64px; border: 3px solid var(--gold); border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--paper); box-shadow: 0 14px 24px -12px rgba(13, 37, 82, .6); }
.testi__author h4 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.testi__dots { display: flex; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.testi__dot { position: relative; width: 36px; height: 20px; }
.testi__dot::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; background: var(--line); transition: background-color .3s var(--ease); }
.testi__dot.is-active::before { background: var(--navy-700); }
/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .74); }
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .7fr) minmax(0, 1.05fr) minmax(0, 1.75fr);
    gap: clamp(20px, 2.4vw, 36px);
    padding-block: clamp(56px, 7vw, 96px);
}
.site-footer__logo { display: inline-flex; align-items: center; gap: 16px; max-width: 320px; }
.site-footer__logo img { flex: none; width: 68px; height: 68px; border-radius: 50%; }
.site-footer__logo span {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 1.9vw, 1.65rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--white);
}
.site-footer__about { max-width: 22em; margin-top: 22px; font-size: .975rem; line-height: 1.8; }
.site-footer__social { display: flex; gap: 24px; margin-top: clamp(28px, 3vw, 40px); }
.site-footer__social a {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--white);
    transition: color .3s var(--ease), transform .35s var(--ease);
}
.site-footer__social a:hover { color: var(--gold); transform: translateY(-3px); }
.site-footer__title {
    margin-bottom: clamp(22px, 2.4vw, 32px);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--gold);
}
.site-footer__links li + li,
.site-footer__contact li + li { margin-top: 12px; }
.site-footer__links,
.site-footer__contact { font-size: 1.0625rem; line-height: 1.6; }
.site-footer__links a,
.site-footer__contact a {
    padding-bottom: 2px;
    background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
    transition: color .3s var(--ease), background-size .45s var(--ease);
}
.site-footer__links a:hover,
.site-footer__contact a:hover { color: var(--white); background-size: 100% 1px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 16px; }
.site-footer__contact li > div { min-width: 0; }
.site-footer__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-top: -2px; border: 1px solid rgba(245, 181, 15, .55); border-radius: 50%; background: rgba(245, 181, 15, .1); color: var(--gold); font-size: 1rem; transition: background-color .35s var(--ease), color .35s var(--ease); }
.site-footer__contact li:hover .site-footer__icon { background: var(--gold); color: var(--navy-900); }
.site-footer__contact b { color: var(--white); font-weight: 600; }
.site-footer__contact a { overflow-wrap: anywhere; }
.site-footer__bottom { padding-block: 22px; background: var(--navy-950); font-size: .9rem; text-align: center; }
.site-footer__bottom b { color: var(--white); font-weight: 700; }
.site-footer__bottom a b { color: var(--gold); }
.site-footer__bottom a:hover b { text-decoration: underline; }
.to-top {
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: 50;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-900);
    box-shadow: 0 14px 28px -12px rgba(13, 37, 82, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s, background-color .3s var(--ease), color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--white); }
/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1279px) {
    :root { --header-h: 84px; }
    .site-header__bar { padding-inline: 14px; }
    .site-header .nav { display: none; }
    .header-actions { margin-left: auto; }
    .brand img { width: 60px; height: 60px; }
}
/* Boxed bar: crest only and a tighter menu, so every item fits the 1280 px box. */
@media (min-width: 1280px) {
    .nav-toggle { display: none; }
    .brand__name { display: none; }
    .nav__link { padding: 10px 9px; font-size: .9rem; }
}
@media (max-width: 575px) {
    .header-cta { display: none; }
    .brand__name { font-size: .95rem; max-width: 9.5em; }
}
@media (max-width: 991px) {
    .principal__grid,
.kala__grid,
.notice__grid,
.testi__grid { grid-template-columns: minmax(0, 1fr); }
    .principal__figure { max-width: 440px; margin-right: 20px; }
    .kala__wall { max-width: 560px; }
    .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick > li:nth-child(odd) { border-left: 0; }
    .quick > li:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
    .quick > li:nth-child(odd) .quick__item { padding-left: 0; }
    .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
    .testi__main { padding-left: 0; padding-top: clamp(28px, 5vw, 40px); border-left: 0; border-top: 1px solid var(--line); }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-footer__brand,
.site-footer__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    body { font-size: 1rem; }
    .hero__arrows .round-btn { width: 42px; height: 42px; }
    .hero__bars { gap: 5px; }
    .levels { grid-template-columns: minmax(0, 1fr); }
    .level:nth-child(2) { margin-top: 0; }
    .notice__lists { grid-template-columns: minmax(0, 1fr); }
    .notice__list + .notice__list { border-top: 0; }
    /* Keeps the copyright line clear of the back-to-top button. */
    .site-footer__bottom { padding-bottom: 84px; }
}
@media (max-width: 575px) {
    .topbar__inner { gap: 12px; }
    .social a { width: 26px; }
    .hero__count { display: none; }
    .quick__item { gap: 12px; padding-right: 8px; }
    .quick__icon { width: 42px; height: 42px; font-size: 1rem; }
    .quick__label { font-size: .75rem; letter-spacing: .12em; }
    .quick__arrow { display: none; }
    .principal__figure { margin: 18px 14px 44px 18px; }
    .principal__figure::before { inset: -18px 38% 38% -18px; }
    .principal__figure::after { inset: 34% -14px -14px 34%; }
    .principal__plate { right: -14px; }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
*::before,
*::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js [data-reveal],
.js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
    .ticker__track { display: block; overflow: hidden; text-overflow: ellipsis; }
    .ticker__item[aria-hidden] { display: none; }
    .kala__frame { transform: none; }
}
/* --- Inner pages -------------------------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(360px, 32vw, 480px);
    padding: calc(var(--header-h) + 48px) 0 clamp(64px, 7vw, 104px);
    overflow: hidden;
    background: var(--navy-950);
    color: var(--white);
}
/* Photo fills the right side and melts into the navy panel. */
/* Pattern layer: a gold dot grid over fine diagonal lines, with a blue glow, fading in from the right. */
.page-hero__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1.2px, transparent 1.4px) 0 0 / 34px 34px,
        radial-gradient(50% 110% at 90% 20%, rgba(37, 99, 176, .5), transparent 70%);
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(8, 23, 58, .45) 0%, rgba(8, 23, 58, 0) 45%);
}
/* Thin gold ring, only for depth. */
.page-hero__ring {
    position: absolute;
    left: -140px;
    bottom: -220px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(245, 181, 15, .35);
    border-radius: 50%;
}
.page-hero__ring::after { content: ""; position: absolute; inset: 36px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.page-hero__inner { position: relative; }
.crumbs ol { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 0; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .78); }
.crumbs li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--white); }
.page-hero__title {
    max-width: 16em;
    margin-top: 24px;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.page-hero__title::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 26px; border-radius: 4px; background: var(--gold); }
/* White sheet that rides up over the banner. */
.inner { position: relative; z-index: 1; margin-top: -36px; padding-top: clamp(48px, 6vw, 88px); border-radius: 32px 32px 0 0; background: var(--white); }
/* Side menu card */
/* Text copied from the original pages */
.prose { min-width: 0; font-size: 1.0625rem; line-height: 1.85; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
    margin: 0 0 clamp(22px, 2.6vw, 34px);
    font-family: var(--serif);
    font-size: var(--h2-size);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.015em;
    color: var(--ink);
}
.prose h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--gold); }
.prose h2:not(:first-child) { margin-top: clamp(44px, 5.4vw, 72px); }
.prose h3 { margin: 38px 0 14px; padding: 12px 20px; border-left: 4px solid var(--gold); border-radius: 0 15px 15px 0; background: var(--paper); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.3; color: var(--navy-700); }
.prose h4 { margin: 24px 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.prose p { margin: 0 0 1.25em; max-width: 54em; }
.prose--page > p:first-child,
.prose > h2 + p,
.prose > h2 + img + p,
.prose--page > img:first-child + p { font-size: var(--p-size); line-height: 1.85; color: var(--ink); }
.prose b,
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color .25s var(--ease); }
.prose a:hover { color: var(--gold-deep); }
.prose ul,
.prose ol { margin: 0 0 1.6em; padding: 0; max-width: 54em; list-style: none; }
.prose li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); }
.prose li::before { content: "\f00c"; position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-family: FontAwesome; font-size: .72rem; }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.prose > img { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 1.8em; box-shadow: 0 40px 70px -40px rgba(13, 37, 82, .6); }
.prose iframe { display: block; width: 100%; height: clamp(320px, 42vw, 460px); margin-top: 28px; border: 0; border-radius: 20px; box-shadow: 0 40px 70px -40px rgba(13, 37, 82, .55); }
.prose table { width: 100%; margin: 0 0 1.8em; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 40px 70px -50px rgba(13, 37, 82, .45); font-size: 1rem; }
.prose td,
.prose th { padding: clamp(16px, 2.2vw, 28px); vertical-align: top; text-align: left; }
.prose tr + tr > td { border-top: 1px solid var(--line); }
.prose td + td { border-left: 1px solid var(--line); }
.prose th { background: var(--navy-800); color: var(--white); font-weight: 700; }
.prose td h2 { margin: 0 0 14px; font-size: 1.9rem; }
.prose td h2::after { display: none; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
/* Principal message / "watch testimonials" panel */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: center; margin: 0 0 2.4em; padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: rgba(255, 255, 255, .84); box-shadow: 0 50px 80px -50px rgba(13, 37, 82, .8); }
.feature img { width: 100%; border-radius: 18px; }
.feature__body p { margin-bottom: 1em; color: rgba(255, 255, 255, .84); }
.feature__by { margin-top: 1.2em; padding: .7em 1.1em; border-left: 4px solid var(--gold); border-radius: 0 15px 15px 0; background: rgba(255, 255, 255, .08); color: var(--gold); text-align: left; font-size: 1.1rem; line-height: 1.5; }
/* People (leadership, staff) */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(18px, 2.4vw, 30px); margin-bottom: clamp(28px, 3.4vw, 48px); }
.person { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 50px -40px rgba(13, 37, 82, .5); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease); }
.person:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 40px 60px -34px rgba(13, 37, 82, .55); }
.person img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 0; background: var(--paper); transition: transform 1s var(--ease); }
.person:hover img { transform: scale(1.04); }
.person figcaption { position: relative; display: grid; gap: 3px; padding: 20px 20px 22px; font-size: .95rem; line-height: 1.45; background: var(--white); }
.person figcaption::before { content: ""; position: absolute; top: 0; left: 20px; width: 40px; height: 3px; border-radius: 3px; background: var(--gold); }
.person figcaption strong { margin-top: 6px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.person figcaption span { color: var(--gold-deep); font-weight: 600; font-size: .875rem; overflow-wrap: anywhere; }
/* Photo galleries (event pages) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 16px); margin-bottom: 2em; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; cursor: zoom-in; transition: transform .7s var(--ease), box-shadow .5s var(--ease), filter .5s var(--ease); }
.gallery img:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
/* Layout for the 12-photo Gallery page: one big photo plus 11 small ones fill 3 full rows of 5 (3 per row on tablets, 2 on phones). */
.gallery--curated { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery--curated img:nth-child(7n + 1) { grid-column: auto; grid-row: auto; }
.gallery--curated img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 991px) {
    .gallery--curated { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .gallery--curated { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery--curated img:nth-child(1),
.gallery--curated img:nth-child(2) { grid-column: span 2; grid-row: auto; }
}
.gallery img:hover { transform: scale(1.025); box-shadow: 0 30px 50px -26px rgba(13, 37, 82, .6); filter: saturate(1.1); position: relative; z-index: 1; }
.prose--gallery > p:first-child { display: inline-block; margin-bottom: 28px; padding: 8px 20px; border-radius: 999px; background: var(--navy-700); color: var(--white); font-size: 1.05rem; }
.prose--gallery > p:first-child b { color: var(--gold); }
/* News list: bento grid of event photos (two large tiles, eight small) */
.news-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 17vw, 250px); grid-auto-flow: dense; gap: clamp(12px, 1.6vw, 22px); }
.prose a.news-tile { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--navy-800); text-decoration: none; color: var(--white); box-shadow: 0 30px 50px -36px rgba(13, 37, 82, .6); }
.news-list .news-tile:nth-child(1),
.news-list .news-tile:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.news-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.2s var(--ease); }
.news-tile:hover img { transform: scale(1.07); }
.news-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 23, 58, .94) 0%, rgba(8, 23, 58, .5) 38%, rgba(8, 23, 58, 0) 66%); }
.news-tile__title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(14px, 1.6vw, 24px); padding-right: 68px; font-family: var(--serif); font-size: clamp(.95rem, 1.2vw, 1.15rem); font-weight: 500; line-height: 1.3; }
.news-list .news-tile:nth-child(1) .news-tile__title,
.news-list .news-tile:nth-child(6) .news-tile__title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.news-tile__title::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--gold); transition: width .5s var(--ease); }
.news-tile:hover .news-tile__title::before { width: 72px; }
.news-tile::before { content: "\f178"; position: absolute; right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 24px); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; font-family: FontAwesome; font-size: 1rem; color: var(--white); transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.news-tile:hover::before { background: var(--gold); border-color: var(--gold); color: var(--navy-900); transform: rotate(-35deg); }
.prose a.news-tile:hover { color: var(--white); }
@media (max-width: 991px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 30vw, 230px); }
}
@media (max-width: 575px) {
    .news-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
    .news-list .news-tile:nth-child(1),
.news-list .news-tile:nth-child(6) { grid-column: auto; grid-row: span 1; }
}
/* Who We Are: opening quote card and intro */
.quote-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; margin: 0 0 clamp(28px, 3.4vw, 48px); border-radius: 24px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: 0 50px 80px -50px rgba(13, 37, 82, .8); }
.quote-card__text { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(28px, 4.4vw, 64px); }
.prose .quote-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-style: italic; font-weight: 500; line-height: 1.25; color: var(--white); }
.quote-card cite { display: inline-flex; align-items: center; gap: 14px; font-size: .95rem; font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.quote-card__photo { position: relative; margin: 0; min-height: 280px; }
.quote-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 0; filter: sepia(.15) contrast(1.05); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
.prose .intro-lead { max-width: 52em; padding-left: clamp(18px, 2.4vw, 28px); border-left: 4px solid var(--gold); font-size: var(--p-size); line-height: 1.85; color: var(--ink); }
@media (max-width: 767px) {
    .quote-card { grid-template-columns: minmax(0, 1fr); }
    .quote-card__photo { order: -1; min-height: 260px; }
    .quote-card__photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
}
/* Who We Are: patron and founder */
.saint { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); margin: clamp(40px, 5vw, 72px) 0; padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; background: var(--paper); }
.saint__portrait { margin: 0; align-self: start; }
.saint__portrait img { width: 100%; border-radius: 15px; box-shadow: 0 40px 60px -30px rgba(13, 37, 82, .7); }
.saint__body h2 { margin-top: 0; }
.saint__body p:last-child { margin-bottom: 0; }
.saint__facts { grid-column: 1 / -1; margin-top: 8px; padding: clamp(22px, 3vw, 36px); border-radius: 18px; background: var(--white); box-shadow: 0 30px 50px -40px rgba(13, 37, 82, .5); }
.prose .saint__facts h3 { margin: 0 0 20px; padding: 0 0 14px; border: 0; border-bottom: 3px solid var(--gold); border-radius: 0; background: none; font-family: var(--sans); font-size: .8125rem; font-weight: 800; letter-spacing: .22em; color: var(--navy-700); }
.saint__facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
.saint__facts dl > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .975rem; line-height: 1.55; }
.saint__facts dt { font-weight: 800; color: var(--navy-700); }
.saint__facts dd { margin: 0; color: var(--ink); }
.saint__quote { grid-column: 1 / -1; margin: 0; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); border-radius: 18px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); text-align: center; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); font-style: italic; line-height: 1.4; color: var(--gold); }
@media (max-width: 991px) {
    .saint { grid-template-columns: minmax(0, 1fr); }
    .saint__portrait { max-width: 320px; }
    .saint__facts dl { grid-template-columns: minmax(0, 1fr); background: none; }
}
@media (max-width: 575px) {
    .saint__facts dl > div { grid-template-columns: minmax(0, 1fr); }
}
/* Why SFS ICSE Koppal */
.why__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.why__intro h2 { margin-bottom: clamp(22px, 2.6vw, 32px); }
.why__intro p { margin-bottom: 1.2em; }
.why__intro p:last-child { margin-bottom: 0; }
.why__photo { position: relative; margin: 0; }
.why__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: 0; border: 2px solid var(--gold); border-radius: 20px; }
.why__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 20px; box-shadow: 0 40px 70px -40px rgba(13, 37, 82, .7); }
.prose .why__quote { position: relative; margin: clamp(40px, 5vw, 72px) 0; padding: clamp(32px, 4.4vw, 60px) clamp(24px, 4vw, 64px); border-radius: 24px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); text-align: center; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); font-style: italic; line-height: 1.35; color: var(--white); box-shadow: 0 50px 80px -50px rgba(13, 37, 82, .8); }
.why__quote::before { content: ""; display: block; width: 56px; height: 4px; margin: 0 auto 22px; border-radius: 4px; background: var(--gold); }
.feature__body h3 { margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.25; color: var(--white); }
@media (max-width: 991px) {
    .why__top { grid-template-columns: minmax(0, 1fr); }
    .why__photo { margin: 0 22px 22px 0; }
}
/* Admission & Fees: payment panel and numbered rule sections */
.prose--page .pay { counter-reset: rule; }
.pay { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 3.4vw, 52px); padding: clamp(26px, 3.6vw, 52px); border-radius: 26px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: rgba(255, 255, 255, .86); box-shadow: 0 50px 80px -50px rgba(13, 37, 82, .8); }
.pay__main p { max-width: none; color: rgba(255, 255, 255, .86); }
.pay__main p:last-child { margin-bottom: 0; }
.pay__box { align-self: start; padding: clamp(22px, 2.6vw, 34px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; background: rgba(255, 255, 255, .07); }
.prose .pay__btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-weight: 800; text-decoration: none; transition: background-color .3s var(--ease), transform .4s var(--ease); }
.prose .pay__btn::after { content: "\f08e"; font-family: FontAwesome; font-size: .9rem; }
.prose .pay__btn:hover { background: var(--white); color: var(--navy-900); transform: translateY(-3px); }
.prose .pay__fields { margin: 22px 0 0; max-width: none; }
.prose .pay__fields li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: var(--white); font-weight: 600; }
.prose .pay__fields li::before { display: none; }
.prose .pay__fields li:last-child { border-bottom: 0; padding-bottom: 0; }
.pay__note { grid-column: 1 / -1; margin: 0; padding-top: clamp(18px, 2.4vw, 30px); border-top: 1px solid rgba(255, 255, 255, .16); }
.prose .pay__note { max-width: none; color: rgba(255, 255, 255, .86); margin-bottom: 0; }
.rule { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3.4vw, 56px); padding: clamp(32px, 4.4vw, 60px) 0; border-bottom: 1px solid var(--line); counter-increment: rule; }
.pay + .rule { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.prose .rule h3 { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.2; color: var(--ink); }
.rule h3::before { content: counter(rule, decimal-leading-zero); display: block; margin-bottom: 8px; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-deep); }
.rule__body > :last-child { margin-bottom: 0; }
.prose .rule__body ul { max-width: none; }
.prose .rule__body ul ul { margin: 12px 0 0; }
.prose .rule__body ul ul li { padding-top: 8px; padding-bottom: 8px; border-bottom: 0; }
.prose .rule__body p { max-width: none; }
@media (max-width: 991px) {
    .pay,
.rule { grid-template-columns: minmax(0, 1fr); }
    .prose .rule h3 { position: static; }
}
/* Rules & Regulations: closing statement panel and the long rule list */
.rule + .vm-hero { margin-top: clamp(40px, 5vw, 72px); }
.prose .rules-hero p { font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
.rules-hero::after { content: ""; }
.prose .rules-hero + .vm-steps { margin-top: clamp(24px, 3vw, 40px); }
.prose .vm-steps--even li:last-child { grid-column: auto; background: var(--white); }
/* Vision, mission and motto page */
.prose .vm-hero h3,
.prose .vm-motto h3,
.prose .vm-mission h3,
.prose .vm-objectives h3 { margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: .8125rem; font-weight: 800; letter-spacing: .24em; color: var(--gold-deep); }
.vm-hero h3::before,
.vm-motto h3::before,
.vm-mission h3::before,
.vm-objectives h3::before { content: ""; display: inline-block; width: 36px; height: 2px; margin-right: 14px; vertical-align: middle; background: currentColor; }
.vm-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px); border-radius: 28px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: 0 50px 80px -50px rgba(13, 37, 82, .8); }
.vm-hero::after { content: "\201C"; position: absolute; right: clamp(16px, 3vw, 48px); top: -.15em; font-family: var(--serif); font-size: clamp(9rem, 18vw, 16rem); line-height: 1; color: rgba(245, 181, 15, .18); pointer-events: none; }
.prose .vm-hero h3 { color: var(--gold); }
.prose .vm-hero p { position: relative; z-index: 1; max-width: 46em; margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.5; color: var(--white); }
.vm-motto { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3.4vw, 56px); margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 3.6vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose .vm-motto h3 { margin: 6px 0 0; }
.prose .vm-motto__quote { margin: 0 0 18px; max-width: none; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); font-style: italic; font-weight: 500; line-height: 1.15; color: var(--navy-700); }
.vm-motto__quote span { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: .8125rem; font-style: normal; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.vm-motto__body > p:last-child { margin-bottom: 0; max-width: 46em; }
.vm-mission { margin-top: clamp(40px, 5vw, 72px); }
.prose .vm-steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0 0 clamp(20px, 2.4vw, 32px); max-width: none; list-style: none; }
.prose .vm-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 18px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 24px 40px -34px rgba(13, 37, 82, .5); transition: transform .5s var(--ease), border-color .4s var(--ease); }
.prose .vm-steps li::before { content: counter(step, decimal-leading-zero); position: static; flex: none; display: block; width: 2.2rem; height: auto; border-radius: 0; background: none; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-deep); }
.prose .vm-steps li:hover { transform: translateY(-4px); border-color: var(--gold); }
.prose .vm-steps li:last-child { grid-column: 1 / -1; background: var(--paper); }
.prose .vm-become { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); max-width: none; margin: 0; }
.prose .vm-become li { display: flex; align-items: center; min-height: 92px; padding: 20px 24px; border: 0; border-left: 4px solid var(--gold); border-radius: 14px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); font-size: .875rem; font-weight: 800; line-height: 1.4; letter-spacing: .08em; color: var(--white); }
.prose .vm-become li::before { display: none; }
.vm-objectives { margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 3.6vw, 48px); border-radius: 24px; background: var(--paper); }
.vm-objectives p { margin: 0; max-width: 46em; }
@media (max-width: 991px) {
    .vm-motto { grid-template-columns: minmax(0, 1fr); }
    .prose .vm-steps,
.prose .vm-become { grid-template-columns: minmax(0, 1fr); }
}
/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-bottom: 8px; }
.contact-card { display: flex; flex-direction: column; align-items: center; padding: clamp(32px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 30px 50px -40px rgba(13, 37, 82, .5); text-align: center; overflow-wrap: anywhere; transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease); }
.contact-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 40px 60px -34px rgba(13, 37, 82, .55); }
.contact-card__icon { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 26px; border-radius: 50%; background: var(--navy-700); color: var(--white); font-size: 1.7rem; transition: transform .5s var(--ease); }
.contact-card:hover .contact-card__icon { transform: scale(1.08); }
.prose .contact-card__title { margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 700; line-height: 1.3; color: var(--ink); }
.contact-card p { margin: 0; max-width: none; font-size: 1.0625rem; line-height: 1.7; }
/* Emails look like plain text until hovered. */
.prose .contact-card a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat; padding-bottom: 2px; transition: color .3s var(--ease), background-size .45s var(--ease); }
.prose .contact-card a:hover,
.prose .contact-card a:focus-visible { color: var(--navy-700); background-size: 100% 2px; }
/* Photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; background: rgba(8, 23, 58, .94); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 120px); border-radius: 14px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: var(--white); font-size: 1.3rem; transition: background-color .3s var(--ease), color .3s var(--ease); }
.lightbox button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
/* Coming soon */
.soon { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(620px, 88vh, 860px); padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; background: var(--navy-950); color: var(--white); text-align: center; }
.soon__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.soon::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 40%, rgba(26, 68, 136, .55), rgba(8, 23, 58, .94) 70%); }
.soon__logo { width: 112px; height: 112px; margin: 0 auto 28px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), 0 0 0 18px rgba(255, 255, 255, .1); }
.soon__title { font-family: var(--serif); font-size: clamp(3rem, 9vw, 6.4rem); font-style: italic; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.soon__text { margin: 22px 0 36px; font-size: 1.2rem; color: rgba(255, 255, 255, .8); }
.soon .btn { background: var(--gold); color: var(--navy-900); }
.soon .btn i { background: var(--navy-900); color: var(--gold); }
.soon .btn:hover { background: var(--white); }
@media (max-width: 991px) {
    .feature { grid-template-columns: minmax(0, 1fr); }
    .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
    .page-hero { padding-bottom: 72px; }
    .prose { font-size: 1rem; }
    .prose td,
.prose th { padding: 14px; }
    .prose table { display: block; overflow-x: auto; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .gallery img:nth-child(7n + 1) { grid-column: span 2; }
}
/* --- Scroll effects ----------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--navy-600));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}
/* Photos that drift while scrolling are slightly oversized so no edge shows. */
[data-parallax] { translate: 0 var(--py, 0px); scale: 1.14; will-change: translate; }
[data-drift] { translate: var(--dx, 0px) 0; will-change: translate; }
/* Headings get a gold rule that draws in once they are revealed. */
.js .heading[data-reveal]::after,
.js .notice__title[data-reveal]::after,
.js .heading.is-split::after,
.js .notice__title.is-split::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 22px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s var(--ease) .35s;
}
.js .heading[data-reveal].is-in::after,
.js .notice__title[data-reveal].is-in::after,
.js .heading.is-split-in::after,
.js .notice__title.is-split-in::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
    [data-parallax] { translate: none; }
    [data-drift] { translate: none; }
    .js .heading[data-reveal]::after,
.js .notice__title[data-reveal]::after { transform: scaleX(1); }
}
/* Taglines above section headings (same look as the homepage "The story of") */
.notice__title .heading__lead { color: var(--gold); }
/* --- More scroll motion ------------------------------------------------- */
/* Header slides away while reading down and returns on the first scroll up. */
.site-header { transition: transform .55s var(--ease); }
.site-header.is-hidden { transform: translateY(-130%); }
/* Headings: words rise out of a mask one after another. */
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .05em .18em; margin: -.08em -.05em -.18em; }
.is-split .wi { display: inline-block; transform: translateY(118%); transition: transform 1s var(--ease) calc(var(--i, 0) * 55ms); }
.is-split.is-split-in .wi { transform: none; }
.kala__title .w { padding-right: .16em; margin-right: -.16em; }
/* Hero: the photo slowly zooms (Ken Burns) and drifts slower than the page; the content eases away. */
@keyframes kenburns { from { scale: 1; } to { scale: 1.09; } }
/* Brightness effect: each slide fades in a little dim and brightens as it settles. */
@keyframes brighten { from { filter: brightness(.9) saturate(1); } to { filter: brightness(1.18) saturate(1.1) contrast(1.03); } }
.hero__slide img { filter: brightness(1.18) saturate(1.1) contrast(1.03); }
.hero__slide.is-active img { animation: kenburns 11s ease-out both, brighten 2.4s ease-out both; }
.hero__slides { inset: -24% 0 0 0; translate: 0 calc(var(--hs, 0) * .22px); }
.hero__content { translate: 0 calc(var(--hs, 0) * -.05px); opacity: clamp(0, calc(1 - var(--hs, 0) / 900), 1); }
@media (prefers-reduced-motion: reduce) {
    .site-header.is-hidden { transform: none; }
    .is-split .wi { transform: none; }
    .hero__slides,
.hero__content { translate: none; opacity: 1; }
}
/* ==========================================================================
   Design system pass
   One rhythm for section spacing, a minimum text size, a clear focal point in
   the story and facilities sections, and gold kept for a few key accents only
   (heading rule, call to action, ticker, award badge).
   ========================================================================== */
:root {
    --section: clamp(64px, 8vw, 112px);
    --p-size: 1.125rem;
}
/* Text never gets small: notice board, footer, labels. */
.notice__list a { padding: 24px 0; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); }
.notice__list a i { color: var(--white); opacity: .5; }
.notice__list a:hover i { color: var(--gold); }
.site-footer__about { font-size: 1.125rem; line-height: 1.75; }
.site-footer__title { font-size: 1.5rem; }
.site-footer__links,
.site-footer__contact { font-size: 1.1875rem; line-height: 1.6; }
.site-footer__links li + li,
.site-footer__contact li + li { margin-top: 14px; }
.site-footer__bottom { font-size: 1rem; }
.stat__label { font-size: .9375rem; letter-spacing: .14em; color: rgba(255, 255, 255, .85); }
.quick__item { font-size: 1.0625rem; }
/* Story: the introduction leads the page after the hero. */
/* Facilities: one large lead photo, four supporting photos, one wide closing photo. */
.fac__card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.fac__card:nth-child(6) { grid-column: 1 / -1; }
.fac__card:nth-child(1) .fac__title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.fac__card:nth-child(1) .fac__label { padding: clamp(22px, 3vw, 40px); }
.fac__title { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.fac__num { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.fac__card:hover .fac__num { background: var(--white); color: var(--navy-900); }
/* Less gold on repeated elements. */
.stat__icon { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.stat:hover .stat__icon { background: var(--white); color: var(--navy-900); }
@media (max-width: 991px) {
    .fac__card:nth-child(1) { grid-column: 1 / -1; grid-row: span 1; }
    .fac__card:nth-child(6) { grid-column: 1 / -1; }
}
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__label { gap: 12px; padding: 16px; }
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__num { width: 34px; height: 34px; font-size: .9rem; }
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__title { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
/* ==========================================================================
   Editorial layout: facilities
   Facilities use one tall lead
   photo, supporting photos of different heights on a 12-column grid, and a
   panoramic closing photo. Small radius, no card shadow, labels only on a dark
   gradient so the text stays readable.
   ========================================================================== */
/* --- Facilities: 12-column editorial grid -------------------------------- */
.fac__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 12.5vw, 180px); gap: clamp(10px, 1.2vw, 16px); }
.fac__card,
.fac__card:nth-child(n) { border-radius: 15px; box-shadow: none; }
.fac__card:nth-child(1) { grid-column: 1 / 7;  grid-row: 1 / 4; }
.fac__card:nth-child(2) { grid-column: 7 / 10; grid-row: 1 / 3; }
.fac__card:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
.fac__card:nth-child(4) { grid-column: 10 / 13; grid-row: 2 / 4; }
.fac__card:nth-child(5) { grid-column: 7 / 10; grid-row: 3 / 4; }
.fac__card:nth-child(6) { grid-column: 1 / -1;  grid-row: 4 / 6; }
.fac__card::after { background: linear-gradient(0deg, rgba(8, 23, 58, .88) 0%, rgba(8, 23, 58, .4) 34%, rgba(8, 23, 58, 0) 60%); }
.fac__label,
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__label { flex-direction: column; align-items: flex-start; gap: 4px; padding: clamp(14px, 1.6vw, 22px); }
.fac__card:nth-child(1) .fac__label { padding: clamp(20px, 2.6vw, 36px); }
.fac__num,
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__num,
.fac__card:hover .fac__num { width: auto; height: auto; border: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .18em; color: rgba(255, 255, 255, .85); }
.fac__card:nth-child(6) .fac__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
@media (max-width: 991px) {
    .fac__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 30vw, 230px); }
    .fac__card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: 1 / -1; grid-row: span 2; }
}
/* ==========================================================================
   Brand palette and type scale
   Navy #0b2d5b, muted gold #d4af37, cool white #e6eaf2, charcoal #1f2937.
   Serif headings, sans-serif for everything else. Gold only for selected
   highlights; images keep a small radius; sections breathe 72-108px.
   ========================================================================== */
:root {
    --navy-950: #071f42;
    --navy-900: #0b2d5b;
    --navy-800: #103a74;
    --navy-700: #1856ad;
    --navy-600: #1e6fd9;
    --gold: #d4af37;
    --gold-deep: #8f6d17;
    --paper: #e6eaf2;
    --ink: #1f2937;
    --body: #3f4756;
    --line: rgba(37, 45, 58, .14);

    --section: clamp(72px, 8vw, 108px);
    --radius: 4px;
    --p-size: 1.0625rem;
}
body { font-size: 1.0625rem; line-height: 1.8; }
/* Small taglines above headings are navy; gold stays for dark backgrounds and key accents. */
.heading__lead { color: var(--navy-700); }
.notice__title .heading__lead,
.gal__headline .heading__lead { color: var(--gold); }
.level__tag,
.principal__plate span { color: var(--navy-700); }
.link-arrow:hover,
.text-btn:hover,
.prose a:hover { color: var(--navy-700); }
/* Subtle corners on images and panels. */
.site-header__bar { border-radius: 15px; }
.person,
.feature img,
.why__photo img,
.prose img,
.gallery img,
.gal__tile,
.prose .vm-objectives { border-radius: 15px; }
.prose a.news-tile,
.quote-card,
.saint__facts,
.saint__quote,
.vm-hero { border-radius: 15px; }
.lightbox img { border-radius: 15px; }
/* ==========================================================================
   Restraint pass
   Editorial, not decorated: no heading rules, no badge, no boxed story text,
   news cards without borders or shadows. Hierarchy comes from type, photo
   size and spacing.
   ========================================================================== */
/* Decorative lines under headings and quotes. */
.js .heading[data-reveal]::after,
.js .heading.is-split::after,
.js .heading[data-reveal].is-in::after,
.js .heading.is-split-in::after,
.heading::after,
.prose h2::after,
.why__quote::before { content: none !important; display: none !important; }
/* Story: large photo and open text, no box, no frame, no badge. */
/* News: photo, title, date and link on the page itself. */
/* Testimonial avatars without a gold ring. */
.testi__avatar { border-color: transparent; }
/* --- Story section ------------------------------------------------------- */
.story { background: #faf9f4; }
/* --- Story: photo on a navy band with an overlapping text panel ------------- */
.story { background: var(--navy-900); }
.levels-band { background: #faf9f4; }
.levels-band .levels { margin-top: 0; }
/* --- Facilities: rearranged grid, numbers in a gold ring ---------------------- */
.fac__card:nth-child(1) { grid-column: 7 / 13;  grid-row: 1 / 4; }
.fac__card:nth-child(2) { grid-column: 1 / 4;   grid-row: 1 / 3; }
.fac__card:nth-child(3) { grid-column: 4 / 7;   grid-row: 1 / 4; }
.fac__card:nth-child(4) { grid-column: 1 / 4;   grid-row: 3 / 4; }
.fac__card:nth-child(5) { grid-column: 1 / 5;   grid-row: 4 / 6; }
.fac__card:nth-child(6) { grid-column: 5 / 13;  grid-row: 4 / 6; }
.fac__label,
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__label { flex-direction: row; align-items: center; gap: 14px; }
.fac__num,
.fac__card:not(:nth-child(1)):not(:nth-child(6)) .fac__num,
.fac__card:hover .fac__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    font-family: var(--serif);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--white);
}
.fac__card:hover .fac__num { background: var(--gold); color: var(--navy-900); }
@media (max-width: 991px) {
    .fac__card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: 1 / -1; grid-row: span 2; }
}
/* --- Facilities: one three-row composition holding all six photos ------------ */
.fac__grid { grid-template-rows: repeat(2, clamp(170px, 17vw, 240px)) clamp(130px, 12.5vw, 180px); }
.fac__card:nth-child(1) { grid-column: 7 / 13; grid-row: 1 / 3; }
.fac__card:nth-child(2) { grid-column: 1 / 4;  grid-row: 1 / 3; }
.fac__card:nth-child(3) { grid-column: 4 / 7;  grid-row: 1 / 3; }
.fac__card:nth-child(4) { grid-column: 1 / 4;  grid-row: 3 / 4; }
.fac__card:nth-child(5) { grid-column: 4 / 7;  grid-row: 3 / 4; }
.fac__card:nth-child(6) { grid-column: 7 / 13; grid-row: 3 / 4; }
.fac__card:nth-child(6) .fac__title { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.fac__card:nth-child(1) .fac__title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
@media (max-width: 991px) {
    .fac__grid { grid-template-rows: none; }
    .fac__card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .fac__card:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
    .fac__card:nth-child(6) { grid-column: auto; grid-row: auto; }
}
/* --- Facilities: two rows of four columns, wide photos at opposite corners ------ */
.fac__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(190px, 17vw, 250px); gap: clamp(12px, 1.4vw, 18px); }
.fac__card:nth-child(n) { grid-column: auto; grid-row: auto; border-radius: 15px; box-shadow: 0 18px 36px -24px rgba(11, 45, 91, .45); }
.fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: span 2; }
.fac__card:nth-child(n) .fac__title { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.25; }
.fac__card:nth-child(n) .fac__label { padding: clamp(14px, 1.6vw, 22px); gap: 14px; }
@media (max-width: 991px) {
    .fac__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 30vw, 230px); }
    .fac__card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .fac__card:nth-child(1),
.fac__card:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .fac__grid { grid-template-columns: minmax(0, 1fr); }
    .fac__card:nth-child(n) { grid-column: auto; }
}
/* --- Contact cards: left-aligned, thin border, one shared grid ------------------ */
.contact-cards { align-items: stretch; }
.contact-card,
.prose .contact-card {
    display: grid;
    grid-template-rows: 48px auto 1fr;
    row-gap: 16px;
    align-items: start;
    justify-items: start;
    text-align: left;
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
    box-shadow: none;
    transition: border-color .3s var(--ease);
}
.contact-card:hover { transform: none; border-color: var(--navy-700); box-shadow: none; }
.contact-card__icon { width: 48px; height: 48px; margin: 0; border-radius: 50%; background: var(--navy-900); font-size: 1.15rem; }
.contact-card:hover .contact-card__icon { transform: none; }
.prose .contact-card__title { margin: 0; padding-top: 0; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; color: var(--navy-900); }
.prose .contact-card__title::after { content: none; display: none; }
.contact-card p { font-size: 1.0625rem; line-height: 1.65; }
.contact-card__icon + * { align-self: start; }
/* --- Contact: address panel beside the map ------------------------------------- */
.map-block { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(24px, 3vw, 40px); }
.prose .map-block iframe { display: block; width: 100%; height: 100%; min-height: clamp(340px, 34vw, 430px); margin: 0; border: 1px solid var(--line); border-radius: 15px; }
.map-block__info { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 2.8vw, 36px); border-radius: 15px; background: var(--navy-900); color: var(--white); }
.map-block__pin { margin-bottom: 22px; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.prose .map-block__title { margin: 0 0 18px; padding: 0; border: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.2; color: var(--white); }
.prose .map-block__title::after { content: none; display: none; }
.map-block__info p { margin: 0; max-width: none; font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.map-block__info p::after { content: ""; display: block; width: 44px; height: 2px; margin: 26px 0; background: var(--gold); }
.prose .map-block__btn { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding: 14px 20px; border: 1px solid var(--gold); border-radius: 999px; color: var(--white); font-size: 1rem; font-weight: 600; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.prose .map-block__btn span:nth-child(2) { flex: 1; }
.prose .map-block__btn:hover { background: var(--gold); color: var(--navy-900); }
@media (max-width: 900px) {
    .map-block { grid-template-columns: minmax(0, 1fr); }
}
/* --- Hero: headline, short text, one call to action ---------------------------- */
.hero { min-height: clamp(640px, calc(48vw + 140px), 940px); }
/* Controlled overlay: an even tint, a darker left side for the text and a dark base for the quick links. */
.hero::after {
    background:
        linear-gradient(180deg, rgba(8, 23, 58, .6) 0%, rgba(8, 23, 58, 0) 22%),
        linear-gradient(90deg, rgba(8, 23, 58, .72) 0%, rgba(8, 23, 58, .38) 48%, rgba(8, 23, 58, 0) 78%),
        linear-gradient(0deg, rgba(8, 23, 58, .97) 0%, rgba(8, 23, 58, .78) 22%, rgba(8, 23, 58, 0) 56%),
        rgba(8, 23, 58, .18);
}
.hero__slide img,
.hero__slide.is-active img { filter: brightness(1.04) saturate(1.05); }
.hero__copy { max-width: 40rem; padding-bottom: clamp(28px, 4vw, 56px); }
.hero__title { font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 500; line-height: 1.06; letter-spacing: -.015em; color: var(--white); text-shadow: 0 2px 24px rgba(8, 23, 58, .45); }
.hero__text { margin-top: clamp(14px, 1.6vw, 22px); max-width: 32rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .94); }
.hero__cta { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(22px, 2.4vw, 32px); padding: 16px 28px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: 1rem; font-weight: 700; transition: background-color .3s var(--ease), color .3s var(--ease); }
.hero__cta i { transition: transform .4s var(--ease); }
.hero__cta:hover { background: var(--white); }
.hero__cta:hover i { transform: translateX(5px); }
/* Slider controls stay quiet. */
.hero__rail { padding-block: clamp(10px, 1.4vw, 16px); }
.hero__count { opacity: .7; }
.hero__count span:first-child { font-size: 1.25rem; }
.hero__bar::before { background: rgba(255, 255, 255, .18); }
.hero__bar span { background: rgba(255, 255, 255, .85); }
.hero__arrows .round-btn { width: 38px; height: 38px; opacity: .75; }
.hero__arrows .round-btn:hover { opacity: 1; }
@media (max-width: 900px) {
    .hero::after {
        background:
            linear-gradient(180deg, rgba(8, 23, 58, .6) 0%, rgba(8, 23, 58, 0) 20%),
            linear-gradient(0deg, rgba(8, 23, 58, .97) 0%, rgba(8, 23, 58, .86) 40%, rgba(8, 23, 58, .35) 72%, rgba(8, 23, 58, .2) 100%);
    }
}
/* --- Hero: eyebrow and two buttons ------------------------------------------------ */
.hero__copy { max-width: 46rem; }
.hero__eyebrow { margin-bottom: clamp(14px, 1.6vw, 22px); font-size: .8125rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero__title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.hero__text { max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(22px, 2.4vw, 32px); }
.hero__actions .hero__cta { margin-top: 0; }
.hero__cta--ghost { padding-inline: 26px; border: 1.5px solid rgba(255, 255, 255, .75); background: transparent; color: var(--white); }
.hero__cta--ghost:hover { background: var(--white); color: var(--navy-900); }
/* Keep the text clear of the floating header on short and narrow screens. */
.hero { padding-top: calc(var(--header-h) + 48px); }
/* Photo stays visible: one brightness, no extra brighten animation; a lighter phone overlay with text shadow for contrast. */
.hero__slide.is-active img { animation: kenburns 11s ease-out both; filter: brightness(1.04) saturate(1.05); }
.hero__title,
.hero__text,
.hero__eyebrow { text-shadow: 0 1px 18px rgba(8, 23, 58, .7); }
@media (max-width: 900px) {
    .hero::after {
        background:
            linear-gradient(180deg, rgba(8, 23, 58, .55) 0%, rgba(8, 23, 58, 0) 18%),
            linear-gradient(0deg, rgba(8, 23, 58, .96) 0%, rgba(8, 23, 58, .8) 20%, rgba(8, 23, 58, .52) 45%, rgba(8, 23, 58, .42) 75%, rgba(8, 23, 58, .34) 100%);
    }
}
.hero__eyebrow { color: var(--white); text-shadow: 0 1px 14px rgba(8, 23, 58, .85); }
.hero__eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--gold); }
/* Top bar: two plain lines on the left, social icons on the right. */
.topbar__contact { gap: 12px 28px; flex-wrap: wrap; white-space: normal; }
.topbar__contact li:last-child { display: flex; }
.topbar__contact li + li::before { content: ""; width: 1px; height: 12px; margin-right: 28px; background: rgba(255, 255, 255, .3); }
@media (max-width: 700px) {
    .topbar__inner { height: auto; }
    .topbar__contact li + li::before { display: none; }
    .topbar__contact { gap: 2px 16px; }
}
/* Top bar: darker than the header bar so the two read as separate layers; even spacing. */
.topbar { background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar__inner { height: auto; min-height: 44px; gap: 12px 32px; }
.topbar__contact { gap: 6px 32px; }
.topbar__contact li { gap: 10px; line-height: 1.4; }
.topbar__contact li + li::before { margin-right: 32px; }
.topbar .social { gap: 6px; }
/* Top bar in a lighter navy so it stays distinct from the dark header bar below it. */
.topbar { background: var(--navy-700); border-bottom: 0; color: var(--white); }
.topbar__contact .fa { color: var(--gold); }
/* Hero: fits the screen height and its content never fades while scrolling, so the buttons, slider controls and quick links stay readable on small screens. */
.hero { min-height: clamp(620px, calc(100svh - 40px), 940px); }
.hero__content { translate: none; opacity: 1; }
/* Hero overlay: much darker behind the text, buttons and quick links. */
.hero::after {
    background:
        linear-gradient(180deg, rgba(8, 23, 58, .65) 0%, rgba(8, 23, 58, 0) 20%),
        linear-gradient(90deg, rgba(8, 23, 58, .9) 0%, rgba(8, 23, 58, .7) 50%, rgba(8, 23, 58, .25) 85%, rgba(8, 23, 58, .1) 100%),
        linear-gradient(0deg, rgba(8, 23, 58, .98) 0%, rgba(8, 23, 58, .88) 26%, rgba(8, 23, 58, .4) 60%, rgba(8, 23, 58, 0) 82%);
}
@media (max-width: 900px) {
    .hero::after {
        background:
            linear-gradient(180deg, rgba(8, 23, 58, .65) 0%, rgba(8, 23, 58, 0) 18%),
            linear-gradient(0deg, rgba(8, 23, 58, .98) 0%, rgba(8, 23, 58, .9) 25%, rgba(8, 23, 58, .76) 55%, rgba(8, 23, 58, .66) 80%, rgba(8, 23, 58, .56) 100%);
    }
}
/* Hero overlay: dark on the left behind the text, clear on the right so the photo shows. */
@media (min-width: 901px) {
    .hero::after {
        background:
            linear-gradient(180deg, rgba(8, 23, 58, .6) 0%, rgba(8, 23, 58, 0) 18%),
            linear-gradient(90deg, rgba(8, 23, 58, .96) 0%, rgba(8, 23, 58, .88) 30%, rgba(8, 23, 58, .5) 55%, rgba(8, 23, 58, .08) 78%, rgba(8, 23, 58, 0) 100%),
            linear-gradient(0deg, rgba(8, 23, 58, .9) 0%, rgba(8, 23, 58, .55) 14%, rgba(8, 23, 58, 0) 34%);
    }
}
/* Top bar: cool white with navy text, clearly separate from the dark header bar. */
.topbar { background: #e6eaf2; color: var(--navy-900); border-bottom: 1px solid rgba(11, 45, 91, .1); }
.topbar__contact .fa { color: var(--gold-deep); }
.topbar__contact li + li::before { background: rgba(11, 45, 91, .25); }
.topbar .social a { color: var(--navy-900); }
.topbar .social a:hover { color: var(--navy-900); background: var(--gold); }
/* Top bar: muted brand gold with navy text. */
.topbar { background: var(--gold); color: var(--navy-900); border-bottom: 0; font-weight: 600; }
.topbar__contact .fa { color: var(--navy-900); }
.topbar__contact li + li::before { background: rgba(11, 45, 91, .35); }
.topbar .social a { color: var(--navy-900); }
.topbar .social a:hover { color: var(--gold); background: var(--navy-900); }
/* Top bar content starts on the same line as the header logo (the header bar has 16px inner padding). */
.topbar__inner { padding-inline: calc(var(--gutter) + 16px); }
/* Top bar: tighter space between the two lines of text. */
.topbar__contact { gap: 6px 14px; }
.topbar__contact li + li::before { margin-right: 14px; }
/* Header bar: frosted glass. The photo behind shows through, softened and slightly tinted navy. */
.site-header__bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 55%), rgba(11, 45, 91, .5);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 40px -22px rgba(8, 23, 58, .6);
}
.site-header.is-stuck .site-header__bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 55%), rgba(11, 45, 91, .66);
}
/* --- News cards: photo with a date badge, serif title, "Read more" line ---------------
   The up-and-down offset of the cards (margins above) is untouched. */
/* News card titles: smaller. */
/* "Read more" hover: a gold line draws under the words and the arrow slides forward. */
/* Header bar pattern: fine diagonal lines over the glass, with the sheen kept on top. */
.site-header__bar {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px),
        rgba(11, 45, 91, .5);
}
.site-header.is-stuck .site-header__bar {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px),
        rgba(11, 45, 91, .66);
}
/* Header bar pattern, blended into the menu: the lines show at both ends of the bar and fade out behind the menu text. */
.site-header__bar,
.site-header.is-stuck .site-header__bar { background-image: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%); }
.site-header__bar { isolation: isolate; }
.site-header__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 12px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 14%, transparent 34%, transparent 66%, rgba(0, 0, 0, .55) 86%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 14%, transparent 34%, transparent 66%, rgba(0, 0, 0, .55) 86%, #000 100%);
}
@media (max-width: 991px) {
    /* The menu is hidden on small screens, so the pattern can run along the whole bar, softly. */
    .site-header__bar::before { -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .35)); mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .35)); }
}
/* Header bar pattern, second version: a fine diamond lattice with tiny gold dots at the crossings. */
.site-header__bar::before {
    background:
        radial-gradient(circle, rgba(212, 175, 55, .55) 0 1.2px, transparent 1.6px) 0 0 / 24px 24px,
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 17px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 17px);
}
/* Header bar pattern, third version: a lattice of interlocking circles (a classic woven-ring motif). */
.site-header__bar::before {
    background:
        radial-gradient(circle at 0 0, transparent 0 14px, rgba(255, 255, 255, .14) 14px 15px, transparent 15px),
        radial-gradient(circle at 100% 0, transparent 0 14px, rgba(255, 255, 255, .14) 14px 15px, transparent 15px),
        radial-gradient(circle at 0 100%, transparent 0 14px, rgba(255, 255, 255, .14) 14px 15px, transparent 15px),
        radial-gradient(circle at 100% 100%, transparent 0 14px, rgba(255, 255, 255, .14) 14px 15px, transparent 15px);
    background-size: 30px 30px;
}
/* Header bar pattern, fourth version: a fine dot grid (halftone), fading out behind the menu. */
.site-header__bar::before {
    background: radial-gradient(circle, rgba(255, 255, 255, .42) 0 1px, transparent 1.5px) 0 0 / 11px 11px;
}
/* --- School stages: the original card design as a slider ------------------------------
   Photo, small grade label, serif name, round arrow and a rule underneath. Three cards show
   at a time on desktop; the track slides on its own and with the arrows. The second and
   every other card sits lower, as in the original. */
.levels-band { background: var(--white); padding-block: clamp(56px, 6vw, 88px); }
.levels__head { display: flex; justify-content: flex-end; margin-bottom: clamp(16px, 2vw, 28px); }
.levels {
    display: flex;
    gap: clamp(20px, 3.2vw, 44px);
    margin: 0;
    padding: 0 0 clamp(0px, 4vw, 56px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.levels::-webkit-scrollbar { display: none; }
.level,
.level:nth-child(n) {
    position: relative;
    flex: 0 0 calc((100% - 2 * clamp(20px, 3.2vw, 44px)) / 3);
    margin: 0;
    scroll-snap-align: start;
}
.level:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); margin-bottom: calc(-1 * clamp(0px, 4vw, 56px)); }
.level__media { border-radius: var(--radius); aspect-ratio: 334 / 190; }
.level__body { padding: 22px 0; }
@media (max-width: 991px) {
    .level,
.level:nth-child(n) { flex-basis: calc((100% - clamp(20px, 3.2vw, 44px)) / 2); }
    .level:nth-child(even) { margin-top: 0; margin-bottom: 0; }
    .levels { padding-bottom: 0; }
}
@media (max-width: 600px) {
    .level,
.level:nth-child(n) { flex-basis: 86%; }
}
.level__tag { color: var(--gold-deep); }
/* Heading row above the school stages: headline on the left, slider arrows on the right. */
.levels__head { justify-content: space-between; align-items: flex-end; gap: 24px; }
.levels__head .news__arrows { margin-left: auto; }
/* School stage cards: each card is a white box with a soft shadow (the track has room so the shadow is not cut off). */
.levels { padding: 8px 6px calc(clamp(0px, 4vw, 56px) + 36px); margin-inline: -6px; }
.level,
.level:nth-child(n) {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 18px 38px -22px rgba(11, 45, 91, .45), 0 2px 8px -2px rgba(11, 45, 91, .12);
    transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.level:hover { box-shadow: 0 26px 48px -22px rgba(11, 45, 91, .55), 0 2px 8px -2px rgba(11, 45, 91, .14); }
.level__media { border-radius: 15px 15px 0 0; }
.level__body { padding: 20px 22px 22px; }
@media (max-width: 991px) {
    .levels { padding-bottom: 36px; }
}
/* School stage cards: all the same height, with the text block filling the space so the arrows line up. */
.levels { align-items: stretch; }
.level,
.level:nth-child(n) { display: flex; flex-direction: column; }
.level__body { flex: 1; align-items: flex-end; }
/* School stage cards: smaller one-line titles; the bottom line is 2px and turns gold on hover. */
.level__title { font-size: clamp(1.05rem, 1.45vw, 1.3rem); white-space: nowrap; margin-top: 4px; }
.level__body > div { min-width: 0; }
.level__body { border-bottom: 2px solid var(--line); }
.level:hover .level__body { border-bottom-color: var(--gold); }
/* ==========================================================================
   Story of the school: headline and text side by side, then the school photo across the page
   (the photo is a wide panorama, so it fills the width at its natural shape).
   ========================================================================== */
.story { background: var(--paper); color: var(--ink); }
/* Footer text: smaller. */
.site-footer__about { font-size: .9375rem; line-height: 1.7; }
.site-footer__title { font-size: 1.2rem; }
.site-footer__links,
.site-footer__contact { font-size: .9375rem; line-height: 1.55; }
.site-footer__links li + li,
.site-footer__contact li + li { margin-top: 10px; }
.site-footer__bottom { font-size: .875rem; }
/* ==========================================================================
   About the school (story): a statement layout
   Small tagline and a large headline, the paragraph set as a big serif statement
   beside it, then the school photo across the page. Sits right after the hero.
   ========================================================================== */
.story { background: var(--white); }
/* ==========================================================================
   About the school: edge-to-edge split. The photo fills the left half of the page,
   the text sits on a calm panel on the right.
   ========================================================================== */
.story { padding: 0; background: var(--paper); }
.story > .container { max-width: none; padding: 0; }
/* ==========================================================================
   About the school: the campus photo fills the whole band, a deep navy shade on the left
   carries the white text.
   ========================================================================== */
.story {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 46vw, 680px);
    padding: clamp(64px, 7vw, 104px) 0;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
}
.story > .container { position: relative; z-index: 2; max-width: var(--max); padding-inline: var(--gutter); }
.story::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 23, 58, .94) 0%, rgba(8, 23, 58, .82) 34%, rgba(8, 23, 58, .3) 66%, rgba(8, 23, 58, 0) 90%);
    pointer-events: none;
}
.story .btn { background: var(--gold); color: var(--navy-900); }
.story .btn i { background: var(--navy-900); color: var(--gold); }
.story .btn:hover { background: var(--white); }
@media (max-width: 991px) {
    .story { min-height: 0; padding: clamp(72px, 14vw, 120px) 0 clamp(48px, 10vw, 72px); }
    .story::after { background: linear-gradient(0deg, rgba(8, 23, 58, .96) 0%, rgba(8, 23, 58, .86) 45%, rgba(8, 23, 58, .35) 100%); }
}
/* The photo is positioned against the whole band, not the text container. */
.story > .container { position: static; z-index: auto; width: 100%; }
/* ==========================================================================
   About the school: a wide framed photo with a navy text panel overlapping its lower-left corner.
   ========================================================================== */
.story {
    position: static;
    isolation: auto;
    display: block;
    min-height: 0;
    padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
    background: var(--white);
    color: var(--ink);
    overflow: visible;
}
.story::after { display: none; }
.story > .container { position: relative; z-index: 1; width: 100%; max-width: var(--max); padding-inline: var(--gutter); }
/* ==========================================================================
   About the school: a tall photo on the left, the text beside it on a calm background.
   ========================================================================== */
.story { background: var(--paper); padding: clamp(72px, 8vw, 120px) 0; }
.story .btn { background: var(--navy-700); color: var(--white); }
.story .btn i { background: var(--gold); color: var(--navy-900); }
.story .btn:hover { background: var(--navy-900); }
/* About the school: more depth. A navy block behind the main photo, a smaller photo overlapping its corner
   and a quiet dot grid beside the text. */
.story { position: relative; overflow: hidden; }
.story::before {
    content: "";
    position: absolute;
    top: clamp(36px, 5vw, 72px);
    right: var(--gutter);
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(11, 45, 91, .28) 0 1.4px, transparent 1.9px) 0 0 / 16px 16px;
    pointer-events: none;
}
@media (max-width: 991px) {
    .story::before { display: none; }
}
/* About the school: same language as the rest of the site (white section, 8px photo with the card shadow,
   section-heading size, standard paragraph size, one gold accent). */
.story { background: var(--white); overflow: visible; }
.story::before { display: none; }
.story .btn { background: var(--navy-700); color: var(--white); }
/* Navy block behind the About photo (back again), with the photo itself keeping 8px corners and the card shadow. */
/* About the school: four short points under the paragraph (soft coloured icon, label, thin dividers). */
/* About points: closer together (columns only as wide as their text). */
/* ==========================================================================
   About the school (final design, after the reference picture): rounded photo framed by a navy
   and a gold block, a white "Learn • Grow • Excel" chip, an "OUR STORY" eyebrow, a bold two-line
   headline, four round-icon points, a navy button with a gold edge and a handwritten line.
   ========================================================================== */
.story { background: linear-gradient(180deg, #ffffff 0%, #faf9f4 100%); overflow: hidden; }
/* photo + frame */
/* text column */
/* four points with round pastel icons */
/* button with a gold edge + handwritten line */
.story .btn { padding: 18px 30px; background: var(--navy-900); color: var(--white); box-shadow: 4px 5px 0 #d4af37; font-size: 1.0625rem; font-weight: 600; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.story .btn:hover { background: var(--navy-900); transform: translate(2px, 2px); box-shadow: 2px 3px 0 #d4af37; }
.story .btn i { width: auto; height: auto; background: none; color: var(--white); font-size: 1.1rem; }
.story .btn:hover i { background: none; color: var(--white); transform: translateX(4px); }
/* About the school: the text column goes back to the earlier look (gold bar, italic tagline, standard
   heading and paragraph, square-icon points, navy button with a gold arrow circle). The photo side keeps the framed design. */
.story .btn { padding: 8px 8px 8px 28px; background: var(--navy-700); color: var(--white); box-shadow: none; font-size: .9375rem; font-weight: 700; transition: background-color .3s var(--ease), color .3s var(--ease); }
.story .btn:hover { background: var(--gold); color: var(--navy-900); transform: none; box-shadow: none; }
.story .btn i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-size: 1rem; }
.story .btn:hover i { background: var(--navy-900); color: var(--gold); transform: translateX(4px); }
/* About points wrap onto two lines again, as before. */
/* About photo: no gold bar above the text, no gold block behind the photo, corners from --radius,
   and the navy block is 60% of the photo's width and 70% of its height. */
/* Navy block behind the About photo: 80% of the photo's width, 85% of its height. */
/* Thin gold corner line: top-right radius from --radius. */
/* Notice board: a short line of text under the headline. */
.notice__text { margin: clamp(16px, 1.8vw, 24px) 0 0; max-width: 24em; font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, .82); }
/* Our School (school levels): a soft blue-grey background with a very faint square grid and a light glow. */
.levels-band {
    background-color: #eef2f8;
    background-image:
       radial-gradient(circle at 88% 12%, rgba(212, 175, 55, .16), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(24, 86, 173, .12), transparent 38%),
    linear-gradient(rgba(11, 45, 91, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 45, 91, .02) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px, 40px 40px;
}
/* ==========================================================================
   Homepage polish: one colour and corner system, and matching hover motion
   ========================================================================== */
/* Principal frame uses the same navy as the About frame. */
.principal__figure::before { background: var(--navy-900); }
/* About: the photo zooms slowly, the navy block slides back and the points react. */
/* Cards lift on hover (the up-and-down offset of the cards is margin-based and is not touched). */
.level,
.fac__card { will-change: transform; }
.level:hover { translate: 0 -8px; }
.fac__card:hover { translate: 0 -6px; }
.fac__card { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
/* Statistics, principal, testimonials and buttons. */
.stat { transition: transform .5s var(--ease); }
.stat:hover { translate: 0 -6px; }
.principal__plate { transition: transform .5s var(--ease); }
.principal__figure:hover .principal__plate { transform: translate(6px, -6px); }
.principal__figure::before { transition: transform .6s var(--ease); }
.principal__figure:hover::before { transform: translate(-8px, -8px); }
.testi__avatar { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.testi__slide:hover .testi__avatar { transform: scale(1.08); box-shadow: 0 14px 26px -12px rgba(11, 45, 91, .5); }
.btn,
.hero__cta { transition: translate .35s var(--ease), transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .35s var(--ease); }
.btn:hover,
.hero__cta:hover { translate: 0 -3px; box-shadow: 0 16px 28px -14px rgba(11, 45, 91, .55); }
.round-btn { transition: transform .35s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
button.round-btn:hover { transform: scale(1.08); }
@media (hover: none), (prefers-reduced-motion: reduce) {
    .level:hover,
.fac__card:hover,
.stat:hover,
.btn:hover,
.hero__cta:hover { translate: none; }
}
/* Facilities: a short line of text under each title, on the dark fade over the photo. */
.fac__label { align-items: flex-end; }
.fac__info { min-width: 0; }
.fac__text { margin: 6px 0 0; font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.fac__card:nth-child(1) .fac__text,
.fac__card:nth-child(6) .fac__text { font-size: 1rem; max-width: 34em; }
.fac__card::after { background: linear-gradient(0deg, rgba(8, 23, 58, .94) 0%, rgba(8, 23, 58, .7) 36%, rgba(8, 23, 58, 0) 72%); }
/* Facilities: the number ring sits in the top-left corner of each photo; the title and text stay at the bottom. */
.fac__card .fac__label,
.fac__card:nth-child(n) .fac__label { position: absolute; inset: 0; display: block; padding: 0; }
.fac__card .fac__num { position: absolute; top: clamp(12px, 1.4vw, 18px); left: clamp(12px, 1.4vw, 18px); z-index: 2; }
.fac__card .fac__info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.6vw, 22px); }
.fac__card:nth-child(1) .fac__info { padding: clamp(20px, 2.6vw, 34px); }
/* Facility numbers: a solid navy badge with a gold ring and a shadow, so they read on any photo. */
.fac__card .fac__num,
.fac__card:hover .fac__num {
    width: 42px;
    height: 42px;
    background: var(--navy-900);
    border: 2px solid var(--gold);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px -6px rgba(8, 23, 58, .7);
}
.fac__card:hover .fac__num { background: var(--gold); color: var(--navy-900); }
.fac__grid .fac__card:nth-child(n) .fac__num { width: 42px; height: 42px; background: var(--navy-900); border: 2px solid var(--gold); color: var(--white); font-size: 1rem; font-weight: 700; box-shadow: 0 8px 18px -6px rgba(8, 23, 58, .7); }
.fac__grid .fac__card:nth-child(n):hover .fac__num { background: var(--gold); color: var(--navy-900); }
/* ==========================================================================
   Admission box above the footer (every page). It sits directly on the footer: same navy family,
   no gap, faint rings behind a centred heading and two buttons.
   ========================================================================== */
.admit {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 7vw, 104px) 0 clamp(56px, 6vw, 88px);
    background:
        radial-gradient(circle at 0 0, rgba(30, 111, 217, .28), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .22), transparent 40%),
        var(--navy-950);
    color: var(--white);
    text-align: center;
}
.admit::before,
.admit::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
    translate: -50% -50%;
}
.admit::before { width: min(760px, 120vw); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 0 0 130px rgba(255, 255, 255, 0), 0 0 0 1px rgba(255, 255, 255, 0); }
.admit::after { width: min(1180px, 190vw); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .07); }
.admit__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.admit__title { max-width: 16em; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4.8vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; color: var(--white); }
.admit__text { max-width: 38em; margin: clamp(18px, 2.2vw, 28px) 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.7; color: rgba(255, 255, 255, .82); }
.admit__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: clamp(26px, 3vw, 40px); }
/* The footer continues straight from the admission box. */
.admit + .site-footer { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
/* Admission box, second version: a lighter blue background with a fine dot grid instead of the rings,
   and the site's own pill buttons (same as the hero buttons). */
.admit {
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .16), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(7, 31, 66, .55), transparent 46%),
        linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
}
.admit::before {
    inset: 0;
    left: 0;
    top: 0;
    width: auto;
    aspect-ratio: auto;
    translate: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .34) 0 1px, transparent 1.6px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 42%, transparent 62%, #000 100%);
    mask-image: linear-gradient(115deg, #000 0%, transparent 42%, transparent 62%, #000 100%);
    opacity: .55;
}
.admit::after { display: none; }
.admit__actions .hero__cta { margin-top: 0; }
.admit__actions .hero__cta--ghost { padding-inline: 28px; }
/* News & Events: the cards sit on one straight line (the up-and-down offset is removed). */
/* ==========================================================================
   Academic excellence: heading and button on the left, four white cards on the right.
   Same language as the rest of the site: white section, 8px cards with the soft card shadow,
   pastel rounded-square icons (as in the About points), navy serif headings, gold only as a small accent.
   ========================================================================== */
.acad { background: var(--white); }
.acad__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.acad__intro p { margin: clamp(18px, 2.2vw, 28px) 0 clamp(24px, 3vw, 36px); max-width: 26em; font-size: var(--p-size); line-height: 1.85; color: var(--ink); }
.acad__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.acad__card {
    padding: clamp(22px, 2.4vw, 32px);
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 18px 38px -22px rgba(11, 45, 91, .45), 0 2px 8px -2px rgba(11, 45, 91, .12);
    border-top: 3px solid transparent;
    transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.acad__card:hover { translate: 0 -6px; border-top-color: var(--gold); box-shadow: 0 26px 48px -22px rgba(11, 45, 91, .55), 0 2px 8px -2px rgba(11, 45, 91, .14); }
.acad__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; font-size: 1.3rem; transition: transform .45s var(--ease); }
.acad__card:hover .acad__icon { transform: scale(1.1) rotate(-4deg); }
.acad__icon--1 { background: #e4eefc; color: #1856ad; }
.acad__icon--2 { background: #e0f4e8; color: #1f8a52; }
.acad__icon--3 { background: #fff2cc; color: #d29a00; }
.acad__icon--4 { background: #ebe6ff; color: #5b43c9; }
.acad__title { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 500; line-height: 1.25; color: var(--navy-900); }
.acad__text { margin: 0; font-size: .9375rem; line-height: 1.7; color: var(--body); }
@media (max-width: 991px) {
    .acad__grid { grid-template-columns: minmax(0, 1fr); }
    .acad__intro p { max-width: none; }
}
@media (max-width: 560px) {
    .acad__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
    .acad__card:hover { translate: none; }
}
/* Top bar: stroke (outline) icons, plus Career and Parent Portal links beside the social icons. */
.line-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__contact .line-icon { color: var(--navy-900); }
.topbar__right { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); flex: none; }
.topbar .social { gap: 4px; }
.topbar .social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--navy-900); transition: background-color .3s var(--ease), color .3s var(--ease), transform .35s var(--ease); }
.topbar .social a .line-icon { width: 16px; height: 16px; }
.topbar .social a:hover { background: var(--navy-900); color: var(--gold); transform: translateY(-2px); }
.topbar__links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0 0 0 clamp(12px, 1.6vw, 22px); border-left: 1px solid rgba(11, 45, 91, .3); list-style: none; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--navy-900); transition: background-color .3s var(--ease), color .3s var(--ease); }
.topbar__links a .line-icon { width: 16px; height: 16px; }
.topbar__links a:hover { background: var(--navy-900); color: var(--white); }
@media (max-width: 700px) {
    .topbar__right { width: 100%; justify-content: space-between; }
    .topbar__links { padding-left: 0; border-left: 0; }
}
@media (max-width: 1000px) {
    .topbar__inner { flex-wrap: wrap; row-gap: 6px; padding-block: 8px; }
    .topbar__contact { flex: 1 1 100%; }
    .topbar__right { width: 100%; justify-content: space-between; }
    .topbar__links { padding-left: 0; border-left: 0; }
}
/* ==========================================================================
   Photo treatment for the About and Principal sections (replaces the navy block and gold outline):
   a soft blue glow behind the photo, a fine white frame inside it, and a slow zoom on hover.
   ========================================================================== */
.principal__figure::after { display: none; }
.principal__figure::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    inset: 8% -5% -9% -5%;
    width: auto;
    height: auto;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(30, 111, 217, .30), rgba(30, 111, 217, 0) 100%);
    filter: blur(14px);
    transform: none;
    transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.principal__figure:hover::before { transform: scale(1.06); }
.principal__photo { box-shadow: 0 30px 60px -32px rgba(11, 45, 91, .55); }
.principal__photo::after {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: var(--radius);
    pointer-events: none;
    transition: inset .6s var(--ease), border-color .6s var(--ease);
}
.principal__figure:hover .principal__photo::after { inset: 20px; border-color: rgba(255, 255, 255, .95); }
.principal__figure { isolation: isolate; }
/* Facilities: the number ring and the title share one line at the bottom; the text sits under the title. */
.fac__card .fac__label,
.fac__card:nth-child(n) .fac__label {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: clamp(14px, 1.6vw, 22px);
}
.fac__card:nth-child(1) .fac__label { padding: clamp(20px, 2.6vw, 34px); }
.fac__grid .fac__card:nth-child(n) .fac__num { position: static; flex: none; margin-top: -4px; }
.fac__card .fac__info,
.fac__card:nth-child(1) .fac__info { position: static; padding: 0; flex: 1; min-width: 0; }
.fac__title { line-height: 34px; margin: 0; }
.fac__card:nth-child(1) .fac__title { line-height: 38px; }
.fac__grid .fac__card:nth-child(n) .fac__num { margin-top: 0; }
.fac__title,
.fac__card:nth-child(1) .fac__title { line-height: 42px; }
.fac__grid .fac__card:nth-child(n) .fac__title { line-height: 42px; margin: 0; }
.fac__grid .fac__card:nth-child(n) .fac__label { flex-direction: row; align-items: flex-start; gap: 14px; }
/* Facility numbers: no filled background, only the gold ring (and no fill on hover either). */
.fac__grid .fac__card:nth-child(n) .fac__num,
.fac__grid .fac__card:nth-child(n):hover .fac__num { background: transparent; box-shadow: none; color: var(--white); text-shadow: 0 1px 8px rgba(8, 23, 58, .8); }
/* Facilities: the number ring is centred on the whole text block (title + description). */
.fac__grid .fac__card:nth-child(n) .fac__label { align-items: center; }
.fac__grid .fac__card:nth-child(n) .fac__title { line-height: 1.25; }
/* Facility numbers: on hover the ring grows and tilts, the number turns gold and a soft ripple fades out from the ring. */
@keyframes fac-ripple { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .6); } 100% { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0); } }
.fac__grid .fac__card:nth-child(n) .fac__num { transition: transform .5s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.fac__grid .fac__card:nth-child(n):hover .fac__num {
    transform: scale(1.14) rotate(-8deg);
    color: var(--gold);
    border-color: var(--white);
    animation: fac-ripple 1.1s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .fac__grid .fac__card:nth-child(n):hover .fac__num { animation: none; }
}
/* ==========================================================================
   News & Events card (after the reference picture): a large rounded photo, and a white panel that
   overlaps its lower edge with the date, the title and "Read more".
   ========================================================================== */
/* News card: the white panel is as wide as the photo. */
/* News card date as a badge: a pill with the calendar icon. */
/* ==========================================================================
   Facilities (new design): a list of six facilities on the left, a large photo on the right.
   Pointing at (or tapping) a facility shows its photo; it also steps through them on its own.
   ========================================================================== */
.fac { background: var(--white); }
.fac__showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.4vw, 64px); align-items: stretch; margin-top: clamp(32px, 4vw, 56px); }
.fac__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fac__list li { border-bottom: 1px solid var(--line); }
.fac__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: clamp(16px, 1.8vw, 22px) 12px clamp(16px, 1.8vw, 22px) 8px;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: background-color .35s var(--ease), padding .4s var(--ease);
}
.fac__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 3px;
    border-radius: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform .4s var(--ease);
}
.fac__item .fac__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(11, 45, 91, .25);
    border-radius: 50%;
    background: transparent;
    font-family: var(--serif);
    font-size: .9375rem;
    font-weight: 700;
    color: var(--navy-700);
    box-shadow: none;
    text-shadow: none;
    transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.fac__item .fac__info { display: block; flex: 1; min-width: 0; padding: 0; position: static; }
.fac__item .fac__title { display: block; margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.25; color: var(--navy-900); }
.fac__item .fac__text { display: block; max-height: 0; margin: 0; overflow: hidden; font-size: .9375rem; line-height: 1.6; color: var(--body); opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease); }
.fac__go { flex: none; color: var(--navy-700); opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .4s var(--ease); }
.fac__item:hover,
.fac__item.is-active { background: #faf9f4; padding-left: 20px; }
.fac__item.is-active::before,
.fac__item:hover::before { transform: scaleY(1); }
.fac__item.is-active .fac__num,
.fac__item:hover .fac__num { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); transform: scale(1.06); }
.fac__item.is-active .fac__text { max-height: 6em; margin-top: 6px; opacity: 1; }
.fac__item.is-active .fac__go,
.fac__item:hover .fac__go { opacity: 1; transform: none; }
/* The big photo. */
.fac__stage { position: relative; min-height: clamp(320px, 38vw, 520px); overflow: hidden; border-radius: 15px; background: var(--navy-800); box-shadow: 0 18px 38px -22px rgba(11, 45, 91, .5), 0 2px 8px -2px rgba(11, 45, 91, .12); }
.fac__shot { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.fac__shot.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.fac__shot picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fac__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 5.5s var(--ease); }
.fac__shot.is-active img { transform: scale(1); }
.fac__shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(0deg, rgba(8, 23, 58, .78), rgba(8, 23, 58, 0)); pointer-events: none; }
.fac__shot figcaption { position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 32px); bottom: clamp(16px, 2vw, 26px); display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.7rem); color: var(--white); text-shadow: 0 1px 12px rgba(8, 23, 58, .6); }
.fac__shot figcaption span { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1.5px solid var(--gold); border-radius: 50%; font-size: .9rem; font-weight: 700; }
@media (max-width: 991px) {
    .fac__showcase { grid-template-columns: minmax(0, 1fr); }
    .fac__stage { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
    .fac__item.is-active .fac__text { max-height: 8em; }
}
@media (hover: none) {
    .fac__item:hover { background: transparent; padding-left: 8px; }
    .fac__item.is-active { background: #faf9f4; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .fac__shot img { transform: none; transition: none; }
    .fac__shot { transition: none; }
}
/* ==========================================================================
   About the school: a navy section with the school photo in a tall arched window.
   Headline, paragraph and button on the left; the four points as numbered columns along the foot.
   ========================================================================== */
.ab2 { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); padding-block: clamp(72px, 8vw, 128px); }
.ab2::before { content: ""; position: absolute; inset: -20% auto auto -10%; width: 60vw; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(30, 111, 217, .35), transparent); pointer-events: none; }
.ab2 .container { position: relative; }
.ab2__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab2__title { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 4.8rem); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; color: var(--white); }
.ab2__lede { max-width: 31em; margin: clamp(22px, 2.6vw, 34px) 0 clamp(26px, 3vw, 40px); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.8; color: rgba(255, 255, 255, .86); }
/* the arched window */
.ab2__window { position: relative; margin: 0 clamp(0px, 2vw, 24px) 0 0; aspect-ratio: 3 / 4; }
/* four numbered points */
.ab2__points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.ab2__points li { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px) clamp(12px, 2vw, 28px) 0 0; transition: translate .4s var(--ease); }
.ab2__points li + li { padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .14); }
.ab2__no { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; color: var(--gold); }
.ab2__point { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--white); }
.ab2__points li:hover { translate: 0 -4px; }
@media (max-width: 991px) {
    .ab2__top { grid-template-columns: minmax(0, 1fr); }
    .ab2__window { max-width: 420px; margin: 8px auto 0; }
    .ab2__points { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
    .ab2__points li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ab2__points li:hover { translate: none; }
}
.ab2__window { width: 100%; justify-self: center; }
@media (max-width: 991px) {
    .ab2__window { width: min(100%, 420px); }
}
/* About: warm ivory background (no blue), charcoal text, gold accents. */
.ab2 { background: #faf9f4; color: var(--ink); }
.ab2::before { background: radial-gradient(closest-side, rgba(212, 175, 55, .22), transparent); }
.ab2__title { color: #2b2a33; }
.ab2__lede { color: #4a4650; }
.ab2__points { border-top-color: rgba(43, 42, 51, .22); }
.ab2__points li + li { border-left-color: rgba(43, 42, 51, .14); }
.ab2__no { color: #8f6d17; }
.ab2__point { color: #2b2a33; }
/* About: plain white background. */
.ab2 { background: var(--white); }
.ab2::before { display: none; }
/* About: the four numbered points are hidden (the content stays in the admin). */
.ab2__points { display: none; }
/* About photo, better design: a tall arch with a sand-coloured arch behind it, a fine gold arch outline on the other side,
   a bright inner line on the photo, and the caption as a white pill that overlaps the bottom edge. */
.ab2__window { margin-bottom: 34px; isolation: isolate; }
.ab2__window::before {
    content: "";
    position: absolute;
    inset: -14px 14px 14px -14px;
    border: 1px solid rgba(160, 111, 0, .55);
    border-radius: 999px 999px 18px 18px;
    z-index: -1;
    pointer-events: none;
    transition: transform .7s var(--ease);
}
.ab2__window:hover::before { transform: translate(-6px, -6px); }
/* ==========================================================================
   About photo, new design: the photo is cut into three tall strips that sit at different heights,
   so the building appears to step across the section. A small gold block and a caption tab finish it.
   ========================================================================== */
.ab2__window {
    --g: 12px;
    --sw: calc((100cqw - 2 * var(--g)) / 3);
    container-type: size;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.02;
    margin: 0 0 34px;
    isolation: auto;
}
.ab2__window::before { display: none; }
/* gold block peeking out behind the last strip */
.ab2__window::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 34%; height: 18%; background: var(--gold); border-radius: 3px; z-index: -1; }
@media (max-width: 991px) {
    .ab2__window { width: min(100%, 440px); }
}
/* strips: positions in container-height units so the three pieces line up as one photo; a sand panel behind keeps the pale sky visible on white */
.ab2__window::before { display: block; content: ""; position: absolute; inset: 6% -6% -6% 10%; background: #faf9f4; border-radius: 3px; z-index: -2; border: 0; transform: none; }
.ab2__window:hover::before { transform: none; }
.ab2__window { isolation: isolate; }
/* ==========================================================================
   About photo, final: one large photo with small rounded corners and a soft shadow,
   and a white card floating over its lower-left corner.
   ========================================================================== */
.ab2__window.ab2__window--card {
    container-type: normal;
    aspect-ratio: auto;
    isolation: isolate;
    margin: 0 0 40px;
}
.ab2__window--card::before,
.ab2__window--card::after { display: none; }
.ab2__photo { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 15px; background: #ececec; box-shadow: 0 30px 56px -34px rgba(30, 25, 20, .55); }
.ab2__photo picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ab2__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transition: transform 1.4s var(--ease); }
.ab2__window--card:hover .ab2__photo img { transform: scale(1.05); }
.ab2__float {
    position: absolute;
    left: clamp(-36px, -2.4vw, -16px);
    bottom: -28px;
    z-index: 2;
    display: grid;
    gap: 4px;
    max-width: min(78%, 270px);
    padding: 20px 24px 22px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 26px 44px -22px rgba(30, 25, 20, .5);
    transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.ab2__float strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: #2b2a33; }
.ab2__float span:last-child { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8a6a1c; }
.ab2__window--card:hover .ab2__float { translate: 6px -8px; box-shadow: 0 34px 54px -22px rgba(30, 25, 20, .55); }
@media (max-width: 991px) {
    .ab2__window.ab2__window--card { width: min(100%, 460px); margin-inline: auto; }
    .ab2__photo { aspect-ratio: 4 / 4.2; }
    .ab2__float { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ab2__window--card:hover .ab2__float { translate: none; }
}
/* About, left side: the same styles as every other section (tagline, heading, paragraph and button of the site). */
.ab2__title.heading { font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
.ab2__title .heading__lead { display: block; margin: 0 0 .5em; font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--navy-700); }
.ab2__title .heading__lead::after { display: none; }
.ab2__lede.ab2__p { max-width: 30em; margin: clamp(18px, 2.2vw, 28px) 0 clamp(24px, 3vw, 36px); font-size: var(--p-size); line-height: 1.85; color: var(--ink); }
.ab2 .btn { background: var(--navy-700); color: var(--white); border: 0; }
.ab2 .btn:hover { background: var(--gold); color: var(--navy-900); }
/* About: text column 40%, photo column 60%. */
.ab2__top { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 991px) {
    .ab2__top { grid-template-columns: minmax(0, 1fr); }
}
/* About: on desktop the photo is as tall as the text column (the floating card hangs below it). */
@media (min-width: 992px) {
    .ab2__top { align-items: stretch; }
    .ab2__text { display: flex; flex-direction: column; justify-content: center; }
    .ab2__window.ab2__window--card { display: flex; flex-direction: column; margin-bottom: 40px; }
    .ab2__window--card .ab2__photo { flex: 1; aspect-ratio: auto; min-height: 340px; }
}
@media (min-width: 992px) {
    .ab2__window.ab2__window--card { margin-bottom: 0; }
}
/* One button size across the site: every pill button is 60px tall with 15px text. */
.btn,
.hero__cta,
.hero__cta--ghost { min-height: 60px; box-sizing: border-box; font-size: .9375rem; font-weight: 700; line-height: 1; }
.hero__cta,
.hero__cta--ghost { padding-block: 0; padding-inline: 28px; justify-content: center; }
.hero__cta--ghost { padding-inline: 28px; }
.hero__cta i { font-size: 1rem; }
/* About button: only as wide as its content (the column is a flex column, which stretched it). */
.ab2__text .btn { align-self: flex-start; width: fit-content; }
/* About floating badge: inside the photo, in the top-left corner. */
.ab2__float { left: clamp(14px, 1.6vw, 22px); top: clamp(14px, 1.6vw, 22px); bottom: auto; max-width: min(72%, 270px); }
@media (max-width: 991px) {
    .ab2__float { left: 14px; top: 14px; }
}
.ab2__window--card:hover .ab2__float { translate: 4px 4px; }
/* Badge now holds only the one line of text. */
.ab2__float { padding: 16px 24px; width: fit-content; }
/* About badge: compact, in the same language as the principal's name plate (white, thin gold edge, serif text). */
.ab2__float {
    padding: 11px 18px 12px 16px;
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 14px 28px -16px rgba(30, 25, 20, .45);
}
.ab2__float strong { font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
@media (max-width: 480px) {
    .ab2__float { padding: 9px 14px 10px 12px; }
    .ab2__float strong { font-size: .9rem; }
}
/* ==========================================================================
   Facilities, new design: a row of tall photo panels (an accordion). The panel you point at (or tap)
   opens wide and shows the title and text; the others stay narrow with the title written sideways.
   It also steps through the panels on its own.
   ========================================================================== */
.fac__panels { display: flex; gap: 10px; height: clamp(380px, 42vw, 560px); margin-top: clamp(30px, 4vw, 52px); }
.fac__panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 15px;
    background: var(--navy-800);
    color: var(--white);
    text-align: left;
    cursor: pointer;
    transition: flex-grow .7s var(--ease), box-shadow .5s var(--ease);
}
.fac__panel.is-active { flex-grow: 5.2; box-shadow: 0 26px 46px -28px rgba(11, 45, 91, .6); }
.fac__panel picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fac__panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.fac__panel.is-active img { transform: scale(1); }
.fac__panel:not(.is-active):hover img { transform: scale(1.18); }
.fac__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 23, 58, .85), rgba(8, 23, 58, .25) 55%, rgba(8, 23, 58, .15)); transition: opacity .5s var(--ease); }
.fac__panel:not(.is-active) .fac__shade { background: rgba(8, 23, 58, .5); }
.fac__panel:not(.is-active):hover .fac__shade { background: rgba(8, 23, 58, .32); }
.fac__no { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--gold); border-radius: 50%; font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--white); text-shadow: 0 1px 8px rgba(8, 23, 58, .8); transition: transform .5s var(--ease), color .35s var(--ease); }
.fac__panel:hover .fac__no { transform: scale(1.1) rotate(-8deg); color: var(--gold); }
.fac__side { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; color: var(--white); transition: opacity .35s var(--ease); }
.fac__panel.is-active .fac__side { opacity: 0; }
.fac__body { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: clamp(18px, 2.2vw, 30px); opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease) .15s, transform .55s var(--ease) .15s; pointer-events: none; }
.fac__panel.is-active .fac__body { opacity: 1; transform: none; }
.fac__title { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.15; color: var(--white); }
.fac__text { display: block; max-width: 28em; margin-top: 8px; font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
/* Phones and tablets: the panels stack and the active one grows taller. */
@media (max-width: 767px) {
    .fac__panels { flex-direction: column; height: auto; gap: 8px; }
    .fac__panel { flex: none; height: 74px; transition: height .6s var(--ease), box-shadow .5s var(--ease); }
    .fac__panel.is-active { height: min(70vw, 340px); }
    .fac__side { writing-mode: horizontal-tb; transform: none; left: 76px; bottom: auto; top: 50%; translate: 0 -50%; font-size: 1.1rem; }
    .fac__no { top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .fac__panel,
.fac__panel img,
.fac__body { transition: none; }
}
/* ==========================================================================
   Facilities, third design: one wide row per facility. A big photo, and beside it a large outlined number,
   the title, a short gold line and the text. The photo side alternates left and right as you scroll down.
   ========================================================================== */
.fac__rows { display: grid; gap: clamp(36px, 5vw, 72px); margin-top: clamp(32px, 4vw, 56px); }
.fac__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.fac__row--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fac__row--flip .fac__pic { order: 2; }
.fac__pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px; background: var(--navy-800); box-shadow: 0 24px 44px -30px rgba(11, 45, 91, .5); }
.fac__pic picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fac__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.fac__row:hover .fac__pic img { transform: scale(1.05); }
.fac__copy { position: relative; padding-block: 8px; }
.fac__no {
    display: block;
    margin: 0 0 4px -4px;
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 600;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold);
    transition: color .5s var(--ease), transform .6s var(--ease);
}
.fac__row:hover .fac__no { color: var(--gold); transform: translateX(6px); }
.fac__title { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 500; line-height: 1.15; color: var(--navy-900); }
.fac__title::after { content: ""; display: block; width: 44px; height: 3px; margin: 16px 0 14px; background: var(--gold); transition: width .5s var(--ease); }
.fac__row:hover .fac__title::after { width: 84px; }
.fac__text { max-width: 26em; margin: 0; font-size: var(--p-size); line-height: 1.8; color: var(--ink); }
@media (max-width: 767px) {
    .fac__row,
.fac__row--flip { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .fac__row--flip .fac__pic { order: 0; }
    .fac__no { font-size: 3.6rem; }
}
/* ==========================================================================
   Facilities, fourth design: stacked photo cards. Each card is a wide photo with the number, title and text over a
   dark fade at its foot. The cards stick near the top as you scroll, so the next one slides up and covers the last,
   leaving a thin strip of each earlier card showing above.
   ========================================================================== */
.fac__stack { position: relative; margin-top: clamp(32px, 4vw, 56px); padding-bottom: 8px; }
.fac__sheet {
    --top: calc(112px + var(--i) * 16px);
    position: sticky;
    top: var(--top);
    height: clamp(340px, 56vh, 560px);
    margin-bottom: clamp(28px, 6vh, 64px);
    overflow: hidden;
    border-radius: 15px;
    background: var(--navy-800);
    box-shadow: 0 -10px 30px -14px rgba(11, 45, 91, .35), 0 30px 50px -30px rgba(11, 45, 91, .6);
    transform-origin: 50% 0;
}
.fac__sheet:last-child { margin-bottom: 0; }
.fac__sheet-pic { position: absolute; inset: 0; }
.fac__sheet-pic picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fac__sheet-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.fac__sheet:hover .fac__sheet-pic img { transform: scale(1.04); }
.fac__sheet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 23, 58, .88) 0%, rgba(8, 23, 58, .35) 42%, rgba(8, 23, 58, 0) 70%); pointer-events: none; }
.fac__sheet-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3.2vw, 46px); max-width: 44rem; }
.fac__sheet .fac__no { display: inline-block; margin: 0 0 12px; font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .24em; color: var(--gold); -webkit-text-stroke: 0; transform: none; }
.fac__sheet .fac__no i { font-style: normal; color: rgba(255, 255, 255, .7); }
.fac__sheet .fac__title { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.9rem); font-weight: 500; line-height: 1.1; color: var(--white); }
.fac__sheet .fac__title::after { content: ""; display: block; width: 44px; height: 3px; margin: 14px 0 12px; background: var(--gold); transition: width .5s var(--ease); }
.fac__sheet:hover .fac__title::after { width: 84px; }
.fac__sheet .fac__text { max-width: 30em; margin: 0; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, .92); }
@media (max-width: 767px) {
    .fac__sheet { --top: calc(88px + var(--i) * 12px); height: clamp(300px, 62vh, 420px); }
    .fac__sheet .fac__text { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fac__sheet { position: relative; top: auto; }
}
/* Facilities: two cards per row; each row stacks over the one before it. */
.fac__stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); align-items: start; }
.fac__sheet { height: clamp(300px, 46vh, 440px); margin-bottom: clamp(20px, 4vh, 40px); }
.fac__sheet:nth-last-child(-n+2) { margin-bottom: 0; }
.fac__sheet-info { padding: clamp(18px, 2.2vw, 30px); max-width: none; }
.fac__sheet .fac__title { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.fac__sheet .fac__text { font-size: .9375rem; max-width: 26em; }
@media (max-width: 767px) {
    .fac__stack { grid-template-columns: minmax(0, 1fr); }
    .fac__sheet { height: clamp(280px, 56vh, 400px); }
    .fac__sheet:nth-last-child(2) { margin-bottom: clamp(20px, 4vh, 40px); }
}
/* ==========================================================================
   Facilities, fifth design: the two-row, four-column photo grid from your reference image
   (the first and last photos are twice as wide). Title and text sit on the photo; on hover the photo zooms
   and the text card lifts.
   ========================================================================== */
.facg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 22vw, 320px); gap: clamp(12px, 1.4vw, 18px); margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.facg__card { position: relative; overflow: hidden; border-radius: 15px; background: var(--navy-800); box-shadow: 0 18px 36px -24px rgba(11, 45, 91, .5); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.facg__card:nth-child(1),
.facg__card:nth-child(6) { grid-column: span 2; }
.facg__card picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.facg__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.facg__card:hover { translate: 0 -6px; box-shadow: 0 28px 46px -24px rgba(11, 45, 91, .6); }
.facg__card:hover img { transform: scale(1.07); }
.facg__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 23, 58, .9) 0%, rgba(8, 23, 58, .45) 38%, rgba(8, 23, 58, 0) 66%); pointer-events: none; }
.facg__info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.6vw, 22px); }
.facg__title { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; line-height: 1.2; color: var(--white); }
.facg__title::after { content: ""; display: block; width: 32px; height: 2px; margin: 8px 0 7px; background: var(--gold); transition: width .5s var(--ease); }
.facg__card:hover .facg__title::after { width: 64px; }
.facg__text { margin: 0; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.facg__card:nth-child(1) .facg__title,
.facg__card:nth-child(6) .facg__title { font-size: clamp(1.4rem, 2.1vw, 2rem); }
.facg__card:nth-child(1) .facg__text,
.facg__card:nth-child(6) .facg__text { font-size: 1rem; max-width: 34em; }
@media (max-width: 991px) {
    .facg { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 34vw, 280px); }
    .facg__card:nth-child(1),
.facg__card:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .facg { grid-template-columns: minmax(0, 1fr); grid-auto-rows: clamp(220px, 62vw, 300px); }
    .facg__card:nth-child(n) { grid-column: auto; }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
    .facg__card:hover { translate: none; }
}
/* Admission box: the same content styles as the other sections (tagline + heading, standard paragraph, site buttons). */
.admit__title.heading { max-width: 16em; margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; color: var(--white); text-align: center; }
.admit__title .heading__lead { display: block; margin: 0 0 .5em; font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gold); }
.admit__title .heading__lead::before { display: none; }
.admit__text { max-width: 36em; margin: clamp(18px, 2.2vw, 28px) 0 0; font-size: var(--p-size); line-height: 1.85; color: rgba(255, 255, 255, .88); }
.admit__actions .btn { box-shadow: none; }
.admit__actions .btn--line { padding: 0 28px; background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); color: var(--white); }
.admit__actions .btn--line:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }
/* Header: full width bar, a little darker, with a fainter dot pattern. */
.site-header { padding-block: 0; margin-bottom: calc(-1 * var(--header-h)); }
.site-header__bar,
.site-header.is-stuck .site-header__bar {
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding-inline: calc(var(--gutter) + 16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .14), 0 20px 34px -24px rgba(0, 0, 0, .6);
}
.site-header__bar { background-color: rgba(8, 23, 58, .78); background-image: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%); }
.site-header.is-stuck .site-header__bar { background-color: rgba(8, 23, 58, .94); background-image: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 55%); }
.site-header__bar::before { opacity: .45; }
/* Hero eyebrow: same style as the section taglines (italic serif), in gold. */
.hero__eyebrow.heading__lead {
    display: block;
    margin: 0 0 .5em;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--gold);
    text-shadow: 0 1px 14px rgba(8, 23, 58, .8);
}
.hero__eyebrow.heading__lead::before { display: none; }
/* Top bar: the links come first, then the social icons, with the divider between them. */
.topbar__links { padding: 0 clamp(12px, 1.6vw, 22px) 0 0; border-left: 0; border-right: 1px solid rgba(11, 45, 91, .3); }
@media (max-width: 1000px) {
    .topbar__links { padding-right: 0; border-right: 0; }
}
/* Full-width header: its content lines up with the page content and the top bar. */
.site-header__bar,
.site-header.is-stuck .site-header__bar { padding-inline: max(calc(var(--gutter) + 16px), calc((100% - var(--max)) / 2 + var(--gutter) + 16px)); }
/* Gallery: the outer columns glide in from the sides as you scroll (driven by --gp, 0 to 1), the left one from above
   and the right one from below, and their photos ease from slightly small to full size. */
.gal.is-scroll-driven .gal__col--1 { transform: translate3d(calc((1 - var(--gp, 0)) * -16vw), calc((1 - var(--gp, 0)) * -12vh), 0); opacity: calc(.25 + var(--gp, 0) * .75); }
.gal.is-scroll-driven .gal__col--5 { transform: translate3d(calc((1 - var(--gp, 0)) * 16vw), calc((1 - var(--gp, 0)) * 12vh), 0); opacity: calc(.25 + var(--gp, 0) * .75); }
.gal.is-scroll-driven .gal__col--1 .gal__tile,
.gal.is-scroll-driven .gal__col--5 .gal__tile { scale: calc(.86 + var(--gp, 0) * .14); transform-origin: 50% 50%; }
.gal.is-scroll-driven .gal__col--1 .gal__tile:nth-child(odd),
.gal.is-scroll-driven .gal__col--5 .gal__tile:nth-child(even) { translate: 0 calc((1 - var(--gp, 0)) * -3vh); }
.gal.is-scroll-driven .gal__col--1 .gal__tile:nth-child(even),
.gal.is-scroll-driven .gal__col--5 .gal__tile:nth-child(odd) { translate: 0 calc((1 - var(--gp, 0)) * 3vh); }
/* News & Events: a marquee. The row of cards moves left without stopping and loops with no gap (the cards are
   listed twice and the track slides by exactly one copy). It slows to a stop while you point at it. */
/* ==========================================================================
   Statistics, redesigned after the reference picture (layout only; the colours and the content stay ours):
   four columns split by thin lines; in each, an icon with two soft overlapping circles behind it on the left,
   and on the right the number with a spaced "+" and the label under it, all left-aligned.
   ========================================================================== */
.stats__grid { align-items: stretch; }
.stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon value" "icon label";
    align-items: center;
    column-gap: clamp(14px, 1.6vw, 22px);
    row-gap: 2px;
    padding: clamp(34px, 4.2vw, 56px) clamp(14px, 2.4vw, 36px);
    text-align: left;
}
.stat:hover { translate: none; }
.stat__icon {
    grid-area: icon;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: clamp(64px, 6vw, 84px);
    height: clamp(56px, 5.2vw, 72px);
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    transform: none;
}
.stat__icon::before,
.stat__icon::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .6s var(--ease), background-color .4s var(--ease); }
.stat__icon::before { left: 0; top: 2px; width: 62%; aspect-ratio: 1; }
.stat__icon::after { left: 16%; top: -2px; width: 62%; aspect-ratio: 1; background: rgba(255, 255, 255, .2); }
.stat:hover .stat__icon { background: transparent; color: var(--white); transform: none; }
.stat:hover .stat__icon::before { transform: translateX(-4px); background: rgba(212, 175, 55, .3); }
.stat:hover .stat__icon::after { transform: translateX(6px); background: rgba(212, 175, 55, .4); }
.stat__value { grid-area: value; justify-content: flex-start; align-items: baseline; gap: .12em; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; }
.stat__plus { margin-left: .22em; font-weight: 500; color: var(--white); }
.stat__label { grid-area: label; margin: 0; font-size: .9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.4; color: rgba(255, 255, 255, .85); }
@media (max-width: 991px) {
    .stat:nth-child(odd) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
}
@media (max-width: 520px) {
    .stats__grid { grid-template-columns: minmax(0, 1fr); }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line-light); }
}
/* ==========================================================================
   Academic achievements: heading and text on the left, a ruled list of achievements on the right
   (year, title, text). Same language as the rest of the site: white section, serif titles, a gold line on hover.
   ========================================================================== */
.ach { background: var(--white); }
.ach__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ach__intro { position: sticky; top: 120px; }
.ach__intro p { max-width: 24em; margin: clamp(18px, 2.2vw, 28px) 0 0; font-size: var(--p-size); line-height: 1.85; color: var(--ink); }
.ach__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: ach; }
.ach__item {
    position: relative;
    display: grid;
    grid-template-columns: clamp(64px, 7vw, 96px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    padding: clamp(20px, 2.4vw, 30px) 8px;
    border-bottom: 1px solid var(--line);
    transition: background-color .4s var(--ease), padding .45s var(--ease);
}
.ach__item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--gold); transform: scaleY(0); transition: transform .4s var(--ease); }
.ach__item:hover { background: #faf9f4; padding-left: 22px; }
.ach__item:hover::before { transform: scaleY(1); }
@media (max-width: 991px) {
    .ach__grid { grid-template-columns: minmax(0, 1fr); }
    .ach__intro { position: static; }
}
@media (max-width: 520px) {
    .ach__item { grid-template-columns: minmax(0, 1fr) auto; }
}
/* Academic achievements: boxed. A warm ivory box as wide as the page content, so the section stands apart from the white sections around it. */
.ach { padding-block: clamp(36px, 5vw, 72px); }
.ach__grid {
    padding: clamp(28px, 4.4vw, 64px);
    background: #faf9f4;
    border-radius: 15px;
    box-shadow: 0 24px 44px -32px rgba(90, 62, 24, .4);
}
.ach__intro { top: 130px; }
.ach__list { border-top-color: rgba(60, 45, 15, .2); }
.ach__item { border-bottom-color: rgba(60, 45, 15, .16); }
.ach__item:hover { background: #faf9f4; }
@media (max-width: 991px) {
    .ach__grid { padding: clamp(22px, 5vw, 36px); }
}
/* Box edges line up with the page content (the container's side padding is not part of the box). */
.ach .container.ach__grid { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); padding: clamp(28px, 4.4vw, 64px); }
@media (max-width: 991px) {
    .ach .container.ach__grid { padding: clamp(22px, 5vw, 36px); }
}
/* Academic achievements: full width again, as a navy band like the statistics and notice board, so it is clearly set apart
   from the white sections and uses the site's own colours. */
.ach { padding-block: var(--section); background: var(--navy-900); color: var(--white); }
.ach .container.ach__grid { width: 100%; max-width: var(--max); padding: 0 var(--gutter); background: transparent; border-radius: 0; box-shadow: none; }
.ach .heading { color: var(--white); }
.ach .heading__lead { color: var(--gold); }
.ach__intro p { color: rgba(255, 255, 255, .86); }
.ach__list { border-top-color: rgba(255, 255, 255, .22); }
.ach__item { border-bottom-color: rgba(255, 255, 255, .16); }
.ach__item:hover { background: rgba(255, 255, 255, .06); }
@media (max-width: 991px) {
    .ach .container.ach__grid { padding: 0 var(--gutter); }
}
/* Principal photo: leaf-shaped corners (10px and 70px), and the same shape on the white frame inside the photo. */
.principal__photo { border-radius: 15px 70px; }
.principal__photo::after { border-radius: 15px 70px; }
/* ---- Final polish: one navy, steadier statistics ---- */
/* Achievements use the same navy and fine grid as the statistics and notice board. */
.ach {
    background-color: var(--navy-800);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(30, 111, 217, .35), transparent 40%),
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
    background-size: auto, 40px 40px, 40px 40px;
}
/* Statistics: tighter side padding so every label gets room and the four columns read the same. */
.stat { padding-inline: clamp(12px, 1.8vw, 24px); column-gap: clamp(12px, 1.4vw, 18px); }
.stat__icon { width: clamp(56px, 4.8vw, 68px); }
.stat__label { white-space: normal; }
/* Admission box: the main button is gold so it stands out, and the band uses the same navy as the footer it joins. */
.admit { background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .12), transparent 36%), linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%); }
.admit__actions .btn:not(.btn--line) { background: var(--gold); color: var(--navy-900); }
.admit__actions .btn:not(.btn--line) i { background: var(--navy-900); color: var(--gold); }
.admit__actions .btn:not(.btn--line):hover { background: var(--white); }
/* Gallery outer columns: both slide straight down from above as you scroll (no sideways movement). */
.gal.is-scroll-driven .gal__col--1,
.gal.is-scroll-driven .gal__col--5 { transform: translate3d(0, calc((1 - var(--gp, 0)) * -26vh), 0); }
.gal.is-scroll-driven .gal__col--1 .gal__tile:nth-child(odd),
.gal.is-scroll-driven .gal__col--1 .gal__tile:nth-child(even),
.gal.is-scroll-driven .gal__col--5 .gal__tile:nth-child(odd),
.gal.is-scroll-driven .gal__col--5 .gal__tile:nth-child(even) { translate: 0 calc((1 - var(--gp, 0)) * -3vh); }
/* Notice board: the heading and text on the left stay in place while the long list on the right scrolls past (like Academic Achievements). */
.notice__grid { align-items: start; }
.notice__intro { position: sticky; top: 130px; }
@media (max-width: 991px) {
    .notice__intro { position: static; }
}
/* Academic programmes: the school-level cards sit on one straight line (no up-and-down offset). */
.level,
.level:nth-child(n),
.level:nth-child(even) { margin-top: 0; margin-bottom: 0; }
.levels { padding-bottom: 36px; }
/* Academic achievements, photo grid: three columns, the first photo spans two. Photos zoom on hover with a gold line growing at the foot. */
.ach__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); border-top: 0; }
.ach__item { display: block; position: relative; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 0; border-radius: 15px; background: var(--navy-900); box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .65); }
.ach__item:first-child { grid-column: span 2; aspect-ratio: auto; }
.ach__item:hover { padding: 0; background: var(--navy-900); }
.ach__item::before { display: none; }
.ach__item picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ach__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ach__item:hover img { transform: scale(1.07); }
.ach__item::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); transition: width .5s var(--ease); }
.ach__item:hover::after { width: 64px; }
.ach__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 24px; font-family: var(--serif); font-size: 1rem; color: var(--white); background: linear-gradient(0deg, rgba(8, 23, 58, .85), transparent); }
@media (max-width: 520px) {
    .ach__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ach__item:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}
/* Achievements photos: taller (3:2 became 4:3 for the small ones; the wide first photo matches the row height). */
.ach__item { aspect-ratio: 4 / 3; }
.ach__item:first-child { aspect-ratio: auto; }
@media (max-width: 520px) {
    .ach__item:first-child { aspect-ratio: 4 / 3; }
}
/* News and events: one large story beside a column of smaller ones, on navy. */
.nv__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 32px; align-items: stretch; }
.nv__main { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; }
.nv__main-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.nv__main-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv__badge { position: absolute; top: 0; left: 0; background: #1fb6d3; color: #fff; font: 700 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; }
.nv__main-body { padding: 22px 24px 26px; }
.nv__main-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--navy-900); margin: 0 0 8px; }
.nv__date { margin: 0 0 12px; color: var(--ink); opacity: .75; font-size: .95rem; }
.nv__more { color: var(--gold-deep); font-weight: 700; text-decoration: none; }
.nv__more:hover { text-decoration: underline; }
.nv__view { container-type: size; min-height: 380px; --nvh: calc((100cqh - 28px) / 3); overflow: hidden; border-radius: var(--radius); }
.nv__track { animation: nv-up 40s linear infinite; }
.nv__view:hover .nv__track { animation-play-state: paused; }
.nv__list { list-style: none; margin: 0; padding: 0 0 14px; display: grid; grid-auto-rows: var(--nvh); gap: 14px; }
@keyframes nv-up { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .nv__track { animation: none; }
    .nv__view { overflow-y: auto; }
}
.nv__item { box-shadow: 0 2px 10px rgba(7, 31, 66,.12); display: grid; grid-template-columns: 38% 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; }
.nv__item-media { overflow: hidden; }
.nv__item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv__item-body { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
.nv__tag { margin: 0 0 4px; color: #1596af; font: 700 .72rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.nv__item-title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; color: var(--navy-900); margin: 0 0 6px; }
@media (max-width: 900px) {
    .nv__grid { grid-template-columns: 1fr; }
}
/* News and events: finish. Shadows, gold accents, hover motion and soft fades on the moving list. */
.nv__main,
.nv__item { border: 1px solid rgba(11, 45, 91,.08); box-shadow: 0 10px 30px rgba(7, 31, 66,.10); transition: transform .35s ease, box-shadow .35s ease; }
.nv__main { position: relative; }
.nv__main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transform: scaleX(.25); transform-origin: left; transition: transform .5s ease; }
.nv__main:hover::after { transform: scaleX(1); }
.nv__main:hover,
.nv__item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 31, 66,.18); }
.nv__main-media img,
.nv__item-media img { transition: transform .6s ease; }
.nv__main:hover .nv__main-media img,
.nv__item:hover .nv__item-media img { transform: scale(1.06); }
.nv__main-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(7, 31, 66,.55), transparent); pointer-events: none; }
.nv__badge { z-index: 1; background: var(--gold); color: var(--navy-950); border-radius: 0 0 var(--radius) 0; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.nv__main-title { padding-left: 14px; border-left: 3px solid var(--gold); }
.nv__date,
.nv__tag { display: flex; align-items: center; gap: 6px; }
.nv__date::before,
.nv__tag::before { content: ""; width: 18px; height: 2px; background: var(--gold); flex: none; }
.nv__tag { color: var(--gold-deep); }
.nv__item { position: relative; border-left: 3px solid var(--gold); }
.nv__more::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .25s ease; }
.nv__more:hover { text-decoration: none; }
.nv__more:hover::after { transform: translateX(5px); }
.nv__view { box-shadow: inset 0 0 0 1px rgba(11, 45, 91,.05); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%); }
.nv__list { padding-left: 4px; padding-right: 4px; }
.nv__grid { position: relative; }
/* Section rhythm: richer backgrounds below the banner. No colour repeats in the next section or the one after it:
   ab2 cream, stats navy, principal sky, levels white, acad cream, ach royal blue, fac sky, gal ink, news white, notice navy, testi cream. */
main .ab2,
main .principal,
main .levels-band,
main .acad,
main .ach,
main .fac,
main .news,
main .notice,
main .testi,
main .stats { position: relative; overflow: clip; isolation: isolate; }
main .ab2 > .container,
main .principal > .container,
main .levels-band > .container,
main .acad > .container,
main .fac > .container,
main .news > .container,
main .testi > .container { position: relative; z-index: 1; }
main .ab2 { background: linear-gradient(160deg, #fdf3d8 0%, #f9e7b4 100%); }
main .principal { background: linear-gradient(180deg, #e6eaf2 0%, #cfe0f7 100%); }
main .levels-band { background: #fff; }
main .acad { background: linear-gradient(200deg, #fdf3d8 0%, #f7e3a8 100%); }
main .fac { background: linear-gradient(170deg, #e6eaf2 0%, #c9dcf5 100%); }
main .gal { background: #071428; }
main .news { background: #fff; }
main .testi { background: linear-gradient(180deg, #fdf3d8 0%, #f9e7b4 100%); }
/* Elements for the plain sections: soft circles, a dotted grid and a gold line, all drawn with CSS. */
main .ab2::before,
main .principal::before,
main .levels-band::before,
main .acad::before,
main .fac::before,
main .news::before,
main .testi::before,
main .ab2::after,
main .principal::after,
main .levels-band::after,
main .acad::after,
main .fac::after,
main .news::after,
main .testi::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none; display: block; inset: auto;
}
/* big gold ring, top right */
main .ab2::before,
main .acad::before,
main .testi::before { width: 420px; height: 420px; top: -150px; right: -120px; border-radius: 50%; border: 56px solid rgba(212, 175, 55, .28); background: none; aspect-ratio: auto; }
/* dotted grid, bottom left */
main .ab2::after,
main .acad::after,
main .testi::after { width: 240px; height: 180px; left: 3%; bottom: 36px; background-image: radial-gradient(rgba(143, 109, 23, .45) 2px, transparent 2.5px); background-size: 20px 20px; }
/* soft navy circle, top left */
main .principal::before,
main .fac::before { width: 460px; height: 460px; top: -200px; left: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 111, 217, .28), transparent); }
/* dotted grid, right */
main .principal::after,
main .fac::after { width: 220px; height: 220px; right: 3%; top: 48px; background-image: radial-gradient(rgba(24, 86, 173, .4) 2px, transparent 2.5px); background-size: 20px 20px; }
/* white section: gold glow and a thin gold arc */
main .levels-band::before,
main .news::before { width: 520px; height: 520px; top: -240px; right: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, .22), transparent); }
main .levels-band::after,
main .news::after { width: 300px; height: 300px; left: -150px; bottom: -150px; border-radius: 50%; border: 2px solid rgba(212, 175, 55, .55); box-shadow: 0 0 0 26px rgba(212, 175, 55, .08); }
@media (max-width: 700px) {
    main .ab2::before,
main .acad::before,
main .testi::before { width: 240px; height: 240px; border-width: 32px; }
    main .ab2::after,
main .principal::after,
main .acad::after,
main .fac::after,
main .testi::after { width: 140px; height: 100px; }
}
main .principal::after { top: auto; bottom: 40px; right: 2%; }
/* Section colours matched to the site palette: white, paper, pale navy tint, and the navy of the banner. */
main .ab2 { background: #fff; }
main .principal { background: #e6eaf2; }
main .levels-band { background: #e6eaf2; }
main .acad { background: #fff; }
main .fac { background: #e6eaf2; }
main .gal { background: #071f42; }
main .news { background: #fff; }
main .testi { background: #e6eaf2; }
main .ab2::before,
main .acad::before,
main .testi::before { border-color: rgba(212, 175, 55, .18); }
main .ab2::after,
main .acad::after,
main .testi::after { background-image: radial-gradient(rgba(212, 175, 55, .7) 2px, transparent 2.5px); }
main .principal::before,
main .fac::before { background: radial-gradient(closest-side, rgba(212, 175, 55, .2), transparent); }
main .principal::after,
main .fac::after { background-image: radial-gradient(rgba(16, 58, 116, .3) 2px, transparent 2.5px); }
main .levels-band::before { background: radial-gradient(closest-side, rgba(212, 175, 55, .25), transparent); }
main .levels-band::after { border-color: rgba(16, 58, 116, .25); box-shadow: 0 0 0 26px rgba(16, 58, 116, .05); }
main .news::before { background: radial-gradient(closest-side, rgba(212, 175, 55, .16), transparent); }
/* Section decoration: line icons (book, cap, star, bulb, pencil, atom) drawn as SVG backgrounds. */
main .ab2::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:-30px;right:-20px; width:300px; height:300px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 22L108 46L60 70L12 46Z'/%3E%3Cpath d='M30 58V84Q60 104 90 84V58'/%3E%3Cpath d='M108 46V82'/%3E%3C/svg%3E") center/contain no-repeat; }
main .ab2::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; left:2%;bottom:24px; width:170px; height:170px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.16' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 30Q35 22 60 32Q85 22 110 30V92Q85 84 60 94Q35 84 10 92Z'/%3E%3Cpath d='M60 32V94'/%3E%3Cpath d='M22 44Q38 40 50 46M22 58Q38 54 50 60M70 46Q82 40 98 44M70 60Q82 54 98 58'/%3E%3C/svg%3E") center/contain no-repeat; }
main .principal::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:20px;left:-40px; width:240px; height:240px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='60' cy='60' rx='50' ry='18'/%3E%3Cellipse cx='60' cy='60' rx='50' ry='18' transform='rotate(60 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='50' ry='18' transform='rotate(120 60 60)'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3C/svg%3E") center/contain no-repeat; }
main .principal::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; bottom:14px;right:2%; width:200px; height:200px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 100L28 72L84 16L104 36L48 92Z'/%3E%3Cpath d='M72 28L92 48M28 72L48 92'/%3E%3C/svg%3E") center/contain no-repeat; }
main .levels-band::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; bottom:-30px;right:1%; width:230px; height:230px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='28' y='28' width='64' height='64'/%3E%3Crect x='28' y='28' width='64' height='64' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3C/svg%3E") center/contain no-repeat; }
main .levels-band::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:18px;left:2%; width:170px; height:170px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 14A30 30 0 0 0 44 69V79H76V69A30 30 0 0 0 60 14Z'/%3E%3Cpath d='M46 91H74M50 103H70'/%3E%3Cpath d='M60 79V55M52 47L60 55L68 47'/%3E%3C/svg%3E") center/contain no-repeat; }
main .acad::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:-20px;right:-10px; width:260px; height:260px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 30Q35 22 60 32Q85 22 110 30V92Q85 84 60 94Q35 84 10 92Z'/%3E%3Cpath d='M60 32V94'/%3E%3Cpath d='M22 44Q38 40 50 46M22 58Q38 54 50 60M70 46Q82 40 98 44M70 60Q82 54 98 58'/%3E%3C/svg%3E") center/contain no-repeat; }
main .acad::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; bottom:10px;left:1%; width:200px; height:200px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='60' cy='60' rx='50' ry='18'/%3E%3Cellipse cx='60' cy='60' rx='50' ry='18' transform='rotate(60 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='50' ry='18' transform='rotate(120 60 60)'/%3E%3Ccircle cx='60' cy='60' r='5'/%3E%3C/svg%3E") center/contain no-repeat; }
main .fac::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:10px;left:-30px; width:240px; height:240px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 22L108 46L60 70L12 46Z'/%3E%3Cpath d='M30 58V84Q60 104 90 84V58'/%3E%3Cpath d='M108 46V82'/%3E%3C/svg%3E") center/contain no-repeat; }
main .fac::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:6px;right:1%; width:200px; height:200px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 14A30 30 0 0 0 44 69V79H76V69A30 30 0 0 0 60 14Z'/%3E%3Cpath d='M46 91H74M50 103H70'/%3E%3Cpath d='M60 79V55M52 47L60 55L68 47'/%3E%3C/svg%3E") center/contain no-repeat; }
main .news::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:-20px;right:0; width:250px; height:250px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 100L28 72L84 16L104 36L48 92Z'/%3E%3Cpath d='M72 28L92 48M28 72L48 92'/%3E%3C/svg%3E") center/contain no-repeat; }
main .news::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; bottom:6px;left:-30px; width:190px; height:190px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='28' y='28' width='64' height='64'/%3E%3Crect x='28' y='28' width='64' height='64' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3C/svg%3E") center/contain no-repeat; }
main .testi::before { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; top:-30px;right:-20px; width:270px; height:270px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23dfb33b' stroke-opacity='0.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='28' y='28' width='64' height='64'/%3E%3Crect x='28' y='28' width='64' height='64' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3C/svg%3E") center/contain no-repeat; }
main .testi::after { content:""; position:absolute; z-index:0; pointer-events:none; display:block; inset:auto; bottom:10px;left:1%; width:190px; height:190px; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23163466' stroke-opacity='0.14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 22L108 46L60 70L12 46Z'/%3E%3Cpath d='M30 58V84Q60 104 90 84V58'/%3E%3Cpath d='M108 46V82'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 700px) {
    main .ab2::before,
main .principal::before,
main .levels-band::before,
main .acad::before,
main .fac::before,
main .news::before,
main .testi::before,
main .ab2::after,
main .principal::after,
main .levels-band::after,
main .acad::after,
main .fac::after,
main .news::after,
main .testi::after { transform: scale(.55); }
}
main .levels-band::after { left: -70px; top: 30px; }
/* Section decorations removed: only the section background colours remain. */
main .ab2::before,
main .principal::before,
main .levels-band::before,
main .acad::before,
main .fac::before,
main .news::before,
main .testi::before,
main .ab2::after,
main .principal::after,
main .levels-band::after,
main .acad::after,
main .fac::after,
main .news::after,
main .testi::after { display: none; content: none; }
/* Section atmosphere: soft gradient washes, light blobs, dashed rings and small plus / ring marks (CSS only). */
main .ab2 { background: linear-gradient(180deg, #fff 0%, #faf9f4 100%); }
main .principal { background: linear-gradient(160deg, #e6eaf2 0%, #e9eef7 100%); }
main .levels-band { background: linear-gradient(200deg, #e6eaf2 0%, #f1f4fa 100%); }
main .acad { background: linear-gradient(180deg, #fff 0%, #faf9f4 100%); }
main .fac { background: linear-gradient(20deg, #e6eaf2 0%, #ebf0f8 100%); }
main .news { background: linear-gradient(180deg, #fff 0%, #faf9f4 100%); }
main .testi { background: linear-gradient(160deg, #e6eaf2 0%, #eaeff7 100%); }
main .ab2::before,
main .principal::before,
main .levels-band::before,
main .acad::before,
main .fac::before,
main .news::before,
main .testi::before,
main .ab2::after,
main .principal::after,
main .levels-band::after,
main .acad::after,
main .fac::after,
main .news::after,
main .testi::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; aspect-ratio: auto; transform: none;
    border: 0; border-radius: 0; box-shadow: none; background: none; width: auto; height: auto;
}
/* A: gold glow top right, dashed ring bottom left */
main .ab2::before,
main .fac::before { top: -220px; right: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 175, 55, .22), rgba(212, 175, 55, 0)); }
main .ab2::after,
main .fac::after { left: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 2px dashed rgba(16, 58, 116, .22); }
/* B: plus and ring marks top left, navy glow bottom right */
main .principal::before,
main .acad::before,
main .testi::before {
    top: 36px; left: 3%; width: 130px; height: 90px;
    background:
        linear-gradient(#d4af37, #d4af37) 8px 22px / 18px 2px no-repeat,
        linear-gradient(#d4af37, #d4af37) 16px 14px / 2px 18px no-repeat,
        linear-gradient(#103a74, #103a74) 78px 58px / 14px 2px no-repeat,
        linear-gradient(#103a74, #103a74) 84px 52px / 2px 14px no-repeat,
        radial-gradient(circle at 104px 18px, transparent 5px, #d4af37 5.5px, #d4af37 7.5px, transparent 8px) 0 0 / 130px 90px no-repeat;
    opacity: .6;
}
main .principal::after,
main .acad::after,
main .testi::after { right: -140px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(closest-side, rgba(16, 58, 116, .12), rgba(16, 58, 116, 0)); }
/* C: big dashed circle behind, gold dot and ring */
main .levels-band::before,
main .news::before { top: -150px; left: -150px; width: 380px; height: 380px; border-radius: 50%; border: 2px dashed rgba(212, 175, 55, .5); }
main .levels-band::after,
main .news::after {
    right: 3%; bottom: 40px; width: 90px; height: 70px;
    background:
        radial-gradient(circle at 12px 14px, #d4af37 0 5px, transparent 5.5px),
        radial-gradient(circle at 60px 44px, transparent 9px, rgba(16, 58, 116, .5) 9.5px, rgba(16, 58, 116, .5) 11.5px, transparent 12px);
    opacity: .7;
}
@media (max-width: 700px) {
    main .ab2::before,
main .fac::before,
main .principal::after,
main .acad::after,
main .testi::after { width: 300px; height: 300px; }
    main .levels-band::before,
main .news::before { width: 220px; height: 220px; }
}
/* Plus/ring marks and navy glow removed from Principal, Academics and Testimonials. */
main .principal::before,
main .acad::before,
main .testi::before,
main .principal::after,
main .acad::after,
main .testi::after { display: none; content: none; }
/* About: pale canvas with soft corner circles, a thin gold arc behind the photo and a dot grid (background only). */
main .ab2 { background: #faf9f4; }
main .ab2::before {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none;
    background:
        radial-gradient(circle at 0 0, #e6eaf2 0, #e6eaf2 150px, transparent 151px),
        radial-gradient(circle at 0 100%, #e6eaf2 0, #e6eaf2 190px, transparent 191px);
}
main .ab2::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; right: 4%; bottom: 7%; width: 66px; height: 50px; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none;
    background: radial-gradient(circle, #c9d9ef 2.5px, transparent 3px) 0 0 / 16px 16px;
}
@media (max-width: 700px) {
    main .ab2::before { background-size: auto; opacity: .6; }
    main .ab2::after { width: 70px; height: 56px; }
}
/* Academic Programmes: pale canvas, gold arcs, soft circles, dot grid; middle card marked with a gold base line and a filled arrow. */
main .levels-band { background: #faf9f4; }
main .levels-band::before {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1;
    background:
        radial-gradient(circle at -3% 52%, #e6eaf2 0, #e6eaf2 100px, transparent 101px),
        radial-gradient(circle at 104% 42%, #e6eaf2 0, #e6eaf2 120px, transparent 121px),
        radial-gradient(circle at 103% 112%, #dde8f7 0, #dde8f7 130px, transparent 131px),
        radial-gradient(circle at 103% 112%, transparent 0, transparent 169px, rgba(212, 175, 55, .3) 170px, rgba(212, 175, 55, .3) 171.5px, transparent 172.5px);
}
main .levels-band::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; top: 44px; right: 4%; width: 150px; height: 70px; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1;
    background: radial-gradient(circle, #cbdaf0 3.5px, transparent 4px) 0 0 / 30px 30px;
}
main .levels-band .level__tag::before { content: ""; display: block; width: 26px; height: 2px; margin-bottom: 12px; background: var(--gold); }
main .levels-band .level .round-btn { border-color: var(--gold); color: var(--navy-900); background: transparent; }
main .levels-band .level:nth-child(2) .round-btn { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
main .levels-band .level:nth-child(2) { box-shadow: 0 22px 44px -22px rgba(11, 45, 91, .4), 0 3px 0 0 var(--gold); }
/* Principal: pale canvas, soft circles with thin gold arcs in two corners, gold dash and dots above the text, faint quote mark behind the quote. */
main .principal { background: #faf9f4; }
main .principal::before {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none;
    background:
        radial-gradient(circle at 101% -4%, #e6eaf2 0, #e6eaf2 190px, transparent 191px),
        radial-gradient(circle at 101% -4%, transparent 0, transparent 239px, rgba(212, 175, 55, .3) 240px, rgba(212, 175, 55, .3) 241.5px, transparent 242.5px),
        radial-gradient(circle at -2% 104%, #e6eaf2 0, #e6eaf2 130px, transparent 131px),
        radial-gradient(circle at -2% 104%, transparent 0, transparent 219px, rgba(212, 175, 55, .3) 220px, rgba(212, 175, 55, .3) 221.5px, transparent 222.5px);
}
main .principal__text::before {
    content: ""; display: block; width: 116px; height: 6px; margin-bottom: 30px;
    background:
        linear-gradient(var(--gold), var(--gold)) 0 2px / 70px 2px no-repeat,
        radial-gradient(circle, var(--gold) 2.5px, transparent 3px) 82px 0 / 12px 6px repeat-x;
    -webkit-mask: linear-gradient(90deg, #000 0 116px); mask: linear-gradient(90deg, #000 0 116px);
}
main .principal__text blockquote { position: relative; }
main .principal__text blockquote::before {
    content: "\201C"; position: absolute; z-index: -1; left: -26px; top: -30px; font-family: var(--serif); font-style: normal; font-size: 9rem; line-height: 1; color: rgba(16, 58, 116, .07); pointer-events: none;
}
main .principal__text { isolation: isolate; }
/* Testimonials: pale canvas, soft circles, thin blue arcs, dot grid and a faint quote mark behind the text. */
main .testi { background: #faf9f4; }
main .testi::before {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none;
    background:
        radial-gradient(circle at 98% -6%, #e6eaf2 0, #e6eaf2 190px, transparent 191px),
        radial-gradient(circle at 104% 108%, #e6eaf2 0, #e6eaf2 170px, transparent 171px),
        radial-gradient(circle at 104% 108%, transparent 0, transparent 259px, rgba(30, 111, 217, .22) 260px, rgba(30, 111, 217, .22) 261px, transparent 262px),
        radial-gradient(circle at -3% 92%, #faf9f4 0, #faf9f4 150px, transparent 151px);
}
main .testi::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; top: 56px; right: 4%; width: 110px; height: 70px; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none;
    background: radial-gradient(circle, #cbdaf0 2.5px, transparent 3px) 0 0 / 26px 26px;
}
main .testi__main { position: relative; isolation: isolate; }
main .testi__main::before {
    content: "\201C"; position: absolute; z-index: -1; left: clamp(0px, 3vw, 48px); top: -64px; font-family: var(--serif); font-size: 11rem; line-height: 1; color: rgba(30, 111, 217, .1); pointer-events: none;
}
main .testi__main::before { font-size: 17rem; top: -72px; left: calc(clamp(0px, 3vw, 48px) - 44px); color: rgba(30, 111, 217, .12); }
@media (max-width: 700px) {
    main .testi__main::before { font-size: 11rem; top: -70px; left: -6px; }
}
/* Home page rhythm: every section carries the same family of marks (soft circles, thin arcs, dot grids). */
main .acad { background: #fff; }
main .fac { background: linear-gradient(180deg, #e6eaf2 0%, #edf1f8 100%); }
main .news { background: #fff; }
main .acad::before,
main .fac::before,
main .news::before,
main .stats::before,
main .ach::before,
main .notice::before {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1;
}
main .acad::after,
main .fac::after,
main .news::after,
main .stats::after,
main .ach::after,
main .notice::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1;
}
main .stats::before,
main .ach::before,
main .notice::before,
main .stats::after,
main .ach::after,
main .notice::after { z-index: -1; }
/* light sections */
main .acad::before {
    background:
        radial-gradient(circle at -3% 8%, #faf9f4 0, #faf9f4 170px, transparent 171px),
        radial-gradient(circle at -3% 8%, transparent 0, transparent 219px, rgba(212, 175, 55, .3) 220px, rgba(212, 175, 55, .3) 221.5px, transparent 222.5px),
        radial-gradient(circle at 104% 96%, #faf9f4 0, #faf9f4 150px, transparent 151px);
}
main .acad::after { right: 4%; top: 48px; width: 120px; height: 70px; background: radial-gradient(circle, #cbdaf0 3px, transparent 3.5px) 0 0 / 26px 26px; }
main .fac::before {
    background:
        radial-gradient(circle at 103% 6%, #e6eaf2 0, #e6eaf2 180px, transparent 181px),
        radial-gradient(circle at 103% 6%, transparent 0, transparent 229px, rgba(212, 175, 55, .3) 230px, rgba(212, 175, 55, .3) 231.5px, transparent 232.5px),
        radial-gradient(circle at -2% 100%, #e6eaf2 0, #e6eaf2 140px, transparent 141px);
}
main .fac::after { left: 3%; top: 56px; width: 120px; height: 70px; background: radial-gradient(circle, #c3d3ec 3px, transparent 3.5px) 0 0 / 26px 26px; }
main .news::before {
    background:
        radial-gradient(circle at -3% 100%, #faf9f4 0, #faf9f4 160px, transparent 161px),
        radial-gradient(circle at -3% 100%, transparent 0, transparent 209px, rgba(212, 175, 55, .3) 210px, rgba(212, 175, 55, .3) 211.5px, transparent 212.5px),
        radial-gradient(circle at 104% 0, #faf9f4 0, #faf9f4 150px, transparent 151px);
}
main .news::after { right: 4%; top: 60px; width: 120px; height: 70px; background: radial-gradient(circle, #cbdaf0 3px, transparent 3.5px) 0 0 / 26px 26px; }
/* navy sections */
main .stats::before {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, .06) 130px, transparent 131px),
        radial-gradient(circle at 100% 0, transparent 0, transparent 169px, rgba(212, 175, 55, .3) 170px, rgba(212, 175, 55, .3) 171.5px, transparent 172.5px),
        radial-gradient(circle at 0 100%, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 110px, transparent 111px);
}
main .stats::after { left: 3%; top: 16px; width: 90px; height: 40px; background: radial-gradient(circle, rgba(255, 255, 255, .22) 2.5px, transparent 3px) 0 0 / 22px 22px; }
main .ach::before {
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, .06) 200px, transparent 201px),
        radial-gradient(circle at 0 0, transparent 0, transparent 249px, rgba(212, 175, 55, .3) 250px, rgba(212, 175, 55, .3) 251.5px, transparent 252.5px),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, .06) 170px, transparent 171px);
}
main .ach::after { left: 3%; bottom: 44px; width: 120px; height: 70px; background: radial-gradient(circle, rgba(255, 255, 255, .22) 3px, transparent 3.5px) 0 0 / 26px 26px; }
main .notice::before {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, .06) 190px, transparent 191px),
        radial-gradient(circle at 100% 0, transparent 0, transparent 239px, rgba(212, 175, 55, .3) 240px, rgba(212, 175, 55, .3) 241.5px, transparent 242.5px),
        radial-gradient(circle at 0 100%, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 150px, transparent 151px);
}
main .notice::after { right: 4%; bottom: 44px; width: 120px; height: 70px; background: radial-gradient(circle, rgba(255, 255, 255, .22) 3px, transparent 3.5px) 0 0 / 26px 26px; }
@media (max-width: 700px) {
    main .acad::after,
main .fac::after,
main .news::after,
main .ach::after,
main .notice::after { width: 70px; height: 40px; }
}
/* Light tones kept apart so a section never matches the one after next. */
main .ab2 { background: #faf9f4; }
main .principal { background: #faf9f4; }
main .levels-band { background: #faf9f4; }
main .testi { background: #faf9f4; }
main .principal::before { background:
    radial-gradient(circle at 101% -4%, #e6eaf2 0, #e6eaf2 190px, transparent 191px),
    radial-gradient(circle at 101% -4%, transparent 0, transparent 239px, rgba(212, 175, 55, .3) 240px, rgba(212, 175, 55, .3) 241.5px, transparent 242.5px),
    radial-gradient(circle at -2% 104%, #e6eaf2 0, #e6eaf2 130px, transparent 131px),
    radial-gradient(circle at -2% 104%, transparent 0, transparent 219px, rgba(212, 175, 55, .3) 220px, rgba(212, 175, 55, .3) 221.5px, transparent 222.5px); }
main .testi::before { background:
    radial-gradient(circle at 98% -6%, #e6eaf2 0, #e6eaf2 190px, transparent 191px),
    radial-gradient(circle at 104% 108%, #e6eaf2 0, #e6eaf2 170px, transparent 171px),
    radial-gradient(circle at 104% 108%, transparent 0, transparent 259px, rgba(30, 111, 217, .22) 260px, rgba(30, 111, 217, .22) 261px, transparent 262px),
    radial-gradient(circle at -3% 92%, #e6eaf2 0, #e6eaf2 150px, transparent 151px); }
main .principal::before { display: none; }
/* Section marks, one motif per section (Statistics, Gallery, Principal photo and Testimonials keep their own). */
main .ab2::before,
main .ab2::after,
main .principal::after,
main .levels-band::before,
main .levels-band::after,
main .acad::before,
main .acad::after,
main .ach::before,
main .ach::after,
main .fac::before,
main .fac::after,
main .news::before,
main .news::after,
main .notice::before,
main .notice::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; width: auto; height: auto; aspect-ratio: auto;
    border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1; background: none; -webkit-mask: none; mask: none;
}
main .ach::before,
main .ach::after,
main .notice::before,
main .notice::after { z-index: -1; }
/* About: soft blue wash from the corner, concentric rings bottom right */
main .ab2::before { inset: 0; background: radial-gradient(ellipse 55% 90% at 0 0, rgba(30, 111, 217, .07), transparent 70%); }
main .ab2::after { right: 0; bottom: 0; width: 340px; height: 340px; background: repeating-radial-gradient(circle at 100% 100%, transparent 0 34px, rgba(16, 58, 116, .09) 35px 36px); -webkit-mask: radial-gradient(circle at 100% 100%, #000, transparent 70%); mask: radial-gradient(circle at 100% 100%, #000, transparent 70%); }
/* Principal: faint diagonal stripes bottom right */
main .principal::after { right: 0; bottom: 0; width: 360px; height: 260px; background: repeating-linear-gradient(135deg, rgba(16, 58, 116, .07) 0 2px, transparent 2px 14px); -webkit-mask: radial-gradient(circle at 100% 100%, #000, transparent 72%); mask: radial-gradient(circle at 100% 100%, #000, transparent 72%); }
/* Academic Programmes: soft gold and blue blobs, three small gold dots in a column */
main .levels-band::before { inset: 0; background: radial-gradient(ellipse 45% 55% at 12% 108%, rgba(212, 175, 55, .13), transparent 70%), radial-gradient(ellipse 40% 55% at 92% -8%, rgba(30, 111, 217, .1), transparent 70%); }
main .levels-band::after { left: 2.2%; top: 90px; width: 8px; height: 76px; background: radial-gradient(circle, rgba(212, 175, 55, .6) 3.5px, transparent 4px) 0 0 / 8px 26px; }
/* Academics: graph-paper grid fading to the left, a small gold ring */
main .acad::before { right: 0; top: 0; width: 46%; height: 100%; background: linear-gradient(rgba(16, 58, 116, .06) 1px, transparent 1px) 0 0 / 38px 38px, linear-gradient(90deg, rgba(16, 58, 116, .06) 1px, transparent 1px) 0 0 / 38px 38px; -webkit-mask: linear-gradient(270deg, #000, transparent); mask: linear-gradient(270deg, #000, transparent); }
main .acad::after { left: 3%; bottom: 7%; width: 54px; height: 54px; background: radial-gradient(circle, rgba(212, 175, 55, .65) 0 5px, transparent 5.5px), radial-gradient(circle, transparent 0 20px, rgba(212, 175, 55, .4) 21px 22px, transparent 23px); }
/* Achievements (navy): light beams across, rings bottom right */
main .ach::before { inset: 0; background: linear-gradient(115deg, transparent 0 52%, rgba(255, 255, 255, .045) 52% 66%, transparent 66%), linear-gradient(115deg, transparent 0 72%, rgba(212, 175, 55, .07) 72% 76%, transparent 76%); }
main .ach::after { right: 0; bottom: 0; width: 360px; height: 360px; background: repeating-radial-gradient(circle at 100% 100%, transparent 0 38px, rgba(255, 255, 255, .08) 39px 40px); -webkit-mask: radial-gradient(circle at 100% 100%, #000, transparent 70%); mask: radial-gradient(circle at 100% 100%, #000, transparent 70%); }
/* Facilities: rotated square outlines top right, dotted band bottom left */
main .fac::before { right: -90px; top: -90px; width: 260px; height: 260px; border: 2px solid rgba(16, 58, 116, .1); transform: rotate(45deg); box-shadow: 0 0 0 26px rgba(16, 58, 116, .035), 0 0 0 28px rgba(16, 58, 116, .08); }
main .fac::after { left: 0; bottom: 0; width: 280px; height: 150px; background: radial-gradient(circle, rgba(16, 58, 116, .22) 2px, transparent 2.5px) 0 0 / 22px 22px; -webkit-mask: linear-gradient(45deg, #000, transparent 75%); mask: linear-gradient(45deg, #000, transparent 75%); }
/* News: rings top left, a gold dashed line low on the left */
main .news::before { left: 0; top: 0; width: 330px; height: 330px; background: repeating-radial-gradient(circle at 0 0, transparent 0 38px, rgba(30, 111, 217, .1) 39px 40px); -webkit-mask: radial-gradient(circle at 0 0, #000, transparent 70%); mask: radial-gradient(circle at 0 0, #000, transparent 70%); }
main .news::after { left: 0; bottom: 56px; width: 220px; height: 0; border-top: 2px dashed rgba(212, 175, 55, .45); }
/* Notice board (navy): fine square grid fading to the left, gold corner bracket */
main .notice::before { right: 0; top: 0; width: 55%; height: 100%; background: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 40px 40px; -webkit-mask: linear-gradient(270deg, #000, transparent); mask: linear-gradient(270deg, #000, transparent); }
main .notice::after { right: 3%; bottom: 44px; width: 84px; height: 84px; border-right: 2px solid rgba(212, 175, 55, .45); border-bottom: 2px solid rgba(212, 175, 55, .45); }
@media (max-width: 700px) {
    main .ab2::after,
main .ach::after { width: 220px; height: 220px; }
    main .principal::after { width: 220px; height: 160px; }
    main .acad::before,
main .notice::before { width: 80%; }
    main .fac::before { width: 170px; height: 170px; }
    main .news::before { width: 220px; height: 220px; }
    main .news::after { width: 140px; }
}
/* Academic Programmes: marks restored (soft circles, gold arc bottom right, dot grid top right). */
main .levels-band::before {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: 0; width: auto; height: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1; -webkit-mask: none; mask: none;
    background:
        radial-gradient(circle at -3% 52%, #e6eaf2 0, #e6eaf2 100px, transparent 101px),
        radial-gradient(circle at 104% 42%, #e6eaf2 0, #e6eaf2 120px, transparent 121px),
        radial-gradient(circle at 103% 112%, #dde8f7 0, #dde8f7 130px, transparent 131px),
        radial-gradient(circle at 103% 112%, transparent 0, transparent 169px, rgba(212, 175, 55, .3) 170px, rgba(212, 175, 55, .3) 171.5px, transparent 172.5px);
}
main .levels-band::after {
    content: ""; display: block; position: absolute; z-index: 0; pointer-events: none; inset: auto; top: 44px; right: 4%; left: auto; bottom: auto; width: 150px; height: 70px; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1; -webkit-mask: none; mask: none;
    background: radial-gradient(circle, #cbdaf0 3.5px, transparent 4px) 0 0 / 30px 30px;
}
/* Facilities: transparent graduation cap opposite the headline. */
main .fac::before { inset: auto; top: 36px; right: 5%; width: 240px; height: 240px; border: 0; box-shadow: none; transform: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='%23163466' fill-opacity='0.06' stroke='%23163466' stroke-opacity='0.2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 22L108 46L60 70L12 46Z'/%3E%3Cpath d='M30 58V84Q60 104 90 84V58'/%3E%3Cpath d='M108 46V82'/%3E%3Ccircle cx='108' cy='86' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 700px) {
    main .fac::before { width: 120px; height: 120px; top: 20px; right: 3%; }
}
main .fac::before { transform: rotate(var(--cap-rot, 0deg)); transition: transform .25s ease-out; }
/* Facilities cap: soft edges and multiply blend so it melts into the section background. */
main .fac::before { filter: blur(1.2px); mix-blend-mode: multiply; -webkit-mask: radial-gradient(circle at 50% 48%, #000 38%, transparent 76%); mask: radial-gradient(circle at 50% 48%, #000 38%, transparent 76%); }
/* Facilities: pale canvas with gold corner shapes, soft circles, dot grid and a small cap with a dashed trail (background only). */
main .fac {
    background:
        radial-gradient(circle at 0 19%, rgba(212, 175, 55, .45) 0, rgba(212, 175, 55, .45) 38px, transparent 39px),
        radial-gradient(circle at 100% 100%, rgba(212, 175, 55, .45) 0, rgba(212, 175, 55, .45) 72px, transparent 73px),
        radial-gradient(circle at 100% 0, #e6eaf2 0, #e6eaf2 150px, transparent 151px),
        radial-gradient(circle at 0 100%, #e6eaf2 0, #e6eaf2 180px, transparent 181px),
        radial-gradient(ellipse 90px 110px at 97% 72%, rgba(30, 111, 217, .07), transparent),
        #faf9f4;
}
main .fac::before { inset: auto; left: 3.2%; top: 60%; right: auto; width: 150px; height: 103px; border: 0; box-shadow: none; opacity: 1; filter: none; mix-blend-mode: normal; -webkit-mask: none; mask: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 124' fill='none' stroke='%23163466' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(0 -6) scale(.62)'%3E%3Cpath d='M60 22L108 46L60 70L12 46Z'/%3E%3Cpath d='M30 58V84Q60 104 90 84V58'/%3E%3Cpath d='M108 46V82'/%3E%3C/g%3E%3Cpath d='M34 70C28 104 70 112 98 104C112 99 108 84 98 90C90 95 102 108 124 112' stroke-dasharray='4 5' stroke-width='1.6' stroke-opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat; transform-origin: 30% 40%; }
main .fac::after { inset: auto; left: 2.4%; top: 30px; right: auto; bottom: auto; width: 100px; height: 112px; -webkit-mask: none; mask: none; background: radial-gradient(circle, #c3d3ec 2.6px, transparent 3.1px) 0 0 / 24px 24px; }
@media (max-width: 700px) {
    main .fac::before { width: 90px; height: 62px; }
    main .fac::after { width: 60px; height: 70px; }
}
/* Facilities cap sits in the left gutter, outside the cards. */
main .fac::before { left: max(4px, calc((100% - min(100%, 1280px)) / 2 + var(--gutter) - 100px)); top: 58%; width: 160px; height: 110px; }
@media (max-width: 1100px) {
    main .fac::before { display: none; }
}
/* Facilities: the graduation cap sits on top of the third card. */
main .fac::before { display: none; }
main .facg { position: relative; }
main .facg::before { content: ""; position: absolute; z-index: 2; pointer-events: none; top: -62px; right: calc(12.5% - 44px); width: 88px; height: 62px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 84' fill='none' stroke='%23163466' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 6L112 30L60 54L8 30Z'/%3E%3Cpath d='M28 42V66Q60 84 92 66V42'/%3E%3Cpath d='M112 30V62'/%3E%3Ccircle cx='112' cy='66' r='3'/%3E%3C/svg%3E") center bottom / contain no-repeat; transform: rotate(var(--cap-rot, 0deg)); transform-origin: 50% 100%; transition: transform .25s ease-out; }
@media (max-width: 991px) {
    main .facg::before { display: none; }
}
main .facg::before { width: 208px; height: 68px; top: -66px; right: calc(12.5% - 42px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 84' fill='none' stroke='%23163466' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(146 0)' stroke-width='2.6'%3E%3Cpath d='M60 6L112 30L60 54L8 30Z'/%3E%3Cpath d='M28 42V66Q60 84 92 66V42'/%3E%3Cpath d='M112 30V62'/%3E%3Ccircle cx='112' cy='66' r='3'/%3E%3C/g%3E%3Cpath d='M150 62C122 82 92 72 72 58C56 46 70 30 84 40C96 50 72 70 42 64C26 61 12 52 4 40' stroke-width='1.8' stroke-dasharray='4 6' stroke-opacity='.55'/%3E%3C/svg%3E") right bottom / contain no-repeat; transform-origin: 88% 100%; }
/* Facilities: the cap and its dashed trail, mirrored, in the right margin beside the last card of the first row. */
main .facg { isolation: isolate; }
main .facg::before { z-index: -1; top: 90px; right: auto; left: calc(100% - 60px); width: 160px; height: 110px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 124' fill='none' stroke='%23163466' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(0 -6) scale(.62)'%3E%3Cpath d='M60 22L108 46L60 70L12 46Z'/%3E%3Cpath d='M30 58V84Q60 104 90 84V58'/%3E%3Cpath d='M108 46V82'/%3E%3C/g%3E%3Cpath d='M34 70C28 104 70 112 98 104C112 99 108 84 98 90C90 95 102 108 124 112' stroke-dasharray='4 5' stroke-width='1.6' stroke-opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat; transform: scaleX(-1) rotate(calc(var(--cap-rot, 0deg) * -1)); transform-origin: 30% 38%; }
@media (max-width: 1100px) {
    main .facg::before { display: none; }
}
@media (max-width: 1250px) {
    main .facg::before { display: none; }
}
main .facg::before { width: 160px; height: 134px; left: calc(100% - 40px); top: -105px; }
main .facg::before { transform: scaleX(-1) rotate(calc(var(--cap-rot, 0deg) * -1 - 45deg)); }
main .facg::before { transform: translateY(calc(var(--cap-p, 0) * 70px - 35px)) scaleX(-1) rotate(calc(var(--cap-rot, 0deg) * -1 - 311deg)); }
/* Design pass: one card radius (8px), navy headings on light sections, one quiet strength for all section marks. */
.level,
.facg__card,
.acad__card,
.nv__main,
.nv__item,
.nv__view,
.ach__item { border-radius: 15px; }
.level__media { border-radius: 15px 15px 0 0; }
main .ab2 .heading,
main .levels-band .heading,
main .acad .heading,
main .fac .heading,
main .news .heading,
main .testi .heading { color: var(--navy-900); }
main .nv__main-title,
main .nv__item-title { color: var(--navy-900); }
main .ab2::before,
main .ab2::after,
main .levels-band::before,
main .levels-band::after,
main .news::before,
main .news::after,
main .testi::before,
main .testi::after,
main .fac::after { opacity: .5; }
main .fac {
    background:
        radial-gradient(circle at 0 19%, rgba(212, 175, 55, .16) 0, rgba(212, 175, 55, .16) 38px, transparent 39px),
        radial-gradient(circle at 100% 100%, rgba(212, 175, 55, .16) 0, rgba(212, 175, 55, .16) 72px, transparent 73px),
        radial-gradient(circle at 100% 0, #e6eaf2 0, #e6eaf2 150px, transparent 151px),
        radial-gradient(circle at 0 100%, #e6eaf2 0, #e6eaf2 180px, transparent 181px),
        #faf9f4;
}
/* News & Events: two-tone backdrop (white top, pale blue behind the cards), clearer rings and a soft gold glow. */
main .news {
    background:
        radial-gradient(ellipse 380px 260px at 96% 6%, rgba(212, 175, 55, .16), transparent 70%),
        linear-gradient(180deg, #fff 0, #fff 24%, #faf9f4 24%, #faf9f4 100%);
}
main .news::before { opacity: 1; width: 380px; height: 380px; background: repeating-radial-gradient(circle at 0 0, transparent 0 40px, rgba(30, 111, 217, .14) 41px 42px); }
main .news::after { opacity: 1; right: 0; left: auto; bottom: 0; width: 300px; height: 300px; border: 0; background: radial-gradient(circle, rgba(16, 58, 116, .22) 2.5px, transparent 3px) 0 0 / 24px 24px; -webkit-mask: radial-gradient(circle at 100% 100%, #000, transparent 70%); mask: radial-gradient(circle at 100% 100%, #000, transparent 70%); }
/* News: backdrop colour removed (plain white) and no fill on the list cards. */
main .news { background: #fff; }
main .nv__item { background: transparent; box-shadow: none; }
/* News list: no borders; each card has its own shadow so neighbours read as separate. */
main .nv__item { border: 0; background: #fff; box-shadow: 0 8px 22px -8px rgba(11, 45, 91, .3), 0 2px 6px rgba(11, 45, 91, .08); }
main .nv__item:hover { box-shadow: 0 14px 30px -10px rgba(11, 45, 91, .38), 0 2px 6px rgba(11, 45, 91, .1); }
main .nv__list { padding: 8px 12px 22px; }
/* News list: card borders back (thin outline, gold left edge); the outline around the moving list itself is gone. */
main .nv__item { border: 1px solid rgba(11, 45, 91, .08); border-left: 3px solid var(--gold); }
main .nv__view { box-shadow: none; border: 0; outline: 0; }
main .notice::before { right: auto; left: 0; -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
/* News: large card on navy with light text. */
main .nv__main { background: var(--navy-900); border-color: rgba(255, 255, 255, .08); }
main .nv__main-title { color: #fff; border-left-color: var(--gold); }
main .nv__main .nv__date { color: rgba(255, 255, 255, .8); opacity: 1; }
main .nv__main .nv__more { color: var(--gold); }
/* News: list cards share the navy of the large card so both columns match. */
main .nv__item { background: var(--navy-800); border-color: rgba(255, 255, 255, .08); border-left-color: var(--gold); }
main .nv__item-title { color: #fff; }
main .nv__item .nv__tag { color: var(--gold); }
main .nv__item .nv__more { color: var(--gold); }
/* News: list cards in pale blue with navy text, beside the navy large card. */
main .nv__item { background: #e9f0fb; border-color: rgba(11, 45, 91, .1); border-left-color: var(--gold); }
main .nv__item-title { color: var(--navy-900); }
main .nv__item .nv__tag,
main .nv__item .nv__more { color: var(--gold-deep); }
/* News list on phones and tablets: fixed card height so the moving list always shows three cards. */
@media (max-width: 900px) {
    main .nv__view { container-type: normal; --nvh: 118px; height: calc(var(--nvh) * 3 + 28px); min-height: 0; }
    main .nv__item { grid-template-columns: 34% 1fr; }
    main .nv__item-title { font-size: 1rem; }
}
main .acad::after { display: none; content: none; }
/* News & Events: premium finish. Same layout and content; refined cards, pills, glow and hover motion. */
main .news { background: linear-gradient(180deg, #fff 0%, #faf9f4 100%); }
main .nv__grid { gap: 28px; }
main .nv__main {
    border: 1px solid rgba(212, 175, 55, .35);
    background: linear-gradient(165deg, #103a74 0%, #0d2349 100%);
    box-shadow: 0 30px 60px -28px rgba(7, 31, 66, .65), 0 2px 0 rgba(255, 255, 255, .06) inset;
}
main .nv__main-media::after { inset: 40% 0 0; background: linear-gradient(to top, rgba(13, 35, 73, .85), transparent); }
main .nv__badge { top: 16px; left: 16px; border-radius: 999px; padding: 8px 14px; letter-spacing: .12em; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45); }
main .nv__main-body { padding: 26px 28px 30px; }
main .nv__main-title { font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; }
main .nv__main .nv__date { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .85rem; letter-spacing: .04em; }
main .nv__main .nv__date::before { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
main .nv__main .nv__more { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .6); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
main .nv__main .nv__more:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
main .nv__item {
    padding: 10px; gap: 14px; align-items: center;
    background: linear-gradient(160deg, #fff 0%, #eaf1fc 100%);
    border: 1px solid rgba(11, 45, 91, .08); border-left: 3px solid var(--gold);
    box-shadow: 0 14px 30px -16px rgba(11, 45, 91, .38), 0 1px 0 #fff inset;
}
main .nv__item-media { border-radius: 15px; overflow: hidden; }
main .nv__item-body { padding: 4px 8px 4px 0; }
main .nv__item .nv__tag { display: inline-flex; width: max-content; padding: 3px 10px; border-radius: 999px; background: rgba(212, 175, 55, .16); letter-spacing: .1em; }
main .nv__item .nv__tag::before { display: none; }
main .nv__item-title { font-size: 1.05rem; line-height: 1.25; }
main .nv__item .nv__more { font-size: .9rem; }
main .nv__item:hover { transform: translateX(-4px); box-shadow: 0 20px 36px -16px rgba(11, 45, 91, .45), 0 1px 0 #fff inset; }
@media (max-width: 900px) {
    main .nv__item:hover { transform: none; }
    main .nv__item { padding: 8px; }
}
main .nv__item { grid-template-rows: minmax(0, 1fr); }
main .nv__item-media { height: 100%; min-height: 0; }
main .nv__item-media img,
main .nv__item-media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
main .nv__main-body { display: flex; flex-direction: column; align-items: flex-start; }
/* News list: shorter cards, larger titles. */
main .nv__view { --nvh: calc((100cqh - 28px) / 3 * .8); }
main .nv__item-title { font-size: 1.2rem; }
@media (max-width: 900px) {
    main .nv__view { --nvh: 98px; height: calc(var(--nvh) * 3 + 28px); }
    main .nv__item-title { font-size: 1.1rem; }
}
/* News large card: date above the title, a divider, and a full-width Read More row with a round arrow. */
main .nv__main-body { align-items: stretch; padding: 24px 28px 26px; }
main .nv__main .nv__date { order: 1; align-self: flex-start; margin: 0 0 12px; padding: 0; background: none; border-radius: 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
main .nv__main .nv__date::before { width: 22px; height: 2px; border-radius: 0; background: var(--gold); }
main .nv__main-title { order: 2; margin: 0 0 20px; }
main .nv__main .nv__more {
    order: 3; display: flex; align-items: center; justify-content: space-between; width: 100%;
    margin-top: auto; padding: 16px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0; background: none;
    font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
main .nv__main .nv__more::after { content: "\2192"; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; border-radius: 50%; background: var(--gold); color: var(--navy-950); font-size: 1rem; letter-spacing: 0; transition: transform .3s ease; }
main .nv__main .nv__more:hover { background: none; color: var(--gold); border-color: rgba(212, 175, 55, .5); }
main .nv__main .nv__more:hover::after { transform: translateX(6px); }
/* News list cards: same language as the large card (gold date label, serif title, Read More with a round arrow). */
main .nv__item { grid-template-columns: 36% 1fr; padding: 8px; gap: 16px; border-radius: 15px; }
main .nv__item-media { border-radius: 15px; }
main .nv__item-body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 2px 10px 2px 0; min-width: 0; }
main .nv__item .nv__tag { order: 1; display: flex; align-items: center; gap: 8px; width: auto; margin: 0; padding: 0; border-radius: 0; background: none; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
main .nv__item .nv__tag::before { display: block; content: ""; width: 16px; height: 2px; margin: 0; background: var(--gold); }
main .nv__item-title { order: 2; margin: 0; font-size: 1.2rem; line-height: 1.22; color: var(--navy-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
main .nv__item .nv__more { order: 3; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-800); }
main .nv__item .nv__more::after { content: "\2192"; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: var(--gold); color: var(--navy-950); font-size: .8rem; letter-spacing: 0; transition: transform .3s ease; }
main .nv__item .nv__more:hover { text-decoration: none; color: var(--gold-deep); }
main .nv__item .nv__more:hover::after { transform: translateX(5px); }
@media (max-width: 900px) {
    main .nv__view { --nvh: 128px; }
    main .nv__item-title { font-size: 1.02rem; }
    main .nv__item-body { gap: 4px; }
}
/* News list Read More: compact navy pill with a gold round icon that slides on hover. */
main .nv__item .nv__more {
    align-self: flex-start; gap: 10px; margin-top: 6px; padding: 4px 4px 4px 14px; border-radius: 999px;
    background: var(--navy-900); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .14em; line-height: 1;
    box-shadow: 0 8px 16px -8px rgba(11, 45, 91, .6); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
main .nv__item .nv__more::after {
    content: "\f178"; font-family: FontAwesome; font-weight: normal; width: 26px; height: 26px; border-radius: 50%;
    background: var(--gold); color: var(--navy-950); font-size: .8rem; line-height: 1; transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
main .nv__item .nv__more:hover { background: var(--gold); color: var(--navy-950); box-shadow: 0 10px 18px -8px rgba(143, 109, 23, .7); }
main .nv__item .nv__more:hover::after { transform: translateX(3px); background: var(--navy-900); color: var(--gold); }
@media (max-width: 900px) {
    main .nv__view { --nvh: 136px; }
}
/* News list Read More, minimal: navy text, gold arrow and an underline that grows on hover. */
main .nv__item .nv__more {
    align-self: flex-start; gap: 8px; margin-top: 6px; padding: 0 0 5px; border-radius: 0; box-shadow: none;
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 26px 2px no-repeat; color: var(--navy-900);
    font-size: .76rem; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; transition: background-size .35s ease, color .3s ease;
}
main .nv__item .nv__more::after {
    content: "\f178"; font-family: FontAwesome; font-weight: normal; width: auto; height: auto; border-radius: 0; background: none;
    color: var(--gold-deep); font-size: .85rem; line-height: 1; transition: transform .3s ease;
}
main .nv__item .nv__more:hover { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; color: var(--navy-900); box-shadow: none; }
main .nv__item .nv__more:hover::after { transform: translateX(5px); background: none; color: var(--gold-deep); }
/* News list: tidy stack (date, title, then a divider with Read More left and the arrow right). */
main .nv__item-body { gap: 4px; }
main .nv__item .nv__more {
    align-self: stretch; display: flex; justify-content: space-between; align-items: center; width: auto;
    margin-top: 8px; padding: 9px 2px 0; border-top: 1px solid rgba(11, 45, 91, .14);
    background: none; font-size: .72rem; letter-spacing: .14em; color: var(--navy-800); transition: color .3s ease, border-color .3s ease;
}
main .nv__item .nv__more::after { font-size: .8rem; color: var(--gold-deep); }
main .nv__item .nv__more:hover { background: none; color: var(--gold-deep); border-top-color: var(--gold); }
main .nv__item .nv__more:hover::after { transform: translateX(4px); }
main .nv__item-title { margin-bottom: 2px; }
/* News list colours: white cards, blue date label and left edge, navy text, gold arrow. */
main .nv__item { background: #fff; border-color: rgba(11, 45, 91, .08); border-left-color: var(--navy-700); }
main .nv__item .nv__tag { color: var(--navy-600, #1e6fd9); }
main .nv__item .nv__tag::before { background: var(--gold); }
main .nv__item-title { color: var(--navy-900); }
main .nv__item .nv__more { color: var(--navy-900); border-top-color: rgba(30, 111, 217, .18); }
main .nv__item .nv__more::after { color: var(--gold-deep); }
main .nv__item .nv__more:hover { color: var(--navy-700); border-top-color: var(--navy-700); }
main .nv__item { border-left-color: var(--gold); }
/* News & Events: extra polish (glow behind the grid, heading rule, richer hover, finer edges). */
main .news { background: radial-gradient(ellipse 60% 55% at 28% 58%, rgba(16, 58, 116, .09), transparent 70%), radial-gradient(ellipse 40% 40% at 92% 8%, rgba(212, 175, 55, .14), transparent 70%), linear-gradient(180deg, #fff 0%, #faf9f4 100%); }
main .news .heading { position: relative; padding-bottom: 18px; }
main .news .heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0)); }
main .nv__main { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .45s ease; }
main .nv__main:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, .7); box-shadow: 0 40px 70px -30px rgba(7, 31, 66, .75), 0 0 0 1px rgba(212, 175, 55, .25); }
main .nv__main-media { box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset; }
main .nv__main-media img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
main .nv__main:hover .nv__main-media img { transform: scale(1.07); }
main .nv__main::before { content: ""; position: absolute; z-index: 2; top: 0; right: 0; width: 64px; height: 64px; pointer-events: none; background: linear-gradient(225deg, rgba(212, 175, 55, .9) 0 2px, transparent 2px), linear-gradient(225deg, rgba(212, 175, 55, .25), transparent 55%); border-top-right-radius: 8px; }
main .nv__item { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
main .nv__item:hover { box-shadow: 0 22px 38px -18px rgba(11, 45, 91, .5), 0 0 0 1px rgba(212, 175, 55, .35); }
main .nv__item-media img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
main .nv__item:hover .nv__item-media img { transform: scale(1.08); }
main .nv__view,
.nv__view { -webkit-mask-image: none; mask-image: none; }
/* Premium finish for the other sections: heading rule, soft glows, richer hover. */
main .ab2 .heading,
main .levels-band .heading,
main .acad .heading,
main .fac .heading,
main .testi .heading,
main .ach .heading { position: relative; padding-bottom: 18px; }
main .ab2 .heading::after,
main .levels-band .heading::after,
main .acad .heading::after,
main .fac .heading::after,
main .testi .heading::after,
main .ach .heading::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0));
}
main .ab2 { background: radial-gradient(ellipse 45% 50% at 92% 10%, rgba(212, 175, 55, .1), transparent 70%), radial-gradient(ellipse 55% 60% at 8% 90%, rgba(16, 58, 116, .06), transparent 70%), #faf9f4; }
main .principal { background: radial-gradient(ellipse 45% 55% at 20% 55%, rgba(212, 175, 55, .1), transparent 70%), radial-gradient(ellipse 45% 50% at 95% 85%, rgba(16, 58, 116, .07), transparent 70%), #faf9f4; }
main .levels-band { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
main .acad { background: radial-gradient(ellipse 45% 50% at 8% 15%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 40% 45% at 92% 90%, rgba(212, 175, 55, .1), transparent 70%), #fff; }
main .testi { background: radial-gradient(ellipse 45% 55% at 22% 50%, rgba(212, 175, 55, .1), transparent 70%), radial-gradient(ellipse 45% 50% at 90% 15%, rgba(16, 58, 116, .07), transparent 70%), #faf9f4; }
main .ab2__window,
main .ab2__photo { transition: box-shadow .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
main .ab2__window:hover { box-shadow: 0 34px 60px -28px rgba(7, 31, 66, .5), 0 0 0 1px rgba(212, 175, 55, .3); }
main .level,
main .acad__card,
main .facg__card,
main .ach__item { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
main .level:hover,
main .acad__card:hover,
main .facg__card:hover,
main .ach__item:hover { box-shadow: 0 26px 46px -22px rgba(7, 31, 66, .5), 0 0 0 1px rgba(212, 175, 55, .4); }
main .acad__card:hover { transform: translateY(-6px); }
main .facg__card img,
main .ach__item img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
main .facg__card:hover img,
main .ach__item:hover img { transform: scale(1.06); }
/* News & Events, three-column layout: large photo story with the text on it, then two columns of compact items. */
main .nv3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px 32px; margin-top: 36px; align-items: start; }
@media (max-width: 1100px) {
    main .nv3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    main .nv3 { grid-template-columns: 1fr; }
}
/* News & Events: the large story on the left, two moving columns of compact items on the right. */
main .nv__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 32px; align-items: stretch; }
main .nv__cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 20px; min-height: 0; }
main .nv__cols .nv__view { --nvh: calc((100cqh - 42px) / 4); min-height: 380px; }
main .nv__cols .nv__track { animation-duration: var(--dur, 40s); animation-delay: var(--delay, 0s); }
main .nv__cols .nv__list { gap: 14px; padding: 8px 8px 14px; }
main .nv__cols .nv__item { grid-template-columns: 38% 1fr; padding: 8px; gap: 12px; }
main .nv__cols .nv__item-title { font-size: 1rem; -webkit-line-clamp: 3; }
main .nv__cols .nv__item-body { gap: 3px; padding: 2px 4px 2px 0; }
main .nv__cols .nv__item .nv__more { margin-top: 4px; padding-top: 6px; font-size: .66rem; }
main .nv__cols .nv__item .nv__tag { font-size: .64rem; }
main .nv__cols .nv__item .nv__tag::before { width: 12px; }
@media (max-width: 1100px) {
    main .nv__grid { grid-template-columns: 1fr; }
    main .nv__cols .nv__view { min-height: 0; }
}
@media (max-width: 1100px) {
    main .nv__cols .nv__view { container-type: normal; --nvh: 132px; height: calc(var(--nvh) * 3 + 28px); }
}
@media (max-width: 640px) {
    main .nv__cols { grid-template-columns: 1fr; }
}
/* News columns: cards grow to fit long titles, so date, title and Read More never touch the card edges. */
main .nv__cols .nv__list { grid-auto-rows: auto; }
main .nv__cols .nv__item { min-height: var(--nvh); align-items: stretch; padding: 12px; }
main .nv__cols .nv__item-media { align-self: stretch; height: auto; min-height: 84px; }
main .nv__cols .nv__item-body { justify-content: center; padding: 2px 6px 2px 0; }
main .nv__cols .nv__item-title { -webkit-line-clamp: 4; }
main .nv__item .nv__more { color: var(--gold-deep); }
main .nv__item .nv__more:hover { color: var(--gold); }
main .nv__item .nv__more::after { color: var(--gold); }

/* Short description under the heading of an inner page banner. */
.page-hero.has-text .page-hero__title::after { display: none; }
.page-hero__text { max-width: 38em; margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .85); }
.page-hero__text::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 24px; border-radius: 4px; background: var(--gold); }

/* Leadership page: centred introduction, principal message beside a framed photo, and ID-style cards for the people. */
.page-leadership > p:first-child {
    max-width: 52em; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center;
    font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.6; color: var(--navy-900);
}
.page-leadership > p:first-child::before { content: ""; display: block; width: 56px; height: 4px; margin: 0 auto 22px; border-radius: 4px; background: var(--gold); }

.page-leadership .feature {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: stretch; gap: clamp(24px, 4vw, 56px);
    padding: 0; margin-bottom: clamp(48px, 6vw, 88px); border-radius: 0; background: none; box-shadow: none; color: var(--body);
}
.page-leadership .feature img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: 50% 12%; border-radius: 15px 70px 15px 70px; box-shadow: 0 30px 60px -34px rgba(13, 37, 82, .6); }
.page-leadership .feature > img { outline: 3px solid var(--gold); outline-offset: 12px; }
.page-leadership .feature__body {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(28px, 4vw, 56px); border-radius: 15px; background: linear-gradient(160deg, #fff 0%, #faf9f4 100%); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(13, 37, 82, .45);
}
.page-leadership .feature__body::before { content: "\201C"; position: absolute; top: 4px; left: 22px; font-family: var(--serif); font-size: 7rem; line-height: 1; color: rgba(212, 175, 55, .45); pointer-events: none; }
.page-leadership .feature__body p { position: relative; color: var(--body); font-size: 1.0625rem; }
.page-leadership .feature__by { align-self: flex-start; margin: 1.4em 0 0; padding: .6em 1.2em; border-left: 4px solid var(--gold); border-radius: 0 15px 15px 0; background: var(--navy-900); color: #fff; }
.page-leadership .feature__by br + * , .page-leadership .feature__by { line-height: 1.5; }

.page-leadership h2 { text-align: center; max-width: none; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--navy-900); margin-bottom: clamp(24px, 3vw, 40px); }
.page-leadership h2:not(:first-child) { margin-top: clamp(48px, 6vw, 88px); }
.page-leadership h2::after { margin: 16px auto 0; width: 72px; }


@media (max-width: 800px) {
    .page-leadership .feature { grid-template-columns: 1fr; }
    .page-leadership .feature img { max-height: 380px; }
    .page-leadership .feature > img { outline-offset: 8px; margin: 8px; width: calc(100% - 16px); }
}
.feature__text p:last-child, .feature__by p { margin: 0; }
.feature__text { margin-bottom: 1em; }
.feature__text, .feature__by { color: inherit; }
.feature__body .feature__text { color: rgba(255, 255, 255, .84); }
.page-leadership .feature__body .feature__text { color: var(--body); font-size: 1.0625rem; position: relative; }
.page-leadership .feature__body .feature__by, .page-leadership .feature__body .feature__by p { color: #fff; font-size: 1.05rem; line-height: 1.5; font-weight: 600; }


/* Leadership people.
   Administration: a navy showcase panel with arch-framed portraits.
   Principal Council: a light directory panel with tidy square photo tiles. */
.page-leadership .people { gap: clamp(20px, 2.6vw, 34px); margin-bottom: 0; border-radius: 15px; }
.page-leadership .person { margin: 0; overflow: visible; }
.page-leadership .person::before, .page-leadership .person::after { display: none; }
.page-leadership .person figcaption::before { display: none; }
.page-leadership .person:hover { transform: none; }

/* Administration */
.page-leadership .people {
    position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px) clamp(32px, 4vw, 52px);
    background: radial-gradient(ellipse 60% 70% at 50% 0, rgba(212, 175, 55, .16), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
    box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .8);
}
.page-leadership .people .person { background: none; border: 0; box-shadow: none; text-align: center; }
.page-leadership .people .person img {
    display: block; width: 100%; aspect-ratio: 4 / 5; margin: 0 auto; object-fit: cover; object-position: 50% 14%;
    border: 0; border-radius: 999px 999px 15px 15px; outline: 2px solid rgba(212, 175, 55, .85); outline-offset: 7px; box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .6);
    transition: transform .7s var(--ease), outline-offset .4s var(--ease);
}
.page-leadership .people .person:hover img { transform: translateY(-6px); outline-offset: 11px; }
.page-leadership .people .person figcaption { display: grid; justify-items: center; gap: 6px; padding: 28px 6px 0; background: none; }
.page-leadership .people .person figcaption strong { margin: 0; font-size: 1.2rem; color: #fff; }
.page-leadership .people .person figcaption span { padding: 4px 14px; border-radius: 999px; background: rgba(212, 175, 55, .16); color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Principal Council */
.page-leadership .people ~ .people {
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: clamp(20px, 3vw, 36px);
    background: #f1f5fb; border: 1px solid var(--line); box-shadow: none;
}
.page-leadership .people ~ .people .person { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 12px; text-align: left; box-shadow: 0 10px 24px -20px rgba(13, 37, 82, .5); transition: border-color .3s, box-shadow .3s, transform .3s; }
.page-leadership .people ~ .people .person img { width: 100%; aspect-ratio: 1; border-radius: 15px; outline: 0; box-shadow: none; object-position: 50% 15%; }
.page-leadership .people ~ .people .person:hover img { transform: none; outline-offset: 0; }
.page-leadership .people ~ .people .person figcaption { justify-items: start; padding: 14px 4px 4px; gap: 3px; }
.page-leadership .people ~ .people .person figcaption strong { font-size: 1.02rem; color: var(--navy-900); }
.page-leadership .people ~ .people .person figcaption span { padding: 0; background: none; border-radius: 0; color: var(--gold-deep); font-size: .84rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.page-leadership .people ~ .people .person:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 34px -20px rgba(13, 37, 82, .55); }

@media (max-width: 1000px) { .page-leadership .people, .page-leadership .people ~ .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .page-leadership .people { padding-inline: 16px; gap: 28px 14px; } .page-leadership .people ~ .people { gap: 12px; padding: 14px; } .page-leadership .people ~ .people .person { padding: 8px; } }

/* Administration photos: the whole picture, square corners (no arch). */
.page-leadership .people .person img { aspect-ratio: auto; height: auto; border-radius: 0; object-fit: contain; background: rgba(255, 255, 255, .06); }
.page-leadership .people ~ .people .person img { aspect-ratio: 1; height: auto; border-radius: 15px; object-fit: cover; background: none; }
.page-leadership .people .person img { aspect-ratio: 1 / 1; height: auto; object-fit: contain; background: rgba(255, 255, 255, .08); }
.page-leadership .people .person img { outline: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; background: none; border-radius: 0; box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .6); }
.page-leadership .people .person:hover img { outline: 0; transform: translateY(-6px); }

/* Administration: dark panel with a centred title, then four equal portrait cards. */
.page-leadership .feature + h2,
.page-leadership .feature + h2 + .people { background-color: var(--navy-950); }

.page-leadership .feature + h2 {
    position: relative; margin: 0; padding: clamp(36px, 4.5vw, 60px) 24px 0; border: 0; border-radius: 15px 15px 0 0; text-align: center; max-width: none;
    font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: #fff;
    background-image: radial-gradient(ellipse 50% 90% at 50% 0, rgba(30, 111, 217, .35), transparent 70%), linear-gradient(118deg, transparent 0 6%, rgba(212, 175, 55, .9) 6% 6.35%, transparent 6.35%);
    box-shadow: none;
}
.page-leadership .feature + h2::before {
    content: "OUR"; display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 8px;
    font-family: var(--sans); font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: .35em; text-indent: .35em; color: var(--gold);
}
.page-leadership .feature + h2::before { display: block; width: max-content; max-width: 100%; margin: 0 auto 8px; padding: 0 clamp(70px, 10vw, 150px); background: linear-gradient(var(--gold), var(--gold)) 0 50% / clamp(40px, 7vw, 114px) 2px no-repeat, linear-gradient(var(--gold), var(--gold)) 100% 50% / clamp(40px, 7vw, 114px) 2px no-repeat; }
.page-leadership .feature + h2::after {
    content: "Dedicated leadership committed to excellence in education" !important; display: block !important; width: auto; height: auto; margin: 14px auto 0; padding-bottom: 26px; border-radius: 0; background: none;
    font-family: var(--sans); font-size: clamp(.95rem, 1.3vw, 1.1rem); font-style: italic; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .78);
    background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-size: 56px 4px; background-position: 50% 100%; max-width: 40em;
}

.page-leadership .feature + h2 + .people {
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; gap: 24px; margin: 0; padding: 12px clamp(20px, 3.4vw, 48px) clamp(36px, 4.4vw, 56px);
    border: 0; border-radius: 0 0 15px 15px; box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .8);
    background-image: linear-gradient(118deg, transparent 0 93%, rgba(212, 175, 55, .9) 93% 93.4%, transparent 93.4%), radial-gradient(ellipse 60% 60% at 50% 100%, rgba(30, 111, 217, .22), transparent 70%);
}

.page-leadership .feature + h2 + .people .person,
.page-leadership .feature + h2 + .people .person:first-child,
.page-leadership .feature + h2 + .people .person:not(:first-child) {
    --card: #0f2b57; position: relative; display: flex; flex-direction: column; grid-row: auto; padding: 3px; overflow: hidden; text-align: center;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 15px; background: var(--card); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .8); transform: none; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.page-leadership .feature + h2 + .people .person::after,
.page-leadership .feature + h2 + .people .person:first-child::after { display: none; }
.page-leadership .feature + h2 + .people .person:hover,
.page-leadership .feature + h2 + .people .person:first-child:hover,
.page-leadership .feature + h2 + .people .person:not(:first-child):hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, .75); background: var(--card); box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .9); }

.page-leadership .feature + h2 + .people .person img,
.page-leadership .feature + h2 + .people .person:first-child img,
.page-leadership .feature + h2 + .people .person:not(:first-child) img {
    display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 1.1 / 1; margin: 0; border-radius: 5px; object-fit: cover; object-position: 50% 15%; box-shadow: none; outline: 0; transform: none;
}
.page-leadership .feature + h2 + .people .person:hover img { transform: none; }

.page-leadership .feature + h2 + .people .person figcaption,
.page-leadership .feature + h2 + .people .person:first-child figcaption,
.page-leadership .feature + h2 + .people .person:not(:first-child) figcaption {
    position: relative; inset: auto; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding: 24px 16px 26px; background: none; text-align: center;
}
/* gold-edged corner cut at the bottom left of the photo */
.page-leadership .feature + h2 + .people .person figcaption::before,
.page-leadership .feature + h2 + .people .person:first-child figcaption::before {
    content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: 0; transform: translateY(-100%);
    background: linear-gradient(to top right, var(--card) 0 47%, var(--gold) 47% 53%, transparent 53%);
}
.page-leadership .feature + h2 + .people .person figcaption strong,
.page-leadership .feature + h2 + .people .person:first-child figcaption strong { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.55vw, 1.4rem); font-weight: 500; line-height: 1.25; color: #fff; }
.page-leadership .feature + h2 + .people .person figcaption span,
.page-leadership .feature + h2 + .people .person:first-child figcaption span {
    display: block; margin-top: 0; padding: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .16em; line-height: 1.7; text-transform: uppercase; color: var(--gold);
}
.page-leadership .feature + h2 + .people .person figcaption span::before { content: ""; display: block; width: 40px; height: 2px; margin: 14px auto; background: var(--gold); }

@media (max-width: 1000px) { .page-leadership .feature + h2 + .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .page-leadership .feature + h2 + .people { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
    .page-leadership .feature + h2 + .people .person:not(:first-child) { flex-direction: column; }
}

/* Administration title: just the heading, without "OUR", the side lines, the italic line or the gold bar. */
.page-leadership .feature + h2::before { content: none; display: none; }
.page-leadership .feature + h2::after { content: none !important; display: none !important; }
.page-leadership .feature + h2 { padding-bottom: 12px; }
.page-leadership .feature + h2 + .people .person figcaption::before,
.page-leadership .feature + h2 + .people .person:first-child figcaption::before { display: none; content: none; }

/* Administration panel: plain navy, without the thin gold diagonal lines. */
.page-leadership .feature + h2 { background-image: radial-gradient(ellipse 50% 90% at 50% 0, rgba(30, 111, 217, .35), transparent 70%); }
.page-leadership .feature + h2 + .people { background-image: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(30, 111, 217, .22), transparent 70%); }

/* Photos on the leadership page sit on a light grey background. */
.page-leadership .person img,
.page-leadership .feature + h2 + .people .person img,
.page-leadership .feature + h2 + .people .person:first-child img,
.page-leadership .feature + h2 + .people .person:not(:first-child) img,
.page-leadership .people ~ .people .person img { background: #e4e7ec; }

/* Administration photos a little bigger: taller frames and wider cards. */
.page-leadership .feature + h2 + .people { gap: 20px; padding-inline: clamp(14px, 2.4vw, 32px); }
.page-leadership .feature + h2 + .people .person img,
.page-leadership .feature + h2 + .people .person:first-child img,
.page-leadership .feature + h2 + .people .person:not(:first-child) img { aspect-ratio: 1 / 1.12; }

/* Administration card text sized to match the larger photos. */
.page-leadership .feature + h2 + .people .person figcaption strong,
.page-leadership .feature + h2 + .people .person:first-child figcaption strong { font-size: clamp(1.2rem, 1.75vw, 1.5rem); }
.page-leadership .feature + h2 + .people .person figcaption span,
.page-leadership .feature + h2 + .people .person:first-child figcaption span { font-size: .84rem; letter-spacing: .14em; }

/* Principal Council names a little smaller. */
.page-leadership .people ~ .people .person figcaption strong { font-size: .92rem; }
.page-leadership .people ~ .people .person figcaption span { font-size: .78rem; }

/* Inner pages share the homepage look: pale canvas with soft glows, navy serif headings, 8px cards, gold hairline hover. */
.inner {
    background:
        radial-gradient(ellipse 40% 30% at 96% 4%, rgba(212, 175, 55, .10), transparent 70%),
        radial-gradient(ellipse 45% 35% at 4% 60%, rgba(16, 58, 116, .06), transparent 70%),
        linear-gradient(180deg, #fff 0%, #faf9f4 100%);
}
.prose h2, .prose h3 { color: var(--navy-900); }
.prose h3 { border-radius: 0 15px 15px 0; }

.contact-card, .news-tile, .prose a.news-tile, .saint, .saint__facts, .saint__quote, .quote-card, .vm-hero, .vm-objectives, .pay__box,
.prose table, .map-block, .gallery img, .feature, .vm-become { border-radius: 15px; }

.contact-card, .saint__facts, .prose table { box-shadow: 0 22px 44px -30px rgba(13, 37, 82, .4); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .3s ease; }
.contact-card:hover, .prose a.news-tile:hover, .gallery img:hover {
    transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 26px 46px -22px rgba(7, 31, 66, .5), 0 0 0 1px rgba(212, 175, 55, .4);
}
.gallery img:hover { transform: scale(1.03); }
.contact-card__icon { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.contact-card:hover .contact-card__icon { background: var(--gold); color: var(--navy-950); }
.prose p { color: var(--body); }
.prose a.btn, .prose .btn { border-radius: 999px; }
.inner .prose :is(.contact-card, .news-tile, .saint, .saint__facts, .saint__quote, .quote-card, .vm-hero, .vm-objectives, .pay__box, .map-block, .feature, .vm-become) { border-radius: 15px; }
.inner .prose table { border-radius: 15px; }
.inner .prose .gallery img { border-radius: 15px; }

/* Text on the dark navy panels of inner pages stays light (the page-wide navy headings and body colour must not reach it). */
.inner .prose:not(.page-leadership) :is(.feature, .pay, .vm-hero, .quote-card, .saint__quote) :is(h1, h2, h3, h4) { color: #fff; }
.inner .prose:not(.page-leadership) :is(.feature, .pay, .vm-hero, .quote-card, .saint__quote) :is(p, li, blockquote, dd, dt, td, th) { color: rgba(255, 255, 255, .88); }
.inner .prose:not(.page-leadership) .feature__by, .inner .prose:not(.page-leadership) .feature__by p { color: var(--gold); }
.inner .prose:not(.page-leadership) .feature__text, .inner .prose:not(.page-leadership) .feature__text p { color: rgba(255, 255, 255, .88); }
.inner .prose:not(.page-leadership) :is(.feature, .pay, .vm-hero, .quote-card, .saint__quote) .heading__lead { color: var(--gold); }
.inner .prose :is(.feature, .pay, .vm-hero, .quote-card, .saint__quote) a:not(.btn):not(.pay__btn) { color: var(--gold); }
.inner .prose .map-block__info :is(h1, h2, h3, h4) { color: #fff; }
.inner .prose .map-block__info :is(p, li, span) { color: rgba(255, 255, 255, .88); }
.inner .prose .map-block__title, .inner .prose h3.map-block__title { color: #fff; }

/* About us (Why SFS): a framed card with the introduction on the left and a large photo on the right. */
.why__top {
    position: relative; overflow: hidden; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 72px);
    padding: clamp(28px, 4.4vw, 64px); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 30px 60px -44px rgba(13, 37, 82, .5);
    background: radial-gradient(ellipse 45% 50% at 100% 0, rgba(212, 175, 55, .16), transparent 70%), linear-gradient(160deg, #fff 0%, #faf9f4 100%);
}
.why__top::after { content: ""; position: absolute; left: 22px; bottom: 22px; width: 96px; height: 64px; pointer-events: none; background: radial-gradient(circle, rgba(16, 58, 116, .28) 2.5px, transparent 3px) 0 0 / 16px 16px; opacity: .6; }
.why__intro, .why__photo { position: relative; z-index: 1; }

.why__intro h2 { margin: 0 0 clamp(22px, 2.6vw, 30px); font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.08; color: var(--navy-900); }
.why__intro .heading__lead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-family: var(--sans); font-size: .8rem; font-style: normal; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.why__intro .heading__lead::before { content: ""; width: 40px; height: 2px; background: var(--gold); }

.why__intro p { margin-bottom: 1.2em; color: var(--body); }
.why__intro p:first-of-type { padding-left: 20px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: clamp(1.1rem, 1.55vw, 1.3rem); line-height: 1.6; color: var(--navy-800); }

.why__photo::before { inset: -16px 24px 24px -16px; border: 0; border-radius: 15px; background: var(--navy-900); }
.why__photo img { aspect-ratio: 4 / 4.6; border-radius: 15px; box-shadow: 0 34px 60px -34px rgba(13, 37, 82, .75); }

@media (max-width: 991px) {
    .why__photo { margin: 16px 0 0 16px; }
    .why__photo::before { inset: -14px 14px 14px -14px; }
}

/* Testimonials panel (Why SFS): navy panel, framed photo on the left, large heading and text on the right. */
.why .feature {
    position: relative; overflow: hidden; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; margin: 0;
    padding: clamp(28px, 4vw, 60px); border-radius: 15px;
    background: radial-gradient(ellipse 50% 70% at 0 100%, rgba(30, 111, 217, .38), transparent 70%), radial-gradient(ellipse 40% 50% at 100% 0, rgba(212, 175, 55, .16), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950));
    box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .85);
}
.why .feature::before { content: "\201C"; position: absolute; right: clamp(16px, 4vw, 56px); bottom: -.28em; font-family: var(--serif); font-size: clamp(11rem, 22vw, 20rem); line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
.why .feature img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid rgba(255, 255, 255, .95); border-radius: 15px; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .75); }
.why .feature__body { position: relative; z-index: 1; }
.why .feature__body::before { content: ""; display: block; width: 56px; height: 4px; margin-bottom: 22px; border-radius: 4px; background: var(--gold); }
.why .feature__body h3 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.why .feature__body p { max-width: 34em; margin: 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; color: rgba(255, 255, 255, .88); }
@media (max-width: 800px) { .why .feature { grid-template-columns: minmax(0, 1fr); } }

/* Why SFS quote: a light band with a gold quote badge on its top edge and gold bars either side of the text. */
.prose .why__quote {
    margin: clamp(56px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); padding: clamp(46px, 5vw, 70px) clamp(24px, 6vw, 110px) clamp(34px, 4vw, 54px);
    border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 30px 60px -46px rgba(13, 37, 82, .5);
    background: radial-gradient(ellipse 50% 90% at 50% 0, rgba(212, 175, 55, .14), transparent 70%), linear-gradient(180deg, #fff 0%, #faf9f4 100%);
    color: var(--navy-900); font-size: clamp(1.4rem, 2.7vw, 2.2rem); font-style: italic; line-height: 1.4;
}
.why__quote::before {
    content: "\201C"; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: grid; place-items: center; width: 62px; height: 62px; margin: 0; padding-top: 14px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 12px 24px -10px rgba(143, 109, 23, .7); font-family: var(--serif); font-style: normal; font-size: 3.4rem; line-height: 1; color: var(--navy-950);
}
.why__quote::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 56px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: var(--gold); }
@media (max-width: 600px) { .prose .why__quote { padding-inline: 20px; } }
.why__quote::before { content: "\201C" !important; display: grid !important; }

/* Why SFS quote, open editorial style: no box, a large gold quote mark above, and a gold rule with a diamond below. */
.prose .why__quote {
    margin: clamp(48px, 6vw, 96px) auto; max-width: 52rem; padding: clamp(70px, 7vw, 96px) 12px clamp(56px, 6vw, 80px);
    border: 0; border-radius: 0; box-shadow: none; background: none;
    color: var(--navy-900); font-size: clamp(1.6rem, 3.2vw, 2.7rem); font-style: italic; font-weight: 500; line-height: 1.32; letter-spacing: -.01em;
}
.why__quote::before {
    top: 0; width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: translateX(-50%);
    font-size: clamp(6rem, 11vw, 9rem); line-height: .8; color: var(--gold); opacity: .85; display: block !important;
}
.why__quote::after {
    left: 50%; bottom: 0; width: min(100%, 360px); height: 12px; transform: translateX(-50%); border-radius: 0;
    background:
        linear-gradient(var(--gold), var(--gold)) 0 50% / calc(50% - 16px) 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 100% 50% / calc(50% - 16px) 2px no-repeat,
        linear-gradient(45deg, transparent 0 35%, var(--gold) 35% 65%, transparent 65%) 50% 50% / 12px 12px no-repeat;
}
.why__quote::after {
    background:
        linear-gradient(var(--gold), var(--gold)) 0 50% / calc(50% - 18px) 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 100% 50% / calc(50% - 18px) 2px no-repeat,
        radial-gradient(circle, var(--gold) 0 5px, transparent 5.5px) 50% 50% / 14px 14px no-repeat;
}

/* Inner page banner: the school photo on the right under a navy fade, plain breadcrumbs, a larger title. */
.page-hero { min-height: clamp(380px, 34vw, 500px); background: var(--navy-950); }
.page-hero__photo {
    background:
        linear-gradient(90deg, var(--navy-950) 0%, rgba(7, 31, 66, .94) 30%, rgba(7, 31, 66, .72) 62%, rgba(7, 31, 66, .5) 100%),
        radial-gradient(60% 100% at 0 100%, rgba(30, 111, 217, .45), transparent 70%),
        url("../images/stfrancisdesales.webp") 70% 40% / cover no-repeat;
    -webkit-mask-image: none; mask-image: none;
}
.page-hero::after { background: linear-gradient(0deg, rgba(8, 23, 58, .6) 0%, rgba(8, 23, 58, 0) 50%); }
.page-hero__ring { display: none; }

.crumbs ol { padding: 0; border: 0; border-radius: 0; background: none; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { margin: 0 14px; border-color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }

.page-hero__title { max-width: 15em; margin-top: 20px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.page-hero__text { max-width: 36em; color: rgba(255, 255, 255, .88); }
.page-hero__photo {
    background:
        linear-gradient(90deg, var(--navy-950) 0%, rgba(7, 31, 66, .94) 30%, rgba(7, 31, 66, .74) 62%, rgba(7, 31, 66, .52) 100%),
        radial-gradient(60% 100% at 0 100%, rgba(30, 111, 217, .45), transparent 70%),
        url("../images/page-banner-campus.webp") 70% 45% / cover no-repeat;
}

/* Banner: the dot grid and the thin gold ring are back, over the photo. */
.page-hero__ring { display: block; }
.page-hero__photo::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .22) 1.2px, transparent 1.4px) 0 0 / 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}

/* News page layout: one wide featured tile on top, then an even three-column grid. The tile design itself is unchanged. */
.news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; grid-auto-flow: row; gap: clamp(16px, 2vw, 28px); }
.news-list .news-tile, .news-list .news-tile:nth-child(6) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.news-list .news-tile:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.news-list .news-tile:nth-child(6) .news-tile__title { font-size: clamp(.95rem, 1.2vw, 1.15rem); }
.news-list .news-tile:nth-child(1) .news-tile__title { font-size: clamp(1.6rem, 3vw, 2.6rem); max-width: 22em; }
@media (max-width: 991px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
    .news-list .news-tile:nth-child(1) { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
    .news-list { grid-template-columns: minmax(0, 1fr); }
    .news-list .news-tile, .news-list .news-tile:nth-child(1) { aspect-ratio: 4 / 3; }
}

/* News page layout, second version: an even four-column grid of portrait tiles; every second column steps down. Tile design unchanged. */
.news-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; padding-bottom: 44px; }
.news-list .news-tile, .news-list .news-tile:nth-child(1), .news-list .news-tile:nth-child(6) { grid-column: auto; aspect-ratio: 3 / 4; }
.news-list .news-tile:nth-child(4n+2), .news-list .news-tile:nth-child(4n+4) { margin-top: 44px; }
.news-list .news-tile:nth-child(1) .news-tile__title { font-size: clamp(.95rem, 1.2vw, 1.15rem); max-width: none; }
@media (max-width: 1100px) {
    .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-list .news-tile:nth-child(4n+2), .news-list .news-tile:nth-child(4n+4) { margin-top: 0; }
    .news-list .news-tile:nth-child(3n+2) { margin-top: 36px; }
}
@media (max-width: 760px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
    .news-list .news-tile:nth-child(3n+2) { margin-top: 0; }
    .news-list .news-tile:nth-child(2n) { margin-top: 28px; }
    .news-list .news-tile:nth-child(1) { grid-column: auto; aspect-ratio: 3 / 4; }
}
@media (max-width: 480px) {
    .news-list { grid-template-columns: minmax(0, 1fr); }
    .news-list .news-tile, .news-list .news-tile:nth-child(2n) { margin-top: 0; aspect-ratio: 4 / 3; }
}

/* News page: no up and down offset, all tiles in even rows. */
.news-list .news-tile, .news-list .news-tile:nth-child(n) { margin-top: 0; }
.news-list { padding-bottom: 0; }

/* News page layout, third version: a mosaic that repeats a big tile with two small ones, a row of three, a mirrored block and a wide closing tile. Tile design unchanged. */
.news-list { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 17vw, 250px); grid-auto-flow: row; gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.news-list .news-tile, .news-list .news-tile:nth-child(n) { aspect-ratio: auto; grid-column: auto; grid-row: auto; margin-top: 0; }
.news-list .news-tile:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.news-list .news-tile:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
.news-list .news-tile:nth-child(3) { grid-column: 4 / 7; grid-row: 2; }
.news-list .news-tile:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
.news-list .news-tile:nth-child(5) { grid-column: 3 / 5; grid-row: 3; }
.news-list .news-tile:nth-child(6) { grid-column: 5 / 7; grid-row: 3; }
.news-list .news-tile:nth-child(7) { grid-column: 1 / 4; grid-row: 4; }
.news-list .news-tile:nth-child(8) { grid-column: 1 / 4; grid-row: 5; }
.news-list .news-tile:nth-child(9) { grid-column: 4 / 7; grid-row: 4 / 6; }
.news-list .news-tile:nth-child(10) { grid-column: 1 / 7; grid-row: 6; }
.news-list .news-tile:nth-child(1) .news-tile__title,
.news-list .news-tile:nth-child(9) .news-tile__title,
.news-list .news-tile:nth-child(10) .news-tile__title { font-size: clamp(1.4rem, 2.4vw, 2.1rem); max-width: 20em; }
.news-list .news-tile:nth-child(2) .news-tile__title, .news-list .news-tile:nth-child(3) .news-tile__title,
.news-list .news-tile:nth-child(7) .news-tile__title, .news-list .news-tile:nth-child(8) .news-tile__title { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }

@media (max-width: 900px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 30vw, 240px); }
    .news-list .news-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
    .news-list .news-tile:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
    .news-list .news-tile:nth-child(10) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .news-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
    .news-list .news-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* News page layout, fourth version: a large featured story with a filmstrip of the next three beside it, then an even three-column grid. Tile design unchanged. */
.news-list { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 16vw, 230px); grid-auto-flow: row; gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.news-list .news-tile, .news-list .news-tile:nth-child(n) { aspect-ratio: auto; grid-column: span 4; grid-row: auto; margin-top: 0; }
.news-list .news-tile:nth-child(1) { grid-column: 1 / 9; grid-row: 1 / 4; }
.news-list .news-tile:nth-child(2) { grid-column: 9 / 13; grid-row: 1; }
.news-list .news-tile:nth-child(3) { grid-column: 9 / 13; grid-row: 2; }
.news-list .news-tile:nth-child(4) { grid-column: 9 / 13; grid-row: 3; }
.news-list .news-tile:nth-child(1) .news-tile__title { font-size: clamp(1.6rem, 3vw, 2.6rem); max-width: 18em; }
.news-list .news-tile:nth-child(n+2) .news-tile__title { font-size: clamp(.95rem, 1.2vw, 1.15rem); }
.news-list .news-tile:nth-child(n+2):nth-child(-n+4) .news-tile__title { font-size: clamp(1rem, 1.3vw, 1.2rem); }

@media (max-width: 900px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 30vw, 240px); }
    .news-list .news-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
    .news-list .news-tile:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 520px) {
    .news-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
    .news-list .news-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* Footer columns: more even widths (the contact column was far wider than its content, Quick Links was cramped). */
.site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.3fr); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 575px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Notice board: a narrower gap between the two lists. */
.notice__lists { gap: 0 clamp(12px, 1.6vw, 24px); }

/* Scroll motion for the marks added to the sections. --sp (set by site.js) goes from -1 to 1 as a section passes the screen. */
main .stats::before, main .principal::after, main .levels-band::before, main .acad::before, main .ach::before, main .news::before, main .notice::before, main .ab2::before, main .testi::before {
    will-change: transform; transform: translate3d(0, calc(var(--sp, 0) * 38px), 0);
}
main .ab2::after, main .stats::after, main .levels-band::after, main .acad::after, main .fac::after, main .ach::after, main .news::after, main .notice::after, main .testi::after, main .principal::after {
    will-change: transform; transform: translate3d(0, calc(var(--sp, 0) * -52px), 0) rotate(calc(var(--sp, 0) * 8deg));
}
main .principal::after { transform: translate3d(calc(var(--sp, 0) * -40px), calc(var(--sp, 0) * -40px), 0); }
main .testi__main::before { transform: translate3d(0, calc(var(--sp, 0) * -30px), 0) scale(calc(1 + var(--sp, 0) * .05)); }
main .why__top::after { transform: translate3d(0, calc(var(--sp, 0) * -30px), 0); }
.why .feature::before { transform: translate3d(0, calc(var(--sp, 0) * -34px), 0); }
.page-hero__ring { transform: translate3d(0, calc(var(--sp, 0) * -60px), 0) rotate(calc(var(--sp, 0) * 14deg)); }
.page-hero__photo::before { transform: translate3d(0, calc(var(--sp, 0) * 28px), 0); }
@media (prefers-reduced-motion: reduce) {
    main .stats::before, main .principal::after, main .levels-band::before, main .acad::before, main .ach::before, main .news::before, main .notice::before, main .ab2::before, main .testi::before,
    main .ab2::after, main .stats::after, main .levels-band::after, main .acad::after, main .fac::after, main .ach::after, main .news::after, main .notice::after, main .testi::after,
    main .testi__main::before, main .why__top::after, .why .feature::before, .page-hero__ring, .page-hero__photo::before { transform: none; }
}

/* Inner page banner: dot grid removed. */
.page-hero__photo::before { display: none; content: none; }

/* Academic Programmes: four equal cards in a row (no slider). */
.levels--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: 8px 0 0; margin-inline: 0; overflow: visible; scroll-snap-type: none; align-items: stretch; }
.levels--grid .level, .levels--grid .level:nth-child(n) { flex: none; width: auto; margin: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 44px -30px rgba(13, 37, 82, .4); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .3s; }
.levels--grid .level:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 30px 50px -24px rgba(7, 31, 66, .5), 0 0 0 1px rgba(212, 175, 55, .4); }
.levels--grid .level__media { position: relative; aspect-ratio: 4 / 3; border-radius: 0; }
.levels--grid .level__media img { width: 100%; height: 100%; object-fit: cover; }
.level__no { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 31, 66, .82); color: var(--gold); font: 800 .8rem/1 var(--sans); letter-spacing: .14em; }
.levels--grid .level__body { flex: 1; align-items: center; padding: 20px 20px 22px; border: 0; background: none; }
.levels--grid .level__title { white-space: normal; font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
@media (max-width: 767px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } }

/* Academic Programmes cards, second design: tall photo cards with the text over a navy fade and a large number. */
.levels--grid .level, .levels--grid .level:nth-child(n) { position: relative; display: block; aspect-ratio: 3 / 4; border: 0; background: var(--navy-950); isolation: isolate; box-shadow: 0 30px 50px -30px rgba(7, 31, 66, .7); }
.levels--grid .level:hover { transform: translateY(-8px); box-shadow: 0 36px 60px -26px rgba(7, 31, 66, .8); }
.levels--grid .level__media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.levels--grid .level__media img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover .level__media img { transform: scale(1.08); }
.levels--grid .level::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 31, 66, .96) 0%, rgba(7, 31, 66, .62) 38%, rgba(7, 31, 66, .05) 70%); }
.levels--grid .level::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 56px; background: var(--gold); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover::after { width: 100%; }
.levels--grid .level__no { left: auto; right: 18px; top: 14px; padding: 0; border-radius: 0; background: none; font: 500 3.4rem/1 var(--serif); letter-spacing: 0; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.levels--grid .level__body { position: absolute; left: 0; right: 0; bottom: 0; flex: none; align-items: flex-end; padding: 24px 22px 26px; }
.levels--grid .level__tag { color: var(--gold); }
.levels--grid .level__title, .levels--grid .level__title a { color: #fff; }
.levels--grid .level .round-btn { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; flex: none; }
.levels--grid .level:hover .round-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: rotate(-35deg); }
.levels--grid .level__title a::after { content: ""; position: absolute; inset: 0; }

/* Academic Programmes cards, third design: white cards, photo on top, a round number badge on the photo edge and centred text. */
.levels--grid .level, .levels--grid .level:nth-child(n) { display: flex; flex-direction: column; aspect-ratio: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 44px -30px rgba(13, 37, 82, .4); text-align: center; overflow: visible; isolation: auto; }
.levels--grid .level:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 30px 50px -24px rgba(7, 31, 66, .5), 0 0 0 1px rgba(212, 175, 55, .4); }
.levels--grid .level::before, .levels--grid .level::after { display: none; }
.levels--grid .level__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; border-radius: 15px 15px 0 0; overflow: hidden; }
.levels--grid .level:hover .level__media img { transform: scale(1.06); }
.levels--grid .level__no {
    position: absolute; left: 50%; right: auto; top: auto; bottom: -26px; z-index: 2; transform: translateX(-50%);
    display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 4px solid #fff;
    background: var(--navy-900); color: var(--gold); font: 700 1rem/1 var(--sans); letter-spacing: .06em; text-shadow: none; box-shadow: 0 10px 20px -8px rgba(7, 31, 66, .6);
}
.levels--grid .level__media { overflow: visible; }
.levels--grid .level__media img { border-radius: 15px 15px 0 0; }
.levels--grid .level__body { position: static; flex: 1; flex-direction: column; justify-content: flex-start; align-items: center; gap: 16px; padding: 44px 20px 24px; }
.levels--grid .level__tag { color: var(--gold-deep); }
.levels--grid .level__title, .levels--grid .level__title a { color: var(--navy-900); }
.levels--grid .level__body::before { content: ""; order: 2; width: 36px; height: 3px; border-radius: 3px; background: var(--gold); }
.levels--grid .level__body > div { order: 1; }
.levels--grid .level .round-btn { order: 3; margin-top: auto; border-color: var(--gold); background: transparent; color: var(--navy-900); }
.levels--grid .level:hover .round-btn { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold); transform: rotate(-35deg); }

/* Academic Programmes cards, fourth design: a 2 x 2 grid of wide cards, photo on the left and the text on the right. */
.levels--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.levels--grid .level, .levels--grid .level:nth-child(n) { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: stretch; text-align: left; overflow: hidden; min-height: 250px; border-radius: 15px; }
.levels--grid .level__media { position: relative; z-index: 0; aspect-ratio: auto; height: 100%; min-height: 250px; border-radius: 0; overflow: hidden; }
.levels--grid .level__media img { border-radius: 0; height: 100%; }
.levels--grid .level:hover .level__media img { transform: scale(1.07); }
.levels--grid .level__no {
    position: absolute; left: 14px; right: auto; top: 14px; bottom: auto; transform: none; width: auto; height: auto; padding: 7px 12px; border: 0; border-radius: 4px;
    background: var(--gold); color: var(--navy-950); font: 800 .8rem/1 var(--sans); letter-spacing: .14em; box-shadow: none;
}
.levels--grid .level__body { position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(20px, 2.4vw, 34px); border-left: 4px solid var(--gold); }
.levels--grid .level__body::before { display: none; }
.levels--grid .level__body > div { order: 0; }
.levels--grid .level__title { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.15; }
.levels--grid .level .round-btn { margin-top: 6px; order: 0; }
@media (max-width: 760px) {
    .levels--grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .levels--grid .level, .levels--grid .level:nth-child(n) { grid-template-columns: minmax(0, 1fr); }
    .levels--grid .level__media { min-height: 0; aspect-ratio: 16 / 10; }
    .levels--grid .level__body { border-left: 0; border-top: 4px solid var(--gold); }
}

/* Academic Programmes cards, fifth design: four solid stage cards in the site's navy shades and gold, no photos. */
.levels--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.levels--grid .level, .levels--grid .level:nth-child(n) {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(300px, 26vw, 380px); overflow: hidden; border: 0; border-radius: 15px; text-align: left; isolation: isolate;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); box-shadow: 0 28px 50px -30px rgba(7, 31, 66, .75);
}
.levels--grid .level:nth-child(2) { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.levels--grid .level:nth-child(3) { background: linear-gradient(160deg, #1e6fd9, var(--navy-800)); }
.levels--grid .level:nth-child(4) { background: linear-gradient(160deg, #e9c352, var(--gold-deep)); }
.levels--grid .level::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: block; inset: auto; }
.levels--grid .level::after { content: ""; position: absolute; z-index: -1; right: 40px; top: 40px; width: 90px; height: 90px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; height: 90px; bottom: auto; background: none; display: block; }
.levels--grid .level:hover { transform: translateY(-8px); box-shadow: 0 36px 60px -26px rgba(7, 31, 66, .85); }
.levels--grid .level:hover::after { width: 90px; }
.levels--grid .level__media { display: none; }
.levels--grid .level__no {
    position: absolute; left: auto; right: 22px; top: auto; bottom: 18px; transform: none; display: block; width: auto; height: auto; padding: 0; border: 0; background: none; box-shadow: none;
    font: 500 6.5rem/1 var(--serif); letter-spacing: 0; color: rgba(255, 255, 255, .12); z-index: -1; pointer-events: none;
}
.levels--grid .level__body { position: static; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 18px; flex: 1; padding: clamp(22px, 2.4vw, 32px); border: 0; }
.levels--grid .level__body::before { display: none; }
.levels--grid .level__body > div { order: 0; }
.levels--grid .level__tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 4px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .72rem; letter-spacing: .16em; }
.levels--grid .level__title, .levels--grid .level__title a { color: #fff; font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.1; }
.levels--grid .level .round-btn { order: 0; margin-top: 0; border-color: rgba(255, 255, 255, .8); background: transparent; color: #fff; }
.levels--grid .level:hover .round-btn { background: #fff; border-color: #fff; color: var(--navy-900); transform: rotate(-35deg); }
.levels--grid .level:nth-child(4) .level__tag { background: rgba(7, 31, 66, .18); color: var(--navy-950); }
.levels--grid .level:nth-child(4) .level__title, .levels--grid .level:nth-child(4) .level__title a { color: var(--navy-950); }
.levels--grid .level:nth-child(4) .level__no { color: rgba(7, 31, 66, .14); }
.levels--grid .level:nth-child(4) .round-btn { border-color: var(--navy-950); color: var(--navy-950); }
.levels--grid .level:nth-child(4):hover .round-btn { background: var(--navy-950); border-color: var(--navy-950); color: var(--gold); }
@media (max-width: 1100px) { .levels--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } .levels--grid .level, .levels--grid .level:nth-child(n) { min-height: 220px; } }

/* Academic Programmes cards, sixth design: four tall photo panels side by side; the panel under the pointer opens wider. */
@media (min-width: 901px) {
    .levels--grid { display: flex; gap: 14px; height: clamp(400px, 34vw, 480px); }
    .levels--grid .level, .levels--grid .level:nth-child(n) {
        flex: 1 1 0; min-width: 0; min-height: 0; height: 100%; display: block; background: var(--navy-950); overflow: hidden; border-radius: 15px; transition: flex-grow .7s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
    }
    .levels--grid .level:hover, .levels--grid:not(:hover) .level:first-child { flex-grow: 2.6; transform: none; }
    .levels--grid:hover .level:first-child:not(:hover) { flex-grow: 1; }
}
.levels--grid .level:nth-child(n) { background-image: none; }
.levels--grid .level__media { display: block; position: absolute; inset: 0; z-index: -2; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; overflow: hidden; }
.levels--grid .level__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: saturate(.85); }
.levels--grid .level:hover .level__media img { transform: scale(1.06); filter: saturate(1.05); }
.levels--grid .level::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; right: auto; top: auto; width: auto; height: auto; border-radius: 0; background: linear-gradient(0deg, rgba(7, 31, 66, .96) 0%, rgba(7, 31, 66, .55) 42%, rgba(7, 31, 66, .15) 75%); }
.levels--grid .level::after { display: block; content: ""; position: absolute; left: 0; bottom: 0; right: auto; top: auto; width: 56px; height: 4px; border: 0; border-radius: 0; background: var(--gold); z-index: 1; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover::after { width: 100%; }
.levels--grid .level__no { position: absolute; left: 20px; right: auto; top: 18px; bottom: auto; z-index: 1; font: 500 2.6rem/1 var(--serif); color: rgba(255, 255, 255, .92); text-shadow: 0 4px 16px rgba(0, 0, 0, .45); pointer-events: none; }
.levels--grid .level__body { position: absolute; left: 0; right: 0; bottom: 0; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 24px 20px 26px; }
.levels--grid .level__tag { margin-bottom: 8px; padding: 0; background: none; color: var(--gold); font-size: .7rem; letter-spacing: .16em; }
.levels--grid .level__title, .levels--grid .level__title a { color: #fff; font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
.levels--grid .level .round-btn { flex: none; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s, background-color .3s; }
.levels--grid .level:hover .round-btn { opacity: 1; transform: none; background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.levels--grid .level__title a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 900px) {
    .levels--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
    .levels--grid .level, .levels--grid .level:nth-child(n) { min-height: 260px; }
    .levels--grid .level .round-btn { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } }

/* Academic Programmes, seventh design: a journey. A dashed gold path joins four numbered steps, each with its photo and title below. */
.levels--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); height: auto; position: relative; padding-top: 6px; }
.levels--grid::before { content: ""; position: absolute; top: 34px; left: 12.5%; right: 12.5%; border-top: 2px dashed rgba(212, 175, 55, .85); pointer-events: none; }
@media (min-width: 901px) {
    .levels--grid .level, .levels--grid .level:nth-child(n), .levels--grid .level:hover, .levels--grid:not(:hover) .level:first-child, .levels--grid:hover .level:first-child:not(:hover) {
        flex: none; flex-grow: 0; height: auto; min-height: 0; transform: none;
    }
}
.levels--grid .level, .levels--grid .level:nth-child(n) {
    position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 74px; aspect-ratio: auto; min-height: 0; overflow: visible; background: none; border: 0; box-shadow: none; text-align: center; isolation: auto;
}
.levels--grid .level::before, .levels--grid .level::after { display: none !important; }
.levels--grid .level__no {
    position: absolute; left: 50%; right: auto; top: 8px; bottom: auto; transform: translateX(-50%); z-index: 2;
    display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 5px solid #faf9f4;
    background: var(--navy-900); color: var(--gold); font: 700 1.05rem/1 var(--sans); letter-spacing: .06em; text-shadow: none; box-shadow: 0 10px 22px -8px rgba(7, 31, 66, .7); transition: background-color .3s, color .3s, transform .4s;
}
.levels--grid .level:hover .level__no { background: var(--gold); color: var(--navy-950); transform: translateX(-50%) scale(1.1); }
.levels--grid .level__media { position: static; inset: auto; z-index: 0; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 15px; overflow: hidden; box-shadow: 0 26px 46px -30px rgba(13, 37, 82, .6); transition: box-shadow .45s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover .level__media { transform: translateY(-6px); box-shadow: 0 34px 56px -28px rgba(7, 31, 66, .7), 0 0 0 2px var(--gold); }
.levels--grid .level__media img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover .level__media img { transform: scale(1.06); filter: none; }
.levels--grid .level__body { position: static; width: 100%; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 20px 8px 0; border: 0; }
.levels--grid .level__body::before { display: block; content: ""; order: 2; width: 36px; height: 3px; border-radius: 3px; background: var(--gold); }
.levels--grid .level__body > div { order: 1; }
.levels--grid .level__tag { display: inline-block; margin-bottom: 8px; padding: 0; background: none; color: var(--gold-deep); font-size: .74rem; letter-spacing: .16em; }
.levels--grid .level__title, .levels--grid .level__title a { color: var(--navy-900); font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.levels--grid .level .round-btn { order: 3; opacity: 1; transform: none; border-color: var(--gold); background: transparent; color: var(--navy-900); }
.levels--grid .level:hover .round-btn { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold); transform: rotate(-35deg); opacity: 1; }
@media (max-width: 900px) {
    .levels--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
    .levels--grid::before { display: none; }
}
@media (max-width: 560px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } }

/* Academic Programmes, eighth design: the same card language as the Facilities grid (full photo, navy fade, serif title with a gold line that grows on hover). */
.levels--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); height: auto; padding-top: 0; }
.levels--grid::before { display: none; }
.levels--grid .level, .levels--grid .level:nth-child(n), .levels--grid .level:hover {
    position: relative; display: block; flex: none; flex-grow: 0; height: auto; min-height: 0; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; border-radius: 15px; background: var(--navy-800); text-align: left; isolation: auto;
    box-shadow: 0 18px 36px -24px rgba(11, 45, 91, .5); transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.levels--grid .level:hover { translate: 0 -6px; transform: none; box-shadow: 0 28px 46px -24px rgba(11, 45, 91, .6); }
.levels--grid .level::before { display: none !important; }
.levels--grid .level::after { display: block !important; content: ""; position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(0deg, rgba(8, 23, 58, .9) 0%, rgba(8, 23, 58, .45) 38%, rgba(8, 23, 58, 0) 66%); pointer-events: none; }
.levels--grid .level__media { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; overflow: hidden; box-shadow: none; transform: none; }
.levels--grid .level:hover .level__media { transform: none; box-shadow: none; }
.levels--grid .level__media img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform 1.3s var(--ease); }
.levels--grid .level:hover .level__media img { transform: scale(1.07); filter: none; }
.levels--grid .level__no { display: none; }
.levels--grid .level__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; width: auto; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding: clamp(14px, 1.6vw, 22px); border: 0; }
.levels--grid .level__body::before { display: none; }
.levels--grid .level__body > div { order: 0; }
.levels--grid .level__tag { display: block; order: 2; margin: 0; padding: 0; background: none; color: rgba(255, 255, 255, .85); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.levels--grid .level__title { margin: 0 0 0; }
.levels--grid .level__title, .levels--grid .level__title a { color: #fff; font: 500 clamp(1.15rem, 1.6vw, 1.5rem)/1.2 var(--serif); }
.levels--grid .level__title::after { content: ""; display: block; width: 32px; height: 2px; margin: 8px 0 7px; background: var(--gold); transition: width .5s var(--ease); }
.levels--grid .level:hover .level__title::after { width: 64px; }
.levels--grid .level__body > div { display: flex; flex-direction: column; }
.levels--grid .level__tag { order: 2; }
.levels--grid .level__title { order: 1; }
.levels--grid .level .round-btn { order: 3; flex: none; opacity: 1; transform: none; width: 38px; height: 38px; border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; }
.levels--grid .level:hover .round-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: rotate(-35deg); }
.levels--grid .level__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
@media (max-width: 900px) { .levels--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } .levels--grid .level, .levels--grid .level:nth-child(n), .levels--grid .level:hover { aspect-ratio: 4 / 3; } }

/* The last card matches the others: white text. */
.levels--grid .level:nth-child(4) .level__title, .levels--grid .level:nth-child(4) .level__title a { color: #fff; }
.levels--grid .level:nth-child(4) .level__tag { background: none; color: rgba(255, 255, 255, .85); }
.levels--grid .level:nth-child(4) .level__no { color: #fff; }
.levels--grid .level:nth-child(4) .round-btn { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.levels--grid .level:nth-child(4):hover .round-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.levels--grid .level:nth-child(n) .round-btn { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.levels--grid .level:nth-child(n):hover .round-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }

/* Academic Programmes, as in the reference image: photo on top, a navy panel with a curved top edge, gold label, serif title with a gold line and a round gold arrow. Four cards, no slider. */
.levels--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); height: auto; padding: 0; }
.levels--grid::before { display: none; }
.levels--grid .level, .levels--grid .level:nth-child(n), .levels--grid .level:hover {
    position: relative; display: flex; flex-direction: column; flex: none; flex-grow: 0; height: auto; min-height: 0; aspect-ratio: auto; padding: 0; overflow: hidden; isolation: isolate;
    border: 1px solid transparent; border-radius: 15px; background: #0e2a55; text-align: left; box-shadow: 0 26px 46px -30px rgba(7, 31, 66, .7);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .3s;
}
.levels--grid .level:hover { transform: translateY(-8px); translate: none; border-color: var(--gold); box-shadow: 0 34px 56px -26px rgba(7, 31, 66, .8); }
.levels--grid .level::before, .levels--grid .level::after { display: none !important; }
.levels--grid .level__no { display: none; }

.levels--grid .level__media { position: relative; inset: auto; z-index: 0; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden; box-shadow: none; transform: none; }
.levels--grid .level:hover .level__media { transform: none; box-shadow: none; }
.levels--grid .level__media img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover .level__media img { transform: scale(1.06); filter: none; }
/* the curved edge between the photo and the navy panel */
.levels--grid .level__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14%; min-height: 28px; background: #0e2a55; border-top-left-radius: 100% 100%; pointer-events: none; }
/* thin gold line in the photo's left corner */
.levels--grid .level__media::before { content: ""; position: absolute; z-index: 1; left: 18px; top: 22%; width: 2px; height: 28%; background: var(--gold); border-radius: 2px; pointer-events: none; }

.levels--grid .level__body { position: relative; z-index: 1; width: auto; flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: clamp(8px, 1vw, 14px) clamp(18px, 1.8vw, 26px) clamp(20px, 2vw, 28px); border: 0; background: #0e2a55; }
.levels--grid .level__body::before { display: none; }
.levels--grid .level__body > div { order: 0; display: flex; flex-direction: column; }
.levels--grid .level__tag { order: 1; margin: 0 0 8px; padding: 0; background: none; color: var(--gold); font: 700 .74rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.levels--grid .level__title { order: 2; margin: 0; }
.levels--grid .level__title, .levels--grid .level__title a { color: #fff; font: 500 clamp(1.25rem, 1.7vw, 1.7rem)/1.2 var(--serif); }
.levels--grid .level__title::after { content: ""; display: block; width: 28px; height: 2px; margin: 12px 0 0; background: var(--gold); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.levels--grid .level:hover .level__title::after { width: 60px; }
.levels--grid .level .round-btn, .levels--grid .level:nth-child(n) .round-btn { order: 3; flex: none; opacity: 1; transform: none; width: 52px; height: 52px; border: 2px solid var(--gold); background: transparent; color: var(--gold); }
.levels--grid .level:hover .round-btn, .levels--grid .level:nth-child(n):hover .round-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: rotate(-35deg); }
.levels--grid .level__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }

@media (max-width: 1100px) { .levels--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } }

/* Academic Programmes cards, premium finish: gradient panel, glass number chip, light sweep on hover, gold glow on the arrow, soft glow behind the row. */
.levels--grid { position: relative; isolation: isolate; }
.levels--grid .level, .levels--grid .level:nth-child(n), .levels--grid .level:hover { border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .85), 0 2px 0 rgba(255, 255, 255, .05) inset; }
.levels--grid .level:hover { border-color: rgba(212, 175, 55, .85); box-shadow: 0 44px 70px -30px rgba(7, 31, 66, .9), 0 0 0 4px rgba(212, 175, 55, .12); }
.levels--grid .level__media img { filter: saturate(1.05) contrast(1.03); }
.levels--grid .level__media { box-shadow: inset 0 -80px 60px -50px rgba(14, 42, 85, .75); }
.levels--grid .level__body { background-image: radial-gradient(ellipse 70% 90% at 100% 110%, rgba(212, 175, 55, .16), transparent 70%); }

/* glass number chip on the photo */
.levels--grid .level__no { display: block; position: absolute; z-index: 2; top: 16px; right: 16px; left: auto; bottom: auto; transform: none; width: auto; height: auto; padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-shadow: none; box-shadow: none; }

/* light sweep across the card on hover */
.levels--grid .level::after { display: block !important; content: ""; position: absolute; z-index: 3; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); transform: translateX(-120%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.levels--grid .level:hover::after { transform: translateX(120%); }

.levels--grid .level__tag { letter-spacing: .22em; }
.levels--grid .level__title, .levels--grid .level__title a { letter-spacing: -.005em; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.levels--grid .level .round-btn, .levels--grid .level:nth-child(n) .round-btn { transition: background-color .35s, color .35s, transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
.levels--grid .level:hover .round-btn, .levels--grid .level:nth-child(n):hover .round-btn { box-shadow: 0 0 0 7px rgba(212, 175, 55, .2), 0 10px 24px -8px rgba(212, 175, 55, .6); }
@media (prefers-reduced-motion: reduce) { .levels--grid .level::after { display: none !important; } }

/* Academic Achievements: photos open in the lightbox */
.ach__item { cursor: zoom-in; }

/* Admission call to action: a floating card with the campus photo, half over the footer */
.admit { overflow: visible; padding: clamp(56px, 6vw, 88px) 0 0; text-align: left; background: linear-gradient(180deg, transparent 0 50%, var(--navy-900) 50% 100%); color: var(--white); position: relative; z-index: 2; }
.admit::before, .admit::after { display: none; }
.admit__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 0 clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 72px) clamp(28px, 5vw, 76px); border-radius: 15px; overflow: hidden; background: linear-gradient(100deg, rgba(7, 31, 66, .96) 0%, rgba(14, 42, 85, .92) 55%, rgba(14, 42, 85, .55) 100%), url("../images/page-banner-campus.webp") center / cover; box-shadow: 0 40px 70px -34px rgba(7, 31, 66, .75), 0 0 0 1px rgba(212, 175, 55, .22); }
.admit__inner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.admit__title.heading { grid-column: 1; max-width: 14em; color: var(--white); }
.admit__title .heading__lead { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: .78rem; font-style: normal; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.admit__title .heading__lead::before { content: ""; display: block; width: 44px; height: 2px; background: var(--gold); }
.admit__text { grid-column: 1; max-width: 34em; color: rgba(255, 255, 255, .86); }
.admit__actions { grid-column: 2; grid-row: 1 / span 2; justify-self: end; flex-direction: column; align-items: stretch; margin: 0; width: min(100%, 320px); }
.admit__actions .btn { justify-content: space-between; width: 100%; min-height: 58px; }
.admit__actions .btn--line { justify-content: center; border-color: rgba(255, 255, 255, .45); }
.admit + .site-footer { border-top: 0; padding-top: clamp(48px, 5vw, 72px); margin-top: calc(-1 * clamp(40px, 4vw, 64px)); }
@media (max-width: 860px) {
    .admit__inner { grid-template-columns: minmax(0, 1fr); }
    .admit__actions { grid-column: 1; grid-row: auto; justify-self: stretch; width: 100%; margin-top: 26px; flex-direction: row; flex-wrap: wrap; }
    .admit__actions .btn { width: auto; flex: 1 1 220px; }
}
.admit__title.heading, .admit__text { text-align: left; margin-left: 0; margin-right: 0; }

/* Admission call to action: its own band, separate from the footer */
.admit { background: linear-gradient(180deg, #e6eaf2, #e9eef6); padding: clamp(48px, 5vw, 80px) 0; }
.admit + .site-footer { margin-top: 0; padding-top: 0; }

/* Admission call to action: text styled like the other sections */
.admit__title.heading { max-width: 16em; font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; }
.admit__title .heading__lead { display: block; margin: 0 0 .5em; font-family: var(--serif); font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gold); }
.admit__title .heading__lead::before { display: none; }
.admit__text { font-size: var(--p-size); line-height: 1.85; color: rgba(255, 255, 255, .88); }

/* Staff page: tabs */
.staff-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(22px, 3vw, 34px); padding: 6px; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .12); box-shadow: 0 14px 30px -24px rgba(7, 31, 66, .45); }
.staff-tab { flex: 1 1 180px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 0; border-radius: 15px; background: transparent; font: 700 1rem/1.2 var(--sans); color: var(--navy-900); cursor: pointer; transition: background .3s, color .3s; }
.staff-tab em { min-width: 28px; padding: 3px 8px; border-radius: 99px; background: rgba(11, 45, 91, .08); font-size: .78rem; font-style: normal; font-weight: 800; color: var(--navy-800); transition: background .3s, color .3s; }
.staff-tab:hover { background: rgba(11, 45, 91, .06); }
.staff-tab.is-active { background: var(--navy-900); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.staff-tab.is-active em { background: var(--gold); color: var(--navy-950); }
.staff-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.staff-panels .people[hidden] { display: none; }
.staff-panels .people:not([hidden]) { animation: staffIn .5s var(--ease) both; }
@keyframes staffIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .staff-tab { flex-basis: 100%; } }

/* Why SFS ICSE Koppal? page: statement, about row and quote band */
.why .wy-lead { position: relative; max-width: 46em; margin: clamp(34px, 4.4vw, 60px) auto 0; padding-top: 26px; text-align: center; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.6; color: var(--navy-800); }
.why .wy-lead::before { content: ""; position: absolute; left: 50%; top: 0; width: 56px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: var(--gold); }
.wy-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; gap: clamp(28px, 4.4vw, 72px); margin-top: clamp(40px, 5vw, 76px); }
.wy-about__photo { position: relative; margin: 0; min-height: 360px; border-radius: 15px; box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .75); }
.wy-about__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; border-radius: 0 0 15px 15px; background: linear-gradient(0deg, rgba(7, 31, 66, .55), transparent); pointer-events: none; }
.wy-about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.wy-about__text { position: relative; padding: clamp(26px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .1); border-top: 4px solid var(--gold); box-shadow: 0 26px 50px -34px rgba(7, 31, 66, .5); }
.wy-about__text h2 { margin: 0 0 clamp(18px, 2.2vw, 26px); font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; color: var(--navy-900); }
.wy-about__text .heading__lead { display: block; margin: 0 0 .5em; font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gold-deep); }
.wy-about__text .heading__lead::before { display: none; }
.wy-about__text p { margin: 0 0 1.1em; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.wy-about__text p:last-child { margin-bottom: 0; }
.prose .wy-quote { position: relative; margin: clamp(40px, 5vw, 76px) 0 0; padding: clamp(40px, 5vw, 72px) clamp(24px, 6vw, 96px); border: 0; border-radius: 15px; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.4; color: #fff; background: radial-gradient(circle at 15% 0%, rgba(212, 175, 55, .18), transparent 40%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: 0 34px 60px -36px rgba(7, 31, 66, .8); }
.prose .wy-quote::before { content: "\201C"; display: block; height: .5em; margin: 0 auto .1em; font-size: 4.5rem; line-height: 1; font-style: normal; color: var(--gold); }
@media (max-width: 860px) { .wy-about { grid-template-columns: minmax(0, 1fr); } .wy-about__photo { min-height: 280px; } }

/* About section: 2 x 2 grid, photo and text side by side */
.wy-about { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(300px, auto); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.wy-about__photo { min-height: 300px; }
.wy-about__text { display: flex; flex-direction: column; justify-content: center; }
.wy-about__text--b { border-top-color: rgba(11, 45, 91, .1); border-left: 4px solid var(--gold); }
.wy-about__text--b p { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.7; color: var(--navy-800); }
@media (max-width: 860px) { .wy-about { grid-template-columns: minmax(0, 1fr); } .wy-about__photo--b { order: 4; } }

/* About section: one light panel around the four cells */
.wy-about { padding: clamp(16px, 2.4vw, 32px); border-radius: 15px; background: linear-gradient(135deg, #faf9f4, #e6eaf2); border: 1px solid rgba(11, 45, 91, .08); }
.wy-about__text { box-shadow: 0 18px 36px -28px rgba(7, 31, 66, .45); }

/* About section: one blended composition, cards overlap the photos */
.wy-about { position: relative; isolation: isolate; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: 0; padding: clamp(28px, 4vw, 60px) 0; background: none; border: 0; border-radius: 0; }
.wy-about::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * clamp(12px, 3vw, 44px)); border-radius: 15px; background: radial-gradient(circle at 8% 12%, rgba(212, 175, 55, .16), transparent 34%), radial-gradient(circle at 96% 92%, rgba(24, 86, 173, .12), transparent 38%), linear-gradient(160deg, #faf9f4, #e6eaf2); }
.wy-about::after { content: ""; position: absolute; z-index: -1; right: 4%; top: 14%; width: 120px; height: 120px; background: radial-gradient(circle, rgba(16, 58, 116, .22) 2px, transparent 2.5px) 0 0 / 16px 16px; }
.wy-about__photo--a { grid-column: 1 / 7; grid-row: 1 / 3; min-height: 480px; margin-right: 0; }
.wy-about__text--a { grid-column: 6 / 13; grid-row: 1; align-self: start; margin-top: clamp(0px, 2vw, 28px); position: relative; z-index: 2; }
.wy-about__text--b { grid-column: 1 / 8; grid-row: 3; position: relative; z-index: 2; margin-top: calc(-1 * clamp(40px, 6vw, 90px)); margin-right: 0; }
.wy-about__photo--b { grid-column: 7 / 13; grid-row: 2 / 4; min-height: 420px; margin-top: clamp(24px, 3vw, 44px); margin-left: calc(-1 * clamp(0px, 2vw, 28px)); }
.wy-about__photo::before { content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 15px; opacity: .7; }
.wy-about__photo--b::before { inset: 18px 18px -18px -18px; }
@media (max-width: 860px) {
    .wy-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 0; }
    .wy-about > * { grid-column: 1 !important; grid-row: auto !important; margin: 0 !important; }
    .wy-about__photo { min-height: 260px; }
    .wy-about__photo--b { order: 4; }
    .wy-about__photo::before { display: none; }
}
.wy-about { padding: clamp(28px, 4vw, 60px) clamp(16px, 3vw, 44px); border-radius: 15px; background: radial-gradient(circle at 8% 12%, rgba(212, 175, 55, .16), transparent 34%), radial-gradient(circle at 96% 92%, rgba(24, 86, 173, .12), transparent 38%), linear-gradient(160deg, #faf9f4, #e6eaf2); }
.wy-about::before { display: none; }
.wy-about::after { z-index: 0; pointer-events: none; }

/* About section: full width band with more room */
.why { overflow-x: clip; }
.wy-about { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; padding: clamp(56px, 7vw, 110px) max(24px, calc((100vw - 1240px) / 2)); row-gap: clamp(24px, 3vw, 44px); }
.wy-about__photo--a { grid-column: 1 / 7; grid-row: 1 / 3; min-height: 540px; }
.wy-about__text--a { grid-column: 7 / 13; grid-row: 1; align-self: center; margin: 0 0 0 calc(-1 * clamp(0px, 2vw, 28px)); padding: clamp(28px, 3.6vw, 52px); }
.wy-about__text--b { grid-column: 1 / 7; grid-row: 3; margin: 0; padding: clamp(28px, 3.6vw, 52px); }
.wy-about__photo--b { grid-column: 7 / 13; grid-row: 2 / 4; min-height: 440px; margin: 0 0 0 calc(-1 * clamp(0px, 2vw, 28px)); }
.wy-about { column-gap: clamp(20px, 2.6vw, 40px); }
@media (max-width: 860px) { .wy-about { padding: 40px 20px; } .wy-about__text--a, .wy-about__photo--b { margin: 0 !important; } }

/* About section: text sits directly on the band, no boxes */
.wy-about__text { background: none; border: 0; box-shadow: none; border-radius: 0; padding: clamp(8px, 1.6vw, 24px) clamp(0px, 1.6vw, 24px); margin: 0 !important; }
.wy-about__text--b { border-left: 0; }

/* About section: bento panel, photo | text over text | photo (as in the reference image) */
.why .wy-about { width: auto; max-width: none; margin: clamp(40px, 5vw, 76px) 0 0; padding: clamp(14px, 1.6vw, 22px); border-radius: 15px; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); box-shadow: 0 40px 70px -40px rgba(7, 31, 66, .8); }
.why .wy-about::after { display: none; }
.why .wy-about > * { grid-column: auto; grid-row: auto; margin: 0 !important; }
.why .wy-about__photo { min-height: 0; border-radius: 15px; box-shadow: none; overflow: hidden; }
.why .wy-about__photo::before, .why .wy-about__photo::after { display: none; }
.why .wy-about__photo--a { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 4.2; }
.why .wy-about__text--a { grid-column: 2; grid-row: 1; justify-content: center; padding: clamp(20px, 3.2vw, 52px); }
.why .wy-about__text--b { grid-column: 1; grid-row: 2; justify-content: flex-end; padding: clamp(20px, 3.2vw, 52px); }
.why .wy-about__photo--b { grid-column: 2; grid-row: 2; aspect-ratio: 16 / 10; }
.why .wy-about__text .heading__lead { display: inline-block; margin: 0 0 1.4rem; padding: 7px 16px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-family: var(--sans); font-size: .8rem; font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.why .wy-about__text h2 { color: #fff; }
.why .wy-about__text p, .why .wy-about__text--b p { color: rgba(255, 255, 255, .86); font-family: var(--sans); font-size: var(--p-size); line-height: 1.8; }
@media (max-width: 860px) {
    .why .wy-about { grid-template-columns: minmax(0, 1fr); }
    .why .wy-about > * { grid-column: 1 !important; grid-row: auto !important; }
    .why .wy-about__photo--b { order: 4; }
    .why .wy-about__photo--a, .why .wy-about__photo--b { aspect-ratio: 4 / 3; }
}
.why .wy-about > * { min-width: 0; max-width: 100%; }
.why .wy-about__photo { width: 100%; align-self: stretch; }
.why .wy-about__photo--a, .why .wy-about__photo--b { aspect-ratio: auto; min-height: clamp(260px, 30vw, 440px); }
.why .wy-about__text .heading__lead { display: block; width: fit-content; }

/* About section: its own full-width band, separate from the intro above */
.wy-band { position: relative; width: 100vw; margin: clamp(40px, 5vw, 76px) calc(50% - 50vw) 0; padding: clamp(48px, 6vw, 96px) max(24px, calc((100vw - 1240px) / 2)); overflow: hidden; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .16), transparent 36%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .3), transparent 42%), var(--navy-950); }
.wy-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .06) 1.5px, transparent 2px) 0 0 / 28px 28px; pointer-events: none; }
.why .wy-band .wy-about { position: relative; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.wy-quote-wrap { margin-top: clamp(40px, 5vw, 76px); }
.wy-band.why .wy-about { position: relative; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }

/* About section: light background, text styled like the homepage sections */
.wy-band { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.wy-band::before { display: none; }
.wy-band .wy-about__text .heading__lead { display: block; width: auto; margin: 0 0 .5em; padding: 0; border-radius: 0; background: none; font-family: var(--serif); font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gold-deep); }
.wy-band .wy-about__text h2 { color: var(--navy-900); }
.wy-band .wy-about__text p, .wy-band .wy-about__text--b p { color: var(--body); }
.wy-band .wy-about__photo { box-shadow: 0 30px 50px -34px rgba(7, 31, 66, .55); }

/* About section: premium finish */
.wy-band.why .wy-about { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; row-gap: clamp(28px, 3.4vw, 52px); align-items: center; }
.wy-band .wy-about > * { grid-column: auto; grid-row: auto; }
.wy-band .wy-about__photo { position: relative; overflow: visible; border-radius: 15px; min-height: clamp(300px, 34vw, 500px); box-shadow: none; }
.wy-band .wy-about__photo img { border-radius: 15px; box-shadow: 0 40px 70px -38px rgba(7, 31, 66, .7); }
.wy-band .wy-about__photo::before { display: block; content: ""; position: absolute; z-index: -1; width: 62%; height: 62%; border: 2px solid var(--gold); border-radius: 15px; opacity: .85; }
.wy-band .wy-about__photo::after { display: block; content: ""; position: absolute; z-index: 2; width: 70px; height: 70px; border-radius: 15px; background: var(--gold); opacity: .95; mix-blend-mode: normal; }
.wy-band .wy-about__photo--a { grid-column: 1 / 7; grid-row: 1; }
.wy-band .wy-about__photo--a::before { left: -18px; top: -18px; }
.wy-band .wy-about__photo--a::after { display: none; }
.wy-band .wy-about__text--a { grid-column: 7 / 13; grid-row: 1; padding: clamp(8px, 2vw, 32px) 0 clamp(8px, 2vw, 32px) clamp(24px, 4vw, 64px); position: relative; }
.wy-band .wy-about__text--a::before { content: ""; position: absolute; left: clamp(4px, 1.2vw, 16px); top: 12%; bottom: 12%; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gold), transparent); }
.wy-band .wy-about__text h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
.wy-band .wy-about__text--a p::first-letter { float: left; margin: .06em .12em 0 0; font-family: var(--serif); font-size: 3.6em; line-height: .82; font-weight: 600; color: var(--gold-deep); }
.wy-band .wy-about__text--b { grid-column: 1 / 7; grid-row: 2; padding: clamp(8px, 2vw, 32px) clamp(24px, 4vw, 64px) clamp(8px, 2vw, 32px) 0; position: relative; }
.wy-band .wy-about__text--b::before { content: ""; display: block; width: 72px; height: 3px; margin-bottom: 26px; border-radius: 3px; background: var(--gold); }
.wy-band .wy-about__text--b p { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.9; }
.wy-band .wy-about__photo--b { grid-column: 7 / 13; grid-row: 2; }
.wy-band .wy-about__photo--b::before { right: -18px; bottom: -18px; }
@media (max-width: 860px) {
    .wy-band .wy-about > * { grid-column: 1 !important; grid-row: auto !important; }
    .wy-band .wy-about__photo--b { order: 4; }
    .wy-band .wy-about__photo { margin: 0 18px 18px 0 !important; min-height: 260px; }
    .wy-band .wy-about__photo--a::before, .wy-band .wy-about__photo--b::before { width: 70%; height: 70%; }
    .wy-band .wy-about__photo--a::before { left: -12px; top: -12px; }
    .wy-band .wy-about__photo--b::before { right: -12px; bottom: -12px; }
    .wy-band .wy-about__text--a, .wy-band .wy-about__text--b { padding: 8px 0; }
    .wy-band .wy-about__text--a::before { display: none; }
}

/* About section: plain headline side */
.wy-band .wy-about__text--a::before { display: none; }
.wy-band .wy-about__text h2 { font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; }
.wy-band .wy-about__text--a p::first-letter { float: none; margin: 0; font: inherit; line-height: inherit; color: inherit; }

/* About section: plain second paragraph */
.wy-band .wy-about__text--b::before { display: none; }
.wy-band .wy-about__text--b p { font-size: var(--p-size); line-height: 1.85; }

/* Admission call to action: full width band attached to the footer */
.admit { margin: 0; padding: clamp(56px, 6vw, 96px) 0; background: linear-gradient(100deg, rgba(7, 31, 66, .96) 0%, rgba(14, 42, 85, .92) 55%, rgba(14, 42, 85, .6) 100%), url("../images/page-banner-campus.webp") center / cover; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.admit__inner { padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.admit__inner::before { display: none; }
.admit + .site-footer { margin-top: 0; padding-top: 0; border-top: 0; }
.admit__inner { padding-inline: var(--gutter, clamp(20px, 4vw, 40px)); }

/* Admission call to action: centered content */
.admit__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.admit__title.heading, .admit__text { grid-column: auto; text-align: center; margin-left: auto; margin-right: auto; }
.admit__title .heading__lead { display: block; }
.admit__actions { grid-column: auto; grid-row: auto; justify-self: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; margin-top: clamp(26px, 3vw, 40px); }
.admit__actions .btn { width: auto; min-width: 230px; }
.admit { background: linear-gradient(180deg, rgba(7, 31, 66, .94), rgba(14, 42, 85, .88)), url("../images/page-banner-campus.webp") center / cover; }

/* Homepage news: slider on the left, six news in two columns on the right (no scrolling) */
.nv__slider { position: relative; min-width: 0; overflow: hidden; border-radius: var(--radius); }
.nv__slides { display: flex; height: 100%; transition: transform .7s var(--ease); }
.nv__slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.nv__slide:hover { transform: none; }
.nv__dots { position: absolute; z-index: 3; right: 20px; top: 20px; display: flex; gap: 8px; }
.nv__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .35s var(--ease), background .35s; }
.nv__dot.is-active { width: 28px; background: var(--gold); }
.nv__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.nv__cols .nv__list { display: grid; grid-auto-rows: auto; gap: 14px; margin: 0; padding: 0; list-style: none; }
.nv__cols .nv__item { grid-template-columns: 1fr; min-height: 0; }
.nv__cols .nv__item-media { aspect-ratio: 16 / 10; }
.nv__cols .nv__item-body { padding: 12px 14px 14px; }
.nv__cols .nv__item-title { font-size: 1rem; }
@media (max-width: 1100px) { .nv__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .nv__cols { grid-template-columns: minmax(0, 1fr); } }
main .nv__cols .nv__item { grid-template-columns: 36% minmax(0, 1fr); min-height: 140px; height: auto; }
main .nv__cols .nv__item-media { aspect-ratio: auto; min-height: 100%; }
main .nv__cols .nv__item-media picture, main .nv__cols .nv__item-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
main .nv__cols .nv__item-body { padding: 10px 12px; }
main .nv__cols .nv__item-title { font-size: .98rem; }
main .nv__cols .nv__list { padding: 0; }
@media (max-width: 560px) { main .nv__cols .nv__item { min-height: 118px; } }

/* News slider dots: dark pill so they show on any photo */
.nv__dots { padding: 8px 12px; border-radius: 99px; background: rgba(7, 31, 66, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.nv__dot { width: 10px; height: 10px; background: #fff; opacity: .7; }
.nv__dot.is-active { width: 28px; background: var(--gold); opacity: 1; }

/* Campus Life page */
.cl-intro { text-align: center; }
.cl-intro .heading, .cl-fac .heading { text-align: center; margin-inline: auto; }
.cl-intro__text, .cl-fac__lead { max-width: 46em; margin: clamp(18px, 2.2vw, 28px) auto 0; font-size: var(--p-size); line-height: 1.85; color: var(--ink); text-align: center; }
.fd { list-style: none; margin: clamp(36px, 4.4vw, 64px) 0 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 56px); }
.fd__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.fd__row:nth-child(even) .fd__media { order: 2; }
.fd__media { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 34px 60px -36px rgba(7, 31, 66, .7); }
.fd__media picture, .fd__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fd__media img { transition: transform 1.2s var(--ease); }
.fd__row:hover .fd__media img { transform: scale(1.05); }
.fd__no { position: absolute; top: 16px; left: 16px; padding: 6px 14px; border-radius: 99px; background: var(--gold); font: 800 .8rem/1 var(--sans); letter-spacing: .12em; color: var(--navy-950); }
.fd__body { padding: clamp(8px, 1.6vw, 24px) 0; }
.fd__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: var(--navy-900); color: var(--gold); font-size: 1.3rem; }
.fd__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; color: var(--navy-900); }
.fd__text { margin: 0; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.fd__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.fd__tags li { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .12); font: 700 .85rem/1 var(--sans); color: var(--gold-deep); }
@media (max-width: 860px) { .fd__row { grid-template-columns: minmax(0, 1fr); } .fd__row:nth-child(even) .fd__media { order: 0; } }

/* Campus Life: facilities showcase */
.fx { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; margin-top: clamp(32px, 4vw, 56px); border-radius: 15px; overflow: hidden; background: radial-gradient(circle at 0 0, rgba(212, 175, 55, .14), transparent 40%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: 0 40px 70px -40px rgba(7, 31, 66, .85); }
.fx__nav { display: flex; flex-direction: column; padding: clamp(14px, 2vw, 28px); gap: 6px; border-right: 1px solid rgba(255, 255, 255, .1); }
.fx__tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 15px; background: transparent; text-align: left; font: 600 1.05rem/1.2 var(--serif); color: rgba(255, 255, 255, .78); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.fx__tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.fx__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fx__no { flex: none; font: 800 .78rem/1 var(--sans); letter-spacing: .12em; color: var(--gold); }
.fx__name { flex: 1; }
.fx__go { flex: none; opacity: 0; transform: translateX(-8px); color: var(--navy-950); transition: opacity .3s, transform .3s var(--ease); }
.fx__tab.is-active { background: var(--gold); color: var(--navy-950); transform: translateX(6px); }
.fx__tab.is-active .fx__no { color: var(--navy-950); }
.fx__tab.is-active .fx__go { opacity: 1; transform: none; }
.fx__stage { position: relative; min-width: 0; padding: clamp(14px, 2vw, 28px); }
.fx__panel { position: relative; }
.fx__panel[hidden] { display: none; }
.fx__panel:not([hidden]) { animation: fxIn .6s var(--ease) both; }
@keyframes fxIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fx__photo { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px; }
.fx__photo picture, .fx__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx__card { position: relative; width: min(92%, 560px); margin: calc(-1 * clamp(48px, 6vw, 88px)) 0 0 clamp(14px, 3vw, 36px); padding: clamp(20px, 2.6vw, 34px); border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .6); }
.fx__icon { position: absolute; right: 20px; top: -26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--navy-900); color: var(--gold); font-size: 1.3rem; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.fx__title { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; color: var(--navy-900); }
.fx__text { margin: 0; font-size: var(--p-size); line-height: 1.8; color: var(--body); }
.fx__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.fx__tags li { padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .12); font: 700 .8rem/1 var(--sans); color: var(--gold-deep); }
@media (max-width: 900px) {
    .fx { grid-template-columns: minmax(0, 1fr); }
    .fx__nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); scrollbar-width: none; }
    .fx__nav::-webkit-scrollbar { display: none; }
    .fx__tab { width: auto; flex: none; white-space: nowrap; padding: 12px 16px; }
    .fx__tab.is-active { transform: none; }
    .fx__go { display: none; }
    .fx__card { width: auto; margin: -36px 12px 0; }
}

/* Facilities: timeline list on the left */
.fx__nav { position: relative; justify-content: center; gap: 0; padding: clamp(24px, 3vw, 44px) clamp(18px, 2.4vw, 36px); }
.fx__nav::before { content: ""; position: absolute; left: calc(clamp(18px, 2.4vw, 36px) + 17px); top: 12%; bottom: 12%; width: 2px; background: rgba(255, 255, 255, .45); }
.fx__tab { position: relative; gap: 22px; padding: clamp(16px, 2.2vw, 26px) 0; border-radius: 0; background: none; font: 600 clamp(.85rem, 1.1vw, 1rem)/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #fff; transform: none; }
.fx__tab:hover { background: none; color: var(--gold); }
.fx__tab::before { content: ""; flex: none; width: 36px; height: 36px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: radial-gradient(circle, #fff 0 5px, var(--navy-900) 5.5px); transition: background .3s, border-color .3s, border-radius .3s; z-index: 1; }
.fx__no, .fx__go { display: none; }
.fx__tab.is-active { background: none; color: var(--gold); transform: none; }
.fx__tab.is-active::before { width: 38px; height: 44px; margin: -4px -1px; border: 0; border-radius: 0; background: var(--gold); clip-path: path("M19 0 L38 5 L38 24 C38 34 29 41 19 44 C9 41 0 34 0 24 L0 5 Z"); -webkit-mask: none; }
.fx__tab.is-active::after { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border-radius: 50%; background: var(--navy-900); }
.fx__tab:focus-visible { outline-offset: 4px; }
@media (max-width: 900px) {
    .fx__nav::before { display: none; }
    .fx__nav { padding: 12px; }
    .fx__tab { width: auto; flex: none; white-space: nowrap; padding: 12px 16px; letter-spacing: .14em; gap: 10px; }
    .fx__tab::before { width: 14px; height: 14px; background: var(--navy-900); border-width: 2px; }
    .fx__tab.is-active::before { width: 14px; height: 14px; margin: 0; border: 2px solid var(--gold); border-radius: 50%; background: var(--gold); clip-path: none; }
    .fx__tab.is-active::after { display: none; }
}

/* Contact map card: no pale box behind the title, one gold line only */
.inner .prose .map-block__title, .inner .prose h3.map-block__title { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.map-block__info p:empty { display: none; }

/* FAQ page and calendar tables */
.faq { margin: 0 0 14px; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .1); border-left: 4px solid var(--gold); box-shadow: 0 14px 30px -26px rgba(7, 31, 66, .5); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; list-style: none; cursor: pointer; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.35; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--navy-900); color: var(--gold); text-align: center; font: 700 1.2rem/28px var(--sans); transition: transform .3s var(--ease); }
.faq[open] summary::after { content: "\2212"; }
.faq__body { padding: 0 22px 20px; }
.faq__body p { margin: 0; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.page-school-calendar table td:last-child { white-space: nowrap; }

/* Inner pages: overview (first heading + introduction) as a centered band */
.prose > h2:first-child:has(+ .intro-lead) { position: relative; width: 100vw; margin: calc(-1 * clamp(40px, 5vw, 72px)) calc(50% - 50vw) 0; padding: clamp(40px, 5vw, 72px) max(24px, calc((100vw - 880px) / 2)) 0; text-align: center; background: radial-gradient(ellipse 35% 80% at 95% 0%, rgba(212, 175, 55, .12), transparent 70%), radial-gradient(ellipse 50% 70% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), #faf9f4; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; color: var(--navy-900); }
.prose > h2:first-child:has(+ .intro-lead)::after { content: "" !important; display: block !important; width: 56px; height: 4px; margin: 20px auto 0; border-radius: 4px; background: var(--gold); }
.prose > h2:first-child + .intro-lead { position: relative; width: 100vw; max-width: none; margin: 0 calc(50% - 50vw) clamp(32px, 4vw, 56px); padding: 22px max(24px, calc((100vw - 760px) / 2)) clamp(40px, 5vw, 72px); border: 0; border-radius: 0; text-align: center; background: radial-gradient(ellipse 35% 80% at 95% 0%, rgba(212, 175, 55, .12), transparent 70%), radial-gradient(ellipse 50% 70% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), #faf9f4; box-shadow: none; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.85; color: var(--body); }
.prose > h2:first-child + .intro-lead::before { display: none; }.prose > h2:first-child:has(+ .intro-lead) { margin-top: calc(-1 * clamp(48px, 6vw, 88px)); padding-top: clamp(48px, 6vw, 88px); border-radius: 32px 32px 0 0; }
.inner:has(.prose > h2:first-child + .intro-lead) { background: #faf9f4; overflow-x: clip; }

/* School calendar: months as cards in two columns */
.cal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(32px, 4vw, 56px); }
.cal-card { min-width: 0; padding: clamp(18px, 2vw, 28px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 24px 44px -34px rgba(7, 31, 66, .55); }
.cal-card h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.cal-card h2::after { display: none !important; }
.cal-card table { margin: 0; }
.cal-card h3 { margin: 18px 0 10px; }
.cal-card:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .cal-grid { grid-template-columns: minmax(0, 1fr); } }


/* Diary pages: every band has its own premium layout (photo bands and plain bands) */
.inner:has(.ip-list) { overflow-x: clip; padding-bottom: 0; }
.ip-list { width: 100vw; margin: calc(-1 * clamp(48px, 6vw, 88px)) calc(50% - 50vw) 0; }
.ip { position: relative; overflow: hidden; padding: clamp(52px, 6.4vw, 100px) 0; }
.ip__inner { position: relative; display: grid; gap: clamp(20px, 3vw, 44px) clamp(28px, 4.4vw, 72px); width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ip__no { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 99px; background: var(--gold); font: 800 .8rem/1 var(--sans); letter-spacing: .12em; color: var(--navy-950); }
.ip__side h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; color: var(--navy-900); }
.ip__side h2::after { content: "" !important; display: block !important; width: 56px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--gold); }
.ip__media { margin: 0; position: relative; }
.ip__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.ip__main > :first-child { margin-top: 0; }
.ip__main > :last-child { margin-bottom: 0; }
.ip__main p { font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.ip__main ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ip__main ul li { position: relative; margin: 0; padding: 16px 18px 16px 48px; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-left: 3px solid var(--gold); box-shadow: 0 14px 28px -24px rgba(7, 31, 66, .5); font-weight: 600; color: var(--navy-900); }
.ip__main ul li::before { content: "\f00c"; position: absolute; left: 18px; top: 50%; margin-top: -9px; font: 14px/18px FontAwesome; color: var(--gold-deep); }

/* plain 1: pale, title left (stays in view), content right */
.ip--p1 { background: #faf9f4; }
.ip--p1 .ip__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.ip--p1 .ip__side { position: sticky; top: 120px; }

/* plain 2: dark navy, title left, glass cards */
.ip--p2 { background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .18), transparent 38%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .3), transparent 42%), var(--navy-950); }
.ip--p2 .ip__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.ip--p2 .ip__side h2 { color: #fff; }
.ip--p2 .ip__main p { color: rgba(255, 255, 255, .88); }
.ip--p2 .ip__main ul li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); border-left-color: var(--gold); box-shadow: none; color: #fff; }
.ip--p2 .ip__main ul li::before { color: var(--gold); }

/* plain 3: white, centered */
.ip--p3 { background: #fff; }
.ip--p3 .ip__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
.ip--p3 .ip__side h2::after { margin-inline: auto; }
.ip--p3 .ip__main { max-width: 52em; margin-inline: auto; }
.ip--p3 .ip__main ul { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }

/* photo 1: big photo, white cards overlap its edge */
.ip--i1 { background: #faf9f4; }
.ip--i1 .ip__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: start; }
.ip--i1 .ip__media { grid-column: 1 / 8; grid-row: 1 / 3; min-height: clamp(360px, 40vw, 560px); box-shadow: 0 40px 70px -40px rgba(7, 31, 66, .7); border-radius: 15px; }
.ip--i1 .ip__media::before { content: ""; position: absolute; z-index: -1; left: -16px; top: -16px; width: 55%; height: 55%; border: 2px solid var(--gold); border-radius: 15px; }
.ip--i1 .ip__side { grid-column: 7 / 13; grid-row: 1; position: relative; z-index: 2; margin-top: clamp(24px, 4vw, 56px); padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 8px; border-radius: 15px 15px 0 0; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 30px 50px -36px rgba(7, 31, 66, .55); }
.ip--i1 .ip__main { grid-column: 7 / 13; grid-row: 2; position: relative; z-index: 2; margin-bottom: clamp(24px, 4vw, 56px); padding: 8px clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); border-radius: 0 0 15px 15px; background: #fff; box-shadow: 0 30px 50px -36px rgba(7, 31, 66, .55); align-self: start; }

/* photo 2: full-bleed photo, dark overlay, glass card */
.ip--i2 { background: linear-gradient(100deg, rgba(7, 31, 66, .92), rgba(7, 31, 66, .55)), var(--ip-img) center / cover; color: #fff; }
.ip--i2 .ip__inner { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--max)); }
.ip--i2 .ip__media { display: none; }
.ip--i2 .ip__side, .ip--i2 .ip__main { max-width: 640px; }
.ip--i2 .ip__side h2 { color: #fff; }
.ip--i2 .ip__main { padding: clamp(20px, 2.6vw, 34px); border-radius: 15px; background: rgba(7, 31, 66, .55); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ip--i2 .ip__main p { color: rgba(255, 255, 255, .92); }
.ip--i2 .ip__main ul { grid-template-columns: minmax(0, 1fr); }

/* photo 3: text left, photo right with a gold offset frame */
.ip--i3 { background: #fff; }
.ip--i3 .ip__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "side media" "main media"; align-items: center; }
.ip--i3 .ip__side { grid-area: side; align-self: end; }
.ip--i3 .ip__main { grid-area: main; align-self: start; }
.ip--i3 .ip__media { grid-area: media; aspect-ratio: 4 / 4.6; margin: 0 20px 20px 0; }
.ip--i3 .ip__media::before { content: ""; position: absolute; z-index: 0; inset: 20px -20px -20px 20px; border: 2px solid var(--gold); border-radius: 15px; }
.ip--i3 .ip__media img { position: relative; z-index: 1; box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .7); }

/* photo 4: navy band, photo in an arch */
.ip--i4 { background: radial-gradient(circle at 90% 10%, rgba(212, 175, 55, .18), transparent 40%), linear-gradient(145deg, var(--navy-800), var(--navy-950)); }
.ip--i4 .ip__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "side media" "main media"; align-items: center; }
.ip--i4 .ip__side { grid-area: side; align-self: end; }
.ip--i4 .ip__main { grid-area: main; align-self: start; }
.ip--i4 .ip__side h2 { color: #fff; }
.ip--i4 .ip__main p { color: rgba(255, 255, 255, .88); }
.ip--i4 .ip__main ul li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); border-left-color: var(--gold); box-shadow: none; color: #fff; }
.ip--i4 .ip__main ul li::before { color: var(--gold); }
.ip--i4 .ip__media { grid-area: media; aspect-ratio: 3 / 4; max-width: 420px; width: 100%; justify-self: center; padding: 12px; border: 2px solid rgba(212, 175, 55, .7); border-radius: 999px 999px 15px 15px; }
.ip--i4 .ip__media img { border-radius: 999px 999px 15px 15px; }

/* photo 5: wide photo strip, title card overlaps it, content below */
.ip--i5 { background: #faf9f4; }
.ip--i5 .ip__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ip--i5 .ip__media { height: clamp(220px, 28vw, 400px); border-radius: 15px; overflow: hidden; box-shadow: 0 34px 60px -38px rgba(7, 31, 66, .7); }
.ip--i5 .ip__side { position: relative; z-index: 2; width: min(100%, 560px); margin: calc(-1 * clamp(36px, 5vw, 64px)) 0 0 clamp(16px, 4vw, 56px); padding: clamp(20px, 2.6vw, 32px); border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 26px 50px -30px rgba(7, 31, 66, .6); }
.ip--i5 .ip__side h2::after { display: none !important; }
.ip--i5 .ip__main { max-width: 52em; padding-top: clamp(24px, 3vw, 40px); margin-left: clamp(16px, 4vw, 56px); }

/* photo 6: photo on the left, warm tinted panel, gold corner block */
.ip--i6 { background: #faf9f4; }
.ip--i6 .ip__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "media side" "media main"; align-items: center; }
.ip--i6 .ip__side { grid-area: side; align-self: end; }
.ip--i6 .ip__main { grid-area: main; align-self: start; }
.ip--i6 .ip__media { grid-area: media; aspect-ratio: 4 / 4.4; }
.ip--i6 .ip__media::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 28%; border-radius: 15px; background: var(--gold); z-index: 0; }
.ip--i6 .ip__media img { position: relative; z-index: 1; box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .65); }
.ip--i6 .ip__main ul li { background: #fff; }

@media (max-width: 900px) {
    .ip--p1 .ip__inner, .ip--p2 .ip__inner { grid-template-columns: minmax(0, 1fr); }
    .ip--p1 .ip__side { position: static; }
    .ip--p3 .ip__main ul, .ip__main ul { grid-template-columns: minmax(0, 1fr); }
    .ip--i1 .ip__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
    .ip--i1 .ip__media, .ip--i1 .ip__side, .ip--i1 .ip__main { grid-column: 1; grid-row: auto; margin: 0; }
    .ip--i1 .ip__media { min-height: 260px; }
    .ip--i1 .ip__side { border-radius: 0; }
    .ip--i3 .ip__inner, .ip--i4 .ip__inner, .ip--i6 .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "media" "main"; }
    .ip--i3 .ip__media, .ip--i6 .ip__media { aspect-ratio: 16 / 10; margin: 0; }
    .ip--i3 .ip__media::before { display: none; }
    .ip--i5 .ip__side { margin-left: 12px; }
    .ip--i5 .ip__main { margin-left: 0; }
    .ip--i4 .ip__media { aspect-ratio: 4 / 5; }
}
.ip__media img { position: absolute; inset: 0; }

/* Diary pages: new headline style (number with a line, bold serif title) */
.ip__side { display: flex; flex-direction: column; align-items: flex-start; }
.ip__no { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 0; border-radius: 0; background: none; font: italic 600 1.15rem/1 var(--serif); letter-spacing: .04em; color: var(--gold-deep); }
.ip__no::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); }
.ip__side h2 { font-weight: 600; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.04; letter-spacing: -.02em; }
.ip__side h2::after { display: none !important; }
.ip--p2 .ip__no, .ip--i2 .ip__no, .ip--i4 .ip__no { color: var(--gold); }
.ip--p3 .ip__side { align-items: center; }
.ip--i5 .ip__side { align-items: flex-start; }

/* House System: four coloured house cards */
.ip--houses .ip__main ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ip--houses .ip__main ul li { --hc: var(--gold); display: flex; flex-direction: column; gap: 8px; padding: 0 0 20px; overflow: hidden; border: 0; border-radius: 15px; font-weight: 400; box-shadow: 0 26px 44px -30px rgba(7, 31, 66, .6); }
.ip--houses .ip__main ul li::before { content: ""; position: static; display: block; width: 100%; height: 86px; margin: 0 0 8px; border-radius: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .35), transparent 38%), var(--hc); font: 0/0 serif; }
.ip--houses .ip__main ul li:nth-child(1) { --hc: #c0392b; }
.ip--houses .ip__main ul li:nth-child(2) { --hc: #1e8a4c; }
.ip--houses .ip__main ul li:nth-child(3) { --hc: #1f58b8; }
.ip--houses .ip__main ul li:nth-child(4) { --hc: #e0a91c; }
.ip--houses .ip__main ul li strong { padding: 0 18px; font: 600 1.45rem/1.1 var(--serif); color: var(--navy-900); }
.ip--houses .ip__main ul li em { padding: 0 18px; font: 800 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--hc); }
.ip--houses .ip__main ul li span { padding: 6px 18px 0; font-size: .95rem; line-height: 1.7; color: var(--body); }
.ip--houses .ip__main { max-width: none; margin-left: 0; }
@media (max-width: 1100px) { .ip--houses .ip__main ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ip--houses .ip__main ul { grid-template-columns: minmax(0, 1fr); } }
.ip--houses .ip__main, .ip--houses .ip__main ul { width: 100%; max-width: none; }
.ip--houses .ip__main p { max-width: 52em; }

/* House System: photo header with the title over it, house cards rising out of it */
.ip--houses { padding: 0 0 clamp(48px, 6vw, 96px); background: #faf9f4; }
.ip--houses .ip__inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: clamp(64px, 8vw, 120px); }
.ip--houses .ip__inner::before { content: ""; grid-row: 1 / 3; grid-column: 1; align-self: stretch; justify-self: center; width: 100vw; margin-top: calc(-1 * clamp(64px, 8vw, 120px)); background: linear-gradient(180deg, rgba(7, 31, 66, .55), rgba(7, 31, 66, .9)), var(--ip-img) center 30% / cover; z-index: 0; }
.ip--houses .ip__media { display: none; }
.ip--houses .ip__side { position: relative; z-index: 1; grid-row: 1; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ip--houses .ip__side h2 { color: #fff; }
.ip--houses .ip__no { color: var(--gold); }
.ip--houses .ip__main { display: contents; }
.ip--houses .ip__main p { position: relative; z-index: 1; grid-row: 2; max-width: 44em; margin: 16px 0 clamp(110px, 12vw, 160px); font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .92); }
.ip--houses .ip__main ul { position: relative; z-index: 2; grid-row: 3; margin-top: calc(-1 * clamp(70px, 8vw, 110px)); }
.ip--houses .ip__main ul li { border: 1px solid rgba(11, 45, 91, .06); box-shadow: 0 34px 56px -30px rgba(7, 31, 66, .7); background: #fff; }
.ip--houses .ip__side, .ip--houses .ip__main p, .ip--houses .ip__main ul { grid-column: 1; }

/* Value Education and Creative Teaching: the photo is exactly as tall as the text beside it */
.ip--i3 .ip__inner, .ip--i4 .ip__inner { align-items: stretch; }
.ip--i3 .ip__side, .ip--i4 .ip__side { align-self: end; }
.ip--i3 .ip__main, .ip--i4 .ip__main { align-self: start; }
.ip--i3 .ip__media, .ip--i4 .ip__media { aspect-ratio: auto; align-self: stretch; min-height: 260px; }
@media (max-width: 900px) { .ip--i3 .ip__media, .ip--i4 .ip__media { align-self: auto; aspect-ratio: 16 / 10; min-height: 0; } }
.ip--i3 .ip__media { margin: 0 20px 0 0; }
@media (max-width: 900px) { .ip--i3 .ip__media { margin: 0; } }

/* Diary pages: bands start flush under the banner */
.inner:has(.ip-list) { padding-top: 0; overflow: clip; }
.ip-list { margin-top: 0; }

/* Diary pages: simple bullet points instead of boxes */
.ip__main ul:not(.houses-x) { display: block; }
.ip--houses .ip__main ul { display: grid; }
.ip__main ul li { padding: 6px 0 6px 30px; border: 0; border-radius: 0; background: none; box-shadow: none; font-weight: 500; font-size: var(--p-size); line-height: 1.7; color: var(--body); }
.ip__main ul li::before { left: 0; top: 14px; margin-top: 0; font-size: 13px; }
.ip--p2 .ip__main ul li, .ip--i4 .ip__main ul li { background: none; border: 0; color: rgba(255, 255, 255, .9); }
.ip--p3 .ip__main ul { display: inline-block; text-align: left; }
.ip--houses .ip__main ul li { padding: 0 0 20px; font-size: inherit; line-height: inherit; background: #fff; border: 1px solid rgba(11, 45, 91, .06); border-radius: 15px; box-shadow: 0 34px 56px -30px rgba(7, 31, 66, .7); }
.ip--houses .ip__main ul li::before { top: auto; left: auto; font: 0/0 serif; }
.ip__main ul:not(.x) li::before { width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--gold-deep); top: 12px; font: 14px/1 FontAwesome; }
.ip--p2 .ip__main ul li::before, .ip--i4 .ip__main ul li::before { color: var(--gold); }
.ip--houses .ip__main ul li::before { content: ""; width: 100%; height: 86px; font: 0/0 serif; }

/* House cards: tall colour block on top, tighter text */
.ip--houses .ip__main ul { margin-top: calc(-1 * clamp(50px, 6vw, 80px)); }
.ip--houses .ip__main ul li { position: relative; gap: 6px; padding: 0 0 16px; overflow: hidden; }
.ip--houses .ip__main ul:not(.x) li::before { content: ""; position: static; display: block; width: 100%; height: 84px; margin: 0 0 10px; padding: 0; border-radius: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .35), transparent 38%), var(--hc); font: 0/0 serif; }
.ip--houses .ip__main ul li strong { font-size: 1.3rem; }
.ip--houses .ip__main ul li span { padding-top: 4px; font-size: .92rem; line-height: 1.6; }
.ip--houses .ip__main p { margin-bottom: clamp(70px, 8vw, 100px); }
/* Diary pages: lists as two columns with hairline dividers and gold diamonds */
.ip__main ul:not(.x) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); max-width: 44em; }
.ip--houses .ip__main ul:not(.x) { max-width: none; }
.ip__main ul:not(.x) li { padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(11, 45, 91, .12); font: 600 1rem/1.4 var(--serif); color: var(--navy-900); }
.ip__main ul:not(.x) li::before { content: ""; width: 9px; height: 9px; top: 21px; left: 4px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); font: 0/0 serif; }
.ip--p2 .ip__main ul li, .ip--i4 .ip__main ul li { border-bottom-color: rgba(255, 255, 255, .2); color: #fff; }
.ip--p3 .ip__main ul:not(.x) { display: grid; max-width: none; }
.ip--houses .ip__main ul li { padding: 0 0 16px; border-bottom: 0; font: inherit; }
.ip--houses .ip__main ul:not(.x) li::before { top: auto; left: auto; transform: none; width: 100%; height: 84px; border-radius: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .35), transparent 38%), var(--hc); }
@media (max-width: 700px) { .ip__main ul:not(.x) { grid-template-columns: minmax(0, 1fr); } }

/* House cards: four in one row on every screen wider than a tablet */
@media (min-width: 761px) { .ip--houses .ip__main ul:not(.x) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .ip--houses .ip__main ul li strong { padding: 0 14px; font-size: 1.15rem; } .ip--houses .ip__main ul li em { padding: 0 14px; } .ip--houses .ip__main ul li span { padding: 4px 14px 0; font-size: .86rem; } }
@media (max-width: 760px) { .ip--houses .ip__main ul:not(.x) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ip--houses .ip__main ul:not(.x) { grid-template-columns: minmax(0, 1fr); } }

/* Diary pages: scrolling animation */
.ip__media img { transform: scale(1.12) translate3d(0, calc(var(--pp, 0) * -22px), 0); will-change: transform; }
.ip-anim .ip:not(.is-seen) .ip__side { opacity: 0; transform: translate3d(-34px, 0, 0); }
.ip-anim .ip:not(.is-seen) .ip__media { opacity: 0; clip-path: inset(0 0 100% 0); }
.ip-anim .ip:not(.is-seen) .ip__main > :not(ul) { opacity: 0; transform: translate3d(0, 26px, 0); }
.ip-anim .ip:not(.is-seen) .ip__main li { opacity: 0; transform: translate3d(0, 22px, 0); }
.ip__side { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ip__media { transition: opacity .6s ease, clip-path 1.1s var(--ease) .1s; clip-path: inset(0 0 0 0); }
.ip__main > :not(ul) { transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.ip__main li { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
.ip--houses .ip__main li { transition-delay: calc(var(--i, 0) * 140ms + 300ms); }
.ip-anim .ip:not(.is-seen).ip--houses .ip__main li { transform: translate3d(0, 50px, 0) scale(.96); }
@media (prefers-reduced-motion: reduce) { .ip__media img { transform: none; } }

/* Gold frames and corner blocks behind the photos stay visible */
.ip { isolation: isolate; }
.ip__media { clip-path: none !important; }
.ip-anim .ip:not(.is-seen) .ip__media { clip-path: none !important; opacity: 0; transform: translate3d(0, 34px, 0); }
.ip__media { transition: opacity .8s ease .1s, transform 1s var(--ease) .1s; }
.ip-anim .ip:not(.is-seen) .ip__media img { clip-path: inset(0 0 100% 0); }
.ip__media img { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease) .2s; }

/* Other inner pages: rise-in on scroll */
.inner .prose .rv { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.inner .prose .rv:not(.is-seen) { opacity: 0; transform: translate3d(0, 30px, 0); }
.inner .prose .drift { transform: scale(1.08) translate3d(0, calc(var(--pp, 0) * -16px), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .inner .prose .rv { opacity: 1 !important; transform: none !important; } .inner .prose .drift { transform: none; } }
.ip--houses .ip__main ul li:nth-child(4) em { color: #8f6700; }

/* Wide photo strip: photo first, title card overlapping its lower edge, then the content */
.ip--i5 .ip__inner { display: flex; flex-direction: column; }
.ip--i5 .ip__media { order: 1; flex: none; }
.ip--i5 .ip__side { order: 2; padding: 22px 28px 20px; }
.ip--i5 .ip__main { order: 3; }
.ip--i5 .ip__no { margin-bottom: 10px; }

/* Tables inside the bands use the full width of the content column */
.ip__main table { width: 100%; max-width: 52em; margin: 0 auto; display: table; }
.ip--p3 .ip__main table { margin-inline: auto; }
.ip__main table td, .ip__main table th { color: var(--ink); }
.ip__main table th { color: #fff; }
.ip--p1 .ip__main table, .ip--i1 .ip__main table, .ip--i3 .ip__main table, .ip--i5 .ip__main table, .ip--i6 .ip__main table, .ip--p3 .ip__main table { margin-inline: 0; }
.ip--p3 .ip__main table { margin-inline: auto; }
.ip--p3 .ip__main { width: 100%; }

/* Photo strip sections: one card, 90% of the photo width, centered, overlapping the photo's lower edge */
.ip--i5 .ip__side { width: 90%; max-width: none; margin: calc(-1 * clamp(36px, 5vw, 64px)) auto 0; padding: 24px clamp(22px, 3vw, 40px) 4px; border-radius: 15px 15px 0 0; box-shadow: 0 -10px 40px -20px rgba(7, 31, 66, .35); }
.ip--i5 .ip__main { width: 90%; max-width: none; margin: 0 auto; padding: 8px clamp(22px, 3vw, 40px) clamp(24px, 3vw, 36px); border-radius: 0 0 15px 15px; background: #fff; box-shadow: 0 30px 50px -34px rgba(7, 31, 66, .55); }
.ip--i5 .ip__main ul:not(.x) { max-width: none; }
@media (max-width: 900px) { .ip--i5 .ip__side, .ip--i5 .ip__main { width: 94%; } }
.ip--i5 .ip__main ul:not(.x) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .ip--i5 .ip__main ul:not(.x) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ip--i5 .ip__main ul:not(.x) { grid-template-columns: minmax(0, 1fr); } }
.ip--i5 .ip__side { box-shadow: none; }

/* Overlap sections: title card and text card touch and read as one box */
@media (min-width: 901px) {
    .ip--i1 .ip__inner { grid-template-rows: auto auto 1fr; }
    .ip--i1 .ip__media { grid-row: 1 / 4; }
    .ip--i1 .ip__side { grid-row: 1; margin-top: clamp(24px, 4vw, 56px); box-shadow: none; }
    .ip--i1 .ip__main { grid-row: 2; margin-bottom: 0; }
}

/* Grading System: grade cards on a navy band */
.ip--grades { background: radial-gradient(circle at 15% 0%, rgba(212, 175, 55, .18), transparent 40%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .3), transparent 42%), var(--navy-950); }
.ip--grades .ip__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
.ip--grades .ip__side { align-items: center; }
.ip--grades .ip__side h2 { color: #fff; }
.ip--grades .ip__no { color: var(--gold); }
.ip--grades .ip__main { width: 100%; max-width: none; }
.grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.grade { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(22px, 2.4vw, 34px) 16px 24px; border-radius: 15px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-top: 3px solid var(--gold); text-align: center; transition: transform .4s var(--ease), background .4s; }
.grade:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .12); }
.grade__letter { display: grid; place-items: center; width: clamp(64px, 6vw, 84px); height: clamp(64px, 6vw, 84px); margin-bottom: 8px; border-radius: 50%; background: var(--gold); font: 600 clamp(2rem, 3.4vw, 2.8rem)/1 var(--serif); color: var(--navy-950); box-shadow: 0 0 0 7px rgba(212, 175, 55, .22); }
.grade__marks { font: 700 1.2rem/1.2 var(--sans); color: #fff; }
.grade__label { font: italic 400 1.05rem/1.3 var(--serif); color: rgba(255, 255, 255, .85); }
.grade__bar { display: block; width: 78%; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 15px; background: rgba(255, 255, 255, .16); }
.grade__bar b { display: block; width: var(--fill, 50%); height: 100%; border-radius: 15px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: left; transition: transform 1.2s var(--ease) .4s; }
.ip-anim .ip--grades:not(.is-seen) .grade__bar b { transform: scaleX(0); }
.ip-anim .ip--grades:not(.is-seen) .grade { opacity: 0; transform: translate3d(0, 34px, 0); }
.grade { transition: opacity .7s var(--ease), transform .7s var(--ease), background .4s; transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.grade:hover { transition-delay: 0s; }
@media (max-width: 900px) { .grades { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ip--grades .grades { width: 100%; max-width: none; counter-reset: none; }
.ip--grades .grade::before, .ip--grades .grade::after { display: none !important; }
.ip--grades .grade { padding-left: 16px; list-style: none; }
.ip--grades .grade .grade__marks { color: #fff; }
.ip--grades .grade .grade__label { color: rgba(255, 255, 255, .88); }
.ip--grades .grade .grade__letter { color: var(--navy-950); }

/* Photo layout 5 (Subjects): dark rounded panel, text and list on the left, tall photo on the right that rises above and below the panel */
.ip.ip--i5:not(.ip--houses) { background: #faf9f4; padding: clamp(80px, 9vw, 140px) 0; overflow: visible; }
.ip.ip--i5:not(.ip--houses) .ip__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "side media" "main media"; gap: 0 clamp(28px, 4vw, 64px); align-items: start; padding: clamp(36px, 4.4vw, 72px) clamp(28px, 4.4vw, 72px); border-radius: 15px; background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .16), transparent 42%), linear-gradient(145deg, var(--navy-800), var(--navy-950)); box-shadow: 0 50px 80px -50px rgba(7, 31, 66, .85); }
.ip.ip--i5:not(.ip--houses) .ip__side, .ip.ip--i5:not(.ip--houses) .ip__main { order: 0; width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ip.ip--i5:not(.ip--houses) .ip__side { grid-area: side; align-self: end; }
.ip.ip--i5:not(.ip--houses) .ip__main { grid-area: main; align-self: start; padding-top: 18px; }
.ip.ip--i5:not(.ip--houses) .ip__side h2 { color: #fff; font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.02; }
.ip.ip--i5:not(.ip--houses) .ip__side h2::after { display: none !important; }
.ip.ip--i5:not(.ip--houses) .ip__no { color: var(--gold); }
.ip.ip--i5:not(.ip--houses) .ip__main p { color: rgba(255, 255, 255, .88); }
.ip.ip--i5:not(.ip--houses) .ip__main ul:not(.x) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.ip.ip--i5:not(.ip--houses) .ip__main ul li { border-bottom-color: rgba(255, 255, 255, .2); color: #fff; }
.ip.ip--i5:not(.ip--houses) .ip__media { grid-area: media; align-self: stretch; margin-block: calc(-1 * clamp(44px, 6vw, 88px)); height: auto; min-height: 0; aspect-ratio: auto; border-radius: 15px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); order: 0; }
.ip.ip--i5:not(.ip--houses) .ip__media img { border-radius: 15px; border: 6px solid #faf9f4; }
.ip.ip--i5:not(.ip--houses) .ip__inner::after { content: ""; position: absolute; z-index: 3; right: 10%; bottom: 14%; width: min(46%, 520px); height: 150px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 70 C40 10 70 10 100 50 S160 100 200 55 S260 5 300 40'/%3E%3Cpath d='M0 82 C40 22 70 22 100 62 S160 112 200 67 S260 17 300 52' opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) {
    .ip.ip--i5:not(.ip--houses) .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main" "media"; }
    .ip.ip--i5:not(.ip--houses) .ip__media { margin: 28px 0 0; min-height: 280px; align-self: auto; }
    .ip.ip--i5:not(.ip--houses) .ip__inner::after { display: none; }
    .ip.ip--i5:not(.ip--houses) .ip__main ul:not(.x) { grid-template-columns: minmax(0, 1fr); }
}
.ip.ip--i5:not(.ip--houses) { padding: clamp(110px, 11vw, 170px) 0; }
.ip.ip--i5:not(.ip--houses) .ip__media { margin-block: calc(-1 * clamp(110px, 10vw, 150px)); }
.ip.ip--i5:not(.ip--houses) .ip__inner::after { right: 4%; bottom: 6%; width: min(30%, 360px); height: 110px; }
.ip.ip--i5:not(.ip--houses) .ip__media img { object-position: 72% 50%; }

/* Subjects: three-column list, wider photo with a gold offset frame */
.ip.ip--i5:not(.ip--houses) .ip__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ip.ip--i5:not(.ip--houses) .ip__main ul:not(.x) { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.ip.ip--i5:not(.ip--houses) .ip__main ul li { font-size: .95rem; }
.ip.ip--i5:not(.ip--houses) .ip__media { overflow: visible; box-shadow: none; }
.ip.ip--i5:not(.ip--houses) .ip__media::before { content: ""; position: absolute; z-index: 0; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 15px; }
.ip.ip--i5:not(.ip--houses) .ip__media img { z-index: 1; box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .75); object-position: 70% 40%; }
.ip.ip--i5:not(.ip--houses) .ip__media::after { content: ""; position: absolute; z-index: 2; left: 6px; right: 6px; bottom: 6px; height: 34%; border-radius: 0 0 15px 15px; background: linear-gradient(0deg, rgba(7, 31, 66, .55), transparent); pointer-events: none; }
.ip.ip--i5:not(.ip--houses) .ip__inner { margin-right: 18px; }
@media (max-width: 900px) { .ip.ip--i5:not(.ip--houses) .ip__main ul:not(.x) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ip.ip--i5:not(.ip--houses) .ip__inner { margin-right: 0; } .ip.ip--i5:not(.ip--houses) .ip__media::before { display: none; } }
@media (max-width: 520px) { .ip.ip--i5:not(.ip--houses) .ip__main ul:not(.x) { grid-template-columns: minmax(0, 1fr); } }

/* Diary pages: tagline above each heading, like the homepage sections */
.ip__side h2 .heading__lead { display: block; margin: 0 0 .45em; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--gold-deep); }
.ip__side h2 .heading__lead::before { display: none; }
.ip--p2 .heading__lead, .ip--i2 .heading__lead, .ip--i4 .heading__lead, .ip--houses .heading__lead, .ip--grades .heading__lead, .ip.ip--i5:not(.ip--houses) .heading__lead { color: var(--gold); }
.ip--p3 .ip__side h2 .heading__lead, .ip--grades .ip__side h2 .heading__lead { text-align: center; }
/* House System: keep its own layout (the Subjects styles must not reach it) */
.ip.ip--houses .ip__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: clamp(64px, 8vw, 120px); margin-right: auto; background: none; box-shadow: none; border-radius: 0; }
.ip.ip--houses .ip__inner::after { display: none; }
.ip.ip--houses .ip__side { order: 0; width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ip.ip--houses .ip__main { order: 0; display: contents; }
.ip.ip--houses .ip__side h2 { color: #fff; }
.ip.ip--houses .ip__main p { color: rgba(255, 255, 255, .92); }
.ip.ip--houses .ip__main ul:not(.x) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: none; width: 100%; }
@media (max-width: 760px) { .ip.ip--houses .ip__main ul:not(.x) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ip.ip--houses .ip__main ul:not(.x) { grid-template-columns: minmax(0, 1fr); } }

/* Diary pages: tagline in gold with more space below */
.page-co-curricular-activities .ip__side h2 .heading__lead, .page-curriculum .ip__side h2 .heading__lead { color: var(--gold); margin-bottom: .9em; }

/* Curriculum, Grading System: glass cards with outlined gold letters */
.page-curriculum .ip--grades .grade { align-items: center; gap: 4px; padding: 28px 22px 24px; border: 1px solid rgba(255, 255, 255, .22); border-top: 1px solid rgba(255, 255, 255, .22); border-radius: 15px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; }
.page-curriculum .ip--grades .grade::before { content: "" !important; display: block !important; position: absolute; left: -1px; top: -1px; width: 62px; height: 3px; border-radius: 3px; background: var(--gold); }
.page-curriculum .ip--grades .grade .grade__letter { position: relative; width: 74px; height: 74px; margin-bottom: 14px; border: 2px solid var(--gold); background: transparent; box-shadow: 0 0 40px 10px rgba(212, 175, 55, .18); font: 500 2.1rem/1 var(--serif); color: var(--gold); }
.page-curriculum .ip--grades .grade .grade__marks { font: 500 1.3rem/1.2 var(--serif); letter-spacing: .01em; color: #fff; }
.page-curriculum .ip--grades .grade .grade__label { margin-top: 2px; font: 500 .74rem/1.2 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.page-curriculum .ip--grades .grade .grade__bar { width: 100%; height: 6px; margin-top: 18px; background: rgba(255, 255, 255, .12); }
.page-curriculum .ip--grades .grade:hover { background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); border-color: rgba(212, 175, 55, .6); }

/* Curriculum, Classes and Medium: no background colour, dark text */
.page-curriculum .ip--i4 { background: #fff; }
.page-curriculum .ip--i4 .ip__side h2 { color: var(--navy-900); }
.page-curriculum .ip--i4 .ip__main p { color: var(--body); }
.page-curriculum .ip--i4 .ip__main ul li { color: var(--navy-900); border-bottom-color: rgba(11, 45, 91, .12); }
.page-curriculum .ip--i4 .ip__main ul li::before { color: var(--gold-deep); }
.page-curriculum .ip--i4 .ip__media { border-color: rgba(212, 175, 55, .85); }

/* Curriculum, Examinations and Promotion: each rule in its own card with an icon medallion */
.page-curriculum .ip--p1 { background: linear-gradient(160deg, #eef3fa, #e6eaf2); }
.page-curriculum .ip--p1 .ip__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
.page-curriculum .ip--p1 .ip__main { counter-reset: rule; display: grid; gap: 38px; }
.page-curriculum .ip--p1 .ip__main p { position: relative; margin: 0; padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 34px) clamp(78px, 7vw, 104px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); box-shadow: 0 26px 46px -34px rgba(7, 31, 66, .55); }
.page-curriculum .ip--p1 .ip__main p::before { counter-increment: rule; content: "\f19d"; position: absolute; left: clamp(18px, 2.4vw, 30px); top: 50%; display: grid; place-items: center; width: clamp(44px, 4vw, 56px); height: clamp(44px, 4vw, 56px); margin-top: calc(clamp(44px, 4vw, 56px) / -2); border-radius: 50%; background: var(--navy-900); font: clamp(1.05rem, 1.6vw, 1.35rem)/1 FontAwesome; color: var(--gold); box-shadow: 0 0 0 6px rgba(212, 175, 55, .22); }
.page-curriculum .ip--p1 .ip__main p:nth-of-type(2)::before { content: "\f046"; }
.page-curriculum .ip--p1 .ip__main p + p::after { content: ""; position: absolute; left: calc(clamp(18px, 2.4vw, 30px) + clamp(44px, 4vw, 56px) / 2 - 1px); top: -38px; height: 38px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .2)); }
@media (max-width: 900px) { .page-curriculum .ip--p1 .ip__inner { grid-template-columns: minmax(0, 1fr); } }

/* Every section: headline and tagline use the same sizes as the homepage sections */
.ip .ip__side h2, .ip.ip--i5:not(.ip--houses) .ip__side h2, .page-leadership h2, .page-leadership .feature + h2, .inner .prose h2 { font-size: var(--h2-size); line-height: 1.08; }
.ip .ip__side h2 .heading__lead, .inner .prose h2 .heading__lead, .wy-band .wy-about__text .heading__lead { font-size: .38em; line-height: 1.2; }
.page-co-curricular-activities .ip__side h2 .heading__lead, .page-curriculum .ip__side h2 .heading__lead { font-size: .38em; margin-bottom: .9em; }

/* Rules sections: tagline above the title, same sizes as the other pages */
.prose .rule--lead h3 { font-size: var(--h2-size); line-height: 1.08; }
.rule--lead h3::before { display: none; }
.rule--lead h3 .heading__lead { display: block; margin: 0 0 .9em; font-family: var(--serif); font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--gold); }
.rule--lead h3 .heading__lead::before { display: none; }
.page-leadership h2 .heading__lead { display: block; margin: 0 0 .9em; font-family: var(--serif); font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--gold); }
/* Vision & Mission: headings as homepage headline + tagline */
.prose .vm-hero h3, .prose .vm-motto h3, .prose .vm-mission h3, .prose .vm-objectives h3 { font-family: var(--serif); font-size: var(--h2-size); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; text-transform: capitalize; color: var(--navy-900); }
.prose .vm-hero h3 { color: #fff; }
.vm-hero h3::before, .vm-motto h3::before, .vm-mission h3::before, .vm-objectives h3::before { display: none; }
.prose .vm-hero h3 .heading__lead, .prose .vm-motto h3 .heading__lead, .prose .vm-mission h3 .heading__lead, .prose .vm-objectives h3 .heading__lead { display: block; margin: 0 0 .9em; font-family: var(--serif); font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--gold); }
.vm-hero h3 .heading__lead::before { display: none; }
/* Campus Life: four sections, each with its own layout (homepage and curriculum styles) */
.page-campus-life .section { padding-block: clamp(56px, 7vw, 110px); }

/* 1. introduction */
.page-campus-life .cl-intro { background: #fff; text-align: left; }
.page-campus-life .cl-intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.page-campus-life .cl-intro .heading { margin: 0; text-align: left; margin-inline: 0; }
.page-campus-life .cl-intro__text { margin: clamp(18px, 2.2vw, 28px) 0 0; max-width: 34em; text-align: left; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.page-campus-life .cl-intro__photo { position: relative; margin: 0 20px 20px 0; aspect-ratio: 4 / 4.4; }
.page-campus-life .cl-intro__photo::before { content: ""; position: absolute; z-index: 0; inset: 20px -20px -20px 20px; border: 2px solid var(--gold); border-radius: 15px; }
.page-campus-life .cl-intro__photo picture, .page-campus-life .cl-intro__photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .7); }

/* 2. celebrations */
.page-campus-life .cl-cele { background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .16), transparent 40%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .3), transparent 42%), var(--navy-950); }
.page-campus-life .cl-cele__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.page-campus-life .cl-cele .heading { margin: 0; color: #fff; }
.page-campus-life .cl-cele .heading__lead { color: var(--gold); }
.page-campus-life .cl-cele__head p { margin: 0; font-size: var(--p-size); line-height: 1.85; color: rgba(255, 255, 255, .86); }
.page-campus-life .cl-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 14vw, 210px); gap: clamp(10px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; }
.page-campus-life .cl-mosaic__item { position: relative; overflow: hidden; border-radius: 15px; cursor: zoom-in; }
.page-campus-life .cl-mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.page-campus-life .cl-mosaic__item:nth-child(6) { grid-column: span 2; }
.page-campus-life .cl-mosaic__item picture, .page-campus-life .cl-mosaic__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.page-campus-life .cl-mosaic__item:hover img { transform: scale(1.07); }
.page-campus-life .cl-mosaic__item::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); transition: width .5s var(--ease); }
.page-campus-life .cl-mosaic__item:hover::after { width: 64px; }

/* 3. learning for life */
.page-campus-life .cl-life { background: #faf9f4; }
.page-campus-life .cl-life__head { max-width: 46em; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.page-campus-life .cl-life .heading { margin-inline: auto; text-align: center; }
.page-campus-life .cl-life__head p { margin: clamp(16px, 2vw, 24px) 0 0; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.page-campus-life .cl-life__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.page-campus-life .cl-life__item { position: relative; display: flex; gap: clamp(16px, 2vw, 26px); align-items: flex-start; padding: clamp(24px, 2.8vw, 38px); overflow: hidden; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 26px 46px -34px rgba(7, 31, 66, .55); transition: transform .4s var(--ease), box-shadow .4s; }
.page-campus-life .cl-life__item:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -30px rgba(7, 31, 66, .6); }
.page-campus-life .cl-life__no { position: absolute; right: 18px; top: 4px; font: 700 clamp(3.4rem, 6vw, 5.4rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px rgba(212, 175, 55, .55); pointer-events: none; }
.page-campus-life .cl-life__icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--navy-900); color: var(--gold); font-size: 1.4rem; box-shadow: 0 0 0 6px rgba(212, 175, 55, .22); }
.page-campus-life .cl-life__text { position: relative; }
.page-campus-life .cl-life__text h3 { margin: 4px 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; color: var(--navy-900); }
.page-campus-life .cl-life__text p { margin: 0; font-size: var(--p-size); line-height: 1.8; color: var(--body); }

/* 4. facilities */
.page-campus-life .cl-fac { background: #fff; }
.page-campus-life .cl-fac__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.page-campus-life .cl-fac .heading { margin: 0; text-align: left; }
.page-campus-life .cl-fac__lead { margin: 0; max-width: none; text-align: left; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.page-campus-life .fx { margin-top: 0; }

@media (max-width: 900px) {
    .page-campus-life .cl-intro__grid, .page-campus-life .cl-cele__head, .page-campus-life .cl-fac__head { grid-template-columns: minmax(0, 1fr); }
    .page-campus-life .cl-life__list { grid-template-columns: minmax(0, 1fr); }
    .page-campus-life .cl-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-campus-life .cl-mosaic__item:nth-child(6) { grid-column: auto; }
}
@media (max-width: 900px) { .page-campus-life .cl-mosaic__item:nth-child(1) { grid-row: span 1; } .page-campus-life .cl-mosaic__item:nth-child(8) { grid-column: span 2; } }

/* FAQs: navy panel on the left, numbered questions on the right */
.page-faqs .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.page-faqs .faq-side { position: sticky; top: 120px; padding: clamp(26px, 3vw, 44px); border-radius: 15px; background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .2), transparent 42%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .85); }
.page-faqs .faq-side h2 { margin: 0 0 18px; font-size: var(--h2-size); line-height: 1.08; color: #fff; }
.page-faqs .faq-side h2 .heading__lead { display: block; margin: 0 0 .9em; font-family: var(--serif); font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--gold); }
.page-faqs .faq-side p { margin: 0 0 18px; color: rgba(255, 255, 255, .88); font-size: var(--p-size); line-height: 1.8; }
.page-faqs .faq-side p:last-child { margin: 26px 0 0; }
.page-faqs .faq-side .btn { display: inline-flex; background: var(--gold); color: var(--navy-950); }
.page-faqs .faq-list { min-width: 0; }
.page-faqs .faq { margin: 0 0 12px; border-left: 0; border-radius: 15px; border: 1px solid rgba(11, 45, 91, .1); background: #fff; box-shadow: 0 20px 40px -32px rgba(7, 31, 66, .5); transition: border-color .3s, box-shadow .3s; }
.page-faqs .faq[open] { border-color: rgba(212, 175, 55, .7); box-shadow: 0 30px 50px -30px rgba(7, 31, 66, .55); }
.page-faqs .faq summary { display: flex; align-items: center; gap: 16px; padding: 18px 64px 18px 20px; }
.page-faqs .faq__no { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(212, 175, 55, .16); font: 700 .85rem/1 var(--sans); letter-spacing: .06em; color: var(--gold-deep); transition: background .3s, color .3s; }
.page-faqs .faq[open] .faq__no { background: var(--gold); color: var(--navy-950); }
.page-faqs .faq__body { padding: 0 24px 22px 76px; }
@media (max-width: 900px) { .page-faqs .faq-layout { grid-template-columns: minmax(0, 1fr); } .page-faqs .faq-side { position: static; } .page-faqs .faq__body { padding-left: 24px; } }
/* School calendar: month list on the left, one month on the right */
.page-school-calendar .cal-app { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.page-school-calendar .cal-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; padding: clamp(18px, 2vw, 28px); border-radius: 15px; background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .18), transparent 42%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .85); max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
.page-school-calendar .cal-nav__title { margin: 0 0 10px; padding: 0 6px; font: italic 400 1.05rem/1.2 var(--serif); color: var(--gold); }
.page-school-calendar .cal-tab { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 15px; background: transparent; text-align: left; font: 600 .98rem/1.2 var(--serif); color: rgba(255, 255, 255, .82); cursor: pointer; transition: background .3s, color .3s; }
.page-school-calendar .cal-tab em { min-width: 26px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); font: 700 .74rem/1.2 var(--sans); font-style: normal; text-align: center; color: #fff; }
.page-school-calendar .cal-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.page-school-calendar .cal-tab.is-active { background: var(--gold); color: var(--navy-950); }
.page-school-calendar .cal-tab.is-active em { background: var(--navy-950); color: var(--gold); }
.page-school-calendar .cal-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.page-school-calendar .cal-stage { min-width: 0; }
.page-school-calendar .cal-stage .cal-card { grid-column: auto; animation: calIn .5s var(--ease) both; }
.page-school-calendar .cal-stage .cal-card[hidden] { display: none; }
@keyframes calIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-school-calendar .cal-card h2 { font-size: var(--h2-size); margin-bottom: 18px; }
.page-school-calendar .cal-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.page-school-calendar .cal-pager__btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid rgba(11, 45, 91, .18); border-radius: 99px; background: #fff; font: 700 .9rem/1 var(--sans); color: var(--navy-900); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.page-school-calendar .cal-pager__btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
@media (max-width: 900px) {
    .page-school-calendar .cal-app { grid-template-columns: minmax(0, 1fr); }
    .page-school-calendar .cal-nav { position: static; flex-direction: row; overflow-x: auto; max-height: none; padding: 12px; gap: 6px; }
    .page-school-calendar .cal-nav__title { display: none; }
    .page-school-calendar .cal-tab { width: auto; flex: none; white-space: nowrap; }
}.page-school-calendar .cal-nav { max-height: none; overflow: visible; }
@media (max-width: 900px) { .page-school-calendar .cal-nav { overflow-x: auto; } }

/* Staff: navy bar with the groups and a search box, photo cards with the name over the photo */
.page-staff .staff-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0 0 clamp(24px, 3vw, 40px); padding: clamp(12px, 1.4vw, 18px); border-radius: 15px; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .18), transparent 44%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: 0 34px 60px -42px rgba(7, 31, 66, .85); }
.page-staff .staff-bar .staff-tabs { flex: 1 1 420px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.page-staff .staff-tab { color: rgba(255, 255, 255, .84); }
.page-staff .staff-tab em { background: rgba(255, 255, 255, .14); color: #fff; }
.page-staff .staff-tab:hover { background: rgba(255, 255, 255, .08); }
.page-staff .staff-tab.is-active { background: var(--gold); color: var(--navy-950); box-shadow: none; }
.page-staff .staff-tab.is-active em { background: var(--navy-950); color: var(--gold); }
.page-staff .staff-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.page-staff .staff-search i { position: absolute; left: 16px; top: 50%; margin-top: -8px; color: var(--gold); pointer-events: none; }
.page-staff .staff-search input { width: 100%; padding: 14px 16px 14px 44px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; background: rgba(255, 255, 255, .08); font: 500 .95rem/1.2 var(--sans); color: #fff; }
.page-staff .staff-search input::placeholder { color: rgba(255, 255, 255, .6); }
.page-staff .staff-search input:focus { outline: 0; border-color: var(--gold); background: rgba(255, 255, 255, .12); }
.page-staff .staff-empty { margin: 0; padding: 28px; border-radius: 15px; background: #fff; border: 1px dashed rgba(11, 45, 91, .25); text-align: center; color: var(--body); }
.page-staff .people .person[hidden] { display: none; }
.page-staff .people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.page-staff .people .person { border-radius: 15px; border: 0; box-shadow: 0 26px 46px -32px rgba(7, 31, 66, .65); background: var(--navy-900); }
.page-staff .people .person img { aspect-ratio: 3 / 4; border-radius: 0; }
.page-staff .people .person::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(7, 31, 66, .95), rgba(7, 31, 66, .55) 55%, transparent); pointer-events: none; }
.page-staff .people .person figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 18px 18px; background: none; }
.page-staff .people .person figcaption::before { left: 18px; top: 0; width: 34px; }
.page-staff .people .person figcaption strong { margin-top: 10px; font-size: 1.12rem; color: #fff; }
.page-staff .people .person figcaption span { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.page-staff .people .person:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -30px rgba(7, 31, 66, .75); }
/* Leadership: full-width bands, navy for the administration and pale with round portraits for the council */
.inner:has(.page-leadership) { overflow-x: clip; }
.page-leadership .ld { width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(52px, 6.4vw, 100px) 0; }
.page-leadership .ld__inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-leadership .ld--intro { margin-top: calc(-1 * clamp(24px, 3vw, 44px)); padding-bottom: clamp(24px, 3vw, 40px); background: #fff; }
.page-leadership .ld--intro p { max-width: 52em; margin: 0 auto; padding-left: clamp(18px, 2.4vw, 28px); border-left: 4px solid var(--gold); font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.6; color: var(--navy-800); }
.page-leadership .ld__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin: 0 0 clamp(28px, 3.6vw, 52px); }
.page-leadership .ld__head h2 { margin: 0; text-align: left; }
.page-leadership .ld__count { margin: 0; padding: 8px 18px; border-radius: 99px; font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.page-leadership .ld .people { padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; }

/* administration */
.page-leadership .ld--admin { background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .18), transparent 40%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .3), transparent 42%), var(--navy-950); }
.page-leadership .ld--admin .ld__head h2 { color: #fff; }
.page-leadership .ld--admin .heading__lead { color: var(--gold); }
.page-leadership .ld--admin .ld__count { background: rgba(212, 175, 55, .16); color: var(--gold); }
.page-leadership .ld--admin .people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.8vw, 40px); }

/* council */
.page-leadership .ld--council { background: #faf9f4; }
.page-leadership .ld--council .ld__head h2 { color: var(--navy-900); }
.page-leadership .ld--council .ld__count { background: rgba(11, 45, 91, .08); color: var(--navy-800); }
.page-leadership .ld--council .people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(16px, 2.4vw, 32px); }
.page-leadership .ld--council .people .person { display: flex; flex-direction: column; align-items: center; padding: 0; background: none; border: 0; box-shadow: none; text-align: center; }
.page-leadership .ld--council .people .person img { width: min(100%, 190px); aspect-ratio: 1; border-radius: 50%; object-position: 50% 15%; outline: 2px solid rgba(212, 175, 55, .9); outline-offset: 6px; box-shadow: 0 24px 40px -22px rgba(7, 31, 66, .6); transition: transform .6s var(--ease), outline-offset .4s var(--ease); }
.page-leadership .ld--council .people .person:hover img { transform: translateY(-6px); outline-offset: 10px; }
.page-leadership .ld--council .people .person figcaption { justify-items: center; padding: 22px 4px 0; gap: 4px; }
.page-leadership .ld--council .people .person figcaption strong { font-size: 1.1rem; color: var(--navy-900); }
.page-leadership .ld--council .people .person figcaption span { padding: 0; background: none; color: var(--gold-deep); font-size: .84rem; text-transform: none; letter-spacing: 0; }
.page-leadership .ld--council .people .person:hover { transform: none; box-shadow: none; border: 0; }

@media (max-width: 900px) {
    .page-leadership .ld--admin .people, .page-leadership .ld--council .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .page-leadership .ld--admin .people { grid-template-columns: minmax(0, 1fr); } }.page-leadership .ld--admin .people .person { display: flex; flex-direction: column; align-items: center; padding: 0; background: none; border: 0; box-shadow: none; text-align: center; overflow: visible; }
.page-leadership .ld--admin .people .person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%; border-radius: 999px 999px 15px 15px; outline: 2px solid rgba(212, 175, 55, .85); outline-offset: 7px; box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .6); transition: transform .7s var(--ease), outline-offset .4s var(--ease); }
.page-leadership .ld--admin .people .person:hover img { transform: translateY(-6px); outline-offset: 11px; }
.page-leadership .ld--admin .people .person figcaption { display: grid; justify-items: center; gap: 8px; padding: 28px 6px 0; background: none; }
.page-leadership .ld--admin .people .person figcaption strong { margin: 0; font-size: 1.2rem; color: #fff; }
.page-leadership .ld--admin .people .person figcaption span { padding: 4px 14px; border-radius: 99px; background: rgba(212, 175, 55, .16); color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.page-leadership .ld--admin .people .person:hover { transform: none; box-shadow: none; border: 0; }

/* Leadership: same look as the homepage cards (photo on top, navy panel with a curved edge, gold label, white serif name) on pale homepage bands */
.page-leadership .ld--admin, .page-leadership .ld--council { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-leadership .ld--council { background: #fff; }
.page-leadership .ld--admin .ld__head h2, .page-leadership .ld--council .ld__head h2 { color: var(--navy-900); }
.page-leadership .ld--admin .heading__lead, .page-leadership .ld--council .heading__lead { color: var(--gold-deep); }
.page-leadership .ld--admin .ld__count, .page-leadership .ld--council .ld__count { background: rgba(11, 45, 91, .08); color: var(--navy-800); }
.page-leadership .ld--admin .people, .page-leadership .ld--council .people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.page-leadership .ld .people .person, .page-leadership .ld--admin .people .person, .page-leadership .ld--council .people .person { display: flex; flex-direction: column; align-items: stretch; overflow: hidden; padding: 0; border: 0; border-radius: 15px; background: #0e2a55; box-shadow: 0 26px 46px -32px rgba(7, 31, 66, .7); text-align: left; transition: transform .4s var(--ease), box-shadow .4s; }
.page-leadership .ld .people .person:hover, .page-leadership .ld--admin .people .person:hover, .page-leadership .ld--council .people .person:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -30px rgba(7, 31, 66, .8); border: 0; }
.page-leadership .ld .people .person img, .page-leadership .ld--admin .people .person img, .page-leadership .ld--council .people .person img { width: 100%; aspect-ratio: 4 / 5; border-radius: 0; outline: 0; box-shadow: none; object-fit: cover; object-position: 50% 14%; transition: transform 1s var(--ease); }
.page-leadership .ld .people .person:hover img, .page-leadership .ld--admin .people .person:hover img, .page-leadership .ld--council .people .person:hover img { transform: scale(1.05); outline: 0; }
.page-leadership .ld .people .person figcaption, .page-leadership .ld--admin .people .person figcaption, .page-leadership .ld--council .people .person figcaption { position: relative; display: flex; flex-direction: column; gap: 8px; justify-items: stretch; align-items: flex-start; padding: 14px 22px 24px; background: #0e2a55; }
.page-leadership .ld .people .person figcaption::before, .page-leadership .ld--admin .people .person figcaption::before, .page-leadership .ld--council .people .person figcaption::before { content: ""; display: block; position: absolute; left: 0; right: 0; top: -26px; width: auto; height: 27px; border-radius: 0; border-top-left-radius: 100% 100%; background: #0e2a55; }
.page-leadership .ld .people .person figcaption span, .page-leadership .ld--admin .people .person figcaption span, .page-leadership .ld--council .people .person figcaption span { order: -1; padding: 0; border-radius: 0; background: none; font: 800 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.page-leadership .ld .people .person figcaption strong, .page-leadership .ld--admin .people .person figcaption strong, .page-leadership .ld--council .people .person figcaption strong { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: #fff; }
.page-leadership .ld .people .person figcaption strong::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 12px; background: var(--gold); transition: width .4s var(--ease); }
.page-leadership .ld .people .person:hover figcaption strong::after { width: 60px; }
@media (max-width: 900px) { .page-leadership .ld--admin .people, .page-leadership .ld--council .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .page-leadership .ld--admin .people, .page-leadership .ld--council .people { grid-template-columns: minmax(0, 1fr); } }

/* Leadership: introduction panel and section headers */
.page-leadership .ld--intro { margin-top: 0; padding: clamp(40px, 5vw, 72px) 0 clamp(8px, 1vw, 16px); background: #fff; }
.page-leadership .ld--intro .ld__inner { position: relative; }
.page-leadership .ld--intro p { position: relative; max-width: none; margin: 0; padding: clamp(32px, 4.4vw, 64px) clamp(26px, 5vw, 80px); overflow: hidden; border: 0; border-radius: 15px; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .2), transparent 42%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .35), transparent 44%), var(--navy-950); box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .85); font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.55rem); font-weight: 400; line-height: 1.65; color: rgba(255, 255, 255, .94); text-align: left; }
.page-leadership .ld--intro p::before { content: "\201C"; position: absolute; left: clamp(14px, 2.4vw, 36px); top: -.12em; font: 700 clamp(6rem, 12vw, 10rem)/1 var(--serif); color: rgba(212, 175, 55, .28); pointer-events: none; }
.page-leadership .ld--intro p::after { content: ""; display: block; width: 64px; height: 4px; margin-top: clamp(20px, 2.4vw, 32px); border-radius: 4px; background: var(--gold); }
.page-leadership .ld__head { align-items: flex-end; flex-wrap: nowrap; gap: clamp(14px, 2vw, 28px); }
.page-leadership .ld__head h2 { order: 0; flex: none; }
.page-leadership .ld__head::after { content: ""; order: 1; flex: 1; min-width: 40px; height: 2px; margin-bottom: .75rem; border-radius: 2px; background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, .08)); }
.page-leadership .ld__count { order: 2; flex: none; margin-bottom: .35rem; }
@media (max-width: 560px) { .page-leadership .ld__head { flex-wrap: wrap; } .page-leadership .ld__head::after { display: none; } }

.page-leadership .ld__count { display: none; }

/* Why SFS ICSE Koppal: four bands (founding, why SFS, campus, closing quote) */
.inner:has(.page-whysfsisce) { overflow-x: clip; }
.page-whysfsisce .wz { width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(52px, 6.4vw, 100px) 0; position: relative; overflow: hidden; }
.page-whysfsisce .wz__inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-whysfsisce .wz__inner--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }

/* 1. founding */
.page-whysfsisce .wz--origin { margin-top: clamp(24px, 3vw, 48px); background: #fff; }
.page-whysfsisce .wz--origin .wz__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.page-whysfsisce .wz__year { display: flex; flex-direction: column; align-items: flex-start; }
.page-whysfsisce .wz__year strong { font: 700 clamp(4.6rem, 10vw, 9rem)/.95 var(--serif); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px var(--gold); }
.page-whysfsisce .wz__year span { margin-top: 10px; padding-top: 12px; border-top: 3px solid var(--gold); font: italic 400 1.15rem/1.2 var(--serif); color: var(--gold-deep); }
.page-whysfsisce .wz__lead { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.7; color: var(--navy-800); }

/* 2. why SFS */
.page-whysfsisce .wz--why { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-whysfsisce .wz__text h2 { margin: 0 0 clamp(18px, 2.2vw, 28px); font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; color: var(--navy-900); }
.page-whysfsisce .wz__text h2 .heading__lead { display: block; margin: 0 0 .9em; font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--gold-deep); }
.page-whysfsisce .wz__text h2 .heading__lead::before { display: none; }
.page-whysfsisce .wz__text p { margin: 0 0 1.1em; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.page-whysfsisce .wz__text p:last-child { margin-bottom: 0; }
.page-whysfsisce .wz__photo { position: relative; margin: 0 20px 20px 0; aspect-ratio: 4 / 4.6; }
.page-whysfsisce .wz__photo::before { content: ""; position: absolute; z-index: 0; inset: 20px -20px -20px 20px; border: 2px solid var(--gold); border-radius: 15px; }
.page-whysfsisce .wz__photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .7); }

/* 3. campus */
.page-whysfsisce .wz--campus { background: radial-gradient(circle at 90% 10%, rgba(212, 175, 55, .18), transparent 40%), linear-gradient(145deg, var(--navy-800), var(--navy-950)); }
.page-whysfsisce .wz__inner--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.page-whysfsisce .wz--campus .wz__text p { color: rgba(255, 255, 255, .9); }
.page-whysfsisce .wz__arch { margin: 0; padding: 12px; border: 2px solid rgba(212, 175, 55, .7); border-radius: 999px 999px 15px 15px; aspect-ratio: 3 / 4; max-width: 460px; width: 100%; justify-self: center; }
.page-whysfsisce .wz__arch img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 15px 15px; }

/* 4. closing quote */
.page-whysfsisce .wz--quote { background: #fff; padding-block: clamp(48px, 6vw, 90px); }
.page-whysfsisce .wz__quote { position: relative; max-width: 52em; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 0 0; border: 0; text-align: center; font: italic 500 clamp(1.5rem, 3vw, 2.5rem)/1.4 var(--serif); color: var(--navy-900); }
.page-whysfsisce .wz__quote::before { content: "\201C"; position: absolute; left: 50%; top: -.1em; transform: translateX(-50%); font: 700 clamp(6rem, 12vw, 9rem)/1 var(--serif); color: rgba(212, 175, 55, .45); }
.page-whysfsisce .wz__quote::after { content: ""; display: block; width: 64px; height: 4px; margin: clamp(22px, 2.6vw, 34px) auto 0; border-radius: 4px; background: var(--gold); }

@media (max-width: 900px) {
    .page-whysfsisce .wz--origin .wz__inner, .page-whysfsisce .wz__inner--split, .page-whysfsisce .wz__inner--flip { grid-template-columns: minmax(0, 1fr); }
    .page-whysfsisce .wz__arch { aspect-ratio: 4 / 5; }
}

/* Why SFS: one section, two paragraphs, two overlapping photos */
.page-whysfsisce .wz--why .wz__inner--split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.page-whysfsisce .wz__media { position: relative; min-height: clamp(420px, 44vw, 620px); }
.page-whysfsisce .wz__media .wz__photo { position: absolute; right: 20px; top: 0; width: 76%; margin: 0; aspect-ratio: 4 / 4.4; }
.page-whysfsisce .wz__media .wz__arch { position: absolute; left: 0; bottom: 0; width: 46%; max-width: none; margin: 0; padding: 8px; background: #faf9f4; border: 2px solid var(--gold); border-radius: 999px 999px 15px 15px; aspect-ratio: 3 / 4; box-shadow: 0 34px 60px -30px rgba(7, 31, 66, .65); z-index: 3; }
.page-whysfsisce .wz__media .wz__arch img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 15px 15px; }
@media (max-width: 900px) {
    .page-whysfsisce .wz--why .wz__inner--split { grid-template-columns: minmax(0, 1fr); }
    .page-whysfsisce .wz__media { min-height: clamp(360px, 90vw, 520px); }
}
.page-whysfsisce .wz__media { min-height: clamp(460px, 48vw, 680px); }
.page-whysfsisce .wz__media .wz__arch { width: 60%; }
.page-whysfsisce .wz__media .wz__photo { width: 70%; }
@media (max-width: 900px) { .page-whysfsisce .wz__media { min-height: clamp(420px, 100vw, 600px); } }

/* Why SFS: second photo shown in full, plain rounded frame with a gold corner block */
.page-whysfsisce .wz__media .wz__arch { width: 66%; padding: 0; border: 6px solid #fff; border-radius: 15px; background: #fff; aspect-ratio: 3 / 2; box-shadow: 0 34px 60px -30px rgba(7, 31, 66, .7); }
.page-whysfsisce .wz__media .wz__arch::before { content: ""; position: absolute; z-index: -1; left: -18px; bottom: -18px; width: 46%; height: 46%; border-radius: 15px; background: var(--gold); }
.page-whysfsisce .wz__media .wz__arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

/* Why SFS ICSE Koppal: editorial composition */
.page-whysfsisce .wf { width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(64px, 8vw, 128px) 0; position: relative; overflow: hidden; background: linear-gradient(180deg, #faf9f4 0%, #faf9f4 100%); }
.page-whysfsisce .wf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .55), transparent); }
.page-whysfsisce .wf__inner { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 112px); align-items: center; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.page-whysfsisce .wf__text { max-width: 34rem; }
.page-whysfsisce .wf__eyebrow { margin: 0 0 clamp(16px, 2vw, 26px); font: 700 .78rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.page-whysfsisce .wf__title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; color: var(--navy-950); }
.page-whysfsisce .wf__title::after { display: none !important; }
.page-whysfsisce .wf__rule { display: block; width: 56px; height: 2px; margin: clamp(22px, 2.6vw, 34px) 0 clamp(22px, 2.6vw, 34px); background: var(--gold); }
.page-whysfsisce .wf__p { margin: 0 0 1.3em; font-family: var(--sans); font-size: 1rem; line-height: 1.9; color: #4a5568; }
.page-whysfsisce .wf__p--lead { font-size: clamp(1.1rem, 1.35vw, 1.25rem); line-height: 1.8; font-weight: 500; color: var(--navy-900); }
.page-whysfsisce .wf__link { display: inline-flex; align-items: center; gap: 12px; margin-top: .6em; padding-bottom: 6px; border-bottom: 1px solid rgba(212, 175, 55, .7); font: 700 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-900); transition: gap .35s var(--ease), color .3s; }
.page-whysfsisce .wf__link:hover { gap: 18px; color: var(--gold-deep); }

/* photo composition */
.page-whysfsisce .wf__gallery { position: relative; min-height: clamp(480px, 46vw, 680px); }
.page-whysfsisce .wf__main { position: absolute; top: 0; right: 0; width: 82%; margin: 0; }
.page-whysfsisce .wf__main::before { content: ""; position: absolute; z-index: 0; top: 22px; right: -22px; width: 100%; height: 100%; border: 1px solid var(--gold); }
.page-whysfsisce .wf__main img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; box-shadow: 0 40px 70px -40px rgba(7, 31, 66, .6); }
.page-whysfsisce .wf__main figcaption { position: absolute; z-index: 2; right: 0; bottom: -34px; display: flex; align-items: center; gap: 12px; font: italic 400 .95rem/1 var(--serif); color: var(--navy-800); }
.page-whysfsisce .wf__main figcaption::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.page-whysfsisce .wf__second { position: absolute; z-index: 3; left: 0; bottom: 8%; width: 56%; margin: 0; padding: 7px; background: #faf9f4; box-shadow: 0 30px 56px -30px rgba(7, 31, 66, .65); }
.page-whysfsisce .wf__second::before { content: ""; position: absolute; z-index: -1; left: -14px; bottom: -14px; width: 100%; height: 100%; border: 1px solid var(--gold); }
.page-whysfsisce .wf__second img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1px; }

@media (max-width: 1100px) {
    .page-whysfsisce .wf__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
    .page-whysfsisce .wf__main { width: 86%; }
    .page-whysfsisce .wf__second { width: 52%; bottom: 4%; }
}
@media (max-width: 800px) {
    .page-whysfsisce .wf__inner { grid-template-columns: minmax(0, 1fr); }
    .page-whysfsisce .wf__text { max-width: none; }
    .page-whysfsisce .wf__gallery { min-height: 0; padding-bottom: 54px; }
    .page-whysfsisce .wf__main { position: relative; width: calc(100% - 18px); margin-left: 0; }
    .page-whysfsisce .wf__main::before { right: -14px; top: 14px; }
    .page-whysfsisce .wf__main img { aspect-ratio: 4 / 3.4; }
    .page-whysfsisce .wf__second { left: 0; bottom: 0; width: 60%; }
    .page-whysfsisce .wf__second::before { left: -10px; bottom: -10px; }
    .page-whysfsisce .wf__main figcaption { display: none; }
}
/* Why SFS ICSE Koppal: headline, wide photo with an inset, two text columns */
.page-whysfsisce .wm { width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(56px, 7vw, 110px) 0; overflow: hidden; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-whysfsisce .wm__inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-whysfsisce .wm__head { margin-bottom: clamp(26px, 3.4vw, 48px); }
.page-whysfsisce .wm__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: var(--h2-size); line-height: 1.08; letter-spacing: -.015em; color: var(--navy-900); }
.page-whysfsisce .wm__head h2 .heading__lead { display: block; margin: 0 0 .9em; font-size: .38em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--gold-deep); }
.page-whysfsisce .wm__head h2 .heading__lead::before { display: none; }
.page-whysfsisce .wm__photos { position: relative; margin-bottom: clamp(60px, 8vw, 120px); }
.page-whysfsisce .wm__wide { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 15px; box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .7); }
.page-whysfsisce .wm__wide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-whysfsisce .wm__inset { position: absolute; right: clamp(16px, 4vw, 56px); bottom: calc(-1 * clamp(40px, 6vw, 88px)); width: clamp(180px, 30%, 380px); margin: 0; padding: 6px; border-radius: 15px; background: #fff; box-shadow: 0 30px 56px -28px rgba(7, 31, 66, .7); }
.page-whysfsisce .wm__inset img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.page-whysfsisce .wm__cols { column-count: 2; column-gap: clamp(28px, 5vw, 80px); max-width: 62rem; }
.page-whysfsisce .wm__cols p { break-inside: avoid; margin: 0 0 1.2em; font-size: var(--p-size); line-height: 1.85; color: var(--body); }
.page-whysfsisce .wm__cols p:first-child { padding-left: 18px; border-left: 3px solid var(--gold); }
@media (max-width: 800px) {
    .page-whysfsisce .wm__wide { aspect-ratio: 4 / 3; }
    .page-whysfsisce .wm__inset { position: relative; right: auto; bottom: auto; width: 62%; margin: -44px 0 0 auto; }
    .page-whysfsisce .wm__photos { margin-bottom: 36px; }
    .page-whysfsisce .wm__cols { column-count: 1; }
}
/* Why SFS: text as a lead statement and a supporting paragraph */
.page-whysfsisce .wm__cols { column-count: auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start; max-width: none; padding-top: clamp(8px, 1vw, 16px); }
.page-whysfsisce .wm__cols p { break-inside: auto; margin: 0; }
.page-whysfsisce .wm__cols p:first-child { padding: 0; border: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 500; line-height: 1.5; letter-spacing: -.005em; color: var(--navy-900); }
.page-whysfsisce .wm__cols p:first-child::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: clamp(18px, 2vw, 28px); background: var(--gold); }
.page-whysfsisce .wm__cols p:nth-child(2) { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid rgba(11, 45, 91, .16); font-size: 1.02rem; line-height: 1.9; color: var(--body); }
@media (max-width: 900px) { .page-whysfsisce .wm__cols { grid-template-columns: minmax(0, 1fr); gap: 26px; } .page-whysfsisce .wm__cols p:nth-child(2) { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid rgba(11, 45, 91, .16); } }

/* Why SFS ICSE Koppal: photo bleeding off the left edge with the headline over it, content on the right */
.page-whysfsisce .wk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); width: 100vw; margin: 0 calc(50% - 50vw); overflow: hidden; background: #fff; }
.page-whysfsisce .wk__photo { position: relative; min-height: clamp(520px, 52vw, 760px); }
.page-whysfsisce .wk__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.page-whysfsisce .wk__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 31, 66, .15) 30%, rgba(7, 31, 66, .88) 100%); }
.page-whysfsisce .wk__title { position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--max)) / 2 + var(--gutter))); right: clamp(24px, 4vw, 56px); bottom: clamp(36px, 5vw, 72px); }
.page-whysfsisce .wk__tag { display: block; margin-bottom: 14px; font: italic 400 clamp(1rem, 1.3vw, 1.2rem)/1.2 var(--serif); color: var(--gold); }
.page-whysfsisce .wk__title h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; color: #fff; }
.page-whysfsisce .wk__title h2::after { content: "" !important; display: block !important; width: 56px; height: 3px; margin-top: 20px; background: var(--gold); }
.page-whysfsisce .wk__inset { position: absolute; z-index: 3; right: clamp(-96px, -5vw, -40px); top: clamp(36px, 5vw, 72px); width: clamp(190px, 22vw, 320px); margin: 0; padding: 6px; background: #fff; box-shadow: 0 30px 56px -28px rgba(7, 31, 66, .75); }
.page-whysfsisce .wk__inset img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.page-whysfsisce .wk__body { display: flex; flex-direction: column; justify-content: center; max-width: 42rem; padding: clamp(48px, 6vw, 96px) max(24px, calc((100vw - var(--max)) / 2 + var(--gutter))) clamp(48px, 6vw, 96px) clamp(56px, 7vw, 120px); }
.page-whysfsisce .wk__lead { margin: 0 0 clamp(26px, 3vw, 40px); font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.5; color: var(--navy-900); }
.page-whysfsisce .wk__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 36px); margin: 0 0 clamp(26px, 3vw, 40px); padding: 0; list-style: none; }
.page-whysfsisce .wk__points li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(11, 45, 91, .14); font: 600 .98rem/1.35 var(--sans); color: var(--navy-900); }
.page-whysfsisce .wk__points li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(11, 45, 91, .14); }
.page-whysfsisce .wk__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(212, 175, 55, .16); color: var(--gold-deep); font-size: 1rem; }
.page-whysfsisce .wk__text { margin: 0; font-size: var(--p-size); line-height: 1.85; color: var(--body); }

@media (max-width: 1000px) {
    .page-whysfsisce .wk { grid-template-columns: minmax(0, 1fr); }
    .page-whysfsisce .wk__photo { min-height: clamp(380px, 70vw, 520px); }
    .page-whysfsisce .wk__title { left: 24px; right: 24px; }
    .page-whysfsisce .wk__inset { display: none; }
    .page-whysfsisce .wk__body { max-width: none; padding: 40px 24px 56px; }
}
@media (max-width: 560px) { .page-whysfsisce .wk__points { grid-template-columns: minmax(0, 1fr); } .page-whysfsisce .wk__points li:nth-last-child(2) { border-bottom: 0; } }.page-whysfsisce .wk { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.page-whysfsisce .wk__body { max-width: none; padding-left: clamp(48px, 6vw, 96px); padding-right: max(24px, calc((100vw - var(--max)) / 2 + var(--gutter) - 24px)); }
.page-whysfsisce .wk__photo { min-height: clamp(520px, 46vw, 680px); }
@media (max-width: 1000px) { .page-whysfsisce .wk { grid-template-columns: minmax(0, 1fr); } .page-whysfsisce .wk__body { padding: 40px 24px 56px; } }

.page-whysfsisce .wk__lead { margin-bottom: clamp(22px, 2.6vw, 34px); }

/* Why SFS: headline at the top of the photo, the students photo at the bottom */
.page-whysfsisce .wk__photo::before { background: linear-gradient(180deg, rgba(7, 31, 66, .88) 0%, rgba(7, 31, 66, .25) 55%, rgba(7, 31, 66, .1) 100%); }
.page-whysfsisce .wk__title { top: clamp(36px, 5vw, 72px); bottom: auto; }
.page-whysfsisce .wk__inset { top: auto; bottom: clamp(36px, 5vw, 72px); }

/* Why SFS: both paragraphs share one style */
.page-whysfsisce .wk__lead { margin: 0 0 1.2em; font-family: var(--sans); font-size: var(--p-size); font-weight: 400; line-height: 1.85; letter-spacing: 0; color: var(--body); }

/* Why SFS: the photo is as tall as the text beside it */
.page-whysfsisce .wk__photo { min-height: clamp(440px, 34vw, 520px); }
.page-whysfsisce .wk__body { padding-top: clamp(40px, 4.4vw, 72px); padding-bottom: clamp(40px, 4.4vw, 72px); }
@media (max-width: 1000px) { .page-whysfsisce .wk__photo { min-height: clamp(380px, 70vw, 520px); } .page-whysfsisce .wk__body { padding: 40px 24px 56px; } }

/* Why SFS first on the page: flush under the banner, the quote card follows with space above it */
.inner:has(.page-whysfsisce) { padding-top: 0; overflow: clip; }
.page-whysfsisce .wk { margin-top: 0; }
.page-whysfsisce > .why:first-of-type { margin-top: clamp(40px, 5vw, 72px); }
.page-whysfsisce .wz--origin { margin-top: clamp(24px, 3vw, 48px); }.page-whysfsisce .wk + .why { margin-top: clamp(48px, 6vw, 88px); }

/* Why SFS page: quote card first, then the Why SFS section */
.page-whysfsisce .wk + .why { margin-top: 0; }
.page-whysfsisce > .why:first-child { margin-top: clamp(40px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 88px); }
/* Why SFS page order: quote card, founding band, Why SFS, closing quote */
.page-whysfsisce > .why:first-child { margin-bottom: 0; }
.page-whysfsisce .wz--origin { margin-top: clamp(24px, 3vw, 48px); }
.page-whysfsisce .wz--origin + .wk { margin-top: 0; }
/* Why SFS ICSE Koppal page: new quote band, founding band and closing quote */
.page-whysfsisce .qb, .page-whysfsisce .fd, .page-whysfsisce .cq { width: 100vw; margin: 0 calc(50% - 50vw); position: relative; overflow: hidden; }

/* 1. quote band */
.page-whysfsisce .qb { margin-top: 0; padding: clamp(56px, 7vw, 104px) 0; background: radial-gradient(circle at 8% 0%, rgba(212, 175, 55, .2), transparent 40%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .32), transparent 44%), var(--navy-950); }
.page-whysfsisce .qb__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px); align-items: center; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-whysfsisce .qb__text { position: relative; padding-left: clamp(0px, 3vw, 44px); }
.page-whysfsisce .qb__text::before { content: "\201C"; position: absolute; left: -6px; top: -.55em; font: 700 clamp(7rem, 14vw, 12rem)/1 var(--serif); color: rgba(212, 175, 55, .3); pointer-events: none; }
.page-whysfsisce .qb blockquote { position: relative; margin: 0; padding: 0; border: 0; font: italic 500 clamp(1.8rem, 3.8vw, 3.4rem)/1.25 var(--serif); letter-spacing: -.01em; color: #fff; }
.page-whysfsisce .qb cite { display: flex; align-items: center; gap: 16px; margin-top: clamp(22px, 2.6vw, 36px); font: 800 .82rem/1 var(--sans); font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.page-whysfsisce .qb cite::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
.page-whysfsisce .qb__photo { position: relative; margin: 0 18px 18px 0; aspect-ratio: 4 / 4.6; }
.page-whysfsisce .qb__photo::before { content: ""; position: absolute; z-index: 0; inset: 18px -18px -18px 18px; border: 1px solid rgba(212, 175, 55, .8); }
.page-whysfsisce .qb__photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 2px; filter: grayscale(.15) contrast(1.02); box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .8); }

/* 2. founding band */
.page-whysfsisce .fd { padding: clamp(56px, 7vw, 110px) 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; text-align: center; }
.page-whysfsisce .fd__inner { width: 100%; max-width: 54rem; margin-inline: auto; padding-inline: var(--gutter); }
.page-whysfsisce .fd__year { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.page-whysfsisce .fd__line { flex: 1; max-width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.page-whysfsisce .fd__line:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.page-whysfsisce .fd__year strong { font: 700 clamp(4.2rem, 11vw, 8.5rem)/1 var(--serif); letter-spacing: -.02em; color: var(--navy-900); }
.page-whysfsisce .fd__label { margin: 8px 0 clamp(22px, 3vw, 40px); font: italic 400 1.15rem/1.2 var(--serif); color: var(--gold-deep); }
.page-whysfsisce .fd__text { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.95; color: var(--body); }

/* 3. closing quote */
.page-whysfsisce .cq { padding: clamp(60px, 7vw, 110px) 0; background: #faf9f4; }
.page-whysfsisce .cq::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .7), transparent); }
.page-whysfsisce .cq__inner { width: 100%; max-width: 62rem; margin-inline: auto; padding-inline: var(--gutter); }
.page-whysfsisce .cq__quote { position: relative; margin: 0; padding: 0; border: 0; text-align: center; font: italic 500 clamp(1.7rem, 3.4vw, 3rem)/1.35 var(--serif); color: var(--navy-900); }
.page-whysfsisce .cq__quote::before { content: "\201C"; display: block; height: .45em; margin-bottom: .15em; font: 700 clamp(5rem, 10vw, 8rem)/1 var(--serif); color: rgba(212, 175, 55, .6); }
.page-whysfsisce .cq__quote::after { content: ""; display: block; width: 56px; height: 3px; margin: clamp(22px, 2.6vw, 34px) auto 0; background: var(--gold); }

@media (max-width: 900px) {
    .page-whysfsisce .qb__inner { grid-template-columns: minmax(0, 1fr); }
    .page-whysfsisce .qb__photo { max-width: 420px; }
}
.page-whysfsisce > .why:first-child { margin-top: clamp(40px, 5vw, 72px); margin-bottom: 0; }

/* Leadership: Administration cards are the highlighted ones (gold edge, framed portrait, bigger name); Staff Council keeps the simpler card */
.page-leadership .ld--admin .people { gap: clamp(18px, 2.4vw, 34px); }
.page-leadership .ld--admin .people .person { position: relative; padding: 12px 12px 0; border-radius: 15px; border: 1px solid rgba(212, 175, 55, .55); border-top: 4px solid var(--gold); background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .22), transparent 60%), linear-gradient(170deg, #12326a, #071f42); box-shadow: 0 40px 70px -34px rgba(7, 31, 66, .9), 0 0 0 1px rgba(7, 31, 66, .08); }
.page-leadership .ld--admin .people .person:hover { transform: translateY(-10px); box-shadow: 0 50px 80px -30px rgba(7, 31, 66, .95), 0 0 0 1px rgba(212, 175, 55, .7); }
.page-leadership .ld--admin .people .person img { aspect-ratio: 3 / 3.7; border-radius: 4px; box-shadow: 0 0 0 1px rgba(212, 175, 55, .7); }
.page-leadership .ld--admin .people .person figcaption { align-items: center; text-align: center; gap: 10px; padding: 24px 10px 28px; background: none; }
.page-leadership .ld--admin .people .person figcaption::before { display: none; }
.page-leadership .ld--admin .people .person figcaption span { align-self: center; padding: 6px 14px; border-radius: 99px; background: rgba(212, 175, 55, .18); font-size: .72rem; letter-spacing: .16em; color: var(--gold); }
.page-leadership .ld--admin .people .person figcaption strong { font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 500; line-height: 1.15; color: #fff; }
.page-leadership .ld--admin .people .person figcaption strong::after { margin: 14px auto 0; width: 44px; }
.page-leadership .ld--admin .people .person:hover figcaption strong::after { width: 84px; }
.page-leadership .ld--admin .people .person::after { content: ""; position: absolute; right: 18px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .3); }

/* Staff Council: quieter, smaller names */
.page-leadership .ld--council .people .person figcaption strong { font-size: 1.1rem; }

/* Staff Council: name first, then the designation */
.page-leadership .ld--council .people .person figcaption span { order: 0; margin-top: 2px; }
.page-leadership .ld--council .people .person figcaption strong::after { margin-top: 10px; margin-bottom: 4px; }

/* Leadership: light gray behind every portrait */
.page-leadership .ld .people .person img, .page-leadership .ld--admin .people .person img, .page-leadership .ld--council .people .person img { background-color: #e6eaf2; }

/* New diary pages: tagline in gold */
.page-houses-council .ip__side h2 .heading__lead, .page-parents-corner .ip__side h2 .heading__lead, .page-school-timings .ip__side h2 .heading__lead, .page-uniform .ip__side h2 .heading__lead, .page-desalite-profile .ip__side h2 .heading__lead, .page-history-toppers .ip__side h2 .heading__lead, .page-prayers-songs .ip__side h2 .heading__lead, .page-downloads .ip__side h2 .heading__lead { color: var(--gold); margin-bottom: .9em; }

/* Uniform table: seven columns need the full width and can scroll on small screens */
.page-uniform .ip__main table { display: block; max-width: none; overflow-x: auto; }
.page-uniform .ip__main table thead, .page-uniform .ip__main table tbody { display: table; width: 100%; min-width: 900px; }

/* Uniform page: class and boys/girls pickers, one card per day */
.page-uniform .uni__bar { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; margin-bottom: clamp(18px, 2.4vw, 30px); padding: clamp(12px, 1.4vw, 18px); border-radius: 15px; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .18), transparent 44%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.page-uniform .uni__group, .page-uniform .uni__who { display: flex; flex-wrap: wrap; gap: 8px; }
.page-uniform .uni__pill { padding: 12px 20px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; background: transparent; font: 700 .9rem/1 var(--sans); color: rgba(255, 255, 255, .88); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.page-uniform .uni__pill:hover { border-color: var(--gold); color: #fff; }
.page-uniform .uni__pill.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.page-uniform .uni__days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.page-uniform .uni__day { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .1); border-top: 4px solid var(--gold); box-shadow: 0 22px 40px -32px rgba(7, 31, 66, .55); animation: uniIn .4s var(--ease) both; }
.page-uniform .uni__day strong { font: 600 1.25rem/1.2 var(--serif); color: var(--navy-900); }
.page-uniform .uni__day span { font-size: var(--p-size); line-height: 1.7; color: var(--body); }
.page-uniform .uni__day.is-off { background: #f2f4f8; border-top-color: rgba(11, 45, 91, .25); box-shadow: none; }
.page-uniform .uni__day.is-off span { font-style: italic; color: rgba(11, 45, 91, .55); }
.page-uniform .uni__day.is-today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, .6), 0 26px 46px -30px rgba(7, 31, 66, .6); }
.page-uniform .uni__day em { position: absolute; right: 14px; top: 14px; padding: 5px 12px; border-radius: 99px; background: var(--gold); font: 800 .7rem/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-950); }
@keyframes uniIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .page-uniform .uni__days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .page-uniform .uni__days { grid-template-columns: minmax(0, 1fr); } .page-uniform .uni__bar { flex-direction: column; align-items: stretch; } }
/* School timings: other timings as cards, assembly as a week of tiles, daily schedule as a timeline */
.page-school-timings .tm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.page-school-timings .tm-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.6vw, 34px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 24px 44px -32px rgba(7, 31, 66, .55); }
.page-school-timings .tm-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--navy-900); color: var(--gold); font-size: 1.2rem; box-shadow: 0 0 0 6px rgba(212, 175, 55, .22); }
.page-school-timings .tm-card strong { font: 600 1.3rem/1.2 var(--serif); color: var(--navy-900); }
.page-school-timings .tm-card span:last-child { font-size: var(--p-size); line-height: 1.7; color: var(--body); }

.page-school-timings .tm-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.page-school-timings .tm-day { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); border-radius: 15px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-top: 4px solid var(--gold); }
.page-school-timings .tm-day strong { font: 600 1.25rem/1.2 var(--serif); color: #fff; }
.page-school-timings .tm-day span { font-size: var(--p-size); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.page-school-timings .tm-day.is-indoor { border-top-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.page-school-timings .tm-day.is-indoor span { color: rgba(255, 255, 255, .7); }
.page-school-timings .tm-day.is-today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, .55); }
.page-school-timings .tm-day em { position: absolute; right: 14px; top: 14px; padding: 5px 12px; border-radius: 99px; background: var(--gold); font: 800 .7rem/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-950); }

.page-school-timings .tm-line { position: relative; margin: 0; padding: 0; list-style: none; max-width: 40rem; }
.page-school-timings .tm-line::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .25)); }
.page-school-timings .tm-line li { position: relative; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 20px; margin: 0; padding: 14px 0 14px 38px; }
.page-school-timings .tm-line li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.page-school-timings .tm-line time { font: 700 .98rem/1.4 var(--sans); color: var(--gold-deep); }
.page-school-timings .tm-line span { font: 500 1.05rem/1.4 var(--serif); color: var(--navy-900); }

@media (max-width: 900px) { .page-school-timings .tm-cards, .page-school-timings .tm-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .page-school-timings .tm-cards, .page-school-timings .tm-week { grid-template-columns: minmax(0, 1fr); } .page-school-timings .tm-line li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* Daily schedule: a centre line with the steps alternating left and right */
.page-school-timings .tm-line { position: relative; max-width: 62rem; margin: 0 auto; padding: 8px 0; list-style: none; counter-reset: none; }
.page-school-timings .tm-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent); }
.page-school-timings .tm-line > li { position: relative; display: block; width: 50%; margin: 0; padding: 0 clamp(28px, 4vw, 52px) clamp(18px, 2.4vw, 30px) 0; border: 0; background: none; text-align: right; }
.page-school-timings .tm-line > li:nth-child(even) { margin-left: 50%; padding: 0 0 clamp(18px, 2.4vw, 30px) clamp(28px, 4vw, 52px); text-align: left; }
.page-school-timings .tm-line > li::before { content: ""; position: absolute; right: -9px; top: 22px; left: auto; width: 18px; height: 18px; margin: 0; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 5px rgba(212, 175, 55, .2); z-index: 2; }
.page-school-timings .tm-line > li:nth-child(even)::before { right: auto; left: -9px; }
.page-school-timings .tm-line > li::after { content: ""; position: absolute; top: 30px; right: 0; width: clamp(28px, 4vw, 52px); height: 2px; background: rgba(212, 175, 55, .6); }
.page-school-timings .tm-line > li:nth-child(even)::after { right: auto; left: 0; }
.page-school-timings .tm-line__card { display: inline-flex; flex-direction: column; gap: 6px; max-width: 100%; padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2.2vw, 28px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 3px solid var(--gold); box-shadow: 0 22px 40px -30px rgba(7, 31, 66, .55); }
.page-school-timings .tm-line time { display: block; font: 700 .86rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.page-school-timings .tm-line__card span { display: block; font: 500 clamp(1.05rem, 1.4vw, 1.25rem)/1.4 var(--serif); color: var(--navy-900); }
@media (max-width: 700px) {
    .page-school-timings .tm-line::before { left: 11px; margin-left: 0; }
    .page-school-timings .tm-line > li, .page-school-timings .tm-line > li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 18px 44px; text-align: left; }
    .page-school-timings .tm-line > li::before, .page-school-timings .tm-line > li:nth-child(even)::before { left: 2px; right: auto; }
    .page-school-timings .tm-line > li::after, .page-school-timings .tm-line > li:nth-child(even)::after { left: 20px; right: auto; width: 24px; }
}.page-school-timings .tm-line__card { display: flex; width: fit-content; max-width: 100%; margin-left: auto; box-sizing: border-box; text-align: right; }
.page-school-timings .tm-line > li:nth-child(even) .tm-line__card { margin-left: 0; margin-right: auto; text-align: left; }
.page-school-timings .tm-line__card span { overflow-wrap: break-word; min-width: 0; }
@media (max-width: 700px) { .page-school-timings .tm-line__card, .page-school-timings .tm-line > li:nth-child(even) .tm-line__card { margin: 0; text-align: left; } }

/* Parents' corner */
.page-parents-corner .pc-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); margin: clamp(18px, 2vw, 28px) 0 0; padding: 0; list-style: none; counter-reset: none; }
.page-parents-corner .pc-rule { position: relative; display: block; margin: 0; padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px) clamp(70px, 6vw, 88px); overflow: hidden; border: 1px solid rgba(11, 45, 91, .08); border-left: 4px solid var(--gold); border-radius: 15px; background: #fff; box-shadow: 0 18px 34px -28px rgba(7, 31, 66, .5); transition: transform .35s var(--ease), box-shadow .35s; }
.page-parents-corner .pc-rule:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(7, 31, 66, .55); }
.page-parents-corner .pc-rule::before, .page-parents-corner .pc-rule::after { display: none !important; }
.page-parents-corner .pc-rule__no { position: absolute; left: clamp(14px, 1.6vw, 22px); top: 12px; font: 700 clamp(2.2rem, 3.4vw, 3rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px rgba(212, 175, 55, .85); }
.page-parents-corner .pc-rule p { margin: 0; font-size: .98rem; line-height: 1.75; color: var(--body); }

.page-parents-corner .pc-meet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(14px, 1.6vw, 22px); }
.page-parents-corner .pc-meet__card { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.4vw, 32px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 24px 44px -32px rgba(7, 31, 66, .55); }
.page-parents-corner .pc-meet__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--navy-900); color: var(--gold); font-size: 1.25rem; box-shadow: 0 0 0 6px rgba(212, 175, 55, .22); }
.page-parents-corner .pc-meet__card strong { font: 600 1.3rem/1.2 var(--serif); color: var(--navy-900); }
.page-parents-corner .pc-meet__time { font: 700 1.02rem/1.5 var(--sans); color: var(--gold-deep); }
.page-parents-corner .pc-meet__card em { font-size: .9rem; font-style: normal; color: rgba(11, 45, 91, .6); }
.page-parents-corner .pc-note { display: flex; gap: 16px; align-items: flex-start; margin-top: clamp(16px, 2vw, 26px); padding: clamp(18px, 2.2vw, 28px); border-radius: 15px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.page-parents-corner .pc-note__icon { flex: none; color: var(--gold); font-size: 1.6rem; line-height: 1.2; }
.page-parents-corner .pc-note p { margin: 0; font-size: var(--p-size); line-height: 1.75; color: rgba(255, 255, 255, .92); }

.page-parents-corner .pc-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin: clamp(16px, 2vw, 26px) 0; }
.page-parents-corner .pc-day { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(20px, 2.4vw, 30px); border-radius: 15px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.page-parents-corner .pc-day__cal { display: flex; flex-direction: column; align-items: center; min-width: 120px; padding: 12px 22px 14px; border-radius: 15px; background: #fff; border-top: 8px solid var(--gold); box-shadow: 0 20px 36px -22px rgba(0, 0, 0, .6); }
.page-parents-corner .pc-day__month { font: 800 .85rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.page-parents-corner .pc-day__cal strong { font: 700 2.6rem/1.1 var(--serif); color: var(--navy-900); }
.page-parents-corner .pc-day__year { font: 600 .85rem/1 var(--sans); color: rgba(11, 45, 91, .6); }
.page-parents-corner .pc-day p { margin: 0; font: 500 1.05rem/1.4 var(--serif); color: #fff; }
.page-parents-corner .pc-day em { font-size: .85rem; font-style: normal; color: rgba(255, 255, 255, .65); }
.page-parents-corner .ip--p2 .ip__main p a { color: var(--gold); text-decoration: underline; }

@media (max-width: 900px) { .page-parents-corner .pc-rules { grid-template-columns: minmax(0, 1fr); } .page-parents-corner .pc-meet, .page-parents-corner .pc-days { grid-template-columns: minmax(0, 1fr); } }
/* Parent Responsibilities: one white checklist panel, two columns, gold check badges and hairline dividers */
.page-parents-corner .pc-rules { gap: 0 clamp(28px, 4vw, 64px); padding: clamp(8px, 1.4vw, 18px) clamp(20px, 3vw, 44px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 34px 60px -42px rgba(7, 31, 66, .6); }
.page-parents-corner .pc-rule { padding: 20px 0 20px 54px; border: 0; border-bottom: 1px solid rgba(11, 45, 91, .1); border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.page-parents-corner .pc-rule:hover { transform: none; box-shadow: none; }
.page-parents-corner .pc-rule:nth-last-child(-n+2) { border-bottom: 0; }
.page-parents-corner .pc-rule__no { display: none; }
.page-parents-corner .pc-rule::before { content: "\f00c" !important; display: grid !important; place-items: center; position: absolute; left: 0; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900); font: 14px/1 FontAwesome; color: var(--gold); box-shadow: 0 0 0 5px rgba(212, 175, 55, .2); }
.page-parents-corner .pc-rule p { font-size: 1rem; line-height: 1.75; }
@media (max-width: 900px) { .page-parents-corner .pc-rule:nth-last-child(2) { border-bottom: 1px solid rgba(11, 45, 91, .1); } }

/* Parent Responsibilities: four points per page */
.page-parents-corner .pc-rule[hidden] { display: none; }
.page-parents-corner .pc-rule { border-bottom: 1px solid rgba(11, 45, 91, .1) !important; }
.page-parents-corner .pc-rule.is-last { border-bottom: 0 !important; }
.page-parents-corner .pc-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-parents-corner .pc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; }
.page-parents-corner .pc-pager__btn { padding: 12px 22px; border: 1px solid rgba(11, 45, 91, .18); border-radius: 99px; background: #fff; font: 700 .88rem/1 var(--sans); color: var(--navy-900); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.page-parents-corner .pc-pager__btn:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.page-parents-corner .pc-pager__dots { display: flex; gap: 8px; }
.page-parents-corner .pc-pager__dot { width: 38px; height: 38px; border: 1px solid rgba(11, 45, 91, .18); border-radius: 50%; background: #fff; font: 700 .85rem/1 var(--sans); color: var(--navy-900); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.page-parents-corner .pc-pager__dot.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.page-parents-corner .pc-pager__count { flex: 1 1 100%; text-align: center; font: 500 .85rem/1 var(--sans); color: rgba(11, 45, 91, .6); }
@media (max-width: 900px) { .page-parents-corner .pc-rules { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 700px) { .page-parents-corner .pc-pager__count { flex: none; } }
/* Parents' corner, Parent Responsibilities: the whole section redesigned (navy panel with headline and photo on the left, intro and paged checklist on the right) */
@media (min-width: 901px) {
    .page-parents-corner .ip--i1 { background: #faf9f4; }
    .page-parents-corner .ip--i1 .ip__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr; grid-template-areas: "side main" "media main"; gap: 0 clamp(28px, 4vw, 64px); align-items: start; }
    .page-parents-corner .ip--i1 .ip__side { grid-area: side; position: relative; z-index: 1; margin: 0; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 36px) 20px; border: 0; border-radius: 15px 15px 0 0; background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .22), transparent 50%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); box-shadow: none; }
    .page-parents-corner .ip--i1 .ip__side h2 { color: #fff; }
    .page-parents-corner .ip--i1 .ip__media { grid-area: media; position: relative; margin: 0; min-height: clamp(260px, 26vw, 360px); padding: 0 clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px); border-radius: 0 0 15px 15px; background: linear-gradient(160deg, var(--navy-950), var(--navy-950)); box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .85); }
    .page-parents-corner .ip--i1 .ip__media::before { display: none; }
    .page-parents-corner .ip--i1 .ip__media img { position: absolute; inset: 0 clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px); width: calc(100% - 2 * clamp(24px, 2.6vw, 36px)); height: calc(100% - clamp(24px, 2.6vw, 36px)); border-radius: 4px; box-shadow: 0 0 0 1px rgba(212, 175, 55, .6); }
    .page-parents-corner .ip--i1 .ip__main { grid-area: main; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; align-self: start; }
}
@media (min-width: 901px) { .page-parents-corner .ip--i1 .ip__side h2 { font-size: clamp(1.9rem, 2.7vw, 2.5rem); overflow-wrap: anywhere; hyphens: auto; } }

/* Parent Responsibilities: like the homepage Academic Achievements band. Headline, intro and photo stay in view on the left while all 16 points scroll on the right. */
.page-parents-corner .ip--i1 { background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .18), transparent 40%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .3), transparent 42%), var(--navy-950); }
.page-parents-corner .ip--i1 .ip__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "side main"; grid-template-rows: auto; gap: clamp(28px, 5vw, 80px); align-items: start; }
.page-parents-corner .ip--i1 .ip__side { grid-area: side; position: sticky; top: 110px; align-self: start; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.page-parents-corner .ip--i1 .ip__side h2 { color: #fff; }
.page-parents-corner .ip--i1 .ip__side > p { margin: clamp(18px, 2vw, 26px) 0 0; font-size: var(--p-size); line-height: 1.85; color: rgba(255, 255, 255, .88); }
.page-parents-corner .ip--i1 .ip__side .ip__media { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 3 / 2; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 0; border-radius: 15px; background: none; overflow: hidden; box-shadow: 0 30px 56px -30px rgba(0, 0, 0, .7); }
.page-parents-corner .ip--i1 .ip__side .ip__media::before { display: none; }
.page-parents-corner .ip--i1 .ip__side .ip__media img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; box-shadow: none; }
.page-parents-corner .ip--i1 .ip__main { grid-area: main; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.page-parents-corner .ip--i1 .pc-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.page-parents-corner .ip--i1 .pc-rule { padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 24px) clamp(18px, 2vw, 26px) 66px; border: 0 !important; border-radius: 15px; background: #fff; box-shadow: 0 24px 44px -30px rgba(0, 0, 0, .6); }
.page-parents-corner .ip--i1 .pc-rule::before { left: 18px; top: clamp(18px, 2vw, 26px); }
.page-parents-corner .ip--i1 .pc-rule:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .7); }
@media (max-width: 900px) {
    .page-parents-corner .ip--i1 .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
    .page-parents-corner .ip--i1 .ip__side { position: static; }
    .page-parents-corner .ip--i1 .pc-rules { grid-template-columns: minmax(0, 1fr); }
}.page-parents-corner .ip--i1 { overflow: visible; }

/* Parent Responsibilities: no background colour, dark text */
.page-parents-corner .ip--i1 { background: #fff; }
.page-parents-corner .ip--i1 .ip__side h2 { color: var(--navy-900); }
.page-parents-corner .ip--i1 .ip__side > p { color: var(--body); }
.page-parents-corner .ip--i1 .pc-rule { border: 1px solid rgba(11, 45, 91, .1) !important; border-left: 4px solid var(--gold) !important; box-shadow: 0 20px 38px -30px rgba(7, 31, 66, .5); }
.page-parents-corner .ip--i1 .ip__side .ip__media { box-shadow: 0 30px 56px -34px rgba(7, 31, 66, .6); }
.page-parents-corner .ip--i1 .ip__side .ip__media { display: none; }

/* Profile of a DeSalite */
.page-desalite-profile .ip { background: #faf9f4; }
.page-desalite-profile .ip__inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; gap: clamp(22px, 3vw, 40px); }
.page-desalite-profile .ip__side { grid-area: side; position: static; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.page-desalite-profile .ip__main { grid-area: main; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.page-desalite-profile .ds-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; margin-bottom: clamp(18px, 2.4vw, 30px); overflow: hidden; border-radius: 15px; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .2), transparent 44%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: 0 40px 70px -44px rgba(7, 31, 66, .85); }
.page-desalite-profile .ds-hero__text { display: flex; align-items: center; padding: clamp(26px, 3.6vw, 56px); }
.page-desalite-profile .ds-hero__text p { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.55; color: #fff; }
.page-desalite-profile .ds-hero__text p::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: 20px; background: var(--gold); }
.page-desalite-profile .ds-hero .ip__media { position: relative; display: block; min-height: 260px; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; aspect-ratio: auto; }
.page-desalite-profile .ds-hero .ip__media::before { display: none; }
.page-desalite-profile .ds-hero .ip__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.page-desalite-profile .ds-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.page-desalite-profile .ds-tile { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px 18px 22px; border: 1px solid rgba(11, 45, 91, .08); border-radius: 15px; background: #fff; box-shadow: 0 18px 32px -28px rgba(7, 31, 66, .55); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.page-desalite-profile .ds-tile::before, .page-desalite-profile .ds-tile::after { display: none !important; }
.page-desalite-profile .ds-tile:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, .8); box-shadow: 0 28px 44px -26px rgba(7, 31, 66, .6); }
.page-desalite-profile .ds-tile__no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); font: 700 .88rem/1 var(--sans); color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .2); }
.page-desalite-profile .ds-tile p { margin: 0; font: 500 1rem/1.5 var(--serif); color: var(--navy-900); }
@media (max-width: 1100px) { .page-desalite-profile .ds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .page-desalite-profile .ds-hero { grid-template-columns: minmax(0, 1fr); } .page-desalite-profile .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .page-desalite-profile .ds-grid { grid-template-columns: minmax(0, 1fr); } }.page-desalite-profile .ds-hero .ds-hero__text { grid-column: 1; grid-row: 1; }
.page-desalite-profile .ds-hero .ip__media { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
@media (max-width: 800px) { .page-desalite-profile .ds-hero .ip__media { grid-column: 1; grid-row: 2; min-height: 240px; } }
.page-desalite-profile .ds-grid { width: 100%; max-width: none; }

.page-desalite-profile .ds-tile__no { font-size: 1.05rem; }
.page-desalite-profile .ds-tile__no .fa { line-height: 1; }

/* History and Toppers */
.page-history-toppers .hs-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(16px, 2vw, 28px); }
.page-history-toppers .hs-col { padding: clamp(20px, 2.2vw, 30px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 24px 44px -32px rgba(7, 31, 66, .55); }
.page-history-toppers .hs-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(11, 45, 91, .12); }
.page-history-toppers .hs-col__head h3 { margin: 0; font: 600 1.45rem/1.15 var(--serif); color: var(--navy-900); }
.page-history-toppers .hs-col__head span { font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.page-history-toppers .hs-list { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.page-history-toppers .hs-list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .2)); }
.page-history-toppers .hs-list li { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 0 8px 32px; }
.page-history-toppers .hs-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.page-history-toppers .hs-list li::after { display: none !important; }
.page-history-toppers .hs-list time { font: 800 .74rem/1.2 var(--sans); letter-spacing: .14em; color: var(--gold-deep); }
.page-history-toppers .hs-list strong { font: 500 1.05rem/1.35 var(--serif); color: var(--navy-900); }

.page-history-toppers .tp-board { display: grid; gap: 10px; margin: clamp(16px, 2vw, 28px) 0 0; padding: 0; list-style: none; counter-reset: none; }
.page-history-toppers .tp-row { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0; padding: 14px 20px; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); box-shadow: 0 16px 30px -26px rgba(7, 31, 66, .5); }
.page-history-toppers .tp-row::before, .page-history-toppers .tp-row::after { display: none !important; }
.page-history-toppers .tp-row__year { font: 700 1.05rem/1 var(--serif); color: var(--gold-deep); }
.page-history-toppers .tp-row__who { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-history-toppers .tp-row__who strong { font: 500 1.08rem/1.3 var(--serif); color: var(--navy-900); }
.page-history-toppers .tp-row__bar { display: block; height: 6px; overflow: hidden; border-radius: 15px; background: rgba(11, 45, 91, .08); }
.page-history-toppers .tp-row__bar b { display: block; width: var(--w); height: 100%; border-radius: 15px; background: linear-gradient(90deg, var(--navy-800), var(--navy-700)); }
.page-history-toppers .tp-row__pct { font: 700 1.15rem/1 var(--sans); color: var(--navy-900); }
.page-history-toppers .tp-row.is-top { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-color: transparent; }
.page-history-toppers .tp-row.is-top .tp-row__year { color: var(--gold); }
.page-history-toppers .tp-row.is-top .tp-row__who strong, .page-history-toppers .tp-row.is-top .tp-row__pct { color: #fff; }
.page-history-toppers .tp-row.is-top .tp-row__bar { background: rgba(255, 255, 255, .15); }
.page-history-toppers .tp-row.is-top .tp-row__bar b { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.page-history-toppers .tp-row em { position: absolute; right: 20px; top: -10px; padding: 5px 12px; border-radius: 99px; background: var(--gold); font: 800 .68rem/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-950); }
@media (max-width: 1000px) { .page-history-toppers .hs-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .page-history-toppers .tp-row { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; } }
/* History and Toppers without the photo: compact timelines and a compact toppers grid */
.page-history-toppers .ip { padding-block: clamp(40px, 5vw, 72px); }
.page-history-toppers .hs-cols { margin-top: 0; }
.page-history-toppers .hs-list li { padding-block: 6px; }
.page-history-toppers .hs-list li::before { top: 11px; }
.page-history-toppers .tp-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); margin-top: 0; }
.page-history-toppers .tp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "year pct" "who who"; gap: 8px 12px; padding: 18px 18px 16px; border-top: 3px solid var(--gold); }
.page-history-toppers .tp-row__year { grid-area: year; font-size: .9rem; letter-spacing: .12em; }
.page-history-toppers .tp-row__pct { grid-area: pct; font-size: 1.35rem; }
.page-history-toppers .tp-row__who { grid-area: who; gap: 10px; }
.page-history-toppers .tp-row__who strong { font-size: 1.05rem; }
.page-history-toppers .tp-row em { right: 14px; top: -11px; }
@media (max-width: 1000px) { .page-history-toppers .tp-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .page-history-toppers .tp-board { grid-template-columns: minmax(0, 1fr); } }.page-history-toppers .ip__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.page-history-toppers .ip__side { position: static; }
.page-history-toppers .ip__main { max-width: none; }
.page-history-toppers .ip--p2 .tp-row.is-top { background: var(--gold); border-color: var(--gold); }
.page-history-toppers .ip--p2 .tp-row.is-top .tp-row__year, .page-history-toppers .ip--p2 .tp-row.is-top .tp-row__who strong, .page-history-toppers .ip--p2 .tp-row.is-top .tp-row__pct { color: var(--navy-950); }
.page-history-toppers .ip--p2 .tp-row.is-top .tp-row__bar { background: rgba(7, 31, 66, .18); }
.page-history-toppers .ip--p2 .tp-row.is-top .tp-row__bar b { background: var(--navy-900); }
.page-history-toppers .ip--p2 .tp-row.is-top em { background: var(--navy-950); color: var(--gold); }

/* Our Vision, Mission & Motto: four full-width bands */
.inner:has(.page-vision-mission) { padding-top: 0; overflow: clip; }
.page-vision-mission .vm-hero, .page-vision-mission .vm-mission, .page-vision-mission .vm-motto, .page-vision-mission .vm-objectives { position: relative; width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(56px, 7vw, 108px) max(24px, calc((100vw - var(--max)) / 2 + var(--gutter))); border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
.page-vision-mission .vm-hero h3, .page-vision-mission .vm-mission h3, .page-vision-mission .vm-motto h3, .page-vision-mission .vm-objectives h3 { margin: 0 0 clamp(20px, 2.4vw, 34px); }

/* 1. vision: navy, centered, large serif statement */
.page-vision-mission .vm-hero { text-align: center; background: radial-gradient(circle at 12% 0%, rgba(212, 175, 55, .2), transparent 40%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .35), transparent 44%), var(--navy-950); }
.page-vision-mission .vm-hero::before { content: "\201C"; position: absolute; left: 50%; top: clamp(8px, 2vw, 28px); transform: translateX(-50%); font: 700 clamp(8rem, 16vw, 13rem)/1 var(--serif); color: rgba(212, 175, 55, .16); pointer-events: none; }
.page-vision-mission .vm-hero h3 { position: relative; color: #fff; }
.page-vision-mission .vm-hero p { position: relative; max-width: 44rem; margin: 0 auto; font: 500 clamp(1.3rem, 2.4vw, 2.1rem)/1.55 var(--serif); color: rgba(255, 255, 255, .95); }
.page-vision-mission .vm-hero p::after { content: ""; display: block; width: 64px; height: 4px; margin: clamp(24px, 3vw, 40px) auto 0; border-radius: 4px; background: var(--gold); }
.page-vision-mission .vm-hero::after { display: none; }

/* 2. mission: pale band, numbered points in two columns, closing points as gold-edged tiles */
.page-vision-mission .vm-mission { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-vision-mission .vm-mission h3 { text-align: left; }
.page-vision-mission .vm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; counter-reset: vm; }
.page-vision-mission .vm-steps li { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 20px; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-left: 4px solid var(--gold); box-shadow: 0 16px 30px -26px rgba(7, 31, 66, .5); font: 500 1rem/1.5 var(--sans); color: var(--navy-900); counter-increment: vm; }
.page-vision-mission .vm-steps li::before { content: counter(vm, decimal-leading-zero); position: static; flex: none; width: auto; height: auto; background: none; font: 700 1.7rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px var(--gold-deep); }
.page-vision-mission .vm-become { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: clamp(22px, 2.6vw, 36px) 0 0; padding: 0; list-style: none; }
.page-vision-mission .vm-become li { margin: 0; padding: clamp(18px, 2vw, 28px); border-radius: 15px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-top: 4px solid var(--gold); text-align: center; font: 700 .86rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.page-vision-mission .vm-become li::before, .page-vision-mission .vm-become li::after { display: none; }

/* 3. motto: warm band, the motto as a large centred quote */
.page-vision-mission .vm-motto { background: #faf9f4; text-align: center; }
.page-vision-mission .vm-motto::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .7), transparent); }
.page-vision-mission .vm-motto__body { max-width: 50rem; margin: 0 auto; }
.page-vision-mission .vm-motto__quote { margin: 0 0 clamp(18px, 2.4vw, 30px); font: italic 500 clamp(1.9rem, 4vw, 3.4rem)/1.2 var(--serif); letter-spacing: -.01em; color: var(--navy-900); }
.page-vision-mission .vm-motto__quote span { display: block; margin-bottom: 14px; font: 800 .8rem/1 var(--sans); font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.page-vision-mission .vm-motto__body p:not(.vm-motto__quote) { margin: 0; font-size: var(--p-size); line-height: 1.85; color: var(--body); }

/* 4. objectives: white band, centred reading column */
.page-vision-mission .vm-objectives { background: #fff; text-align: center; }
.page-vision-mission .vm-objectives p { max-width: 46rem; margin: 0 auto; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.95; color: var(--body); }
.page-vision-mission .vm-objectives p::after { content: ""; display: block; width: 56px; height: 3px; margin: clamp(22px, 2.6vw, 34px) auto 0; background: var(--gold); }

@media (max-width: 900px) { .page-vision-mission .vm-steps, .page-vision-mission .vm-become { grid-template-columns: minmax(0, 1fr); } }
/* Vision, mission and motto as tabs */
.page-vision-mission .vmt { position: relative; width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(48px, 6vw, 96px) 0; overflow: hidden; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .2), transparent 42%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .35), transparent 44%), var(--navy-950); }
.page-vision-mission .vmt__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-vision-mission .vmt__nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 8px; }
.page-vision-mission .vmt__tab { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; row-gap: 2px; width: 100%; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 15px; background: rgba(255, 255, 255, .05); text-align: left; cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.page-vision-mission .vmt__tab:hover { background: rgba(255, 255, 255, .1); }
.page-vision-mission .vmt__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.page-vision-mission .vmt__no { grid-row: 1 / 3; font: 700 1.9rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px var(--gold); transition: color .3s; }
.page-vision-mission .vmt__name { font: 600 1.25rem/1.2 var(--serif); color: #fff; }
.page-vision-mission .vmt__tab em { font: italic 400 .88rem/1.2 var(--serif); color: var(--gold); }
.page-vision-mission .vmt__tab.is-active { background: var(--gold); border-color: var(--gold); transform: translateX(8px); }
.page-vision-mission .vmt__tab.is-active .vmt__no { color: var(--navy-950); -webkit-text-stroke-color: var(--navy-950); }
.page-vision-mission .vmt__tab.is-active .vmt__name { color: var(--navy-950); }
.page-vision-mission .vmt__tab.is-active em { color: var(--navy-900); }
.page-vision-mission .vmt__stage { min-width: 0; padding: clamp(26px, 3.4vw, 52px); border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.page-vision-mission .vmt__pane[hidden] { display: none; }
.page-vision-mission .vmt__pane:not([hidden]) { animation: vmtIn .5s var(--ease) both; }
@keyframes vmtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the sections inside the panes lose their own band styling */
.page-vision-mission .vmt .vm-hero, .page-vision-mission .vmt .vm-mission, .page-vision-mission .vmt .vm-motto, .page-vision-mission .vmt .vm-objectives { width: auto; margin: 0; padding: 0; background: none; text-align: left; overflow: visible; }
.page-vision-mission .vmt .vm-hero::before, .page-vision-mission .vmt .vm-hero::after, .page-vision-mission .vmt .vm-motto::before { display: none; }
.page-vision-mission .vmt h3 { color: var(--navy-900); text-align: left; }
.page-vision-mission .vmt .vm-hero h3 { color: var(--navy-900); }
.page-vision-mission .vmt .vm-hero p { max-width: none; margin: 0; font: 500 clamp(1.25rem, 2.1vw, 1.8rem)/1.6 var(--serif); color: var(--navy-800); }
.page-vision-mission .vmt .vm-hero p::after, .page-vision-mission .vmt .vm-objectives p::after { margin: 26px 0 0; }
.page-vision-mission .vmt .vm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-vision-mission .vmt .vm-become { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-vision-mission .vmt .vm-motto__body { max-width: none; margin: 0; }
.page-vision-mission .vmt .vm-motto__quote { text-align: left; }
.page-vision-mission .vmt .vm-objectives p { max-width: none; margin: 0; text-align: left; }
@media (max-width: 1000px) {
    .page-vision-mission .vmt__inner { grid-template-columns: minmax(0, 1fr); }
    .page-vision-mission .vmt__nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .page-vision-mission .vmt__tab { flex: 1 1 calc(50% - 8px); width: auto; }
    .page-vision-mission .vmt__tab.is-active { transform: none; }
    .page-vision-mission .vmt .vm-steps, .page-vision-mission .vmt .vm-become { grid-template-columns: minmax(0, 1fr); }
}
/* Vision, mission and motto page: the homepage Vision layout as a full-width band */
.page-vision-mission .vm--page { width: 100vw; margin: 0 calc(50% - 50vw); }
.page-vision-mission .vm--page .vm__tag { display: block; margin: 0 0 .7em; font: italic 400 .95rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }
.page-vision-mission .vm__label { text-transform: none; }
/* Vision band (homepage layout): vision and motto on the left, mission on the right */
.page-vision-mission .vm--page { padding: clamp(48px, 6vw, 96px) 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-vision-mission .vm--page .vm__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 2.4vw, 34px); align-items: start; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-vision-mission .vm__side { display: grid; gap: clamp(18px, 2.4vw, 34px); }
.page-vision-mission .vm__block, .page-vision-mission .vm__mission { padding: clamp(26px, 3vw, 44px); border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 4px solid var(--gold); box-shadow: 0 30px 56px -38px rgba(7, 31, 66, .55); }
.page-vision-mission .vm__motto { padding: clamp(26px, 3vw, 44px); border-radius: 15px; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .22), transparent 46%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: 0 34px 60px -38px rgba(7, 31, 66, .85); }
.page-vision-mission .vm--page .vm__label { margin: 0 0 clamp(18px, 2vw, 26px); font: 500 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--navy-900); }
.page-vision-mission .vm--page .vm__label::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 16px; background: var(--gold); }
.page-vision-mission .vm--page .vm__label--light { color: #fff; }
.page-vision-mission .vm--page .vm__tag { color: var(--gold-deep); }
.page-vision-mission .vm--page .vm__label--light .vm__tag { color: var(--gold); }
.page-vision-mission .vm__vision { margin: 0; font: 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.65 var(--serif); color: var(--navy-800); }
.page-vision-mission .vm__quote { margin: 0 0 18px; font: italic 500 clamp(1.7rem, 2.8vw, 2.5rem)/1.2 var(--serif); color: #fff; }
.page-vision-mission .vm__motto-text { margin: 0; font-size: var(--p-size); line-height: 1.8; color: rgba(255, 255, 255, .86); }
.page-vision-mission .vm__list { margin: 0; padding: 0; list-style: none; counter-reset: vmh; }
.page-vision-mission .vm__list > li { position: relative; margin: 0; padding: 16px 0 16px 62px; border-bottom: 1px solid rgba(11, 45, 91, .1); font-size: 1.02rem; line-height: 1.65; color: var(--body); counter-increment: vmh; }
.page-vision-mission .vm__list > li::before { content: counter(vmh, decimal-leading-zero); position: absolute; left: 0; top: 12px; width: auto; height: auto; background: none; font: 700 1.7rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px var(--gold-deep); }
.page-vision-mission .vm__list > li:last-child { border-bottom: 0; }
.page-vision-mission .vm__become { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0 -62px; padding: 0; list-style: none; }
.page-vision-mission .vm__become li { margin: 0; padding: 16px 12px; border-radius: 15px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-top: 3px solid var(--gold); text-align: center; font: 700 .76rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.page-vision-mission .vm__become li::before, .page-vision-mission .vm__become li::after { display: none; }
@media (max-width: 1000px) { .page-vision-mission .vm--page .vm__grid { grid-template-columns: minmax(0, 1fr); } .page-vision-mission .vm__become { grid-template-columns: minmax(0, 1fr); margin-left: 0; } .page-vision-mission .vm__list > li { padding-left: 54px; } }

/* No empty strip between the last band of a page and the admissions band below it */
.inner:has(.page-vision-mission), .inner:has(.page-whysfsisce), .inner:has(.page-leadership), .inner:has(.page-history-toppers), .inner:has(.page-desalite-profile), .inner:has(.page-parents-corner), .inner:has(.page-school-timings), .inner:has(.page-uniform), .inner:has(.page-houses-council), .inner:has(.page-prayers-songs), .inner:has(.page-curriculum), .inner:has(.page-co-curricular-activities) { padding-bottom: 0; }

/* History and Toppers, new design: group picker with a horizontal timeline, and a column chart */
.page-history-toppers .hv { margin-top: clamp(8px, 1vw, 16px); }
.page-history-toppers .hv__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.page-history-toppers .hv__tab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 1px solid rgba(11, 45, 91, .16); border-radius: 99px; background: #fff; font: 700 .95rem/1 var(--sans); color: var(--navy-900); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.page-history-toppers .hv__tab em { min-width: 26px; padding: 4px 9px; border-radius: 99px; background: rgba(11, 45, 91, .08); font: 800 .72rem/1 var(--sans); font-style: normal; text-align: center; }
.page-history-toppers .hv__tab:hover { border-color: var(--gold); }
.page-history-toppers .hv__tab.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.page-history-toppers .hv__tab.is-active em { background: var(--gold); color: var(--navy-950); }
.page-history-toppers .hv__track { padding: clamp(24px, 3vw, 44px) clamp(18px, 2.4vw, 36px) clamp(20px, 2.4vw, 32px); overflow-x: auto; border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 26px 46px -34px rgba(7, 31, 66, .55); }
.page-history-toppers .hv__line { position: relative; display: flex; gap: clamp(14px, 1.8vw, 26px); min-width: max-content; margin: 0; padding: 34px 0 0; list-style: none; counter-reset: none; animation: hvIn .5s var(--ease) both; }
.page-history-toppers .hv__line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, .35)); }
.page-history-toppers .hv__line li { position: relative; display: flex; flex-direction: column; gap: 6px; width: clamp(160px, 15vw, 200px); margin: 0; padding: 16px 16px 18px; border-radius: 15px; background: #faf9f4; border: 1px solid rgba(11, 45, 91, .08); }
.page-history-toppers .hv__line li::before { content: ""; position: absolute; left: 16px; top: -33px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 5px rgba(212, 175, 55, .2); }
.page-history-toppers .hv__line li::after { display: none !important; }
.page-history-toppers .hv__line time { font: 800 .78rem/1.2 var(--sans); letter-spacing: .14em; color: var(--gold-deep); }
.page-history-toppers .hv__line strong { font: 500 1.1rem/1.3 var(--serif); color: var(--navy-900); }
@keyframes hvIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.page-history-toppers .tc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); align-items: end; margin: clamp(8px, 1vw, 16px) 0 0; padding: clamp(24px, 3vw, 40px) clamp(14px, 2vw, 28px) clamp(18px, 2vw, 26px); list-style: none; border-radius: 15px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); counter-reset: none; }
.page-history-toppers .tc__col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: clamp(320px, 34vw, 430px); margin: 0; padding: 0; text-align: center; }
.page-history-toppers .tc__col::before, .page-history-toppers .tc__col::after { display: none !important; }
.page-history-toppers .tc__pct { font: 700 clamp(.78rem, 1vw, .98rem)/1 var(--sans); color: #fff; }
.page-history-toppers .tc__bar { display: block; width: 100%; max-width: 54px; height: var(--h); min-height: 24px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35)); transform-origin: bottom; animation: tcGrow .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.page-history-toppers .tc__year { padding-top: 6px; border-top: 2px solid rgba(255, 255, 255, .3); width: 100%; font: 800 clamp(.72rem, .9vw, .85rem)/1.2 var(--sans); letter-spacing: .08em; color: var(--gold); }
.page-history-toppers .tc__name { min-height: 3.6em; font: 500 clamp(.7rem, .9vw, .85rem)/1.3 var(--serif); color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.page-history-toppers .tc__col.is-top .tc__bar { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); box-shadow: 0 0 26px rgba(212, 175, 55, .55); }
.page-history-toppers .tc__col.is-top .tc__pct { color: var(--gold); font-size: clamp(.9rem, 1.2vw, 1.15rem); }
@keyframes tcGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@media (max-width: 800px) {
    .page-history-toppers .tc { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
    .page-history-toppers .tc__col { height: 260px; }
}
@media (max-width: 480px) { .page-history-toppers .tc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* History and Toppers: tabs on the left, contents on the right; full-width graph */
.page-history-toppers .hv { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; margin-top: clamp(8px, 1vw, 16px); }
.page-history-toppers .hv__nav { display: flex; flex-direction: column; gap: 8px; }
.page-history-toppers .hv__tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px; border: 1px solid rgba(11, 45, 91, .12); border-radius: 15px; background: #fff; text-align: left; font: 600 1.1rem/1.2 var(--serif); color: var(--navy-900); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.page-history-toppers .hv__tab em { min-width: 28px; padding: 4px 9px; border-radius: 99px; background: rgba(11, 45, 91, .08); font: 800 .74rem/1 var(--sans); font-style: normal; text-align: center; }
.page-history-toppers .hv__tab:hover { border-color: var(--gold); }
.page-history-toppers .hv__tab.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; transform: translateX(6px); }
.page-history-toppers .hv__tab.is-active em { background: var(--gold); color: var(--navy-950); }
.page-history-toppers .hv__pane { padding: clamp(22px, 2.8vw, 40px); border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 26px 46px -34px rgba(7, 31, 66, .55); animation: hvIn .45s var(--ease) both; }
.page-history-toppers .hv__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(11, 45, 91, .12); }
.page-history-toppers .hv__head h3 { margin: 0; font: 600 1.6rem/1.15 var(--serif); color: var(--navy-900); }
.page-history-toppers .hv__head span { font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.page-history-toppers .hv__line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); min-width: 0; margin: 0; padding: 0; list-style: none; overflow: visible; animation: none; }
.page-history-toppers .hv__line::before { display: none; }
.page-history-toppers .hv__line li { position: relative; display: flex; flex-direction: column; gap: 3px; width: auto; margin: 0; padding: 14px 0 14px 34px; border: 0; border-bottom: 1px solid rgba(11, 45, 91, .1); border-radius: 0; background: none; }
.page-history-toppers .hv__line li::before { content: ""; position: absolute; left: 0; top: 20px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .2); }
.page-history-toppers .hv__line li::after { display: none !important; }
.page-history-toppers .hv__line time { font: 800 .76rem/1.2 var(--sans); letter-spacing: .14em; color: var(--gold-deep); }
.page-history-toppers .hv__line strong { font: 500 1.12rem/1.3 var(--serif); color: var(--navy-900); }
@media (max-width: 800px) { .page-history-toppers .hv { grid-template-columns: minmax(0, 1fr); } .page-history-toppers .hv__nav { flex-direction: row; flex-wrap: wrap; } .page-history-toppers .hv__tab { flex: 1 1 calc(50% - 8px); width: auto; } .page-history-toppers .hv__tab.is-active { transform: none; } .page-history-toppers .hv__line { grid-template-columns: minmax(0, 1fr); } }

.page-history-toppers .tg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(8px, 1vw, 14px); width: 100%; max-width: none; margin-top: clamp(8px, 1vw, 16px); padding: clamp(24px, 3vw, 42px) clamp(16px, 2.4vw, 36px) clamp(18px, 2vw, 28px); border-radius: 15px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); }
.page-history-toppers .tg__axis { position: relative; width: 44px; height: clamp(280px, 30vw, 380px); }
.page-history-toppers .tg__tick { position: absolute; right: 0; transform: translateY(50%); font: 600 .74rem/1 var(--sans); color: rgba(255, 255, 255, .7); }
.page-history-toppers .tg__body { min-width: 0; }
.page-history-toppers .tg__plot { position: relative; height: clamp(280px, 30vw, 380px); border-left: 1px solid rgba(255, 255, 255, .35); border-bottom: 1px solid rgba(255, 255, 255, .35); }
.page-history-toppers .tg__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(255, 255, 255, .18); }
.page-history-toppers .tg__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.page-history-toppers .tg__col { position: relative; display: flex; align-items: flex-end; justify-content: center; margin: 0; padding: 0; }
.page-history-toppers .tg__col::before, .page-history-toppers .tg__col::after { display: none !important; }
.page-history-toppers .tg__bar { display: block; width: 58%; max-width: 64px; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .28)); transform-origin: bottom; animation: tcGrow .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.page-history-toppers .tg__pct { position: absolute; bottom: calc(var(--h) + 8px); font: 700 clamp(.7rem, .95vw, .95rem)/1 var(--sans); color: #fff; white-space: nowrap; }
.page-history-toppers .tg__col.is-top .tg__bar { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); box-shadow: 0 0 26px rgba(212, 175, 55, .55); }
.page-history-toppers .tg__col.is-top .tg__pct { color: var(--gold); }
.page-history-toppers .tg__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.page-history-toppers .tg__line polyline { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.page-history-toppers .tg__labels { grid-column: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 10px 0 0; padding: 0; list-style: none; counter-reset: none; }
.page-history-toppers .tg__labels li { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 0 2px; text-align: center; }
.page-history-toppers .tg__labels li::before, .page-history-toppers .tg__labels li::after { display: none !important; }
.page-history-toppers .tg__labels time { font: 800 clamp(.72rem, .9vw, .85rem)/1.2 var(--sans); letter-spacing: .06em; color: var(--gold); }
.page-history-toppers .tg__labels strong { font: 500 clamp(.68rem, .85vw, .82rem)/1.3 var(--serif); color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
@media (max-width: 800px) {
    .page-history-toppers .tg { grid-template-columns: auto minmax(0, 1fr); padding-inline: 10px; }
    .page-history-toppers .tg__axis { width: 36px; }
    .page-history-toppers .tg__labels strong { display: none; }
}
/* Admission and fees */
.inner:has(.page-admission-fees) { padding-top: 0; padding-bottom: 0; overflow: clip; }
.page-admission-fees .ap, .page-admission-fees .ar { position: relative; width: 100vw; margin: 0 calc(50% - 50vw); }
.page-admission-fees .ap { padding: clamp(52px, 6.4vw, 100px) 0; background: radial-gradient(circle at 10% 0%, rgba(212, 175, 55, .2), transparent 42%), radial-gradient(circle at 100% 100%, rgba(30, 111, 217, .35), transparent 44%), var(--navy-950); }
.page-admission-fees .ap__inner, .page-admission-fees .ar__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-admission-fees .ap__text h2 { margin: 0 0 clamp(18px, 2.2vw, 28px); color: #fff; }
.page-admission-fees .ap__text h2 .heading__lead { color: var(--gold); }
.page-admission-fees .ap__text p { margin: 0 0 1.1em; font-size: var(--p-size); line-height: 1.85; color: rgba(255, 255, 255, .9); }
.page-admission-fees .ap__box { padding: clamp(22px, 2.6vw, 36px); border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.page-admission-fees .ap__box h3 { margin: 0 0 18px; font: 600 1.4rem/1.2 var(--serif); color: var(--navy-900); }
.page-admission-fees .ap__steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: none; }
.page-admission-fees .ap__steps li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(11, 45, 91, .1); }
.page-admission-fees .ap__steps li::before, .page-admission-fees .ap__steps li::after { display: none !important; }
.page-admission-fees .ap__no { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); font: 700 .85rem/1 var(--sans); color: var(--gold); }
.page-admission-fees .ap__steps p { margin: 4px 0 0; font-size: .98rem; line-height: 1.55; color: var(--body); }
.page-admission-fees .ap__btn { display: flex; align-items: center; justify-content: center; padding: 16px 24px; border-radius: 99px; background: var(--gold); font: 800 .95rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-950); transition: background .3s, transform .3s var(--ease); }
.page-admission-fees .ap__btn:hover { background: #fff; transform: translateY(-2px); }
.page-admission-fees .ap__note { grid-column: 1 / -1; display: flex; gap: 16px; align-items: flex-start; padding: clamp(18px, 2.2vw, 28px); border-radius: 15px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.page-admission-fees .ap__note-icon { flex: none; color: var(--gold); font-size: 1.6rem; line-height: 1.2; }
.page-admission-fees .ap__note p { margin: 0; font-size: var(--p-size); line-height: 1.75; color: rgba(255, 255, 255, .92); }

.page-admission-fees .ar { padding: clamp(52px, 6.4vw, 100px) 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-admission-fees .ar__inner { display: block; }
.page-admission-fees .ar__head { margin-bottom: clamp(24px, 3vw, 40px); }
.page-admission-fees .ar__head h2 { margin: 0; }
.page-admission-fees .ar__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(18px, 2.6vw, 36px); align-items: start; }
.page-admission-fees .ar__nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 8px; }
.page-admission-fees .ar__tab { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; width: 100%; padding: 14px 18px; border: 1px solid rgba(11, 45, 91, .12); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.page-admission-fees .ar__tab:hover { border-color: var(--gold); }
.page-admission-fees .ar__no { grid-row: 1 / 3; font: 700 1.7rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px var(--gold-deep); }
.page-admission-fees .ar__name { font: 600 1.12rem/1.25 var(--serif); color: var(--navy-900); }
.page-admission-fees .ar__tab em { font: italic 400 .84rem/1.2 var(--serif); color: var(--gold-deep); }
.page-admission-fees .ar__tab.is-active { background: var(--navy-900); border-color: var(--navy-900); transform: translateX(6px); }
.page-admission-fees .ar__tab.is-active .ar__no { -webkit-text-stroke-color: var(--gold); }
.page-admission-fees .ar__tab.is-active .ar__name { color: #fff; }
.page-admission-fees .ar__tab.is-active em { color: var(--gold); }
.page-admission-fees .ar__stage { min-width: 0; padding: clamp(24px, 3vw, 44px); border-radius: 15px; background: #fff; border-top: 4px solid var(--gold); box-shadow: 0 30px 56px -38px rgba(7, 31, 66, .55); }
.page-admission-fees .ar__pane[hidden] { display: none; }
.page-admission-fees .ar__pane:not([hidden]) { animation: arIn .45s var(--ease) both; }
@keyframes arIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.page-admission-fees .ar__title { margin: 0 0 clamp(16px, 2vw, 26px); font: 500 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); color: var(--navy-900); }
.page-admission-fees .ar__tag { display: block; margin: 0 0 .7em; font: italic 400 .95rem/1.2 var(--serif); color: var(--gold-deep); }
.page-admission-fees .ar__pane .rule__body ul { margin: 0; padding: 0; list-style: none; }
.page-admission-fees .ar__pane .rule__body li { position: relative; margin: 0; padding: 12px 0 12px 34px; border-bottom: 1px solid rgba(11, 45, 91, .08); font-size: var(--p-size); line-height: 1.75; color: var(--body); }
.page-admission-fees .ar__pane .rule__body li:last-child { border-bottom: 0; }
.page-admission-fees .ar__pane .rule__body li::before { content: "\f00c"; position: absolute; left: 0; top: 14px; width: auto; height: auto; background: none; font: 14px/1.6 FontAwesome; color: var(--gold-deep); }
.page-admission-fees .ar__pane .rule__body p { margin: 0 0 1em; font-size: var(--p-size); line-height: 1.8; color: var(--body); }
@media (max-width: 1000px) {
    .page-admission-fees .ap__inner, .page-admission-fees .ar__grid { grid-template-columns: minmax(0, 1fr); }
    .page-admission-fees .ar__nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .page-admission-fees .ar__tab { flex: 1 1 calc(50% - 8px); width: auto; }
    .page-admission-fees .ar__tab.is-active { transform: none; }
}
/* Pay Fees: no background colour, dark text */
.page-admission-fees .ap { background: #fff; }
.page-admission-fees .ap__text h2 { color: var(--navy-900); }
.page-admission-fees .ap__text h2 .heading__lead { color: var(--gold-deep); }
.page-admission-fees .ap__text p { color: var(--body); }
.page-admission-fees .ap__box { border: 1px solid rgba(11, 45, 91, .1); border-top: 4px solid var(--gold); box-shadow: 0 30px 56px -38px rgba(7, 31, 66, .55); }
.page-admission-fees .ap__note { background: #faf9f4; border: 1px solid rgba(11, 45, 91, .1); border-left: 4px solid var(--gold); }
.page-admission-fees .ap__note-icon { color: var(--gold-deep); }
.page-admission-fees .ap__note p { color: var(--body); }

/* Principal's message */
.inner:has(.page-principal-message) { padding-top: 0; padding-bottom: 0; overflow: clip; }
.page-principal-message .pm { width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(52px, 6.4vw, 100px) 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .12), transparent 70%), #faf9f4; }
.page-principal-message .pm__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-principal-message .pm__aside { position: sticky; top: 110px; }
.page-principal-message .pm__card { position: relative; margin: 0 18px 18px 0; border-radius: 15px; background: #0e2a55; box-shadow: 0 40px 70px -40px rgba(7, 31, 66, .8); }
.page-principal-message .pm__card::before { content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 15px; }
.page-principal-message .pm__card img { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 15%; border-radius: 15px 15px 0 0; background: #e6eaf2; }
.page-principal-message .pm__who { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.page-principal-message .pm__who strong { font: 500 1.35rem/1.2 var(--serif); color: #fff; }
.page-principal-message .pm__who span { font: 800 .74rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.page-principal-message .pm__letter { min-width: 0; }
.page-principal-message .pm__letter h2 { margin: 0 0 clamp(20px, 2.4vw, 32px); }
.page-principal-message .pm__hello { margin: 0 0 clamp(18px, 2vw, 26px); font: italic 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.5 var(--serif); color: var(--gold-deep); }
.page-principal-message .pm__letter > p { margin: 0 0 1.3em; font-size: var(--p-size); line-height: 1.9; color: var(--body); }
.page-principal-message .pm__quote { position: relative; margin: clamp(22px, 2.6vw, 36px) 0; padding: clamp(24px, 3vw, 38px) clamp(24px, 3vw, 40px); border: 0; border-radius: 15px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.page-principal-message .pm__quote::before { content: "\201C"; position: absolute; left: 20px; top: -.1em; font: 700 clamp(5rem, 8vw, 7rem)/1 var(--serif); color: rgba(212, 175, 55, .3); pointer-events: none; }
.page-principal-message .pm__quote p { position: relative; margin: 0; font: italic 500 clamp(1.25rem, 2vw, 1.75rem)/1.5 var(--serif); color: #fff; }
.page-principal-message .pm__quote cite { display: flex; align-items: center; gap: 14px; margin-top: 16px; font: 800 .78rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.page-principal-message .pm__quote cite::before { content: ""; width: 36px; height: 2px; background: var(--gold); }
.page-principal-message .pm__letter > p.pm__close { padding-left: 20px; border-left: 4px solid var(--gold); font: 500 clamp(1.1rem, 1.5vw, 1.3rem)/1.7 var(--serif); color: var(--navy-900); }
.page-principal-message .pm__sign { display: flex; flex-direction: column; gap: 4px; margin-top: clamp(22px, 2.6vw, 34px); }
.page-principal-message .pm__sign-line { display: block; width: 64px; height: 3px; margin-bottom: 12px; background: var(--gold); }
.page-principal-message .pm__sign strong { font: 600 1.45rem/1.2 var(--serif); color: var(--navy-900); }
.page-principal-message .pm__sign span:last-child { font: 800 .76rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
@media (max-width: 900px) { .page-principal-message .pm__inner { grid-template-columns: minmax(0, 1fr); } .page-principal-message .pm__aside { position: static; max-width: 420px; } }.page-principal-message .pm__sign { display: none; }

/* News page */
.inner:has(.page-news) { padding-top: 0; overflow: clip; }
.page-news .nw { width: 100vw; margin: 0 calc(50% - 50vw); padding: clamp(48px, 6vw, 96px) 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(16, 58, 116, .06), transparent 70%), radial-gradient(ellipse 35% 45% at 95% 5%, rgba(212, 175, 55, .1), transparent 70%), #faf9f4; }
.page-news .nw__inner { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.page-news .nw__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: clamp(24px, 3vw, 40px); }
.page-news .nw__top h2 { margin: 0; }
.page-news .nw__search { position: relative; flex: 0 1 340px; width: 100%; }
.page-news .nw__search i { position: absolute; left: 18px; top: 50%; margin-top: -8px; color: var(--gold-deep); pointer-events: none; }
.page-news .nw__search input { width: 100%; padding: 15px 18px 15px 46px; border: 1px solid rgba(11, 45, 91, .18); border-radius: 99px; background: #fff; font: 500 .95rem/1.2 var(--sans); color: var(--navy-900); }
.page-news .nw__search input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25); }
.page-news .nw__hero { position: relative; display: block; min-height: clamp(320px, 38vw, 520px); overflow: hidden; border-radius: 15px; background: var(--navy-950); box-shadow: 0 40px 70px -40px rgba(7, 31, 66, .8); }
.page-news .nw__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.page-news .nw__hero:hover img { transform: scale(1.05); }
.page-news .nw__hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 31, 66, .05) 30%, rgba(7, 31, 66, .92) 100%); }
.page-news .nw__hero-text { position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.page-news .nw__badge { padding: 7px 16px; border-radius: 99px; background: var(--gold); font: 800 .74rem/1 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-950); }
.page-news .nw__hero-text strong { max-width: 22em; font: 500 clamp(1.8rem, 3.6vw, 3.2rem)/1.1 var(--serif); letter-spacing: -.01em; color: #fff; }
.page-news .nw__hero-more { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--gold); font: 700 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; transition: gap .35s var(--ease); }
.page-news .nw__hero:hover .nw__hero-more { gap: 16px; }
.page-news .nw__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); margin-top: clamp(18px, 2.4vw, 32px); }
.page-news .nw__grid:empty { display: none; }
.page-news .nw__card { display: flex; flex-direction: column; overflow: hidden; border-radius: 15px; background: #fff; border: 1px solid rgba(11, 45, 91, .08); border-top: 3px solid var(--gold); box-shadow: 0 22px 40px -30px rgba(7, 31, 66, .55); transition: transform .4s var(--ease), box-shadow .4s; }
.page-news .nw__card:hover { transform: translateY(-6px); box-shadow: 0 32px 52px -28px rgba(7, 31, 66, .65); }
.page-news .nw__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.page-news .nw__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.page-news .nw__card:hover .nw__media img { transform: scale(1.06); }
.page-news .nw__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: clamp(16px, 1.8vw, 24px); }
.page-news .nw__body strong { font: 500 1.2rem/1.3 var(--serif); color: var(--navy-900); }
.page-news .nw__body em { margin-top: auto; font: 800 .74rem/1 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); transition: letter-spacing .3s; }
.page-news .nw__card:hover .nw__body em { letter-spacing: .22em; }
.page-news .nw__empty { margin: 24px 0 0; padding: 28px; border: 1px dashed rgba(11, 45, 91, .25); border-radius: 15px; background: #fff; text-align: center; color: var(--body); }
@media (max-width: 1000px) { .page-news .nw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .page-news .nw__grid { grid-template-columns: minmax(0, 1fr); } }
/* News page: a mosaic of photo tiles with the title over each photo */
.page-news .nw__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 18vw, 260px); gap: clamp(10px, 1.2vw, 16px); margin-top: 0; }
.page-news .nw__tile { position: relative; display: block; overflow: hidden; border-radius: 15px; background: var(--navy-950); box-shadow: 0 22px 40px -30px rgba(7, 31, 66, .7); animation: nwIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.page-news .nw__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.page-news .nw__tile:hover img { transform: scale(1.07); }
.page-news .nw__tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 38%, rgba(7, 31, 66, .92) 100%); }
.page-news .nw__tile::after { content: ""; position: absolute; z-index: 2; left: 18px; bottom: 18px; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); transition: width .5s var(--ease); opacity: 0; }
.page-news .nw__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 26px; }
.page-news .nw__cap strong { font: 500 clamp(1.05rem, 1.5vw, 1.3rem)/1.25 var(--serif); color: #fff; }
.page-news .nw__cap em { max-height: 0; overflow: hidden; font: 800 .72rem/1 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); opacity: 0; transition: max-height .4s var(--ease), opacity .4s; }
.page-news .nw__tile:hover .nw__cap em, .page-news .nw__tile:focus-visible .nw__cap em { max-height: 24px; opacity: 1; }
.page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(1) .nw__cap strong { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; }
.page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(1)::after { opacity: 1; width: 56px; }
.page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(1) .nw__cap { padding: 26px 26px 38px; }
.page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(6) { grid-column: span 2; }
@keyframes nwIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .page-news .nw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(6) { grid-column: auto; } .page-news .nw__cap em { max-height: 24px; opacity: 1; } }
@media (max-width: 560px) { .page-news .nw__grid, .page-news .nw__grid:not(.is-filtered) { grid-template-columns: minmax(0, 1fr); } .page-news .nw__grid:not(.is-filtered) .nw__tile:nth-child(1) { grid-column: auto; grid-row: span 1; } }
/* News inner pages (event galleries): big cover photo with the story card laid over its corner, then a masonry of the rest */
.prose--gallery:not(.page-gallery) { display: block; }
.ev { display: block; }
.ev__hero { position: relative; margin-bottom: clamp(60px, 7vw, 90px); }
.ev__hero > img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 15px; cursor: zoom-in; box-shadow: 0 30px 50px -34px rgba(7, 31, 66, .8); }
.ev__side { position: absolute; left: clamp(16px, 3vw, 40px); bottom: calc(-1 * clamp(40px, 5vw, 64px)); width: min(560px, calc(100% - 32px)); padding: clamp(22px, 2.6vw, 34px); border-radius: 15px; border-left: 4px solid var(--gold); background: #fff; box-shadow: 0 30px 50px -28px rgba(7, 31, 66, .6); }
.ev__tag { display: block; margin-bottom: 12px; font: italic 400 1.1rem/1 var(--serif); color: var(--gold); }
.ev__side p { margin: 0; color: var(--navy-900); font: 400 clamp(1.02rem, 1.3vw, 1.18rem)/1.7 var(--serif); }
.ev .gallery { display: block; columns: 3; column-gap: clamp(10px, 1.4vw, 18px); margin: 0; }
.ev .gallery img, .ev .gallery img:nth-child(n) { display: block; width: 100%; height: auto; margin: 0 0 clamp(10px, 1.4vw, 18px); break-inside: avoid; border-radius: 15px; }
.ev .gallery img.ev__dup { display: none; }
@media (max-width: 900px) { .ev .gallery { columns: 2; } .ev__hero > img { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .ev__hero { margin-bottom: 0; } .ev__side { position: static; width: auto; margin-top: -40px; margin-inline: 12px; } .ev .gallery { columns: 1; margin-top: 24px; } }

/* Phone width: the topbar social icons ran 10px past the screen. */
.topbar { overflow-x: clip; }
.topbar__inner { flex-wrap: wrap; }
.topbar .social { flex-wrap: wrap; }

/* Rules page: every rule is its own numbered card */
.page-rules-regulations .rule { display: block; padding: clamp(24px, 3vw, 40px) 0 0; border: 0; }
.page-rules-regulations .prose .rule h3, .page-rules-regulations .rule h3 { position: static; margin: 0 0 22px; font-size: var(--h2-size); line-height: 1.1; }
.page-rules-regulations .rule h3::before { display: none; }
.page-rules-regulations .rule__body ul, .page-rules-regulations .vm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: rl; }
.page-rules-regulations .rule__body li, .page-rules-regulations .vm-steps li { position: relative; margin: 0; padding: 22px 22px 22px 70px; border: 1px solid rgba(11, 45, 91, .1); border-radius: 15px; background: #fff; box-shadow: 0 20px 40px -32px rgba(7, 31, 66, .5); line-height: 1.7; counter-increment: rl; transition: transform .4s var(--ease), border-color .3s; }
.page-rules-regulations .rule__body li::before, .page-rules-regulations .vm-steps li::before { content: counter(rl, decimal-leading-zero); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-950); color: var(--gold); font: 700 .8rem/1 var(--sans); }
.page-rules-regulations .rule__body li:hover, .page-rules-regulations .vm-steps li:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, .7); }
.page-rules-regulations .vm-steps::before, .page-rules-regulations .vm-steps::after { display: none; }
@media (max-width: 800px) { .page-rules-regulations .rule__body ul, .page-rules-regulations .vm-steps { grid-template-columns: minmax(0, 1fr); } }

/* Gallery page: masonry of photos with a gold underline on hover */
.page-gallery .gallery, .page-gallery .gallery--curated { display: block; columns: 4; column-gap: clamp(10px, 1.4vw, 18px); }
.page-gallery .gallery img, .page-gallery .gallery img:nth-child(n) { display: block; width: 100%; height: auto; margin: 0 0 clamp(10px, 1.4vw, 18px); break-inside: avoid; border-radius: 15px; border-bottom: 3px solid transparent; transition: border-color .3s, transform .6s var(--ease); }
.page-gallery .gallery img:hover { border-bottom-color: var(--gold); }
@media (max-width: 1000px) { .page-gallery .gallery, .page-gallery .gallery--curated { columns: 3; } }
@media (max-width: 700px) { .page-gallery .gallery, .page-gallery .gallery--curated { columns: 2; } }

/* Homepage level cards: no gold line above the tag or under the title. */
.levels--grid .level__body::before, .levels--grid .level__title::after, .levels--grid .level__tag::before { display: none; content: none; }

/* Homepage level cards: all four share one style (card 2 and card 4 had their own colours). */
main .levels-band .level:nth-child(n) { box-shadow: 0 34px 60px -34px rgba(7, 31, 66, .85), 0 2px 0 rgba(255, 255, 255, .05); }
main .levels-band .level:nth-child(n) .level__tag { background: none; color: var(--gold); }
main .levels-band .level:nth-child(n) .level__title, main .levels-band .level:nth-child(n) .level__title a { color: #fff; }
main .levels-band .level:nth-child(n) .round-btn { background: transparent; border: 2px solid var(--gold); color: var(--gold); box-shadow: none; }
main .levels-band .level:nth-child(n):hover .round-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); box-shadow: 0 0 0 7px rgba(212, 175, 55, .2), 0 10px 24px -8px rgba(212, 175, 55, .6); }

/* Houses page: list text over the dark photo panel was navy on navy. */
.page-houses-council .ip--photo:not(.ip--houses) .ip__main ul li { color: #fff; }
.page-houses-council .ip--photo:not(.ip--houses) .ip__main ul li strong, .page-houses-council .ip--photo:not(.ip--houses) .ip__main ul li a { color: #fff; }

/* Toppers graph: the trend line spans the bars (88% of the plot) and draws itself from 2014 to 2025 when the graph scrolls into view. */
.page-history-toppers .tg__line { width: 88%; clip-path: inset(-10px 100% -10px 0); }
.page-history-toppers .tg__line.is-drawn { clip-path: inset(-10px -10px -10px 0); transition: clip-path 2.4s cubic-bezier(.45, .05, .25, 1) .5s; }
@media (max-width: 800px) { .page-history-toppers .tg__line { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .page-history-toppers .tg__line { clip-path: none; transition: none; } }

/* Faculty and staff page: profile cards are always visible, no scroll-reveal fade (they stayed blank below the tab bar until scrolled). */
.page-staff .people .person, .page-staff .people .person[data-reveal] { opacity: 1; transform: none; translate: none; }

/* Faculty and staff search: results from both groups sit together, so the second grid needs a gap above it. */
.page-staff .staff-panels .people:not([hidden]) + .people:not([hidden]) { margin-top: clamp(14px, 2vw, 24px); }

/* Faculty and staff page: the long panel wrapper never reached the 12% reveal threshold in a short window, so the profiles stayed blank. */
.inner .prose.page-staff .staff-panels.rv:not(.is-seen), .inner .prose.page-staff .staff-bar.rv:not(.is-seen) { opacity: 1; transform: none; }

/* Academics stage pages: list text over the dark photo panel was navy on navy. */
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--photo .ip__main ul li,
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--photo .ip__main ul li a { color: #fff; }

/* Secondary School exam calendar: Class IX on the left, Class X on the right. */
@media (min-width: 800px) {
    .page-secondary-school .ip--p2 .ip__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); align-items: start; }
    .page-secondary-school .ip--p2 .ip__main > p:nth-of-type(1) { grid-column: 1; grid-row: 1; }
    .page-secondary-school .ip--p2 .ip__main > table:nth-of-type(1) { grid-column: 1; grid-row: 2; }
    .page-secondary-school .ip--p2 .ip__main > p:nth-of-type(2) { grid-column: 2; grid-row: 1; }
    .page-secondary-school .ip--p2 .ip__main > table:nth-of-type(2) { grid-column: 2; grid-row: 2; }
}

/* Middle School exam calendar: Classes VI and VII on the left, Class VIII on the right, like the Secondary School page. */
@media (min-width: 800px) {
    .page-middle-school .ip--p3 .ip__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 44px); align-items: start; }
    .page-middle-school .ip--p3 .ip__main > p:nth-of-type(1) { grid-column: 1; grid-row: 1; }
    .page-middle-school .ip--p3 .ip__main > table:nth-of-type(1) { grid-column: 1; grid-row: 2; }
    .page-middle-school .ip--p3 .ip__main > p:nth-of-type(2) { grid-column: 2; grid-row: 1; }
    .page-middle-school .ip--p3 .ip__main > table:nth-of-type(2) { grid-column: 2; grid-row: 2; }
}

/* Academics stage pages: bands alternate white and pale (the photo band stays dark), and the Subjects band shows icon tiles. */
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip.tone-w { background: #fff !important; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip.tone-p { background: #faf9f4 !important; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-w, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-p { color: var(--body); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-w .ip__side h2, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-p .ip__side h2 { color: var(--navy-950); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-w .ip__main p, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-p .ip__main p { color: var(--body); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-w .ip__no, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-p .ip__no, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-w .heading__lead, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--p2.tone-p .heading__lead { color: var(--gold-deep); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "side main"; align-items: start; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__media { display: none; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj::before, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj::after { display: none; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__side { grid-area: side; position: static; align-self: start; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__side h2 { color: var(--navy-950); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__no, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .heading__lead { color: var(--gold-deep); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main { grid-area: main; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main p { margin: 0 0 clamp(20px, 2.6vw, 32px); color: var(--body); }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 16px); margin: 0; padding: 0; list-style: none; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 18px; border: 1px solid rgba(11, 45, 91, .1); border-radius: 15px; background: #fff; box-shadow: 0 18px 34px -28px rgba(7, 31, 66, .5); color: var(--navy-900); transition: transform .4s var(--ease), border-color .3s; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj.tone-w .ip__main ul li { background: #faf9f4; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul li::before, :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul li::after { display: none; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul li:hover { transform: translateY(-4px); border-color: var(--gold); }
.subj__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-950); color: var(--gold); font-size: 1.05rem; transition: background-color .3s, color .3s; }
li:hover > .subj__icon { background: var(--gold); color: var(--navy-950); }
.subj__name { font: 500 1.05rem/1.3 var(--serif); color: var(--navy-900); }
@media (max-width: 1000px) { :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; } }
@media (max-width: 700px) { :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul { grid-template-columns: minmax(0, 1fr); } }

/* Subjects band layouts differ per page: Kindergarten text left / tiles right, Primary stacked with 4 columns, Middle mirrored, Secondary stacked and centred. */
@media (min-width: 1001px) {
    .page-primary-school .ip--subj .ip__inner, .page-secondary-school .ip--subj .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
    .page-primary-school .ip--subj .ip__main ul, .page-secondary-school .ip--subj .ip__main ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .page-secondary-school .ip--subj .ip__side { text-align: center; }
    .page-secondary-school .ip--subj .ip__side h2::after { margin-inline: auto; }
    .page-secondary-school .ip--subj .ip__main p { max-width: 46em; margin-inline: auto; text-align: center; }
}

/* Primary and Secondary Subjects: tiles run the full width, five to a row. */
@media (min-width: 1001px) {
    .page-primary-school .ip--subj .ip__main, .page-secondary-school .ip--subj .ip__main { width: 100%; max-width: none; }
    .page-primary-school .ip--subj .ip__main ul, .page-secondary-school .ip--subj .ip__main ul { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
}
:is(.page-primary-school, .page-secondary-school) .ip--subj .ip__main ul li { min-width: 0; }
:is(.page-primary-school, .page-secondary-school) .ip--subj .subj__name { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1001px) { .page-primary-school .ip--subj .ip__main ul, .page-secondary-school .ip--subj .ip__main ul { max-width: none; } }

/* Progress band cards (Primary School) */
.page-primary-school .ip--prog .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
.page-primary-school .ip--prog .ip__side { grid-area: side; position: static; }
.page-primary-school .ip--prog .ip__main { grid-area: main; max-width: none; width: 100%; }
.prog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.prog__card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(11, 45, 91, .1); border-top: 3px solid var(--gold); border-radius: 15px; background: #fff; box-shadow: 0 30px 50px -36px rgba(7, 31, 66, .55); }
.tone-w .prog__card { background: #faf9f4; }
.prog__card--pass { background: var(--navy-950); border-color: var(--navy-950); border-top-color: var(--gold); color: #fff; }
.tone-w .prog__card--pass { background: var(--navy-950); }
.prog__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-950); color: var(--gold); font-size: 1.4rem; }
.prog__big { font: 500 clamp(3.4rem, 6vw, 5rem)/1 var(--serif); color: var(--gold); }
.prog__card h3 { margin: 0; font: 500 clamp(1.4rem, 2vw, 1.8rem)/1.2 var(--serif); color: var(--navy-950); }
.prog__card--pass h3 { color: #fff; }
.prog__card p { margin: 0; font-size: var(--p-size); line-height: 1.75; color: var(--body); }
.prog__card--pass p { color: rgba(255, 255, 255, .85); }
.prog__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prog__chips li { margin: 0; padding: 8px 16px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font: 700 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.prog__chips li::before, .prog__chips li::after { display: none; }
@media (max-width: 760px) { .prog { grid-template-columns: minmax(0, 1fr); } }

/* Middle School: the Subjects note under the tiles, and a full-width two-column Exam Calendar */
.page-middle-school .ip--subj .ip__main ul + p { margin: clamp(18px, 2.2vw, 28px) 0 0; padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 15px 15px 0; background: rgba(11, 45, 91, .05); font-size: .95rem; line-height: 1.7; }
.page-middle-school .ip--p3 .ip__inner { text-align: left; }
.page-middle-school .ip--p3 .ip__side h2::after { margin-inline: 0; }
.page-middle-school .ip--p3 .ip__main { max-width: none; width: 100%; margin-inline: 0; }
.page-primary-school .ip--prog .prog__card--pass p { color: rgba(255, 255, 255, .88); }
.page-primary-school .ip--prog .prog__card--pass h3 { color: #fff; }
.page-primary-school .ip--prog .prog__card:not(.prog__card--pass) p { color: var(--body); }
.page-primary-school .ip--prog .ip__main .prog__card--pass p { color: rgba(255, 255, 255, .88) !important; }
.page-primary-school .ip--prog .ip__main .prog__card--pass .prog__chips li { color: var(--gold) !important; }
.page-primary-school .ip--prog .ip__main .prog__card:not(.prog__card--pass) p { color: var(--body) !important; }

/* Subjects band: one layout on every stage page, heading on top, five tiles per row across the full width. */
@media (min-width: 1001px) {
    :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
    :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__side { text-align: left; }
    :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__side h2::after { margin-inline: 0; }
    :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main { width: 100%; max-width: none; }
    :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main p { max-width: none; margin-inline: 0; text-align: left; }
    :is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: none; }
}
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .ip__main ul li { min-width: 0; }
:is(.page-kindergarten, .page-primary-school, .page-middle-school, .page-secondary-school) .ip--subj .subj__name { min-width: 0; overflow-wrap: anywhere; }

/* Secondary School Exam Calendar: full width, Class IX and Class X tables side by side, like the Middle School calendar. */
.page-secondary-school .ip--p2 .ip__inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
.page-secondary-school .ip--p2 .ip__side { position: static; }
.page-secondary-school .ip--p2 .ip__main { max-width: none; width: 100%; margin-inline: 0; }

/* ===== Header: school name beside the crest, and long submenus in two columns ===== */
.brand { align-items: center; }
.brand__name { display: block; max-width: 8em; font-size: 1.05rem; line-height: 1.2; }
@media (min-width: 1280px) { .brand__name { display: block; } }
@media (max-width: 575px) { .brand__name { display: block; font-size: .9rem; max-width: 7.5em; } }
.nav__sub:has(> li:nth-child(5)) { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); column-gap: 6px; min-width: min(500px, calc(100vw - 32px)); }
.nav__sub:has(> li:nth-child(5)) a { white-space: normal; }
.drawer__sub:not([hidden]):has(> li:nth-child(5)) { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 18px; }
@media (min-width: 520px) { .drawer__sub:not([hidden]):has(> li:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Homepage: gold sections among the blues ===== */
main .stats { background: var(--gold) !important; color: var(--navy-950); }
main .stats::before, main .stats::after { display: none; }
main .stats .stat__icon { background: transparent; color: var(--navy-950); }
main .stats .stat__value, main .stats .stat__value span, main .stats .stat__plus, main .stats .stat__label { color: var(--navy-950); }
main .stats .stat { border-color: rgba(7, 31, 66, .22); }
main .levels-band { background: var(--gold) !important; }
main .levels-band::before, main .levels-band::after { display: none; }
main .levels-band .heading, main .levels-band .heading__lead { color: var(--navy-950); }
main .levels-band .heading__lead { color: var(--navy-700); }
main .testi { background: var(--gold) !important; }

/* Images and cards: every corner is 15px. */
.page-leadership .ld--admin .people .person img { border-radius: 15px; }

/* ===== One space between every headline and the content under it ===== */
:root { --hg: clamp(20px, 2.1vw, 28px); }
main h2:has(+ *), main .heading:has(+ *) { margin-bottom: var(--hg) !important; }
main h2 + *, main .heading + * { margin-top: 0 !important; }
main .ip .ip__inner { row-gap: var(--hg); }
main .fac__head, main .gal__head, main .nv__head, main .ach__head, main .levels__head, main .notice__head { margin-bottom: var(--hg); }

/* Full-width bands (contact, FAQs, gallery, staff, rules, calendar, patron, founder, why SFS, event pages) */
.inner:has(.fwb-page) { padding-top: 0; padding-bottom: 0; overflow: clip; }
.fwb { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(44px, 5.4vw, 84px) 0; }
.fwb--p { background: #faf9f4; }
.fwb--w { background: #fff; }
.fwb__in { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.fwb__in > :last-child { margin-bottom: 0; }

/* Header: the logo, menu and button run edge to edge, with the same side space as the top bar. */
.site-header__bar,
.site-header.is-stuck .site-header__bar { padding-inline: calc(var(--gutter) + 16px); }

/* Homepage story section: text, photo and quick links side by side */
.ab2__top--3 { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, .9fr); gap: clamp(24px, 3.4vw, 52px); align-items: stretch; }
.ab2__top--3 .ab2__text { align-self: center; }
.ab2__top--3 .ab2__title { font-size: clamp(2rem, 3.4vw, 3.3rem); }
.ab2__top--3 .ab2__lede { max-width: none; font-size: 1rem; line-height: 1.8; }
.ab2__top--3 .ab2__window { width: 100%; max-width: none; margin: 0; aspect-ratio: auto; min-height: 100%; }
.ab2__top--3 .ab2__photo { height: 100%; }
.ab2__top--3 .ab2__photo img, .ab2__top--3 .ab2__photo picture img { width: 100%; height: 100%; object-fit: cover; }
.ab2__links { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); border-top: 3px solid var(--gold); border-radius: 15px; background: var(--navy-950); color: #fff; box-shadow: 0 34px 56px -34px rgba(7, 31, 66, .75); }
.ab2__links-title { margin: 0; font: 500 clamp(1.6rem, 2.2vw, 2.1rem)/1.1 var(--serif); color: #fff; }
.ab2__links-title .heading__lead { display: block; margin-bottom: .45em; font-size: .5em; font-style: italic; font-weight: 400; color: var(--gold); }
.ab2__links-title > span:last-child { color: var(--gold); }
.ab2__links-text { margin: 0; font-size: .9rem; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.ab2__links-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ab2__links-list + .ab2__links-list { margin-top: 2px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ab2__links-list li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ab2__links-list li:last-child { border-bottom: 0; }
.ab2__links-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; font-size: .95rem; font-weight: 600; color: #fff; transition: color .25s var(--ease), padding-left .3s var(--ease); }
.ab2__links-list a i { color: var(--gold); font-size: .85rem; transition: transform .3s var(--ease); }
.ab2__links-list a:hover { color: var(--gold); padding-left: 8px; }
.ab2__links-list a:hover i { transform: translateX(4px); }
@media (max-width: 1100px) {
    .ab2__top--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab2__top--3 .ab2__links { grid-column: 1 / -1; }
    .ab2__top--3 .ab2__window { min-height: 360px; }
}
@media (max-width: 720px) {
    .ab2__top--3 { grid-template-columns: minmax(0, 1fr); }
    .ab2__top--3 .ab2__window { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Story section: a shorter band and a compact quick-links card */
.ab2.section, .ab2 { padding-block: clamp(40px, 4.4vw, 68px); }
.ab2__top--3 { align-items: stretch; }
.ab2__links { gap: 6px; padding: clamp(18px, 2vw, 26px); }
.ab2__links-title { margin-bottom: 6px; font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
.ab2__links-list a { padding: 8px 2px; font-size: .92rem; }
.ab2__top--3 .ab2__window { min-height: 0; }
.ab2.section, .ab2 { padding-block: clamp(28px, 3vw, 44px); }
.ab2__links { padding: clamp(16px, 1.7vw, 22px) clamp(18px, 2vw, 26px); }
.ab2__links-list a { padding: 6px 2px; }

/* Header brand: crest and school name block share one height, name on top, place below */
.brand { align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; }
.brand__text { display: flex; flex-direction: column; justify-content: center; height: 56px; min-width: 0; }
.brand__name { display: block; max-width: none; margin: 0; font: 600 1.28rem/1.1 var(--serif); letter-spacing: -.005em; white-space: nowrap; color: #fff; }
.brand__sub { display: block; margin-top: 4px; font: 700 .68rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 991px) { .brand img { width: 52px; height: 52px; } .brand__text { height: 52px; } }
@media (max-width: 575px) { .brand { gap: 9px; } .brand img { width: 44px; height: 44px; } .brand__text { height: 44px; } .brand__name { font-size: 1.02rem; max-width: none; } .brand__sub { font-size: .6rem; margin-top: 3px; } }
.brand img { width: 50px; height: 50px; }
.brand__text { height: 50px; }
.brand__name { font-size: 1.55rem; line-height: 1.1; }
.brand__sub { margin-top: 7px; font-size: .72rem; }
@media (max-width: 991px) { .brand img { width: 46px; height: 46px; } .brand__text { height: 46px; } .brand__name { font-size: 1.4rem; } }
@media (max-width: 575px) { .brand img { width: 42px; height: 42px; } .brand__text { height: 42px; } .brand__name { font-size: 1.1rem; } .brand__sub { margin-top: 4px; font-size: .62rem; } }
/* Story photo: the hover ring follows the photo's 15px corners */
.ab2__window, main .ab2__window { border-radius: 15px; }

/* Dropdown menus: navy panel, bold white items with a gold marker, gold highlight on hover */
.nav__sub { padding: 12px; background: var(--navy-950); border-top: 3px solid var(--gold); border-radius: 0 0 15px 15px; box-shadow: 0 30px 60px -24px rgba(8, 23, 58, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.nav__sub a { position: relative; padding: 11px 14px 11px 32px; border-radius: 10px; font-size: .94rem; font-weight: 700; letter-spacing: .005em; color: #fff; }
.nav__sub a::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--gold); border-top: 2px solid var(--gold); transform: rotate(45deg); transition: border-color .22s var(--ease), left .3s var(--ease); }
.nav__sub a:hover, .nav__sub a:focus-visible { padding-left: 32px; background: var(--gold); color: var(--navy-950); }
.nav__sub a:hover::before, .nav__sub a:focus-visible::before { border-color: var(--navy-950); left: 17px; }
.nav__sub li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.nav__sub:has(> li:nth-child(5)) li + li { border-top: 0; }
/* Dropdown items stay on one line; two-column menus size themselves to the longest item. */
.nav__sub a, .nav__sub:has(> li:nth-child(5)) a { white-space: nowrap; }
.nav__sub:has(> li:nth-child(5)) { grid-template-columns: repeat(2, max-content); min-width: 0; column-gap: 10px; }
.nav__sub { min-width: 240px; }

/* Homepage news: a short description under each headline */
.nv__desc { margin: 8px 0 0; font-size: .92rem; line-height: 1.6; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nv__item .nv__desc { margin-top: 6px; font-size: .86rem; line-height: 1.55; -webkit-line-clamp: 2; line-clamp: 2; }
.nv__main .nv__desc { font-size: 1rem; }
/* The description sits right under the headline: date, headline, description, then the link. */
.nv__main .nv__desc, .nv__item .nv__desc { order: 3; }
.nv__main .nv__more, .nv__item .nv__more { order: 4; }
/* Featured slide sits on navy, so its description is light */
.nv__main .nv__desc { color: rgba(255, 255, 255, .85); }

/* Photo bands whose heading and text form one white card: no gap between the two halves */
main .ip--i1 .ip__inner { row-gap: 0; }

/* Taglines on light backgrounds use the deep gold (class set by initLeadContrast) */
.lead--dark { color: var(--gold-deep) !important; }

/* Homepage hero strip: today's assembly and today's uniform */
.quick--today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick__today { display: flex; align-items: center; gap: 18px; padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 28px); }
.quick > li.quick__today:first-child { padding-left: 0; }
.quick__today .quick__label { flex: none; }
.quick__value { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding-left: 18px; border-left: 1px solid var(--line-light); font-size: 1.02rem; font-weight: 600; line-height: 1.45; color: #fff; }
.quick__select { max-width: 100%; padding: 5px 28px 5px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 .76rem/1.2 var(--sans); letter-spacing: .04em; cursor: pointer; }
.quick__select option { background: var(--navy-950); color: #fff; }
.quick__select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 760px) {
    .quick--today { grid-template-columns: minmax(0, 1fr); }
    .quick--today > li + li { border-left: 0; border-top: 1px solid var(--line-light); }
    .quick > li.quick__today:nth-child(odd) { padding-left: 0; }
    .quick__today { gap: 14px; }
    .quick__today .quick__label { font-size: .72rem; }
    .quick__value { padding-left: 14px; font-size: .95rem; }
}

/* Hero strip: two links, then today's assembly and uniform, four equal columns */
.quick--mixed { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.quick--mixed > li + li { border-left: 1px solid var(--line-light); }
.quick--mixed .quick__today { flex-wrap: wrap; align-content: center; gap: 10px 14px; padding: clamp(18px, 2.2vw, 28px) clamp(14px, 1.6vw, 22px); }
.quick--mixed .quick__today .quick__label { flex: 1 1 0; min-width: 0; }
.quick--mixed .quick__value { flex: 1 1 100%; padding-left: 0; border-left: 0; font-size: .95rem; }
@media (max-width: 1100px) { .quick--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick--mixed > li:nth-child(3) { border-left: 0; } .quick--mixed > li:nth-child(n+3) { border-top: 1px solid var(--line-light); } .quick--mixed > li:nth-child(odd) .quick__item, .quick--mixed > li:nth-child(odd).quick__today { padding-left: 0; } }
@media (max-width: 560px) { .quick--mixed { grid-template-columns: minmax(0, 1fr); } .quick--mixed > li { border-left: 0 !important; } .quick--mixed > li + li { border-top: 1px solid var(--line-light); } }

/* Today tiles: icon on the left, heading with the answer right under it */
.quick--mixed .quick__today { flex-wrap: nowrap; align-content: normal; align-items: center; gap: 16px; }
.quick__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.quick--mixed .quick__today .quick__label { flex: none; }
.quick--mixed .quick__value { display: block; flex: none; padding: 0; border: 0; font-size: .95rem; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.quick--mixed .quick__select { margin-top: 3px; }
.quick--mixed .quick__select { margin-top: 2px; margin-bottom: 2px; }

/* Gold is the secondary colour: the gold sections use it as a solid background, with navy text */
main .stats, main .levels-band, main .testi { background-color: var(--gold) !important; }
main .levels-band .heading__lead, main .testi .heading__lead { color: var(--navy-900); }
main .testi, main .testi .testi__text, main .testi .testi__author h4, main .testi .heading, main .testi .text-btn, main .testi .text-btn span { color: var(--navy-950); }
main .testi .testi__main { border-color: rgba(7, 31, 66, .28); }
main .testi .testi__dot::before { background: rgba(7, 31, 66, .3); }
main .testi .testi__dot.is-active::before { background: var(--navy-950); }
main .testi .testi__avatar { border-color: var(--navy-950); }

/* Stats icons: no box, a soft circle behind, and a lively hover */
main .stats .stat__icon::before { background: rgba(7, 31, 66, .1); }
main .stats .stat__icon::after { background: rgba(255, 255, 255, .32); }
main .stats .stat:hover .stat__icon { background: transparent; color: var(--navy-950); }
main .stats .stat:hover .stat__icon::before { background: rgba(7, 31, 66, .16); transform: translate(-6px, 3px) scale(1.12); }
main .stats .stat:hover .stat__icon::after { background: rgba(255, 255, 255, .5); transform: translate(8px, -2px) scale(1.18); }
main .stats .stat__icon i { display: inline-block; transition: transform .45s var(--ease); }
main .stats .stat:hover .stat__icon i { animation: statIcon .8s var(--ease) both; }
@keyframes statIcon {
    0% { transform: translateY(0) scale(1) rotate(0); }
    35% { transform: translateY(-9px) scale(1.28) rotate(-10deg); }
    65% { transform: translateY(-3px) scale(1.18) rotate(8deg); }
    100% { transform: translateY(-5px) scale(1.14) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
    main .stats .stat:hover .stat__icon i { animation: none; transform: scale(1.1); }
    main .stats .stat:hover .stat__icon::before, main .stats .stat:hover .stat__icon::after { transform: none; }
}

/* Top bar contact links: navy text on hover (gold would vanish on the gold bar) */
.topbar__contact a:hover, .topbar__contact a:focus-visible { color: var(--navy-950); text-decoration: underline; text-underline-offset: 3px; }

/* Leadership: Administration (3) and Management Team (2) are centred rows of the same cards */
.page-leadership .ld--admin .people { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2vw, 28px); }
.page-leadership .ld--admin .people .person { flex: 0 0 calc((100% - 3 * clamp(16px, 2vw, 28px)) / 4); min-width: 0; }
@media (max-width: 900px) { .page-leadership .ld--admin .people .person { flex-basis: calc((100% - clamp(16px, 2vw, 28px)) / 2); } }
@media (max-width: 480px) { .page-leadership .ld--admin .people .person { flex-basis: 100%; } }
.page-leadership .ld--management { padding-top: 0; }

/* Staff Council: designation on its own line, the grade or section below it in blue */
.page-leadership .ld--council .people .person figcaption { align-items: center; }
.page-leadership .ld--council .people .person figcaption .line { display: block; }
.page-leadership .ld--council .people .person figcaption .line + .line { margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: rgba(24, 86, 173, .1); color: var(--navy-700); font-weight: 700; }

/* Staff Council cards sit on navy: no gold line under the name, and the grade pill is light so it can be read */
.page-leadership .ld--council .people .person figcaption strong::after { display: none; }
.page-leadership .ld--council .people .person figcaption .line + .line { background: rgba(255, 255, 255, .16); color: #fff; }

/* Administration: three cards fill the whole row. Management Team: two cards on the left, same size. */
.page-leadership .ld--admin .people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: clamp(18px, 2.4vw, 34px); }
.page-leadership .ld--admin .people .person { flex: none; width: auto; }
@media (max-width: 900px) { .page-leadership .ld--admin .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .page-leadership .ld--admin .people { grid-template-columns: minmax(0, 1fr); } }

/* Leadership cards: names (even when they wrap to two lines) and designations are centred */
.page-leadership .ld .people .person figcaption { text-align: center; align-items: center; }
.page-leadership .ld .people .person figcaption strong, .page-leadership .ld .people .person figcaption .line { text-align: center; }

/* Space between the Administration cards and the Management Team heading */
.page-leadership .ld--management { padding-top: clamp(44px, 5.4vw, 80px); }


/* Co-ordinator's message band: heading on top, card and message across the full width, on every stage page */
.ip.ip--coord .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; align-items: start; }
.ip.ip--coord .ip__media { display: none; }
.ip.ip--coord .ip__side { grid-area: side; position: static; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; }
.ip.ip--coord .ip__main { grid-area: main; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; display: block; }
.ip.ip--coord .ip__side h2 { color: var(--navy-950); }
.ip.ip--coord .ip__no, .ip.ip--coord .heading__lead { color: var(--gold-deep); }

/* Co-ordinator's message: arched portrait with a gold frame, a large quote, and a signature block */
.cmsg { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.cmsg__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.cmsg__photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: 145px 145px 15px 15px; }
.cmsg__photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 145px 145px 15px 15px; background: var(--paper); box-shadow: 0 34px 56px -30px rgba(7, 31, 66, .6); }
.cmsg__body { position: relative; min-width: 0; padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 44px); border-left: 4px solid var(--gold); border-radius: 0 15px 15px 0; background: #fff; box-shadow: 0 30px 56px -38px rgba(7, 31, 66, .5); }
.cmsg__mark { display: block; margin: 0 0 -10px; font: 700 clamp(4.5rem, 7vw, 6.5rem)/.8 var(--serif); color: var(--gold); }
.cmsg__text p { margin: 0 0 1em; font: italic 400 clamp(1.1rem, 1.55vw, 1.4rem)/1.75 var(--serif); color: var(--navy-900); }
.cmsg__text p:last-child { margin-bottom: 0; }
.cmsg__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: clamp(18px, 2.4vw, 30px); padding-top: clamp(14px, 2vw, 22px); border-top: 1px solid rgba(7, 31, 66, .14); }
.cmsg__name { flex: 1 0 100%; font: 700 clamp(1.15rem, 1.5vw, 1.4rem)/1.2 var(--serif); font-style: normal; color: var(--navy-950); }
.cmsg__role { font: 800 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.cmsg__grade { padding: 5px 14px; border-radius: 999px; background: var(--navy-900); color: #fff; font: 700 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .cmsg { grid-template-columns: minmax(0, 1fr); } .cmsg__photo { width: min(70%, 260px); margin-inline: auto 14px; } }

/* Co-ordinator photo, take two: a framed portrait with a navy block behind it and a gold dot pattern in the corner */
.cmsg__photo { aspect-ratio: 4 / 5; margin: 0 18px 18px 0; }
.cmsg__photo::before { inset: 22px -18px -18px 22px; border: 0; border-radius: 15px; background: var(--navy-900); }
.cmsg__photo::after { content: ""; position: absolute; z-index: 0; top: -22px; left: -22px; width: 96px; height: 96px; background: radial-gradient(circle, var(--gold) 2.6px, transparent 3px) 0 0 / 16px 16px; }
.cmsg__photo img { z-index: 1; border: 5px solid #fff; border-radius: 15px; object-position: 50% 15%; box-shadow: 0 26px 44px -22px rgba(7, 31, 66, .7); }
@media (max-width: 760px) { .cmsg__photo { width: min(72%, 270px); margin: 0 auto 18px; } }

/* Co-ordinator photo, take three: a round portrait with a gold ring, a soft blue disc behind and a gold badge */
.cmsg__photo { aspect-ratio: 1; margin: 0; width: 100%; max-width: 290px; }
.cmsg__photo::before { inset: 10% -12% -12% 10%; border: 0; border-radius: 50%; background: rgba(8, 51, 88, .1); }
.cmsg__photo::after { content: "\f19d"; top: auto; left: auto; right: 2%; bottom: 3%; z-index: 2; display: grid; place-items: center; width: 22%; height: 22%; border: 4px solid #fff; border-radius: 50%; background: var(--gold); color: var(--navy-950); font: normal 1.5rem/1 FontAwesome; box-shadow: 0 14px 24px -10px rgba(7, 31, 66, .55); }
.cmsg__photo img { border: 6px solid #fff; border-radius: 50%; outline: 3px solid var(--gold); outline-offset: 9px; object-position: 50% 14%; box-shadow: 0 30px 50px -26px rgba(7, 31, 66, .65); }
@media (max-width: 760px) { .cmsg__photo { width: min(70%, 250px); margin: 0 auto 18px; } }

/* Stage page gallery: heading on top, six photos in an even three-column grid */
.ip.ip--gal .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; align-items: start; }
.ip.ip--gal .ip__media { display: none; }
.ip.ip--gal .ip__side { grid-area: side; position: static; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; }
.ip.ip--gal .ip__main { grid-area: main; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; display: block; }
.ip.ip--gal .ip__side h2 { color: var(--navy-950); }
.ip.ip--gal .ip__no, .ip.ip--gal .heading__lead { color: var(--gold-deep); }
.ip--gal .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(10px, 1.4vw, 18px); margin: 0; }
.ip--gal .gallery img, .ip--gal .gallery img:nth-child(n) { grid-column: auto; grid-row: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; box-shadow: 0 22px 40px -28px rgba(7, 31, 66, .55); }
@media (max-width: 700px) { .ip--gal .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shorter banner so more of the first section shows, and that section rises into place */
.page-hero { min-height: clamp(300px, 25vw, 380px); padding-bottom: clamp(44px, 5vw, 76px); }
.first-up { animation: firstUp .9s var(--ease) both; }
@keyframes firstUp { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .first-up { animation: none; } }
.page-hero { padding-top: calc(var(--header-h) + 26px); padding-bottom: clamp(36px, 4vw, 60px); }

/* Every inner page banner is the same size: fixed height, title in the same place, subtitle at most two lines */
.page-hero { align-items: flex-start; height: clamp(330px, 29vw, 404px); min-height: 0; box-sizing: border-box; }
.page-hero__inner { width: 100%; }
.page-hero__text { max-width: 44em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .page-hero { height: auto; min-height: 300px; } .page-hero__title { font-size: clamp(2rem, 9vw, 2.6rem); } }
@media (max-width: 700px) { .page-hero { height: 350px; min-height: 0; } }

/* ===== Dropdown menus, redesigned: white card, round markers with a chevron, soft highlight on hover ===== */
.nav__sub { padding: 12px; background: #fff; border-top: 3px solid var(--gold); border-radius: 0 0 15px 15px; box-shadow: 0 34px 64px -26px rgba(7, 31, 66, .5), 0 0 0 1px rgba(7, 31, 66, .06); }
.nav__sub:has(> li:nth-child(5)) { column-gap: 8px; row-gap: 2px; }
.nav__sub li + li, .nav__sub:has(> li:nth-child(5)) li + li { border-top: 0; }
.nav__sub a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 10px; border-radius: 12px; font-size: .94rem; font-weight: 600; letter-spacing: 0; color: var(--navy-900); transition: background-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.nav__sub a::before { content: ""; position: static; flex: none; width: 28px; height: 28px; margin: 0; border: 0; border-radius: 50%; background: #faf9f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23a06f00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 1.5L7 5L3.5 8.5'/%3E%3C/svg%3E") center / 10px no-repeat; transform: none; transition: background-color .25s var(--ease); }
.nav__sub a:hover, .nav__sub a:focus-visible { padding-left: 10px; background: #e6eaf2; color: var(--navy-950); transform: translateX(3px); box-shadow: inset 3px 0 0 var(--gold); }
.nav__sub a:hover::before, .nav__sub a:focus-visible::before { left: auto; border: 0; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%230a1d3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 1.5L7 5L3.5 8.5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Profile of a DeSalite: the banner already shows the title, so the section starts with its content */
.page-desalite-profile .ip__side { display: none; }
.page-desalite-profile .ip .ip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.page-desalite-profile .ip .ip__main { grid-area: main; width: 100%; max-width: none; }

/* Submenu with two columns: items run down the left column, then continue down the right one */
.nav__sub:has(> li:nth-child(5)) { grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto); }
@media (min-width: 520px) { .drawer__sub:not([hidden]):has(> li:nth-child(5)) { grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 4), auto); } }

/* Academic Programmes band: warm cream, from the same cream family the site already uses, so it sits between the pale blue and white sections */
main .levels-band { background-color: #faf9f4 !important; background-image: linear-gradient(180deg, #faf9f4 0%, #faf9f4 100%) !important; }
main .levels-band .heading { color: var(--navy-950); }
main .levels-band .heading__lead { color: var(--gold-deep); }

/* Plain light sections: layered soft glows in the site's blue and gold (class added by initPlainPatterns) */
body .bgg.bgg.bgg-1 {
    background-image:
        radial-gradient(60% 75% at 0% 0%, rgba(24, 86, 173, .11), transparent 62%),
        radial-gradient(50% 65% at 100% 100%, rgba(212, 175, 55, .16), transparent 64%),
        linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%) !important;
}
body .bgg.bgg.bgg-2 {
    background-image:
        radial-gradient(55% 70% at 100% 0%, rgba(212, 175, 55, .16), transparent 62%),
        radial-gradient(62% 75% at 0% 100%, rgba(24, 86, 173, .10), transparent 64%),
        linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%) !important;
}
body .bgg.bgg.bgg-3 {
    background-image:
        radial-gradient(48% 60% at 50% 0%, rgba(24, 86, 173, .09), transparent 72%),
        radial-gradient(70% 55% at 50% 112%, rgba(212, 175, 55, .15), transparent 62%),
        radial-gradient(34% 44% at 94% 40%, rgba(24, 86, 173, .06), transparent 70%) !important;
}

/* History at a Glance on the Leadership page: the tagline and heading line up on the left */
.hist-embed .ip__side, .hist-embed .ip__side h2, .hist-embed .ip__side h2 .heading__lead { text-align: left; }
.hist-embed .ip__side h2::after { margin-inline: 0; }

/* Instrument Serif has one weight (regular) and an italic; stop the browser from faking bold on headings */
html { font-synthesis-weight: none; }

/* Instrument Serif is small for its em box; this scaled copy makes every serif text about 18% larger without touching each rule. */
@font-face { font-family: "Instrument Serif Fit"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 118%; src: url(https://fonts.gstatic.com/s/instrumentserif/v5/jizBRFtNs2ka5fXjeivQ4LroWlx-2zI.ttf) format("truetype"); }
@font-face { font-family: "Instrument Serif Fit"; font-style: italic; font-weight: 400; font-display: swap; size-adjust: 118%; src: url(https://fonts.gstatic.com/s/instrumentserif/v5/jizHRFtNs2ka5fXjeivQ4LroWlx-6zATiw.ttf) format("truetype"); }

/* ==========================================================================
   Colour system: Deep Navy #0B2D5B, Royal Blue #1E6FD9, Gold #D4AF37,
   Warm Cream #FAF9F4, Soft Grey #E6EAF2, Charcoal #1F2937.
   Light sections alternate cream, white and soft grey; navy carries the header, hero, footer and a few feature bands.
   ========================================================================== */
:root {
    --navy: #0b2d5b;
    --royal: #1e6fd9;
    --gold: #d4af37;
    --gold-light: #f7d774;
    --cream: #faf9f4;
    --paper: #e6eaf2;
    --ink: #1f2937;
    --body: #1f2937;
    --red: #d4af37;
    --grad-navy: linear-gradient(135deg, #0b2d5b 0%, #1e6fd9 100%);
    --grad-gold: linear-gradient(135deg, #d4af37 0%, #f7d774 100%);
    --overlay-navy: linear-gradient(90deg, rgba(11, 45, 91, .94) 0%, rgba(11, 45, 91, .70) 50%, rgba(11, 45, 91, .12) 100%);
    --t: .25s ease;
}
body { background: var(--cream); color: var(--ink); }

/* Home: the rhythm of light and navy bands */
main .ab2 { background: var(--cream) !important; }
main .principal { background: var(--paper) !important; }
main .levels-band { background: #fff !important; }
main .acad { background: var(--cream) !important; }
main .fac { background: var(--paper) !important; }
main .testi { background: var(--cream) !important; }
main .nv, main .news { background-color: var(--cream); }
main .levels-band .heading, main .testi .heading,
main .testi .testi__text, main .testi .testi__author h4 { color: var(--navy); }
main .levels-band .heading__lead, main .testi .heading__lead { color: var(--royal); }
main .testi .text-btn, main .testi .text-btn span { color: var(--royal); }

/* Headings: navy on light, white on navy; gold only as a small accent */
h1, h2, h3, h4 { color: var(--navy); }
.hero h1, .hero__title, .page-hero h1, .page-hero__title, .site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.ip--i2 h2, .ip--i2 h3, .fwb--dark h2, .ach h2, .ach h3, .gal h2, .gal h3, .admit h2, .admit h3 { color: #fff; }
.heading__lead, .level__tag { color: var(--royal); }
.hero .heading__lead, .page-hero .heading__lead, .ach .heading__lead, .gal .heading__lead, .site-footer .heading__lead, .admit .heading__lead,
.hero__eyebrow, .page-hero__eyebrow { color: var(--gold); }
.lead--dark .heading__lead, .lead--dark { color: var(--gold-light); }

/* Buttons: navy primary, gold secondary, navy outline; 250ms transitions */
.btn, .hero__cta { background: var(--navy); color: #fff; transition: background-color var(--t), color var(--t), border-color var(--t), box-shadow var(--t), translate var(--t); }
.btn:hover, .hero__cta:hover { background: var(--royal); color: #fff; }
.btn i { background: var(--gold); color: var(--navy); }
.btn:hover i { background: #fff; color: var(--navy); }
.hero__cta { background: var(--grad-gold); color: var(--navy); }
.hero__cta:hover { background: var(--gold-light); color: var(--navy); }
.hero__cta--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.hero__cta--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.admit__actions .btn:not(.btn--line) { background: var(--grad-gold); color: var(--navy); }
.admit__actions .btn:not(.btn--line):hover { background: var(--gold-light); }
.btn--line { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }

/* Links: royal blue, darker on hover */
.prose a, .link-arrow, .text-btn { color: var(--royal); }
.prose a:hover, .link-arrow:hover, .text-btn:hover { color: var(--navy); }
.prose a { text-decoration-color: rgba(30, 111, 217, .35); text-underline-offset: 3px; transition: color var(--t); }
.nav__link { transition: color var(--t); }

/* Header, hero and footer */
.hero::after { background: var(--overlay-navy); }
.site-footer { background: var(--navy); color: #fff; }
.site-footer p, .site-footer li, .site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold); }
.site-footer .fa, .site-footer i { color: var(--gold); }

/* Forms: royal focus, soft grey borders */
input, select, textarea { border-color: var(--paper); color: var(--ink); background: #fff; transition: border-color var(--t), box-shadow var(--t); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(30, 111, 217, .25); }
label { color: var(--navy); }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.hero :focus-visible, .site-footer :focus-visible, .topbar :focus-visible, .site-header :focus-visible, .ach :focus-visible, .gal :focus-visible { outline-color: var(--gold); }

/* Images zoom softly on hover */
.gal__tile img, .fac__card img, .news-tile img, .nv__img img { transition: transform .45s ease; }
.gal__tile:hover img, .fac__card:hover img, .news-tile:hover img { transform: scale(1.04); }

/* Serif headings need more air when they wrap: a line-height of at least 1.2 everywhere, a little more on the big hero title. */
body h1, body h2, body h3, body h4,
body .heading, body .hero__title, body .page-hero__title, body .ab2__links-title, body .gal__headline, body .vm__label { line-height: 1.2; }
body .hero .hero__title, body .hero__title { line-height: 1.18; }
body main h2.heading, body main .ip h2 { line-height: 1.2; }
body main .ip__side h2, body main .ip__side h3, body main .vm__label, body main .vm-objectives h3, body main .vm h2, body main .vm h3 { line-height: 1.2; }
/* Same minimum, with priority over the band and page rules that set a tight 1.08. */
body main :is(.prose, .vm, .vm-objectives, .ip__side) :is(h2, h3, .vm__label) { line-height: 1.2 !important; }

/* Academic Achievements: staggered mosaic. One large featured photo, a wide photo in the second row, and numbered tiles whose captions appear on hover. */
main .ach .ach__list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 205px); gap: clamp(10px, 1.2vw, 16px); counter-reset: ach; }
main .ach .ach__item { aspect-ratio: auto; grid-column: auto; grid-row: auto; counter-increment: ach; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .7); }
main .ach .ach__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
main .ach .ach__item:nth-child(4) { grid-column: span 2; }
main .ach .ach__item::after { display: none; }
main .ach .ach__item::before { content: counter(ach, decimal-leading-zero); display: grid; place-items: center; position: absolute; z-index: 2; left: 12px; top: 12px; right: auto; bottom: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--navy-900); font: 700 .72rem/1 var(--sans); letter-spacing: .04em; transform: none; transition: background-color .25s ease, color .25s ease; }
main .ach .ach__item:hover::before { background: var(--gold); color: var(--navy-950); transform: none; }
main .ach .ach__item:hover { transform: translateY(-4px); box-shadow: 0 28px 46px -22px rgba(0, 0, 0, .75), 0 0 0 1px var(--gold); }
main .ach .ach__cap { z-index: 1; padding: 44px 16px 16px; font-size: 1.05rem; line-height: 1.3; background: linear-gradient(0deg, rgba(7, 31, 66, .92), rgba(7, 31, 66, 0)); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
main .ach .ach__item:hover .ach__cap, main .ach .ach__item:focus-within .ach__cap { opacity: 1; transform: none; }
main .ach .ach__item:nth-child(1) .ach__cap { opacity: 1; transform: none; padding: 70px 22px 22px; font-size: clamp(1.3rem, 2vw, 1.75rem); }
main .ach .ach__item:nth-child(1) .ach__cap::before { content: "Featured"; display: block; margin-bottom: 6px; font: 700 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (hover: none) { main .ach .ach__cap { opacity: 1; transform: none; font-size: .95rem; padding-top: 34px; } }
@media (max-width: 767px) {
    main .ach .ach__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
    main .ach .ach__item:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
    main .ach .ach__item:nth-child(4) { grid-column: 1 / -1; }
}

/* Academic Achievements: cinematic showcase. A wide featured photo changes by itself; the other photos sit in a strip underneath. */
main .ach .ach__grid--show { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3.4vw, 44px); }
main .ach .ach__grid--show .ach__intro { position: static; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
main .ach .ach__grid--show .ach__intro p { margin: 0; max-width: 34em; }
.achs__frame { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 15px; background: var(--navy-950); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
.achs__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 6s ease-out; }
.achs__img.is-on { opacity: 1; transform: scale(1); }
.achs__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 31, 66, .88) 0%, rgba(7, 31, 66, .25) 42%, rgba(7, 31, 66, 0) 70%); }
.achs__info { position: absolute; left: clamp(18px, 3vw, 40px); right: 130px; bottom: clamp(18px, 2.6vw, 34px); color: #fff; }
.achs__count { display: block; margin-bottom: 8px; font: 500 .8rem/1 var(--sans); letter-spacing: .2em; color: rgba(255, 255, 255, .75); }
.achs__count b { color: var(--gold); font-weight: 700; }
.achs__cap { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.2; color: #fff; }
.achs__nav { position: absolute; right: clamp(16px, 2.6vw, 34px); bottom: clamp(18px, 2.6vw, 34px); display: flex; gap: 10px; }
.achs__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(7, 31, 66, .35); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.achs__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.achs__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--gold-light, var(--gold)); }
.achs__bar.is-run { animation: achsBar 5.5s linear forwards; }
@keyframes achsBar { to { width: 100%; } }
main .ach .ach__list { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(8px, 1vw, 14px); }
main .ach .ach__grid--show .ach__item, main .ach .ach__grid--show .ach__item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; cursor: pointer; border: 0; opacity: .55; box-shadow: none; transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease; }
main .ach .ach__grid--show .ach__item:hover { opacity: .9; transform: translateY(-3px); box-shadow: none; }
main .ach .ach__grid--show .ach__item.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
main .ach .ach__grid--show .ach__item::before, main .ach .ach__grid--show .ach__item::after, main .ach .ach__grid--show .ach__cap { display: none; }
@media (max-width: 991px) {
    main .ach .ach__grid--show .ach__intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .achs__frame { aspect-ratio: 4 / 3; }
    .achs__info { right: 16px; bottom: 76px; }
    .achs__nav { left: 16px; right: auto; }
    main .ach .ach__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Academic Achievements: expanding panels. The open panel is wide and shows its caption; the others are slim and show a turned title. */
main .ach .ach__list.ach__list--acc { display: flex; gap: clamp(8px, .9vw, 12px); height: clamp(380px, 38vw, 520px); grid-template-columns: none; }
main .ach .ach__list--acc .ach__item, main .ach .ach__list--acc .ach__item:nth-child(n) { flex: 1 1 0; min-width: 0; aspect-ratio: auto; grid-column: auto; grid-row: auto; border: 0; opacity: 1; cursor: pointer; transition: flex-grow .7s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, transform .3s ease; }
main .ach .ach__list--acc .ach__item.is-open { flex-grow: 7; box-shadow: 0 0 0 2px var(--gold), 0 30px 50px -28px rgba(0, 0, 0, .8); }
main .ach .ach__list--acc .ach__item:hover { transform: none; }
main .ach .ach__list--acc .ach__item::after { display: none; }
main .ach .ach__list--acc .ach__item::before { left: 50%; top: 14px; width: 30px; height: 30px; margin-left: -15px; font-size: .68rem; transition: left .5s ease, margin .5s ease, background-color .25s ease, color .25s ease; }
main .ach .ach__list--acc .ach__item.is-open::before { left: 16px; margin-left: 0; background: var(--gold); color: var(--navy-950); }
main .ach .ach__list--acc .ach__item img { filter: saturate(.75) brightness(.7); transition: filter .6s ease, transform .9s ease; }
main .ach .ach__list--acc .ach__item.is-open img { filter: none; transform: scale(1.03); }
main .ach .ach__list--acc .ach__cap { opacity: 0; transform: translateY(10px); padding: 70px 22px 22px; font-size: clamp(1.2rem, 2vw, 1.7rem); white-space: normal; pointer-events: none; transition: opacity .4s ease .25s, transform .4s ease .25s; }
main .ach .ach__list--acc .ach__item.is-open .ach__cap { opacity: 1; transform: none; }
main .ach .ach__list--acc .ach__item:nth-child(1) .ach__cap { opacity: 0; font-size: clamp(1.2rem, 2vw, 1.7rem); padding: 70px 22px 22px; }
main .ach .ach__list--acc .ach__item:nth-child(1).is-open .ach__cap { opacity: 1; }
main .ach .ach__list--acc .ach__item:nth-child(1) .ach__cap::before { display: none; }
.ach__side { position: absolute; left: 50%; bottom: 18px; z-index: 1; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); max-height: 70%; overflow: hidden; font: 600 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); white-space: nowrap; text-overflow: ellipsis; transition: opacity .3s ease; }
.ach__item.is-open .ach__side { opacity: 0; }
@media (max-width: 767px) {
    main .ach .ach__list.ach__list--acc { flex-direction: column; height: auto; }
    main .ach .ach__list--acc .ach__item, main .ach .ach__list--acc .ach__item:nth-child(n) { flex: none; height: 64px; transition: height .6s cubic-bezier(.2, .7, .2, 1); }
    main .ach .ach__list--acc .ach__item.is-open { height: 260px; }
    main .ach .ach__list--acc .ach__item::before { left: 14px; margin-left: 0; top: 17px; }
    .ach__side { writing-mode: horizontal-tb; transform: none; left: 56px; bottom: auto; top: 24px; max-height: none; max-width: calc(100% - 72px); }
}

/* Academic Achievements: memory wall. Photos are framed prints on cream mats, tilted a little and overlapping; hovering straightens one. */
main .ach .ach__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: clamp(22px, 2.6vw, 38px) clamp(10px, 1.2vw, 18px); padding: 10px 6px 20px; height: auto; }
main .ach .ach__item, main .ach .ach__item:nth-child(n) { display: flex; flex-direction: column; aspect-ratio: auto; grid-column: auto; grid-row: auto; flex: none; height: auto; padding: 9px 9px 0; background: var(--cream); border: 0; border-radius: 6px; opacity: 1; cursor: default; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .65); transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0px)); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
main .ach .ach__item:nth-child(8n+1) { --tilt: -2.6deg; }
main .ach .ach__item:nth-child(8n+2) { --tilt: 2deg; --drop: 18px; }
main .ach .ach__item:nth-child(8n+3) { --tilt: -1.6deg; }
main .ach .ach__item:nth-child(8n+4) { --tilt: 3deg; --drop: 14px; }
main .ach .ach__item:nth-child(8n+5) { --tilt: 2.4deg; }
main .ach .ach__item:nth-child(8n+6) { --tilt: -2.8deg; --drop: 16px; }
main .ach .ach__item:nth-child(8n+7) { --tilt: 1.8deg; }
main .ach .ach__item:nth-child(8n+8) { --tilt: -2.2deg; --drop: 12px; }
main .ach .ach__item:hover { --tilt: 0deg; transform: rotate(0deg) translateY(-10px) scale(1.04); z-index: 3; box-shadow: 0 32px 50px -18px rgba(0, 0, 0, .8), 0 0 0 2px var(--gold); background: var(--cream); }
main .ach .ach__item picture { position: relative; inset: auto; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
main .ach .ach__item img { width: 100%; height: 100%; object-fit: cover; filter: none; }
main .ach .ach__item::after { display: block; content: ""; position: static; width: 26px; height: 3px; margin: 0 0 12px 8px; border-radius: 3px; background: var(--gold); order: 3; transition: width .4s ease; }
main .ach .ach__item:hover::after { width: 64px; }
main .ach .ach__item::before { display: grid; left: 18px; top: 18px; width: 30px; height: 30px; margin: 0; background: var(--navy-900); color: var(--gold); transform: none; }
main .ach .ach__item:hover::before { background: var(--gold); color: var(--navy-950); }
main .ach .ach__cap, main .ach .ach__item:nth-child(1) .ach__cap { position: static; order: 2; opacity: 1; transform: none; padding: 14px 8px 8px; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.25; color: var(--navy-900); background: none; pointer-events: auto; }
main .ach .ach__item:nth-child(1) .ach__cap::before { display: none; }
main .ach .ach__side { display: none; }
@media (max-width: 991px) {
    main .ach .ach__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    main .ach .ach__item:nth-child(n) { --drop: 0px; }
}
/* Academic Achievements: no number chips on the prints */
main .ach .ach__item::before, main .ach .ach__item:hover::before { display: none; }

/* Academic Achievements: editorial mosaic. Photos fill the grid edge to edge in tiles of different sizes; each caption sits on a navy fade with a short gold rule. */
main .ach .ach__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 11.4vw, 160px); gap: clamp(8px, 1vw, 14px); padding: 0; height: auto; counter-reset: none; }
main .ach .ach__item, main .ach .ach__item:nth-child(n) { position: relative; display: block; flex: none; height: auto; padding: 0; aspect-ratio: auto; grid-column: auto; grid-row: auto; background: var(--navy-950); border: 0; border-radius: 15px; overflow: hidden; cursor: default; transform: none; box-shadow: 0 22px 40px -28px rgba(0, 0, 0, .75); transition: box-shadow .4s ease, transform .4s ease; }
main .ach .ach__item:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 3; }
main .ach .ach__item:nth-child(2) { grid-column: 3 / span 2; grid-row: 1 / span 2; }
main .ach .ach__item:nth-child(3) { grid-column: 3; grid-row: 3; }
main .ach .ach__item:nth-child(4) { grid-column: 4; grid-row: 3; }
main .ach .ach__item:nth-child(5) { grid-column: 1; grid-row: 4 / span 2; }
main .ach .ach__item:nth-child(6) { grid-column: 2 / span 2; grid-row: 4 / span 2; }
main .ach .ach__item:nth-child(7) { grid-column: 4; grid-row: 4; }
main .ach .ach__item:nth-child(8) { grid-column: 4; grid-row: 5; }
main .ach .ach__item:hover { transform: translateY(-4px); background: var(--navy-950); box-shadow: 0 28px 46px -24px rgba(0, 0, 0, .85), 0 0 0 1px var(--gold); }
main .ach .ach__item picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
main .ach .ach__item img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
main .ach .ach__item:hover img { transform: scale(1.07); }
main .ach .ach__item::before { display: none; }
main .ach .ach__item::after { display: block; content: ""; position: absolute; left: 14px; bottom: 12px; top: auto; width: 26px; height: 3px; margin: 0; border-radius: 3px; background: var(--gold); order: 0; transition: width .45s ease; z-index: 2; }
main .ach .ach__item:hover::after { width: 60px; }
main .ach .ach__cap, main .ach .ach__item:nth-child(1) .ach__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; order: 0; opacity: 1; transform: none; padding: 46px 14px 24px; font-family: var(--serif); font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.2; color: #fff; background: linear-gradient(0deg, rgba(7, 31, 66, .92) 0%, rgba(7, 31, 66, .55) 55%, rgba(7, 31, 66, 0) 100%); pointer-events: none; }
main .ach .ach__item:nth-child(1) .ach__cap { padding: 80px 22px 30px; font-size: clamp(1.4rem, 2.2vw, 2rem); }
main .ach .ach__item:nth-child(1)::after { left: 22px; bottom: 18px; }
main .ach .ach__item:nth-child(1) .ach__cap::before { display: none; }
@media (max-width: 991px) {
    main .ach .ach__list { grid-auto-rows: clamp(110px, 24vw, 170px); }
}
@media (max-width: 575px) {
    main .ach .ach__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
    main .ach .ach__item:nth-child(n) { grid-column: auto; grid-row: auto; }
    main .ach .ach__item:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
    main .ach .ach__item:nth-child(6) { grid-column: 1 / -1; }
}

/* Academic Achievements: slider. Heading and arrows on top, tall photo cards that scroll sideways, dots underneath. */
main .ach .ach__grid--slide { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
main .ach .ach__grid--slide .ach__intro { position: static; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: clamp(18px, 3.4vw, 56px); align-items: end; }
main .ach .ach__grid--slide .ach__intro p { margin: 0; max-width: 34em; }
.achn { display: flex; gap: 10px; }
.achn__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.achn__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
main .ach .ach__list.ach__list--slide { display: flex; gap: clamp(12px, 1.4vw, 20px); height: auto; padding: 8px 0 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; grid-template-columns: none; }
main .ach .ach__list--slide::-webkit-scrollbar { display: none; }
main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { flex: 0 0 calc((100% - 3 * clamp(12px, 1.4vw, 20px)) / 3.4); height: clamp(320px, 31vw, 440px); aspect-ratio: auto; grid-column: auto; grid-row: auto; scroll-snap-align: start; cursor: grab; }
main .ach .ach__list--slide .ach__item:hover { transform: translateY(-6px); }
main .ach .ach__list--slide .ach__item::after { left: 22px; bottom: 20px; }
main .ach .ach__list--slide .ach__cap, main .ach .ach__list--slide .ach__item:nth-child(1) .ach__cap { padding: 90px 22px 38px; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.2; }
.achd { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.achd button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.achd button.is-on { width: 30px; background: var(--gold); }
@media (max-width: 991px) {
    main .ach .ach__grid--slide .ach__intro { grid-template-columns: minmax(0, 1fr) auto; }
    main .ach .ach__grid--slide .ach__intro > p { grid-column: 1 / -1; grid-row: 2; }
    main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { flex-basis: 62%; height: clamp(300px, 62vw, 420px); }
}
@media (max-width: 575px) {
    main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { flex-basis: 82%; }
    .achn__btn { width: 44px; height: 44px; }
}
/* Academic Achievements slider: heading, paragraph and arrows share one centre line */
main .ach .ach__grid--slide .ach__intro { align-items: center; }
main .ach .ach__grid--slide .ach__intro .heading { margin: 0; }
main .ach .ach__grid--slide .ach__intro .achn { justify-self: end; }

/* Tighter space between a section headline and its text: the rule under the headline sits closer, and the text follows it sooner. */
body main :is(.ab2, .levels-band, .acad, .fac, .testi, .ach, .news) .heading { padding-bottom: 12px; margin-bottom: 14px; }
body main .heading { margin-bottom: 14px; }
body main :is(.cl-fac__head, .cl-cele__head, .admit__inner, .ach__intro) .heading { margin-bottom: 12px; }
body main .ip .ip__side > p, body main .ip .ip__main > p:first-child { margin-top: clamp(10px, 1.2vw, 16px); }
body main .ip :is(h2, h3) + p { margin-top: clamp(10px, 1.2vw, 16px); }
body .prose h3 + p, body .prose h2 + p { margin-top: 12px; }
/* One rule for every headline that is followed by text: the headline sets the gap (14px) and the text adds none. */
body main :is(h2, h3, .heading, .vm__label):has(+ p):not(.nv__main-title) { margin-bottom: 14px !important; }
body main :is(h2, h3, .heading, .vm__label) + p { margin-top: 0 !important; }
body main :is(.ab2, .levels-band, .acad, .fac, .testi, .ach, .news) .heading:has(+ p) { padding-bottom: 12px; }
@media (max-width: 991px) {
    body main :is(.cl-fac__head, .cl-cele__head, .ach__intro) { row-gap: 0; }
    body main .ach__grid--slide .ach__intro { row-gap: 0; }
}
@media (max-width: 991px) {
    body main :is(.cl-fac__head, .cl-cele__head, .ach__intro) { row-gap: 0 !important; }
}

/* Hero strip: the date under Today's Assembly. */
.quick__date { display: block; margin-top: 4px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.quick__date:empty { display: none; }

/* Today's assembly and uniform: a soft gold ripple and a blinking dot on the icon show the tile is live. Runs even with reduced motion, as it is small and slow. */
.quick--mixed .quick__today .quick__icon { position: relative; overflow: visible; }
.quick--mixed .quick__today .quick__icon::before,
.quick--mixed .quick__today .quick__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; animation: liveRing 2.4s ease-out infinite; }
.quick--mixed .quick__today .quick__icon::after { animation-delay: 1.2s; }
.quick--mixed .quick__today .quick__icon i { position: relative; z-index: 1; }
.quick--mixed .quick__today .quick__icon i::after { content: ""; position: absolute; right: -16px; top: -16px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--navy-950), 0 0 8px 2px rgba(255, 255, 255, .8); animation: liveDot 1.2s ease-in-out infinite; }
@keyframes liveRing { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes liveDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

/* Hero: a darker navy overlay (stronger on the left for the text and along the bottom for the quick strip) so the white text and icons stay clear over the photo. */
.hero::after { background: linear-gradient(0deg, rgba(7, 31, 66, .96) 0%, rgba(7, 31, 66, .78) 24%, rgba(7, 31, 66, 0) 58%), linear-gradient(90deg, rgba(11, 45, 91, .95) 0%, rgba(11, 45, 91, .82) 50%, rgba(11, 45, 91, .42) 100%); }
/* No blinking dot on the today icons: only the ripple stays. */
.quick--mixed .quick__today .quick__icon i::after { content: none; animation: none; }

/* Hero: a lighter overlay. Dark only behind the headline (left) and the quick strip (bottom); the photo stays bright on the right and in the middle. */
.hero::after { background: linear-gradient(0deg, rgba(7, 31, 66, .9) 0%, rgba(7, 31, 66, .6) 14%, rgba(7, 31, 66, 0) 36%), linear-gradient(90deg, rgba(11, 45, 91, .86) 0%, rgba(11, 45, 91, .58) 38%, rgba(11, 45, 91, .16) 68%, rgba(11, 45, 91, 0) 100%); }

/* Co-ordinator message: "Warm regards," above the name */
.cmsg__regards { flex: 1 0 100%; margin-bottom: -2px; font: italic 400 clamp(1.05rem, 1.35vw, 1.25rem)/1.2 var(--serif); color: var(--body); }
/* "Warm regards," upright, with more room before the name */
.cmsg__regards { font-style: normal; margin-bottom: 8px; }
.cmsg__sign { row-gap: 6px; }

/* Sticky "Apply for Admission" tab: right edge, vertically centred, on every page. */
.apply-tab { position: fixed; z-index: 90; right: 0; top: 60%; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 12px; border-radius: 15px 0 0 15px; background: linear-gradient(135deg, #d4af37 0%, #f7d774 100%); color: var(--navy-900); font: 700 .88rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; box-shadow: -10px 14px 30px -12px rgba(7, 31, 66, .55); transform: translateY(-50%); transition: padding .25s ease, box-shadow .25s ease, filter .25s ease; }
.apply-tab span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.apply-tab i { font-size: 1.15rem; line-height: 1; }
.apply-tab:hover, .apply-tab:focus-visible { padding-right: 20px; filter: brightness(1.05); box-shadow: -14px 18px 34px -12px rgba(7, 31, 66, .65); color: var(--navy-950); outline-offset: 3px; }
@media (max-width: 767px) { .apply-tab { padding: 14px 9px; gap: 9px; font-size: .74rem; } }
@media print { .apply-tab { display: none; } }

/* Submenu: no gold top edge, all four corners rounded the same. */
.nav .nav__sub, .nav__item .nav__sub { border-top: 0; border-radius: 15px; }

/* Admission band: copy and buttons on the left, the student standing on the bottom edge on the right, with a soft gold glow and rings behind. */
body .admit { position: relative; overflow: visible; padding: clamp(56px, 6vw, 96px) 0 0; background: radial-gradient(ellipse 50% 70% at 82% 100%, rgba(30, 111, 217, .35), transparent 70%), linear-gradient(100deg, rgba(7, 31, 66, .97) 0%, rgba(11, 45, 91, .94) 58%, rgba(11, 45, 91, .86) 100%), url("../images/page-banner-campus.webp") center / cover; }
body .admit__inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto 1fr; align-items: start; column-gap: clamp(24px, 4vw, 64px); text-align: left; }
body .admit__title.heading, body .admit__text { grid-column: 1; text-align: left; margin-left: 0; margin-right: 0; }
body .admit__title.heading { max-width: 14em; }
body .admit__text { max-width: 34em; }
body .admit__actions { grid-column: 1; grid-row: 3; align-self: start; justify-content: flex-start; margin: clamp(22px, 2.6vw, 34px) 0 clamp(56px, 6vw, 96px); }
body .admit__figure { grid-column: 2; grid-row: 1 / span 3; position: relative; align-self: end; justify-self: center; width: min(100%, 470px); margin: calc(-1 * clamp(36px, 4.4vw, 70px)) 0 0; }
body .admit__figure::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 92%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(247, 215, 116, .55) 0%, rgba(212, 175, 55, .32) 38%, rgba(212, 175, 55, 0) 70%); }
body .admit__figure::after { content: ""; position: absolute; left: 50%; bottom: -14%; width: 104%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid rgba(212, 175, 55, .4); box-shadow: 0 0 0 clamp(18px, 2.4vw, 34px) rgba(255, 255, 255, .03), 0 0 0 clamp(19px, 2.4vw, 35px) rgba(212, 175, 55, .16); pointer-events: none; }
body .admit__student { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .45)); }
@media (max-width: 899px) {
    body .admit__inner { grid-template-columns: minmax(0, 1fr); }
    body .admit__actions { grid-row: auto; margin-bottom: 28px; }
    body .admit__figure { grid-column: 1; grid-row: auto; width: min(78%, 340px); margin-top: 0; }
}

/* Admission band: keep text left and photo right down to tablet width; only phones stack, with the photo still on the right. */
@media (max-width: 899px) and (min-width: 600px) {
    body .admit__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
    body .admit__actions { grid-row: 3; flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
    body .admit__actions .btn { min-width: 0; width: auto; }
    body .admit__figure { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin-top: -24px; }
}
@media (max-width: 599px) {
    body .admit__figure { justify-self: end; width: min(70%, 280px); }
}
/* With overflow hidden on the band's inner box, the student can no longer rise above it: keep her inside, flush with the bottom. */
body .admit__figure { margin-top: 0; }

/* Admission band: shorter. Less padding above, a smaller student, and less space under the buttons. */
body .admit { padding-top: clamp(30px, 3.4vw, 48px); }
body .admit__figure { width: min(100%, 370px); }
body .admit__actions { margin-bottom: clamp(30px, 3.4vw, 48px); }
@media (max-width: 899px) { body .admit__figure { width: min(100%, 300px); } }
@media (max-width: 599px) { body .admit__figure { width: min(62%, 240px); } }

/* Academic Achievements slider: the caption and gold rule appear when the pointer is over a card. Touch screens have no hover, so they keep them visible. */
main .ach .ach__list--slide .ach__cap, main .ach .ach__list--slide .ach__item:nth-child(1) .ach__cap { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
main .ach .ach__list--slide .ach__item::after { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease, width .45s ease; }
main .ach .ach__list--slide .ach__item:hover .ach__cap, main .ach .ach__list--slide .ach__item:focus-within .ach__cap, main .ach .ach__list--slide .ach__item:focus .ach__cap,
main .ach .ach__list--slide .ach__item:hover::after, main .ach .ach__list--slide .ach__item:focus-within::after, main .ach .ach__list--slide .ach__item:focus::after { opacity: 1; transform: none; }
@media (hover: none) {
    main .ach .ach__list--slide .ach__cap, main .ach .ach__list--slide .ach__item:nth-child(1) .ach__cap, main .ach .ach__list--slide .ach__item::after { opacity: 1; transform: none; }
}

/* Academic Achievements slider: cards are 6:5 so about 80% of each photo shows (the photos are 3:2), and exactly three cards fit, so none is cut off at the edge. */
main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { flex: 0 0 calc((100% - 2 * clamp(12px, 1.4vw, 20px)) / 3); height: auto; aspect-ratio: 6 / 5; }
@media (max-width: 991px) {
    main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { flex-basis: calc((100% - clamp(12px, 1.4vw, 20px)) / 2); height: auto; aspect-ratio: 6 / 5; }
}
@media (max-width: 575px) {
    main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { flex-basis: 100%; }
}
/* Cards are 19:10. The photos here are either 3:2 or wide 12:5; at 19:10 each shows about 80% of its picture (the wide ones lose some width, the 3:2 ones some height). */
main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { aspect-ratio: 19 / 10; }
@media (max-width: 991px) { main .ach .ach__list--slide .ach__item, main .ach .ach__list--slide .ach__item:nth-child(n) { aspect-ratio: 19 / 10; } }
main .ach .ach__list--slide .ach__cap, main .ach .ach__list--slide .ach__item:nth-child(1) .ach__cap { padding-top: 60px; padding-bottom: 30px; font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

/* Hero: a little more navy behind the text. Wide screens keep the right side of the photo clear; narrow screens, where the text covers the whole photo, get an even tint. */
.hero::after { background: linear-gradient(0deg, rgba(7, 31, 66, .9) 0%, rgba(7, 31, 66, .6) 14%, rgba(7, 31, 66, 0) 36%), linear-gradient(90deg, rgba(11, 45, 91, .9) 0%, rgba(11, 45, 91, .72) 42%, rgba(11, 45, 91, .3) 72%, rgba(11, 45, 91, .06) 100%); }
@media (max-width: 899px) {
    .hero::after { background: linear-gradient(0deg, rgba(7, 31, 66, .92) 0%, rgba(7, 31, 66, .6) 18%, rgba(7, 31, 66, 0) 40%), linear-gradient(180deg, rgba(11, 45, 91, .62) 0%, rgba(11, 45, 91, .66) 100%); }
}

/* School levels: always three columns (one column only on phones). */
.levels--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .levels--grid { grid-template-columns: minmax(0, 1fr); } }

/* School levels: the text box spans the full card width, text on the left and the arrow button on the right. */
.levels--grid .level { align-items: stretch; }
.levels--grid .level__body { width: 100%; box-sizing: border-box; justify-content: space-between; text-align: left; }
.levels--grid .level__body > div { text-align: left; }

/* Admission page "Click Here" pay button: navy button, gold label, round gold arrow on the right (same look as the school level cards). */
.page-admission-fees .ap__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; box-sizing: border-box; padding: 10px 10px 10px 28px; border: 0; border-radius: 99px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--gold); font: 700 .95rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 14px 28px -14px rgba(13, 37, 82, .7); transition: transform .3s, box-shadow .3s; }
.page-admission-fees .ap__btn::after { content: "\f178"; font: normal 1.05rem/1 FontAwesome; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy-950); transition: transform .3s; }
.page-admission-fees .ap__btn:hover { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(13, 37, 82, .8); }
.page-admission-fees .ap__btn:hover::after { transform: translateX(4px); }
.page-admission-fees .ap__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
