/* =================================================================
   Air Force School Coimbatore — site styles
   Built from the Figma "Home" frame (1920px desktop).
   ================================================================= */

:root {
    --navy: #041b54;
    --blue: #284ba2;
    --blue-2: #004a99;
    --blue-3: #033b77;
    --footer: #002b5e;
    --cta: #3a5e87;
    --yellow: #febd30;
    --yellow-2: #fecd1e;
    --ink: #0a2540;
    --ink-2: #212529;
    --red: #fd422a;
    --red-2: #e4331d;
    --sky: #c9ebf8;
    --sky-2: #97e2fd;
    --cream: #fff6ce;
    --brand: #18316f;
    --white: #ffffff;

    --container: 1562px;
    --gutter: 24px;
    --radius: 8px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-brand: 'Mulish', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
[hidden] { display: none !important; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 6px;
    font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Shared pieces ---------- */
.bars { display: inline-flex; gap: 7px; align-items: center; }
.bars i { display: block; height: 6px; border-radius: 50px; background: var(--yellow); transform-origin: left; }
.bars i:nth-child(1) { width: 85px; }
.bars i:nth-child(2) { width: 47px; }
.bars i:nth-child(3) { width: 13px; }

.sec-head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.sec-head.left { align-items: flex-start; text-align: left; }
.sec-title {
    font-size: 32px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase;
    color: var(--blue); line-height: 1.2;
}
.sec-title .accent { color: var(--yellow); }
.on-dark .sec-title { color: var(--white); font-weight: 600; }
.on-dark .sec-title .accent { font-weight: 700; font-size: 1.125em; }
.sec-intro {
    max-width: 707px; margin: 24px auto 0; text-align: center;
    font-size: 18px; line-height: 32px; font-weight: 500; letter-spacing: .01em; color: rgba(10, 37, 64, .8);
}
.sec-intro.wide { max-width: 927px; }

/* Button with a coloured block offset behind it */
.obtn {
    position: relative; display: inline-block; text-decoration: none;
    padding: 0 6px 11px 0; /* room for the offset block */
}
.obtn::before {
    content: ''; position: absolute; left: 4px; top: 11px; right: 0; bottom: 0;
    border-radius: 6px; background: var(--yellow);
    transition: transform .3s var(--ease);
}
.obtn-face {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 6px;
    font-size: 16px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; line-height: 19px;
    transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.obtn-face svg { transition: transform .3s var(--ease); }
.obtn:hover .obtn-face, .obtn:focus-visible .obtn-face { transform: translate(3px, 6px); }
.obtn:hover .obtn-face svg { transform: rotate(45deg); }
.obtn:active .obtn-face { transform: translate(4px, 10px); }
.obtn-outline .obtn-face { background: var(--white); color: var(--blue-2); border: 1px solid var(--blue-2); }
.obtn-white .obtn-face { background: var(--white); color: var(--blue-2); }
.obtn-yellow::before { background: var(--white); }
.obtn-yellow .obtn-face { background: var(--yellow); color: var(--blue-2); }

/* =================================================================
   HEADER
   ================================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }
.topbar { background: var(--white); transition: box-shadow .3s; }
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 117px; transition: min-height .3s var(--ease);
}
.brand { display: flex; align-items: center; gap: 23px; text-decoration: none; }
.brand-logo { width: 78px; height: 90px; object-fit: contain; transition: width .3s var(--ease), height .3s var(--ease); }
.brand-name {
    font-family: var(--font-brand); font-weight: 800; font-size: 20px; line-height: 1.85;
    color: var(--brand); text-transform: uppercase; letter-spacing: .01em;
}
.topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.topbar-info { display: flex; align-items: center; gap: 19px; color: var(--blue); font-size: 14px; font-weight: 500; }
.info-item { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.info-item:hover span { text-decoration: underline; }
.info-sep { width: 1px; height: 18px; background: rgba(40, 75, 162, .45); }
.song { display: inline-flex; align-items: center; gap: 9px; }
.song-btn { border: 0; padding: 0; background: none; color: var(--blue); display: inline-flex; border-radius: 50%; }
.song-btn .i-pause, .song.is-playing .i-play { display: none; }
.song.is-playing .i-pause { display: inline-flex; }
.song-btn svg { transition: transform .2s; }
.song-btn:hover svg { transform: scale(1.1); }
.song-time { min-width: 62px; font-variant-numeric: tabular-nums; }
.song.is-playing .song-btn svg { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 0 rgba(40,75,162,.5)); } 50% { filter: drop-shadow(0 0 5px rgba(40,75,162,.7)); } }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.hbtn {
    display: inline-flex; align-items: center; justify-content: center; height: 43px; min-width: 134px;
    padding: 10px 22px; border-radius: 4px; font-size: 16px; font-weight: 500; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s, background-color .25s;
}
.hbtn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(33, 37, 41, .18); }
.hbtn-yellow { background: var(--yellow); color: var(--ink-2); }
.hbtn-blue { background: var(--blue); color: var(--white); min-width: 172px; }
.lang {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 43px; padding: 0 12px 0 16px;
    border: .6px solid rgba(33, 37, 41, .6); border-radius: 4px; color: rgba(33, 37, 41, .8);
    box-shadow: -5px 6px 12px rgba(33, 37, 41, .2);
}
.lang select {
    appearance: none; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 500;
    color: rgba(33, 37, 41, .8); padding-right: 22px; cursor: pointer; letter-spacing: .01em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23212529' fill-opacity='.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center; background-size: 11px 8px;
}
.lang select:focus { outline: none; }
.lang:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

.nav-toggle { display: none; border: 0; background: none; color: var(--blue); padding: 8px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: inline-flex; }

/* Shrink header after scrolling */
.is-scrolled .topbar { box-shadow: 0 2px 10px rgba(4, 27, 84, .08); }
.is-scrolled .topbar-inner { min-height: 84px; }
.is-scrolled .brand-logo { width: 56px; height: 64px; }

/* Main menu (desktop) */
.main-nav { background: var(--blue); box-shadow: -5px 6px 12px rgba(33, 37, 41, .2); }
.nav-list { display: flex; justify-content: space-between; align-items: stretch; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
    position: relative; display: flex; align-items: center; height: 62px; padding: 0 10px;
    color: var(--white); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: background-color .25s;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow-2);
    transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-item:hover > .nav-link::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-item.is-current > .nav-link { background: var(--navy); }
.nav-item.is-current > .nav-link::after { transform: scaleX(1); }
.nav-item:first-child .nav-link { padding: 0 11px; }
.sub-toggle { display: none; }
.has-sub > .nav-link { padding-right: 4px; }
.has-sub > .nav-link + .sub-toggle {
    display: inline-flex; align-items: center; height: 62px; padding: 0 8px 0 4px;
    background: none; border: 0; color: rgba(255, 255, 255, .8);
}
.has-sub > .sub-toggle svg { transition: transform .3s var(--ease); }
.has-sub:hover > .sub-toggle svg, .has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }

.sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px 0;
    background: var(--navy); border-top: 4px solid var(--yellow-2); border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 40px rgba(4, 27, 84, .35);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    z-index: 20;
}
.has-sub:hover > .sub-menu, .has-sub.is-open > .sub-menu, .has-sub:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: none;
}
.sub-menu a {
    display: block; padding: 10px 22px; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 15px;
    transition: background-color .2s, color .2s, padding .25s var(--ease);
}
.sub-menu a:hover, .sub-menu a:focus-visible { background: rgba(255, 255, 255, .07); color: var(--yellow); padding-left: 28px; }
.nav-list > .nav-item:nth-last-child(-n+3) .sub-menu { left: auto; right: 0; }
.nav-mobile-extra { display: none; }
.nav-backdrop { display: none; }

/* =================================================================
   BANNER + TICKER
   ================================================================= */
.hero { position: relative; overflow: hidden; background: var(--navy); height: clamp(260px, 42.6vw, 817px); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
    transform: scale(1.06); transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button {
    width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--white);
    background: transparent; transition: background-color .3s, width .3s var(--ease);
}
.hero-dots button[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); width: 30px; border-radius: 6px; }

.ticker { background: var(--navy); border-top: 3px solid var(--yellow-2); color: var(--white); }
.ticker-inner { display: flex; align-items: center; gap: 22px; min-height: 81px; }
.ticker-label {
    flex: none; position: relative; display: inline-flex; align-items: center; height: 47px; padding: 0 26px 0 18px;
    background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .02em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
}
.ticker-label::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 10px;
    animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: .2; } }
.ticker-track {
    position: relative; flex: 1; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-move { display: flex; width: max-content; animation: ticker var(--ticker-speed, 45s) linear infinite; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list li { display: inline-flex; align-items: center; gap: 4px; padding-right: 42px; white-space: nowrap; font-size: 17px; font-weight: 500; }
.ticker-list .spark { color: var(--yellow); flex: none; margin-right: 4px; }
.ticker-list a { color: var(--white); text-decoration: none; }
.ticker-list a:hover { color: var(--yellow); text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.emblem {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 100px; height: 100px; border-radius: 50%;
    overflow: hidden; box-shadow: 0 10px 28px rgba(4, 27, 84, .35); animation: bob 3.5s ease-in-out infinite;
}
.emblem img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* =================================================================
   WELCOME + HIGHLIGHT CARDS
   ================================================================= */
.welcome { position: relative; padding: 40px 0 99px; overflow: hidden; }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 563px) minmax(0, 835px); justify-content: space-between; gap: 48px; }
.welcome-text { padding-top: 147px; }
.flag-ribbon { position: relative; display: block; width: 119px; height: 22px; }
.flag-ribbon i { position: absolute; height: 10.3px; width: 81.4px; }
.flag-ribbon .o { left: 19px; top: 0; background: #ff8127; }
.flag-ribbon .g { left: 0; top: 12px; background: #00ab25; }
.flag-dot {
    position: absolute; left: 33.6px; top: 2px; width: 19px; height: 19px; border-radius: 50%;
    background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%);
    box-shadow: 0 0 0 1.5px var(--white), 0 1px 4px rgba(0,0,0,.25);
}
.flag-dot::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1.2px solid #000080; }
.welcome-title { margin-top: 20px; font-size: 32px; font-weight: 700; line-height: 52px; letter-spacing: .01em; text-transform: uppercase; color: var(--blue); }
.welcome-title span { display: block; }
.welcome-text > .bars { margin-top: 16px; }
.welcome-body { margin-top: 28px; font-size: 17px; line-height: 34px; text-align: justify; color: var(--ink); }
.welcome-body p + p { margin-top: 0; }
.welcome-body strong { font-weight: 700; }
.welcome-text .obtn { margin-top: 36px; }

.highlights { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.hl-watermark { position: absolute; right: -20px; top: 0; width: 450px; max-width: 60%; opacity: .06; pointer-events: none; }
.hl-col { display: flex; flex-direction: column; gap: 8px; }
.hl-col-1 { margin-top: 95px; }
.hl-col-3 { margin-top: 74px; }
.hl-card {
    position: relative; border-radius: var(--radius); padding: 28px 24px; text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hl-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(4, 27, 84, .16); }
.hl-card h2 { font-size: 22px; font-weight: 600; color: var(--blue-2); line-height: 1.2; }
.hl-card p { margin-top: 10px; font-size: 15px; line-height: 28px; font-weight: 500; color: var(--blue-2); }
.hl-yellow { background: var(--yellow); min-height: 292px; }
.hl-sky2 { background: var(--sky-2); min-height: 245px; padding-top: 32px; }
.hl-navy { background: var(--blue-2); color: var(--yellow); }
.hl-est { min-height: 196px; padding: 30px 24px; }
.hl-est p { margin: 0; color: var(--yellow); font-size: 23px; font-weight: 600; line-height: 30px; }
.hl-est strong { display: block; font-size: 36px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.hl-award { min-height: 186px; padding: 30px 31px; display: flex; flex-direction: column; gap: 8px; }
.hl-label { font-size: 20px; font-weight: 600; line-height: 1.2; }
.hl-award strong { font-size: 28px; line-height: 36px; font-weight: 700; }
.hl-sub { font-size: 20px; font-weight: 600; line-height: 25px; }
.hl-sky { display: block; background: var(--sky); min-height: 170px; padding: 36px 24px; color: var(--blue-2); }
.hl-sky strong { display: block; margin-top: 6px; font-size: 30px; line-height: 36px; font-weight: 700; }
.hl-sky .hl-sub { display: block; margin-top: 6px; }
.hl-arrow { position: absolute; right: 22px; bottom: 30px; color: var(--blue-2); transition: transform .35s var(--ease); }
.hl-sky:hover .hl-arrow { transform: rotate(45deg) scale(1.1); }
.hl-img { border-radius: var(--radius); overflow: hidden; background: #e7eef8; }
.hl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hl-img:hover img { transform: scale(1.06); }
.hl-img-1 { height: 325px; }
.hl-img-2 { height: 160px; }
.hl-img-3 { height: 218px; }
.hl-img-4 { height: 192px; }

/* =================================================================
   ANNOUNCEMENTS
   ================================================================= */
.announce { position: relative; padding: 80px 0 70px; background: var(--blue-3); color: var(--white); isolation: isolate; }
.announce::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--announce-bg, none) center / cover no-repeat; mix-blend-mode: multiply; opacity: .9;
}
.announce::after { /* soft light streaks when no texture is uploaded */
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(255,255,255,.07), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(0,0,0,.18), transparent 60%);
}
.announce-intro { max-width: 760px; margin-top: 30px; font-size: 18px; line-height: 32px; color: var(--white); }
.announce-grid { display: grid; grid-template-columns: minmax(0, 810px) minmax(0, 533px); gap: 12px; margin-top: 54px; align-items: start; }

.tabs { display: flex; gap: 8px; }
.tabs [role="tab"] {
    flex: 0 1 265px; height: 56px; padding: 0 16px; border: 0; border-radius: 4px 4px 0 0;
    background: var(--yellow); color: var(--ink-2); font-size: 18px; font-weight: 500; line-height: 24px;
    box-shadow: -5px 6px 20px rgba(33, 37, 41, .03); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background-color .3s, color .3s;
}
.tabs [role="tab"]:hover { background: #ffd060; }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--ink); }
.announce-panels { background: var(--white); border-radius: 0 0 var(--radius) var(--radius); color: var(--ink); min-height: 345px; }
.announce-card { display: grid; grid-template-columns: 182px 1fr; gap: 36px; padding: 36px 30px 40px; animation: fadeIn .45s var(--ease); }
.announce-poster { width: 182px; height: 249px; position: relative; overflow: hidden; background: #0a2540; border-radius: 4px; box-shadow: 0 8px 20px rgba(10, 37, 64, .14); }
.announce-poster .ap-img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.announce-poster.is-fit .ap-img { object-fit: contain; }
.announce-poster .ap-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(14px) brightness(.85); }
.announce-body { padding-top: 14px; max-width: 480px; }
.announce-body h3 { font-size: 24px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.announce-date { margin-top: 18px; font-size: 16px; font-weight: 500; color: rgba(10, 37, 64, .9); letter-spacing: .01em; }
.announce-desc { margin-top: 28px; font-size: 16px; line-height: 28px; color: rgba(10, 37, 64, .8); }
.announce-more { display: inline-block; margin-top: 24px; color: var(--red-2); font-weight: 500; letter-spacing: .01em; }
.announce-more:hover { color: var(--blue-2); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.announce-grid > * { min-width: 0; }
.announce-promo { position: relative; }
.promo-img { position: relative; height: 296px; border-radius: var(--radius); overflow: hidden; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.promo-img::after { content: ''; position: absolute; inset: 0; background: rgba(1, 1, 1, .2); }
.announce-promo:hover .promo-img img { transform: scale(1.05); }
.promo-img figcaption {
    position: absolute; left: 15px; bottom: 15px; z-index: 1; max-width: 250px;
    padding: 10px 16px; background: var(--yellow); color: var(--navy);
    font-size: 18px; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.rotating-badge { position: absolute; top: -64px; right: -68px; width: 131px; height: 131px; z-index: 2; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.rotating-badge svg { width: 100%; height: 100%; overflow: visible; }
.badge-spin { transform-origin: 66px 66px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.admission-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 53px; margin-top: 12px;
    border-radius: 6px; background: var(--yellow); color: var(--blue-2); text-decoration: none;
    font-weight: 600; letter-spacing: .01em; text-transform: uppercase; position: relative; overflow: hidden;
}
.admission-bar::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
    animation: shine 3.8s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.admission-bar svg { transition: transform .3s var(--ease); }
.admission-bar:hover svg { transform: rotate(45deg); }
.admission-bar span, .admission-bar svg { position: relative; }

/* =================================================================
   RESULTS & TOPPERS
   ================================================================= */
.results { padding: 80px 0 0; }
.results .sec-intro { margin-top: 20px; }
.toppers-box {
    position: relative; margin-top: 44px; padding: 52px 40px 48px; border-radius: var(--radius);
    background: var(--blue-2); color: var(--white); text-align: center; overflow: hidden; isolation: isolate;
}
.toppers-box::before { /* faint pattern at both sides */
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .08;
    background:
        radial-gradient(circle at 6% 30%, #fff 0 2px, transparent 3px) 0 0 / 34px 34px,
        radial-gradient(circle at 94% 70%, #fff 0 2px, transparent 3px) 0 0 / 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, #000 0 18%, transparent 30% 70%, #000 82%);
            mask-image: linear-gradient(90deg, #000 0 18%, transparent 30% 70%, #000 82%);
}
.toppers-title { font-size: 24px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; }
.diamonds { display: inline-flex; gap: 10.7px; margin-top: 18px; }
.diamonds i { width: 5.7px; height: 5.7px; background: var(--yellow); transform: rotate(45deg); }
.pill-tabs { display: flex; justify-content: center; gap: 24px; margin-top: 30px; }
.pill-tabs [role="tab"] {
    min-width: 135px; height: 46px; padding: 0 24px; border-radius: 6px; border: .6px solid var(--white);
    background: transparent; color: var(--white); font-size: 16px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase;
    transition: background-color .3s, color .3s, border-color .3s;
}
.pill-tabs [role="tab"]:hover { background: rgba(255, 255, 255, .1); }
.pill-tabs [role="tab"][aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--blue-2); }

.toppers-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 331px)); justify-content: center; gap: 37px;
    margin-top: 52px; padding-right: 11px; text-align: left;
}
.toppers-grid > .topper { animation: fadeIn .5s var(--ease) both; }
.toppers-grid > .topper:nth-child(2) { animation-delay: .08s; }
.toppers-grid > .topper:nth-child(3) { animation-delay: .16s; }
.topper { position: relative; padding: 0 11px 11px 0; }
.topper::before { content: ''; position: absolute; left: 11px; top: 11px; right: 0; bottom: 0; border-radius: var(--radius); background: var(--yellow); }
.topper-face {
    position: relative; height: 306px; padding: 24px 28px; border-radius: var(--radius); background: var(--cream); color: var(--ink-2);
    overflow: hidden; transition: transform .35s var(--ease);
}
.topper:hover .topper-face { transform: translate(5px, 5px); }
.topper-deco { position: absolute; right: -18px; top: 40px; width: 150px; color: var(--blue-2); opacity: .1; }
.topper-photo { position: relative; width: 155px; height: 158px; background: var(--white); padding: 3px; overflow: hidden; }
.topper-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.topper h4 { margin-top: 40px; font-size: 20px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); }
.topper-score { margin-top: 14px; font-size: 18px; font-weight: 500; letter-spacing: .02em; color: var(--red); }
.empty-note { grid-column: 1 / -1; text-align: center; opacity: .8; }

.toppers-foot { position: relative; margin-top: 44px; min-height: 60px; display: flex; justify-content: center; align-items: flex-end; }
.trophy { position: absolute; left: -9px; bottom: -22px; width: 149px; height: 149px; object-fit: contain; filter: drop-shadow(0 14px 6px rgba(0, 0, 0, .25)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* =================================================================
   LIFE @ AFS
   ================================================================= */
.life { padding: 80px 0 86px; }
.life .sec-intro { margin-top: 20px; }
.life-grid {
    display: grid; margin-top: 40px; gap: 6px;
    grid-template-columns: 476fr 371fr 371fr 327fr;
    grid-template-rows: 354px 354px;
}
.life-item { position: relative; overflow: hidden; border-radius: var(--radius); background: #e7eef8; }
.life-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.life-item:hover img { transform: scale(1.07); }
.life-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: var(--white); font-weight: 600;
    background: linear-gradient(transparent, rgba(4, 27, 84, .85));
    transform: translateY(100%); transition: transform .4s var(--ease);
}
.life-item:hover figcaption, .life-item:focus-within figcaption { transform: none; }
.life-1 { grid-column: 1; grid-row: 1 / span 2; }
.life-2 { grid-column: 2 / span 2; grid-row: 1; }
.life-3 { grid-column: 4; grid-row: 1; }
.life-4 { grid-column: 2; grid-row: 2; }
.life-5 { grid-column: 3; grid-row: 2; }
.life-6 { grid-column: 4; grid-row: 2; }
.life .center { margin-top: 52px; }

/* =================================================================
   ADMISSION ENQUIRY BAND
   ================================================================= */
.cta { position: relative; min-height: 450px; display: flex; align-items: center; background: var(--cta); color: var(--white); overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cta-bg, none) center 35% / cover no-repeat; mix-blend-mode: soft-light; opacity: .6; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .2); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 60px; padding-bottom: 60px; }
.cta h2 { max-width: 678px; font-size: 40px; line-height: 54px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.cta .obtn { margin-right: 150px; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
    position: relative; background: var(--footer); color: rgba(255, 255, 255, .8);
    border-top: 2px solid var(--yellow-2); border-bottom: 4px solid var(--yellow-2); padding-top: 66px;
}
.footer-grid {
    display: grid; grid-template-columns: minmax(0, 514px) auto auto 225px;
    justify-content: space-between; column-gap: 40px; row-gap: 48px;
}
.f-brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.f-brand img { width: 112px; height: 117px; object-fit: contain; }
.f-brand span { font-family: var(--font-brand); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.f-about p { margin-top: 40px; font-size: 15px; line-height: 26px; }
.f-map { margin-top: 32px; width: 452px; max-width: 100%; height: 249px; border-radius: 20px; overflow: hidden; background: #1a3f73; }
.f-map iframe, .f-map img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.f-map a { display: block; height: 100%; }
.f-map img { transition: transform .6s var(--ease); }
.f-map a:hover img { transform: scale(1.04); }
.f-col { padding-top: 61px; }
.f-col h2 { font-size: 18px; font-weight: 600; color: rgba(254, 205, 30, .85); margin-bottom: 20px; }
.f-col .f-second { margin-top: 60px; }
.f-links li { line-height: 44px; }
.f-links a { position: relative; text-decoration: none; font-size: 16px; color: rgba(255, 255, 255, .8); transition: color .2s, padding .25s var(--ease); }
.f-links a:hover, .f-links a:focus-visible { color: var(--yellow); padding-left: 6px; }
.visitors {
    display: flex; align-items: center; justify-content: center; margin-top: 36px; padding: 16px 18px; width: 225px;
    background: var(--yellow); color: var(--footer); border-radius: 8px; font-size: 17px; font-weight: 500;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.visitors span { margin-left: .3em; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 44px; padding: 26px 0 30px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 15px;
}

/* =================================================================
   SCROLL REVEAL (added by main.js; content shows normally without JS)
   ================================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .bars[data-reveal] i, .js [data-reveal] .bars i { transform: scaleX(0); transition: transform .7s var(--ease) .25s; }
.js .bars[data-reveal].is-visible i, .js [data-reveal].is-visible .bars i { transform: scaleX(1); }
.js .bars i:nth-child(2) { transition-delay: .35s !important; }
.js .bars i:nth-child(3) { transition-delay: .45s !important; }

/* Google Translate: hide its toolbar */
body { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1500px) {
    .nav-link { font-size: 15px; padding: 0 7px; }
    .has-sub > .nav-link + .sub-toggle { padding: 0 6px 0 2px; }
    .welcome-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .cta .obtn { margin-right: 40px; }
}

@media (max-width: 1280px) {
    .brand-name { font-size: 17px; }
    .topbar-info { gap: 14px; font-size: 13px; }
    .song-title { display: none; }
    .nav-link { font-size: 14px; padding: 0 5px; }
    .has-sub > .nav-link + .sub-toggle { padding: 0 4px 0 0; }
    .welcome-grid { grid-template-columns: 1fr; gap: 56px; }
    .welcome-text { padding-top: 60px; max-width: 760px; }
    .highlights { max-width: 900px; }
    .announce-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .rotating-badge { right: -20px; top: -70px; width: 112px; height: 112px; }
    .life-grid { grid-template-rows: 280px 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .f-about { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
    .f-about .f-brand { grid-column: 1 / -1; }
    .f-about p { margin-top: 24px; }
    .f-map { margin-top: 24px; width: 100%; }
    .f-col { padding-top: 0; }
}

/* ---- Tablet & mobile menu ---- */
@media (max-width: 1080px) {
    .topbar-right { display: none; }
    .nav-toggle { display: inline-flex; }
    .topbar-inner { min-height: 88px; }
    .brand-logo { width: 58px; height: 68px; }
    .brand { gap: 14px; }
    .brand-name { font-size: 16px; line-height: 1.3; }

    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 200;
        overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease);
        box-shadow: none; visibility: hidden;
    }
    .nav-open .main-nav { transform: none; visibility: visible; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
    .main-nav .container { padding: 96px 0 30px; }
    .nav-list { flex-direction: column; }
    .nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .nav-link { flex: 1; height: auto; padding: 15px 24px; font-size: 16px; }
    .nav-link::after { display: none; }
    .nav-item.is-current > .nav-link { box-shadow: inset 4px 0 0 var(--yellow-2); }
    .has-sub > .nav-link + .sub-toggle { height: auto; padding: 0 22px; }
    .has-sub:hover > .sub-toggle svg { transform: none; }
    .has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }
    .sub-menu {
        position: static; flex-basis: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; display: none; background: rgba(0, 0, 0, .18);
    }
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
    .has-sub.is-open > .sub-menu { display: block; }
    .sub-menu a { padding: 12px 24px 12px 40px; }
    .nav-mobile-extra { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 0; }
    .nav-mobile-extra a { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: 15px; }
    .nav-open .nav-toggle { position: fixed; right: 16px; top: 22px; z-index: 210; color: var(--white); }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(4, 27, 84, .55); z-index: 150; opacity: 0; transition: opacity .3s; }
    .nav-open .nav-backdrop { opacity: 1; }
    .nav-open { overflow: hidden; }

    .announce-grid { grid-template-columns: 1fr; gap: 64px; }
    .announce-promo { max-width: 600px; }
    .rotating-badge { right: -12px; }
}

@media (max-width: 860px) {
    :root { --gutter: 20px; }
    .sec-title { font-size: 26px; }
    .welcome-title { font-size: 26px; line-height: 40px; }
    .welcome-body { font-size: 16px; line-height: 30px; text-align: left; }
    .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-col { display: contents; }
    .hl-col-1, .hl-col-3 { margin-top: 0; }
    .hl-card, .hl-img { min-height: 0; }
    .hl-img-1 { height: 260px; }
    .hl-img-2, .hl-img-3, .hl-img-4 { height: 200px; }
    .hl-est strong { font-size: 32px; }
    .announce { padding: 64px 0; }
    .announce-card { grid-template-columns: 140px 1fr; gap: 22px; padding: 26px 22px 30px; }
    .announce-poster { width: 140px; height: 192px; }
    .announce-body { padding-top: 0; }
    .tabs [role="tab"] { font-size: 15px; height: 50px; padding: 0 10px; flex: 1 1 0; }
    .toppers-box { padding: 40px 20px 40px; }
    .toppers-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 26px; }
    .life-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
    .life-1 { grid-column: 1; grid-row: span 2; }
    .life-2 { grid-column: 2; grid-row: auto; }
    .life-3, .life-4, .life-5, .life-6 { grid-column: auto; grid-row: auto; }
    .cta { min-height: 360px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .cta h2 { font-size: 30px; line-height: 42px; }
    .cta .obtn { margin-right: 0; }
    .trophy { width: 110px; height: 110px; bottom: -14px; }
}

@media (max-width: 640px) {
    .brand-name { font-size: 14px; }
    .brand-logo { width: 48px; height: 56px; }
    .topbar-inner { min-height: 76px; }
    .ticker-inner { gap: 12px; min-height: 60px; }
    .ticker-label { height: 38px; padding: 0 20px 0 12px; font-size: 13px; }
    .ticker-label::before { margin-right: 7px; }
    .ticker-list li { font-size: 15px; }
    .welcome { padding-bottom: 72px; }
    .welcome-text { padding-top: 48px; }
    .highlights { grid-template-columns: 1fr; }
    .hl-col { display: contents; }
    .announce-card { grid-template-columns: 1fr; }
    .announce-poster { width: 100%; height: 280px; }
    .tabs { overflow-x: auto; scrollbar-width: none; }
    .tabs [role="tab"] { flex: 0 0 auto; min-width: 150px; }
    .rotating-badge { width: 96px; height: 96px; top: -48px; right: -6px; }
    .promo-img { height: 230px; }
    .pill-tabs { gap: 12px; }
    .pill-tabs [role="tab"] { min-width: 120px; }
    .toppers-grid { grid-template-columns: minmax(0, 320px); }
    .toppers-foot { flex-direction: column; align-items: center; gap: 20px; }
    .trophy { position: static; }
    .life-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .life-1 { grid-row: auto; grid-column: auto; }
    .life-2 { grid-column: auto; }
    .cta h2 { font-size: 24px; line-height: 34px; }
    .results, .life { padding-top: 64px; }
    .footer-grid { grid-template-columns: 1fr; }
    .f-about { display: block; }
    .f-brand img { width: 80px; height: 84px; }
    .f-brand span { font-size: 16px; }
    .visitors { width: 100%; }
    .footer-bottom { flex-direction: column; }
    .emblem { width: 72px; height: 72px; right: 14px; bottom: 14px; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ticker-move { animation: none; }
    .ticker-track { overflow-x: auto; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* =================================================================
   FIGMA ALIGNMENT (desktop, 1920px frame) — exact positions & sizes
   ================================================================= */
@media (min-width: 1081px) {
    .topbar-right { width: 637px; }
    .topbar-info { align-self: stretch; }
    .lang > svg:first-child { display: none; }
    .lang { padding: 10px 22px; gap: 10px; }
    .lang select { padding-right: 22px; }

    /* menu: text-only items spread edge to edge like the design */
    .nav-list { padding-left: 2px; }
    .nav-link, .nav-item:first-child .nav-link, .has-sub > .nav-link { padding: 0; }
    .has-sub > .nav-link + .sub-toggle {
        position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
    }
    .has-sub > .nav-link + .sub-toggle:focus-visible { position: static; width: auto; height: 62px; clip: auto; padding: 0 4px; }
    .nav-item.is-current > .nav-link { background: none; }
    .nav-item.is-current > .nav-link::before {
        content: ''; position: absolute; z-index: -1; left: -10px; right: -10px; top: 0; height: 50px; background: var(--navy);
    }
    .nav-link { z-index: 0; }
    .nav-link::after { left: -10px; right: -10px; top: 50px; bottom: auto; }
    .sub-menu { left: -7px; min-width: 322px; }
    .nav-list > .nav-item:nth-last-child(-n+3) .sub-menu { left: auto; right: -7px; }
}

.hero { height: clamp(260px, 42.4vw, 814px); }
.hero-slide img { object-position: center 67%; }
.ticker-inner { min-height: 84px; gap: 16px; }
.ticker-label { width: 147px; height: 47.5px; justify-content: center; padding: 0 12px 0 6px; }

.welcome { padding-top: 82px; padding-bottom: 100px; }
.welcome-text { padding-top: 105px; }
.welcome-title { max-width: 554px; }
.welcome-text > .bars { display: flex; width: max-content; }
.hl-card p { margin-top: 14px; }
.hl-yellow { padding-right: 28px; }
.hl-sky2 { padding-right: 27px; }
.hl-est { padding-right: 30px; }
.hl-arrow { right: 63px; bottom: 36px; }

.announce { padding: 80px 0 70px; }
.on-dark { gap: 16px; }
.announce-intro { margin-top: 28px; }
.announce-grid { margin-top: 46px; }
.announce-card { padding-bottom: 32px; }
.rotating-badge { top: -64px; right: -63px; }

.sec-head { gap: 24px; }
.on-dark.sec-head { gap: 16px; }
.results .sec-intro { margin-top: 36px; }
.toppers-box { margin-top: 36px; padding-bottom: 47px; }
.diamonds { display: flex; justify-content: center; width: max-content; margin-left: auto; margin-right: auto; }
.pill-tabs { margin-top: 32px; }
.toppers-grid { grid-template-columns: repeat(3, 342px); gap: 26px; padding-right: 0; }
.topper-score { margin-top: 12px; }
.toppers-foot { margin-top: 72px; }
.trophy { left: -8px; bottom: -19px; }
.life .sec-intro { margin-top: 32px; }
.cta .obtn { margin-right: 118px; }

.site-footer { padding-bottom: 32px; }
.footer-grid { grid-template-columns: 707px 289px 341px 225px; justify-content: start; column-gap: 0; min-height: 632px; }
.f-brand { gap: 18.6px; }
.f-brand span { font-size: 24px; letter-spacing: .01em; }
.f-map { margin-top: 48px; }
.visitors { margin-top: 40px; }
.footer-bottom { margin-top: 0; padding: 36px 0 0; }

@media (max-width: 1660px) {
    .footer-grid { grid-template-columns: minmax(0, 514px) auto auto 225px; justify-content: space-between; column-gap: 40px; min-height: 0; }
    .footer-bottom { margin-top: 44px; }
}
@media (max-width: 1500px) {
    .toppers-grid { grid-template-columns: repeat(3, minmax(0, 342px)); }
}
@media (max-width: 1280px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .welcome-text { padding-top: 0; }
    .welcome { padding-top: 60px; }
}
@media (max-width: 860px) {
    .toppers-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 26px; }
    .hl-arrow { right: 22px; bottom: 30px; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .toppers-grid { grid-template-columns: minmax(0, 320px); }
    .rotating-badge { top: -48px; right: -6px; }
    .cta .obtn { margin-right: 0; }
}
.hl-est p { margin-top: 0; }
.welcome-text .obtn { margin-top: 47px; }
.rotating-badge { right: -68px; }
.toppers-box { padding-bottom: 42px; }
.toppers-foot { margin-top: 68px; }
.life { padding-bottom: 72px; }
.f-col { padding-top: 59px; }
.f-about p { max-width: 514px; }
.site-footer { padding-bottom: 26px; }
@media (max-width: 1280px) { .f-col { padding-top: 0; } }
.pill-tabs { margin-top: 34px; }
.toppers-box { padding-bottom: 44px; }
.trophy { bottom: -27px; }
.life { padding-bottom: 75px; }
.ticker-label { font-size: 14px; white-space: nowrap; letter-spacing: .01em; }
@media (max-width: 640px) { .ticker-label { width: auto; font-size: 13px; } }

/* =================================================================
   UPDATED FOOTER (Figma "Updated Footer", 1921 × 704)
   ================================================================= */
.site-footer { padding-top: 66px; padding-bottom: 28px; }
.f-brand { gap: 0; }
.f-brand span { font-size: 20px; letter-spacing: 0; margin-left: -1.5px; }
.f-about p { margin-top: 14px; font-size: 16px; line-height: 30px; color: rgba(255, 255, 255, .9); max-width: 514px; }
.f-map { margin-top: 32px; width: 441px; height: 235px; }
.f-col { padding-top: 35px; }
.f-col h2 { font-size: 17px; margin-bottom: 16px; }
.f-col .f-second { margin-top: 40px; }
.f-links li { line-height: 40px; }
.f-links a { color: rgba(255, 255, 255, .9); }
.visitors { margin-top: 52px; width: 218px; padding: 16px 12px; font-size: 16px; }
.footer-bottom { padding-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.footer-bottom strong { font-weight: 600; }
.credit-link { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-thickness: 7%; text-underline-offset: 2px; }
.credit-link:hover { color: var(--yellow); }
@media (min-width: 1661px) {
    .footer-grid { grid-template-columns: 697px 289px 341px 236px; justify-content: start; column-gap: 0; min-height: 558px; }
    .footer-bottom { margin-top: 0; }
}

/* =================================================================
   INNER PAGES — shared
   ================================================================= */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #ff8127; line-height: 15px; }

.page-banner { position: relative; height: 250px; background: var(--cta); overflow: hidden; isolation: isolate; }
.page-banner-img {
    position: absolute; left: 0; right: 0; top: -62px; width: 100%; height: calc(100% + 62px); object-fit: cover;
    mix-blend-mode: soft-light; z-index: -1;
}
.page-banner::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); mix-blend-mode: soft-light; z-index: -1; }
.crumbs { position: absolute; left: 0; right: 0; top: 184px; display: flex; justify-content: center; }
.crumbs ol { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.crumbs li { color: var(--white); font-size: 18px; font-weight: 500; line-height: 22px; display: flex; align-items: center; }
.crumbs a { color: var(--white); text-decoration: none; opacity: .8; transition: opacity .2s; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumb-sep { color: var(--white); }

.bars-sm { gap: 6px; }
.bars-sm i { height: 5.17px; }
.bars-sm i:nth-child(1) { width: 73.24px; }
.bars-sm i:nth-child(2) { width: 40.5px; }
.bars-sm i:nth-child(3) { width: 11.2px; }

/* ---- About: welcome ---- */
.about-intro { background: #f8f9ff; padding-block: 73px 82px; }
.about-intro-grid { display: grid; grid-template-columns: minmax(0, 796px) minmax(0, 610px); justify-content: space-between; align-items: start; padding-left: calc(var(--gutter) + 2px); padding-right: calc(var(--gutter) + 40px); }
.about-title { margin-top: 20px; font-size: 32px; line-height: 52px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; color: var(--blue); }
.about-title span { display: block; }
.about-intro-text > .bars { display: flex; width: max-content; margin-top: 20px; }
.about-body { margin-top: 30px; font-size: 18px; line-height: 34px; color: var(--ink); text-align: justify; }
.about-body p + p { margin-top: 26px; }
.about-body strong { font-weight: 600; }
.double-frame {
    position: relative; margin-top: 201px; padding: 14px; border: 2.04px solid #f59e0b; border-radius: 13.6px;
    box-shadow: 0 5.4px 8.2px -1.4px rgba(0, 0, 0, .1), 0 2.7px 5.4px -2.7px rgba(0, 0, 0, .1);
}
.double-frame::before { content: ''; position: absolute; inset: 0; border: 2.04px solid #059669; border-radius: 12.25px; pointer-events: none; }
.double-frame img { width: 100%; aspect-ratio: 578 / 352; object-fit: cover; border-radius: 8px; box-shadow: inset 0 2.7px 5.4px rgba(0, 0, 0, .05); }

/* ---- About: leadership messages ---- */
.messages { background: #eff4ff; padding-block: 52px 80px; }
.seg-wrap { display: flex; justify-content: center; }
.seg-tabs {
    display: inline-flex; gap: 4px; padding: 6px; border-radius: 8px; background: #e5eeff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg-tabs [role="tab"] {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 4px; background: transparent;
    color: #43474d; font-size: 18px; font-weight: 500; line-height: 26px; text-transform: uppercase; white-space: nowrap;
    transition: background-color .3s var(--ease), color .3s;
}
.seg-tabs [role="tab"]:hover { background: rgba(23, 85, 167, .08); }
.seg-tabs [role="tab"][aria-selected="true"] { background: #1755a7; color: var(--yellow); font-weight: 600; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05)); }
.seg-tabs svg { flex: none; }

.message-card {
    display: grid; grid-template-columns: minmax(0, 904px) 408px; justify-content: space-between; column-gap: 40px; margin-top: 40px;
    padding: 52px 100px 64px 52px; background: var(--white); border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.message-card:not([hidden]) { animation: fadeIn .45s var(--ease); }
.message-title { font-size: 24px; font-weight: 600; line-height: 29px; color: var(--blue); text-transform: uppercase; }
.message-main > .bars { display: flex; width: max-content; margin-top: 20px; }
.message-text { margin-top: 32px; display: flex; flex-direction: column; gap: 26px; color: var(--ink); }
.message-quote { max-width: 724px; font-size: 18px; line-height: 32px; font-weight: 500; font-style: italic; text-align: justify; }
.message-body { font-size: 16px; line-height: 30px; text-align: justify; }
.message-body p + p { margin-top: 20px; }
.message-signoff { margin-top: 2px; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: .005em; }
.leader-card {
    align-self: start; margin-top: 50px; padding: 24px 35px 30px; background: #eff4ff; border-radius: 7.5px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    filter: drop-shadow(0 .94px .94px rgba(0, 0, 0, .05));
}
.leader-photo { width: 100%; height: 352px; padding: 25.9px 17.85px 0 33px; background: var(--white); border-radius: 7.14px; overflow: hidden; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader-name { margin-top: 30px; font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.leader-role { margin-top: 14px; font-size: 16px; font-weight: 500; letter-spacing: .01em; color: #3c608c; }

@media (max-width: 1280px) {
    .about-intro-grid { grid-template-columns: 1fr; gap: 40px; padding-right: var(--gutter); }
    .double-frame { margin-top: 0; max-width: 610px; }
    .message-card { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 56px; padding: 44px; }
}
@media (max-width: 1080px) {
    .page-banner { height: 200px; }
    .crumbs { top: auto; bottom: 30px; }
}
@media (max-width: 860px) {
    .about-intro { padding-block: 56px 64px; }
    .about-title { font-size: 26px; line-height: 40px; }
    .about-body { font-size: 16px; line-height: 30px; text-align: left; }
    .message-card { grid-template-columns: 1fr; padding: 32px 24px 40px; row-gap: 36px; }
    .leader-card { margin-top: 0; justify-self: center; width: min(100%, 408px); grid-row: 1; }
    .message-title { font-size: 21px; }
    .seg-wrap { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .page-banner { height: 160px; }
    .crumbs { bottom: 22px; }
    .crumbs li { font-size: 16px; }
    .crumbs ol { gap: 12px; }
    .seg-tabs [role="tab"] { font-size: 15px; padding: 9px 14px; }
    .message-quote, .message-body { text-align: left; }
    .leader-photo { height: 300px; }
    .messages { padding-block: 40px 56px; }
}
.leader-name, .leader-role, .visitors, .message-title { line-height: normal; }
.f-map { margin-top: 28px; }
.f-map { margin-top: 37px; }
.site-footer { padding-bottom: 23px; }

/* =================================================================
   Inner pages built from blocks (page.php)
   ================================================================= */
.page-body { display: flex; flex-direction: column; gap: 40px; padding-block: 60px 90px; }
.page-body > *, .tab-panel > *, .b-group > *, .b-cols > div > * { min-width: 0; }
.tab-panel { display: flex; flex-direction: column; gap: 40px; }
.tab-panel:not([hidden]) { animation: fadeIn .45s var(--ease); }
.tab-panel[hidden] { display: none; }
.seg-wrap + .tab-panel { margin-top: -8px; }

/* headings */
.b-title h1, .b-title h2 { margin: 0; color: var(--blue); text-transform: uppercase; font-weight: 700; }
.b-title-page, .b-title-section { text-align: center; }
.b-title-page h1, .b-title-page h2 { font-size: 32px; line-height: 39px; }
.b-title-page .bars { margin-top: 20px; }
.b-title-section h1, .b-title-section h2 { font-size: 24px; line-height: 29px; }
.b-title-section .bars { margin-top: 16px; }
.b-title-page-left h1, .b-title-page-left h2 { font-size: 28px; line-height: 34px; }
.b-title-page-left .bars { display: flex; width: max-content; margin-top: 24px; }
.bars-md { gap: 5.6px; }
.bars-md i { height: 4.8px; }
.bars-md i:nth-child(1) { width: 67.9px; } .bars-md i:nth-child(2) { width: 37.5px; } .bars-md i:nth-child(3) { width: 10.4px; }
.b-title-card h1, .b-title-card h2 { font-size: 20px; line-height: 24px; font-weight: 600; text-transform: none; }
.b-title-card .bars { display: flex; width: max-content; margin-top: 20px; }
.bars-card { gap: 5px; }
.bars-card i { height: 4.3px; }
.bars-card i:nth-child(1) { width: 60.9px; } .bars-card i:nth-child(2) { width: 33.7px; } .bars-card i:nth-child(3) { width: 9.3px; }
.b-subtitle { margin: 0; font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: .18px; color: var(--ink); }
.b-table-title { margin: 0 0 -16px; font-size: 20px; line-height: 24px; font-weight: 600; color: var(--blue); text-transform: uppercase; }
.b-table-title { width: 100%; margin-inline: auto; }
.b-table-title:has(+ .b-table-wrap .b-table-narrow) { max-width: 1294px; }
.b-table-title + .b-table-wrap { margin-top: 0; }

/* rich text */
.rte { font-size: 16px; line-height: 30px; color: #334155; text-align: justify; }
.rte :where(p) { margin: 0; }
.rte > * + * { margin-top: 20px; }
.rte strong { font-weight: 600; color: var(--ink); }
.rte a { color: #1755a7; text-decoration: underline; }
.rte h3 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; color: var(--blue); }
.rte h4 { margin: 0; font-size: 16px; line-height: 19px; font-weight: 600; color: var(--blue); }
.rte h4 + ul, .rte h4 + p { margin-top: 24px; }
.rte ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 24px; }
.rte li { position: relative; padding-left: 28px; }
.rte li::before {
    content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5L8 12.2l-4.5 2.4.9-5L.8 6.1l5-.7z' fill='%23f59e0b'/%3E%3C/svg%3E") no-repeat center / contain;
}
.rte ol { margin: 0; padding-left: 22px; }
.rte mark { padding: 1.5px 7px; border: 1px solid #bfdbfe; border-radius: 4px; background: #eff6ff; color: #1e3a8a; font-size: 14px; font-weight: 600; white-space: nowrap; }
.b-text-intro { margin-top: -16px; color: var(--ink); }
.b-text-center { margin-top: -16px; text-align: center; color: #475569; }
.b-text-divided > p:first-child { padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.b-lead { margin: 0 0 24px; font-size: 18px; line-height: 32px; font-weight: 600; font-style: italic; color: var(--ink); text-align: justify; }

/* white cards */
.b-panel, .b-group, .b-checklist, .b-contact-form {
    width: 100%; background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .05), 0 2px 6px -1px rgba(10, 37, 64, .03);
}
.b-panel { padding: 40px; }
.b-panel.w-medium, .b-group-medium { max-width: 1440px; margin-inline: auto; }
.b-panel.w-narrow, .b-group-narrow { max-width: 1294px; margin-inline: auto; }
.b-group-slim { max-width: 1060px; margin-inline: auto; }
.b-panel > .b-title { margin-bottom: 40px; }
.b-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.b-panel.has-img .b-panel-grid { grid-template-columns: minmax(0, 1fr) 529px; column-gap: 60px; align-items: start; }
.b-panel.has-img.img-left .b-panel-grid { grid-template-columns: 529px minmax(0, 1fr); }
.b-panel.has-img.img-left .b-panel-fig { order: -1; }
.b-panel.has-img:not(.w-medium):not(.w-narrow) .b-panel-grid { grid-template-columns: minmax(0, 763px) 610px; justify-content: space-between; }
.b-panel-after { margin-top: 24px; }
.b-panel-grid .rte + .b-panel-after { margin-top: 24px; }
.b-group { padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.b-group > .b-title-section + * { margin-top: 8px; }

figure.plain-frame { margin: 0; }
.plain-frame img, .b-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.b-panel .double-frame, .b-image .double-frame, .b-cols .double-frame { margin-top: 0; }
.b-panel .double-frame img { aspect-ratio: 578 / 352; }
.b-cols .double-frame img { aspect-ratio: auto; height: auto; }
.double-frame figcaption {
    position: absolute; left: 14px; right: 14px; bottom: 14px; min-height: 49px; padding: 8px 12px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: rgba(0, 68, 141, .9); border-radius: 0 0 8px 8px; color: var(--white);
    font-size: 14px; line-height: 17px; font-weight: 500; text-transform: uppercase;
}
.b-image { max-width: 1144px; }

/* checklist (etiquettes) */
.b-checklist { padding: 40px; }
.b-dot-title { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink); text-transform: uppercase; }
.b-dot-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex: none; }
.b-checklist ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.b-checklist li { display: flex; gap: 12px; padding: 17px 13px 13px; background: #f9fcfe; border: 1px solid #f1f5f9; border-radius: 8px; font-size: 16px; line-height: 30px; color: #334155; }
.b-checklist li.wide { grid-column: 1 / -1; }
.b-checklist .tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 4px; background: #059669; }

/* banned-item tiles */
.b-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 303px)); justify-content: center; gap: 27px; margin: 0; padding: 0; list-style: none; }
.b-tiles li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 194px; padding: 19px; background: #f9fcfe; border: 1.1px solid #ecf1f8; border-radius: 13.5px; text-align: center; font-size: 16px; line-height: 28px; font-weight: 500; color: #1e293b; }
.tile-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--white); border: 1.5px solid #ef4444; }

/* notes */
.b-callout { border-radius: 8px; }
.b-callout p { margin: 0; }
.b-callout-yellow { width: max-content; max-width: 100%; margin-inline: auto; padding: 19px 28px; background: #fffcf1; border: 1.2px solid #fbbf24; font-size: 16px; line-height: 20px; color: #1e293b; }
.b-callout-yellow p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b-callout-yellow strong { color: #78350f; font-weight: 700; }
.b-callout-red { padding: 20px 16px; background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; font-size: 15px; line-height: 26px; font-weight: 500; }
.b-callout-red .b-callout-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; line-height: 16px; font-weight: 600; text-transform: uppercase; }
.b-callout-red.plain { padding: 16px; font-size: 16px; line-height: 30px; }

/* tables */
.b-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.b-table-wrap:has(.b-table-narrow) { max-width: 1294px; margin-inline: auto; }
.b-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 19px; color: var(--ink); background: var(--white); }
.b-table th { padding: 15px 20px; background: #1755a7; color: var(--white); font-weight: 700; text-align: left; border-right: 1px solid rgba(255, 255, 255, .25); }
.b-table thead tr:first-child th:first-child { border-top-left-radius: 6px; }
.b-table thead tr:first-child th:last-child { border-top-right-radius: 6px; border-right: 0; }
.b-table td { padding: 18px 20px; border-bottom: 1px solid #d9d9d9; border-right: 1px solid #d9d9d9; vertical-align: middle; }
.b-table td:first-child { border-left: 1px solid #d9d9d9; }
.b-table tr.alt td { background: #bee3fd; }
.b-table.stripes-alt-skip1 tr.alt td:first-child, .b-table.stripes-alt-even tr.alt td:first-child { background: var(--white); }
.b-table.stripes-alt-skip1 th:first-child, .b-table.stripes-alt-skip1 td:first-child { width: 100px; text-align: center; }
.b-table td.merged { background: var(--white) !important; }
.b-table.stripes-alt-band td.merged { background: inherit !important; }
.b-table.stripes-alt-band tr.alt td.merged { background: #bee3fd !important; }
.b-table.t-center th, .b-table.t-center td { text-align: center; }
.b-table.first-bold td:first-child { font-weight: 600; }
.b-table.t-center.first-bold td:first-child { text-align: left; }
.b-table.last-bold tbody tr:last-child td { font-weight: 700; background: #bee3fd; }
.b-table.t-center th { text-transform: uppercase; }
.b-table.stripes-alt-even td.merged { background: var(--white) !important; }
.b-table-wide.t-center th, .b-table-wide.t-center td { padding-inline: 10px; }
.b-table thead tr + tr th { background: #2a68b8; }
.b-table.t-uniform td { vertical-align: top; padding: 28px 32px; line-height: 30px; }
.b-table.t-uniform th:nth-child(2), .b-table.t-uniform td:nth-child(2):not([colspan]) { width: 666px; }
.b-table.t-uniform td:first-child { width: 227px; color: var(--ink); line-height: 22px; font-size: 18px; }
.b-table.t-uniform tr:first-child th:first-child { width: 227px; }
.b-table .pill { display: inline-block; padding: 5px 11px; margin: 4px 0; border: 1px solid #bae6fd; border-radius: 9999px; background: #e0f2fe; color: var(--ink); font-size: 14px; line-height: 17px; }
.b-table br + .pill { margin-top: 16px; }

/* people */
.b-people { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.b-people li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.b-people li[hidden] { display: none; }
.b-people strong { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: .2px; color: #1755a7; }
.b-people li > span:last-child { margin-top: 14px; font-size: 16px; line-height: 19px; font-weight: 500; letter-spacing: .16px; color: rgba(10, 37, 64, .9); }
.b-people-name { grid-template-columns: repeat(4, minmax(0, 325px)); }
.b-people-name li { min-height: 117px; padding: 20px; background: #e6f4fd; border-radius: 8px; }
.b-people-name-lg { grid-template-columns: repeat(3, minmax(0, 411px)); justify-content: center; gap: 32px 30px; }
.b-people-name-lg li { min-height: 132px; padding: 24px; background: #e6f4fd; border-radius: 8px; }
.b-people-name-lg strong { font-size: 22px; line-height: 27px; }
.b-people-name-lg li > span:last-child { font-size: 14px; line-height: 19px; text-transform: uppercase; }
.b-people-photo { grid-template-columns: repeat(5, minmax(0, 304px)); justify-content: center; gap: 16px 10px; }
.b-people-photo li { justify-content: flex-start; padding: 10px 11px 24px; background: var(--white); border: .6px solid rgba(217, 217, 217, .6); border-radius: 8px; box-shadow: 0 4px 18px rgba(33, 37, 41, .05); }
.pp-photo { display: block; width: 100%; aspect-ratio: 282 / 233; border-radius: 6px; background: #f8f6f5; overflow: hidden; }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.b-people-photo strong { margin-top: 30px; font-size: 17px; line-height: 21px; letter-spacing: .17px; }
.b-people-photo li > span:last-child { margin-top: 16px; font-size: 15px; line-height: 18px; }
.b-more { margin-top: 0; }

/* house in-charge cards (student council) */
.b-houses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.b-houses li { display: flex; overflow: hidden; background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .06); }
.house-flag { flex: 0 0 40%; max-width: 308px; height: 412px; object-fit: cover; }
.house-body { flex: 1; padding: 36px 32px; }
.house-name { margin: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.house-red .house-name { color: #dc2626; } .house-blue .house-name { color: #1d4ed8; }
.house-yellow .house-name { color: #d4a106; } .house-green .house-name { color: #16a34a; }
.house-people { display: grid; grid-template-columns: repeat(2, minmax(0, 179px)); gap: 39px; margin-top: 36px; }
.house-person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hp-photo { display: block; width: 100%; aspect-ratio: 179 / 194; border-radius: 8px; background: #f1f1f1; box-shadow: 0 0 0 1px #ececec; overflow: hidden; }
.hp-photo img { width: 100%; height: 100%; object-fit: cover; }
.house-person strong { margin-top: 26px; font-size: 18px; font-weight: 600; color: #1755a7; }
.house-person span:last-child { margin-top: 10px; font-size: 14px; color: rgba(10, 37, 64, .9); }

/* photos & documents */
.b-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 391px)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.b-photos.cols-2 { grid-template-columns: repeat(2, minmax(0, 391px)); }
.b-photos.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-photos li { padding: 15px; background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .05); }
.b-photos a { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.b-photos img { display: block; width: 100%; aspect-ratio: 362 / 266; object-fit: cover; transition: transform .5s var(--ease); }
.b-photos a:hover img { transform: scale(1.04); }
.ph-more-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(23, 85, 167, .6); color: var(--white); font-size: 16px; font-weight: 500; }
.b-docs { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.b-docs li { width: 590px; max-width: 100%; padding: 16px; background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .08); }
.b-docs img { display: block; width: 100%; height: auto; border-radius: 6px; }
.b-pdf { width: 100%; max-width: 1158px; margin-inline: auto; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .12); }
.b-pdf img { display: block; width: 100%; }
.b-pdf iframe { display: block; width: 100%; height: 760px; border: 0; }
.b-pdf-img { width: 100%; max-width: 1158px; margin-inline: auto; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .12); }
.b-pdf-img img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.b-pdf-empty { padding: 80px 20px; text-align: center; color: #64748b; background: #f8fafc; }
.b-pdf-link { margin: -16px 0 0; } .b-pdf-link a { color: #1755a7; }

/* gallery albums, videos, events */
.b-albums, .b-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 308px)); justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.b-albums a, .b-videos a, .b-events a {
    position: relative; display: block; height: 100%; padding: 0 0 10px; border-radius: 8px; overflow: hidden; text-decoration: none;
    background: linear-gradient(90deg, #febd30, #284ba2); box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .1);
}
.al-img, .ev-img { position: relative; display: block; overflow: hidden; background: #e2e8f0; }
.al-img img { display: block; width: 100%; height: 252px; object-fit: cover; transition: transform .5s var(--ease); }
.b-albums a:hover img, .b-videos a:hover img, .b-events a:hover img { transform: scale(1.05); }
.al-cap, .ev-cap { position: relative; display: flex; flex-direction: column; gap: 10px; margin: -46px 10px 0; padding: 14px 16px 16px; background: var(--white); border-radius: 6px; }
.al-cap strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; line-height: 22px; font-weight: 500; color: var(--blue); text-transform: uppercase; }
.al-cap > span, .ev-more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 17px; color: var(--ink); text-transform: uppercase; letter-spacing: .14px; }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.play::after { content: ''; position: absolute; left: 22px; top: 17px; border: 11px solid transparent; border-left: 16px solid #1755a7; border-right: 0; }
.b-events { display: grid; grid-template-columns: repeat(4, minmax(0, 337px)); justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ev-img img { display: block; width: 100%; height: 256px; object-fit: cover; transition: transform .5s var(--ease); }
.ev-cap { margin-top: -60px; gap: 12px; padding: 18px 20px 20px; border-radius: 10px; }
.ev-date { align-self: flex-start; padding: 8px 10px; border-radius: 6px; background: #b8282c; color: var(--white); font-size: 14px; line-height: 17px; font-weight: 600; font-style: normal; }
.ev-cap strong { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--blue); text-transform: uppercase; }
.ev-more { font-size: 15px; letter-spacing: .15px; }

.event-layout { display: grid; grid-template-columns: minmax(0, 1009px) minmax(0, 417px); justify-content: center; column-gap: 36px; padding-block: 60px 90px; align-items: start; }
.event-main { display: flex; flex-direction: column; gap: 32px; }
.event-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 24px; }
.ev-side { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.ev-side a { display: flex; gap: 20px; padding: 10px; background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 20px -2px rgba(10, 37, 64, .06); text-decoration: none; }
.ev-side img { flex: none; width: 174px; height: 117px; object-fit: cover; border-radius: 8px; }
.ev-side a > span { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ev-side .ev-date { padding: 0; background: none; color: #b8282c; font-size: 15px; }
.ev-side strong { font-size: 19px; line-height: 23px; font-weight: 600; color: var(--blue); }
.ev-side .ev-more { font-size: 16px; text-transform: none; }

/* contact */
.b-contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; width: 100%; max-width: 1294px; margin: 0 auto; padding: 0; list-style: none; }
.b-contact-cards li { padding: 34px 24px 30px; background: #00448d; border-bottom: 5px solid var(--yellow); border-radius: 12px; text-align: center; color: var(--white); }
.b-contact-cards p { margin: 0; font-size: 18px; line-height: 30px; }
.b-contact-cards .cc-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; color: var(--yellow); font-size: 18px; font-weight: 600; line-height: 22px; }
.b-contact-cards a { color: var(--white); text-decoration: none; }
.b-contact-cards a:hover { text-decoration: underline; }
.b-contact-form { max-width: 1294px; margin: 30px auto 0; padding: 50px 40px; }
.b-contact-form > .b-title { margin-bottom: 50px; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.cform label { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 19px; font-weight: 500; color: #474b4f; }
.cform label.wide { grid-column: 1 / -1; }
.cform input, .cform textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid #c6cbd2; border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.cform textarea { height: 144px; padding: 14px 16px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: #1755a7; box-shadow: 0 0 0 3px rgba(23, 85, 167, .15); }
.cf-captcha { display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 500; color: #474b4f; }
.cf-captcha output { display: grid; place-items: center; width: 156px; height: 48px; border: 1px dashed #c6cbd2; border-radius: 10px; background: #f1f5f9; font-size: 18px; font-weight: 700; letter-spacing: 2px; color: var(--ink); }
.cf-submit { margin-top: 30px; width: 143px; height: 48px; border: 0; border-radius: 10px; background: #00448d; color: var(--white); font: inherit; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.cf-submit:hover { background: #1755a7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-ok, .form-err { margin: 0 0 24px; padding: 14px 18px; border-radius: 8px; }
.form-ok { background: #ecfdf5; color: #065f46; } .form-err { background: #fef2f2; color: #991b1b; }

/* misc */
.b-link { margin: 0; }
.b-link a { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; line-height: 22px; font-weight: 600; color: #1755a7; text-decoration: underline; text-underline-offset: 4px; }
.b-cols { display: grid; gap: 60px; align-items: start; }
.b-cols-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-cols-wide-right { grid-template-columns: minmax(0, 610px) minmax(0, 1fr); }
.b-cols-wide-left { grid-template-columns: minmax(0, 1fr) minmax(0, 610px); }
.b-cols > div { display: flex; flex-direction: column; gap: 24px; }
.page-banner.no-tint .page-banner-img { mix-blend-mode: normal; top: 0; height: 100%; }
.page-banner.no-tint::after { display: none; }
.page-banner.no-tint { background: #0d2c5e; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 60px 70px; background: rgba(4, 12, 30, .9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; top: 50%; margin-top: -24px; } .lb-next { right: 12px; top: 50%; margin-top: -24px; }
body.lb-open { overflow: hidden; }

/* ---- inner pages: smaller screens ---- */
@media (max-width: 1400px) {
    .b-panel.has-img .b-panel-grid, .b-panel.has-img:not(.w-medium):not(.w-narrow) .b-panel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 40px; }
    .b-people-photo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .b-albums, .b-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b-events { grid-template-columns: repeat(2, minmax(0, 337px)); }
    .event-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .house-people { gap: 20px; }
}
@media (max-width: 1100px) {
    .b-panel.has-img .b-panel-grid, .b-panel.has-img:not(.w-medium):not(.w-narrow) .b-panel-grid, .b-panel.has-img.img-left .b-panel-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
    .b-panel.has-img.img-left .b-panel-fig { order: 0; }
    .b-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-people-name, .b-people-photo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b-people-name-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-houses { grid-template-columns: minmax(0, 1fr); }
    .b-cols, .b-cols-wide-right, .b-cols-wide-left, .b-cols-half { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .event-layout { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
    .event-side { position: static; }
}
@media (max-width: 760px) {
    .page-body { padding-block: 40px 60px; gap: 28px; }
    .tab-panel { gap: 28px; }
    .b-title-page h1, .b-title-page h2 { font-size: 24px; line-height: 30px; }
    .b-title-page-left h1, .b-title-page-left h2 { font-size: 22px; line-height: 28px; }
    .b-panel, .b-group, .b-checklist { padding: 22px 18px; }
    .b-panel > .b-title { margin-bottom: 24px; }
    .rte { text-align: left; }
    .b-checklist ul, .b-contact-cards, .cf-grid { grid-template-columns: minmax(0, 1fr); }
    .b-tiles { gap: 12px; }
    .b-tiles li { min-height: 160px; padding: 14px 10px; font-size: 14px; line-height: 22px; }
    .b-people-name, .b-people-photo, .b-people-name-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .b-people strong { font-size: 16px; line-height: 20px; }
    .b-people li > span:last-child { font-size: 13px; margin-top: 8px; }
    .b-people-photo strong { margin-top: 16px; }
    .b-photos, .b-photos.cols-2, .b-albums, .b-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .b-photos li { padding: 8px; }
    .b-events { grid-template-columns: minmax(0, 1fr); }
    .b-houses li { flex-direction: column; }
    .house-flag { flex: none; max-width: none; width: 100%; height: 220px; }
    .house-body { padding: 22px 18px; }
    .al-img img { height: 160px; }
    .al-cap { margin: -30px 6px 0; padding: 10px; }
    .al-cap strong { font-size: 14px; }
    .b-table { font-size: 14px; }
    .b-table th, .b-table td { padding: 12px; }
    .b-table.t-uniform td { padding: 14px; min-width: 220px; }
    .b-table.t-uniform td:first-child { min-width: 130px; font-size: 15px; }
    .b-callout-yellow { width: auto; padding: 14px 16px; }
    .ev-side img { width: 120px; height: 90px; }
    .b-contact-form { padding: 28px 18px; }
    .lightbox { padding: 60px 8px; }
}
@media (max-width: 420px) {
    .b-photos, .b-photos.cols-2, .b-albums, .b-videos, .b-people-name-lg { grid-template-columns: minmax(0, 1fr); }
}
.page-body > * + .b-title-page { margin-top: 40px; }

.b-title.no-caps h1, .b-title.no-caps h2 { text-transform: none; }
.al-img img { height: 250px; }
.al-cap { margin-top: -26px; }
.b-albums a { min-height: 336px; }
.event-side { padding-top: 98px; }
.ev-side .ev-date { align-self: flex-start; padding: 5px 8px; border-radius: 4px; background: #b8282c; color: var(--white); font-size: 12px; line-height: 15px; }
.ev-side strong { font-size: 16px; line-height: 20px; text-transform: uppercase; }
.ev-side .ev-more { font-size: 13px; text-transform: uppercase; }
@media (max-width: 1100px) { .event-side { padding-top: 0; } }
@media (max-width: 760px) {
    .b-table.t-uniform th:nth-child(2), .b-table.t-uniform td:nth-child(2):not([colspan]) { width: auto; }
    .f-brand { gap: 12px; }
    .f-brand img { width: 72px; height: 76px; flex: none; }
    .f-brand span { white-space: normal; min-width: 0; }
}

/* ---- typography pass: values read from the Figma text styles ---- */
.b-title h1, .b-title h2 { letter-spacing: .01em; }
.b-title-page.size-sm h1, .b-title-page.size-sm h2 { font-size: 26px; line-height: 31px; }
.b-title-page-left.size-lg h1, .b-title-page-left.size-lg h2 { font-size: 30px; line-height: 36px; }
.b-title-page-left h1, .b-title-page-left h2 { letter-spacing: 0; }
.b-title.no-caps h1, .b-title.no-caps h2 { font-weight: 600; letter-spacing: 0; }
.b-title-card h1, .b-title-card h2 { letter-spacing: 0; }
.b-title-section h1, .b-title-section h2 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: .5px; }
.b-table-title { margin: 0 0 -20px; font-size: inherit; }
.b-table-title h3 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.b-table-title .bars { display: flex; width: max-content; margin-top: 20px; }
.rte { color: var(--ink); }
.rte li { color: #334155; }
.rte li strong { color: var(--ink); }
.rte h3 { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink); }
.b-lead, .b-text-quote { font-weight: 500; }
.b-text-quote p { font-size: 18px; line-height: 32px; font-weight: 500; font-style: italic; }
.b-text-quote strong, .b-text-quote em { font-weight: 500; }
.b-text-large, .b-panel.text-lg .rte { font-size: 17px; line-height: 34px; }
.b-text-large strong, .b-panel.text-lg .rte strong { font-weight: 500; }
.b-text-intro { color: #212529; }
.b-text-center { font-size: 16px; line-height: 24px; color: #323333; }
.b-text-divided { line-height: 27px; }
.b-text-divided li { line-height: 30px; }
.b-dot-title { font-size: 20px; line-height: 28px; letter-spacing: -.5px; }
.b-checklist li { color: #334155; }
.b-people-name-lg strong { font-size: 22px; letter-spacing: .22px; }
.b-people-name-lg li > span:last-child { font-size: 16px; line-height: 19px; letter-spacing: .16px; color: rgba(10, 37, 64, .9); }
.house-name { letter-spacing: .14px; }
.house-red .house-name { color: #fa2842; } .house-blue .house-name { color: #002dc3; }
.house-yellow .house-name { color: #febd30; } .house-green .house-name { color: #1dbe84; }
.house-person strong { letter-spacing: .18px; }
.house-person span:last-child { font-size: 16px; font-weight: 500; letter-spacing: .16px; color: rgba(10, 37, 64, .8); }
.b-contact-cards .cc-label { font-weight: 500; }
.b-link a { color: var(--blue); }
.message-signoff.is-long { font-size: 20px; line-height: 30px; font-weight: 600; font-style: italic; }

/* tables */
.b-table.t-uniform th { padding: 23px 32px; font-size: 18px; line-height: 22px; font-weight: 600; }
.b-table.t-uniform td { padding: 30px 32px; line-height: 24px; }
.b-table.t-uniform td:first-child { font-size: 18px; line-height: 22px; font-weight: 600; }
.b-table.t-uniform tr:first-child th:first-child, .b-table.t-uniform td:first-child { width: 228px; }
.b-table.t-uniform th:nth-child(2), .b-table.t-uniform td:nth-child(2):not([colspan]) { width: 667px; }
.b-table.t-uniform td:has(.pill), .b-table.t-uniform td:has(br) { line-height: 30px; }
.b-table.t-uniform .pill { margin: 0 0 6px; line-height: 18px; }
.b-table.t-uniform br + .pill { margin-top: 18px; }
.b-table.t-uniform strong { font-weight: 600; }
.b-table.t-strength, .b-table.t-fee { font-size: 16px; }
.b-table.t-strength th, .b-table.t-fee th { padding: 15px 8px; line-height: 19px; font-weight: 700; text-transform: uppercase; text-align: center; }
.b-table.t-strength td, .b-table.t-fee td { padding: 18px 8px; line-height: 19px; text-align: center; }
.b-table.t-strength th:first-child, .b-table.t-strength td:first-child { width: 169px; }
.b-table.t-strength td:first-child { font-weight: 500; }
.b-table.t-strength th:nth-child(n+7), .b-table.t-strength td:nth-child(n+7) { width: 216px; }
.b-table.t-strength tbody tr:last-child td { font-weight: 600; }
.b-table.t-strength tbody tr:last-child td:first-child { font-weight: 700; color: rgba(10, 37, 64, .8); }
.b-table.t-fee td { font-size: 15px; }
.b-table.t-fee th:first-child, .b-table.t-fee td:first-child { width: 244px; padding-left: 24px; text-align: left; }
.b-table.t-fee td:first-child { font-size: 16px; font-weight: 500; color: rgba(10, 37, 64, .8); }
.b-table.t-fee tbody tr:first-child td { font-size: 16px; font-weight: 500; }
.b-table.t-fee tbody tr:last-child td { font-size: 16px; font-weight: 600; }
.b-table.t-fee tbody tr:last-child td:first-child { font-weight: 700; }
.b-table.t-fee th:first-child { color: var(--white); }
@media (max-width: 760px) {
    .b-table.t-uniform td, .b-table.t-uniform th { padding: 14px; }
    .b-table.t-uniform td:first-child { width: auto; min-width: 120px; font-size: 15px; }
    .b-table.t-uniform th:nth-child(2), .b-table.t-uniform td:nth-child(2):not([colspan]) { width: auto; }
    .b-table.t-strength th, .b-table.t-fee th, .b-table.t-strength td, .b-table.t-fee td { padding: 12px 8px; font-size: 14px; width: auto; }
    .b-table.t-fee td:first-child { min-width: 150px; }
    .message-signoff.is-long { font-size: 17px; }
}
.b-title-card.size-lg h1, .b-title-card.size-lg h2 { font-weight: 700; text-transform: uppercase; }
/* spacing pass */
.b-table.t-uniform td { padding: 27px 32px; line-height: 30px; }
.b-table.t-uniform .pill { margin: 0 0 14px; }
.b-table.t-uniform br + .pill { margin-top: 24px; }
.b-table-title { margin: 0; }
* + .b-table-title { margin-top: 20px; }
.seg-wrap + .tab-panel { margin-top: 0; }
.b-group > .b-panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.b-group > .b-panel + .b-panel { margin-top: 30px; }
.b-table.t-uniform br + .pill { margin-top: 33px; }
.b-panel:not(.w-medium):not(.w-narrow) { padding: 36px 50px 42px 30px; }
.b-panel.w-medium { padding: 44px 40px; }
.b-group-medium { padding: 44px 40px; }
.b-text-intro { max-width: 810px; }
.tab-panel > .b-title-card:first-child { margin-top: 15px; }
.b-group > .b-title-card + * { margin-top: -8px; }
.b-group > .b-text + .b-text-quote { margin-top: -12px; }
.b-group > .b-image { margin-top: 12px; }
.b-group > .b-title + .b-people { margin-top: 40px; }
.b-group > .b-people + .b-title { margin-top: 18px; }
.b-group > .b-panel { padding: 0 !important; }
.b-group > .b-panel.has-img .b-panel-grid { grid-template-columns: minmax(0, 1fr) 529px; justify-content: normal; column-gap: 60px; }
.b-group > .b-panel > .b-title { margin-bottom: 32px; }
@media (max-width: 1100px) { .b-group > .b-panel.has-img .b-panel-grid { grid-template-columns: minmax(0, 1fr); } }
.b-text-intro + * { margin-top: -4px; }
.b-dot-title { margin-bottom: 24px; }
.b-checklist li { padding: 12px 13px; }
.b-group-wide { padding: 52px 40px 56px; }
.b-group > .b-title-section + * { margin-top: 16px; }
.rte p + p:not(:first-child) { }
.b-panel .rte p:has(> strong:only-child) + p { margin-top: 0; }
.b-docs { gap: 24px; }
.b-docs li { width: 635px; padding: 25px 21px 26px; }
.b-events .ev-cap { margin-top: -25px; min-height: 151px; gap: 14px; padding: 22px 20px; }

/* About intro: keep a gap between the text and the photo at every width */
.about-intro-grid { grid-template-columns: minmax(0, 796px) minmax(300px, 610px); column-gap: clamp(40px, 6vw, 114px); }
@media (max-width: 1500px) {
    .about-intro-grid { padding-right: var(--gutter); }
    .about-intro .double-frame { margin-top: 140px; }
}
@media (max-width: 1280px) {
    .about-intro-grid { grid-template-columns: 1fr; row-gap: 40px; }
    .about-intro .double-frame { margin-top: 0; }
}
@media (max-width: 1500px) and (min-width: 1281px) {
    .about-intro-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
    .about-intro .double-frame { margin-top: 90px; }
}

/* live visitor count: a soft flash when the number goes up */
@keyframes vtick { from { color: #febd30; } to { color: inherit; } }
.visitors span.is-ticked { animation: vtick 1.2s ease-out; }

/* =================================================================
   MOBILE — Figma "Mobile UI" (390 px frames). Values are exact.
   Applies to phones (≤ 767px); the menu panel also to tablets (≤ 1080px).
   ================================================================= */

/* ---- Menu panel (phones and tablets): light panel under the header ---- */
@media (max-width: 1080px) {
    .nav-toggle {
        width: 31px; height: 28px; padding: 0; border-radius: 4px; background: #284ba2; color: #fff;
        align-items: center; justify-content: center;
    }
    .nav-toggle svg { width: 18px; height: 18px; }
    .nav-open .nav-toggle { position: static; color: #fff; }
    .main-nav {
        top: var(--m-head, 80px); left: 0; right: 0; bottom: 0; width: auto; background: #f8f8f8;
        transform: translateY(-8px); opacity: 0; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
        z-index: 140;
    }
    .nav-open .main-nav { transform: none; opacity: 1; box-shadow: none; transition: opacity .25s, transform .3s var(--ease); }
    .main-nav .container { padding: 18px 20px 40px; }
    .nav-item { border: 0; align-items: center; }
    .nav-link {
        flex: 0 1 auto; padding: 18px 0; font-size: 16px; font-weight: 500; line-height: 19px; color: #284ba2;
    }
    .nav-item.is-current > .nav-link { box-shadow: none; color: #284ba2; }
    .has-sub > .nav-link + .sub-toggle { padding: 0 0 0 6px; color: #284ba2; height: 30px; background: none; }
    .sub-toggle svg { width: 12px; height: 12px; }
    .sub-menu {
        background: #fff; border: 1px solid rgba(209, 209, 209, .6); border-radius: 6px;
        box-shadow: 0 0 8px rgba(33, 37, 41, .12); padding: 8px 0; margin: 2px 0 6px; max-width: 322px;
    }
    .sub-menu a { padding: 14px 20px; font-size: 16px; font-weight: 400; line-height: 19px; color: #284ba2; background: none; }
    .sub-menu a:hover, .sub-menu a:focus-visible { background: rgba(40, 75, 162, .06); color: #284ba2; }
    .nav-mobile-extra { padding: 38px 0 0; gap: 24px; }
    .nme-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
    .nav-mobile-extra a, .nme-contact a { color: #284ba2; font-size: 14px; font-weight: 500; gap: 10px; }
    .nme-contact .info-sep { width: 1px; height: 18px; background: #284ba2; opacity: .6; }
    .nme-song { color: #284ba2; font-size: 14px; font-weight: 500; gap: 9px; }
    .nme-song .song-time { min-width: 0; }
    .nme-actions { display: flex; gap: 16px; flex-wrap: wrap; }
    .nme-actions .hbtn { height: 43px; border-radius: 4px; padding: 0 33px; font-size: 16px; font-weight: 500; }
    .nme-actions .hbtn-blue { background: #00448d; min-width: 172px; }
    .nav-backdrop { display: none !important; }
}
@media (min-width: 1081px) { .nav-mobile-extra .nme-song, .nav-mobile-extra .nme-actions { display: none; } }

@media (max-width: 767px) {
    :root { --gutter: 20px; --m-head: 80px; }

    /* ---- Header ---- */
    .topbar { box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
    .topbar-inner, .is-scrolled .topbar-inner { min-height: 80px; }
    .brand { gap: 14px; }
    .brand-logo, .is-scrolled .brand-logo { width: 47px; height: 54px; }
    .brand-name { font-size: 14px; line-height: 18px; letter-spacing: 0; color: #18316f; max-width: 160px; }

    /* ---- Shared section heading ---- */
    .sec-title { font-size: 20px; line-height: 32px; letter-spacing: .01em; }
    .bars i { height: 4px; }
    .bars i:nth-child(1) { width: 59px; }
    .bars i:nth-child(2) { width: 32px; }
    .bars i:nth-child(3) { width: 9px; }
    .bars { gap: 5px; }
    .obtn { padding: 0 5px 5px 0; }
    .obtn::before { left: 5px; top: 11px; }
    .obtn-face { padding: 12px 17px; font-size: 14px; line-height: 17px; gap: 10px; }
    .obtn-face svg { width: 17px; height: 17px; }

    /* ---- Banner + news ---- */
    .hero { height: 390px; }
    .ticker { border-top: 0; background: #041b54; }
    .ticker-inner { flex-direction: column; align-items: stretch; gap: 20px; min-height: 114px; padding: 24px 0 20px; }
    .ticker-label { align-self: flex-start; height: 34px; font-size: 12px; padding: 0 18px 0 10px; }
    .ticker-track { margin: 0 calc(-1 * var(--gutter)); -webkit-mask-image: none; mask-image: none; }
    .ticker-list li { font-size: 12.6px; line-height: 16px; padding-right: 10px; gap: 4px; }
    .ticker-list .spark { color: #e4331d; width: 9px; height: 9px; }

    /* ---- Welcome ---- */
    .welcome { padding: 35px 0 60px; }
    .welcome-grid { display: block; }
    .welcome-text { padding-top: 0; }
    .flag-ribbon { width: 72px; height: 16px; }
    .flag-ribbon i { height: 6px; width: 50px; }
    .flag-ribbon .o { left: 22px; top: 1px; }
    .flag-ribbon .g { left: 0; top: 9px; }
    .flag-dot { left: 24px; top: 1px; width: 14px; height: 14px; }
    .flag-dot::after { inset: 5px; border-width: 1px; }
    .welcome-title { margin-top: 20px; font-size: 20px; line-height: 32px; }
    .welcome-text > .bars { margin-top: 16px; display: flex; }
    .welcome-body { margin-top: 20px; font-size: 16px; line-height: 28px; text-align: justify; color: #0a2540; }
    .welcome-body p + p { margin-top: 16px; }
    .welcome-text .obtn { margin-top: 32px; }

    /* highlight cards: one column, photos hidden, in the Figma order */
    .highlights { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 45px; }
    .hl-col { display: contents; }
    .hl-img, .hl-watermark { display: none; }
    .hl-card { min-height: 0; padding: 28px 20px; border-radius: 8px; }
    .hl-yellow { order: 1; } .hl-est { order: 2; } .hl-award { order: 3; } .hl-sky2 { order: 4; } .hl-results { order: 5; }
    .hl-card h2 { font-size: 18px; line-height: 22px; font-weight: 600; }
    .hl-card p { font-size: 14px; line-height: 26px; font-weight: 500; margin-top: 14px; }
    .hl-est p { font-size: 18px; line-height: 26px; font-weight: 600; margin-top: 0; max-width: 278px; }
    .hl-est strong { font-size: 28px; line-height: 38px; font-weight: 600; }
    .hl-label { font-size: 18px; line-height: 22px; font-weight: 600; }
    .hl-award { gap: 8px; }
    .hl-award strong { display: block; margin: 0; font-size: 24px; line-height: 29px; font-weight: 700; }
    .hl-award .hl-sub { display: block; margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
    .hl-results strong { display: block; margin-top: 7px; font-size: 28px; line-height: 36px; font-weight: 700; }
    .hl-results .hl-sub { display: inline-block; margin-top: 7px; font-size: 18px; line-height: 24px; font-weight: 600; }
    .hl-results .hl-arrow { position: static; display: inline-block; vertical-align: -4px; margin-left: 12px; width: 19px; height: 19px; }

    /* ---- Announcements ---- */
    .announce { padding: 44px 0 40px; }
    .announce .sec-head { margin: 0; }
    .announce .sec-title { font-size: 20px; line-height: 29px; font-weight: 600; }
    .announce .sec-title .accent { font-size: 24px; font-weight: 700; margin-left: 4px; }
    .announce-intro { margin-top: 20px; font-size: 16px; line-height: 28px; text-align: justify; }
    .announce-grid { display: block; margin-top: 28px; }
    .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: visible; }
    .tabs [role="tab"] {
        min-width: 0; height: 68px; padding: 0 12px; font-size: 14px; line-height: 20px; font-weight: 500;
        white-space: normal; color: #0a2540; box-shadow: -5px 6px 20px rgba(33, 37, 41, .03);
    }
    .announce-card { display: block; padding: 24px 20px 36px; }
    .announce-poster { display: none; }
    .announce-body h3 { font-size: 16px; line-height: 19px; font-weight: 600; letter-spacing: .01em; }
    .announce-date { margin-top: 10px; font-size: 14px; line-height: 17px; font-weight: 500; }
    .announce-desc { margin-top: 20px; font-size: 16px; line-height: 28px; text-align: justify; }
    .announce-more { display: inline-block; margin-top: 24px; font-size: 16px; line-height: 19px; }
    .announce-promo { max-width: none; margin-top: 16px; }
    .promo-img { height: 220px; border-radius: 8px; }
    .promo-img figcaption {
        max-width: 200px; padding: 0; background: none; clip-path: none;
        font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: 0;
    }
    .promo-img figcaption span {
        background: #febd30; padding: 1px 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
    }
    .rotating-badge { display: none; }
    .admission-bar { margin-top: 12px; height: 53px; border-radius: 6px; font-size: 16px; justify-content: center; gap: 10px; }
    .admission-bar svg { width: 15px; height: 15px; }

    /* ---- Results & toppers ---- */
    .results { padding: 50px 0 0; }
    .results .sec-title { max-width: 290px; margin-inline: auto; }
    .results .sec-intro, .life .sec-intro { margin-top: 20px; font-size: 16px; line-height: 28px; font-weight: 500; }
    .toppers-box { margin-top: 28px; padding: 42px 24px 49px; border-radius: 8px; }
    .toppers-title { font-size: 18px; line-height: 22px; letter-spacing: .01em; }
    .pill-tabs { margin-top: 34px; gap: 20px; }
    .pill-tabs [role="tab"] { min-width: 126px; height: 41px; font-size: 16px; padding: 0 12px; }
    .toppers-grid { margin-top: 44px; grid-template-columns: minmax(0, 305px); gap: 17px; justify-content: start; }
    .topper { padding: 0 11px 11px 0; }
    .topper-face { padding: 24px; height: 249px; min-height: 0; }
    .topper-photo { width: 137px; height: 127px; }
    .topper h4 { margin-top: 20px; font-size: 18px; line-height: 22px; }
    .topper-score { margin-top: 12px; font-size: 16px; line-height: 19px; }
    .toppers-foot { margin-top: 68px; }
    .trophy { display: none; }

    /* ---- Life @ AFS ---- */
    .life { padding: 50px 0 72px; }
    .life .sec-intro { letter-spacing: .01em; }
    .life-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr; grid-auto-rows: 240px; gap: 12px; }
    .life-item { border-radius: 8px; }
    .life-5, .life-6 { display: none; }
    .life .center { display: none; }

    /* ---- Admission enquiry ---- */
    .cta { min-height: 383px; padding: 0; align-items: flex-start; }
    .cta-inner { width: 100%; gap: 56px; padding-top: 60px; padding-bottom: 66px; }
    .cta h2 { font-size: 26px; line-height: 40px; letter-spacing: .01em; }
    .cta .obtn { padding: 0 6px 6px 0; }
    .cta .obtn::before { left: 6px; top: 11px; }

    /* ---- Footer ---- */
    .site-footer { padding-top: 52px; padding-bottom: 0; }
    .footer-grid { display: flex; flex-direction: column; gap: 0; }
    .f-about, .f-col { display: contents; }
    .f-brand { order: 1; gap: 12px; }
    .f-brand img { width: 84px; height: 88px; }
    .f-brand span { font-family: inherit; font-size: 16px; font-weight: 600; line-height: 28px; letter-spacing: .02em; max-width: 190px; }
    .f-about p { order: 2; margin-top: 28px; font-size: 16px; line-height: 28px; text-align: justify; color: rgba(255, 255, 255, .8); }
    .visitors { order: 3; align-self: flex-start; width: auto; margin-top: 24px; margin-bottom: 12px; padding: 14px 17px; border-radius: 8px; font-size: 16px; line-height: 19px; box-shadow: -5px 6px 12px rgba(33, 37, 41, .2); }
    .f-group { order: 4; border-bottom: 1px solid rgba(255, 255, 255, .2); }
    .f-group h2, .f-col .f-second {
        position: relative; margin: 0; padding: 24px 30px 25px 0; cursor: pointer;
        font-size: 18px; line-height: 22px; font-weight: 600; color: rgba(254, 205, 30, .85);
    }
    .f-group h2::after {
        content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
        border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .25s;
    }
    .f-group.is-open h2::after { transform: rotate(-135deg); margin-top: -2px; }
    .f-group .f-links { display: none; padding: 0 0 20px; margin-top: -8px; }
    .f-group.is-open .f-links { display: block; }
    .f-links li { line-height: 40px; }
    .f-links a { font-size: 16px; color: rgba(255, 255, 255, .8); }
    .f-map { order: 5; margin-top: 40px; width: 100%; height: 204px; border-radius: 8px; overflow: hidden; }
    .f-map iframe, .f-map img { width: 100%; height: 100%; object-fit: cover; }
    .footer-bottom { margin-top: 36px; padding: 30px 0 26px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
    .footer-bottom p { font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .8); text-align: left; }
    .footer-bottom strong { font-weight: 400; }

    /* ---- Floating Parental Login badge ---- */
    .emblem { width: 70px; height: 70px; right: 20px; bottom: 24px; box-shadow: 0 6px 18px rgba(4, 27, 84, .25); background: #fff; }
}
@media (min-width: 1081px) { .emblem { display: none; } }

/* ---- Mobile: inner page banner + About ---- */
@media (max-width: 767px) {
    .page-banner { height: 173px; }
    .crumbs { top: auto; bottom: 24px; }
    .crumbs ol { gap: 9px; }
    .crumbs li { font-size: 12px; line-height: 15px; gap: 9px; }
    .crumbs svg { width: 20px; height: 10px; }

    .about-intro { background: #fff; padding-block: 40px 60px; }
    .about-intro-grid { display: block; padding: 0 var(--gutter); }
    .about-title { margin-top: 19px; font-size: 20px; line-height: 32px; }
    .about-intro-text > .bars { margin-top: 16px; }
    .about-body { margin-top: 20px; font-size: 16px; line-height: 28px; }
    .about-body p + p { margin-top: 16px; }
    .about-intro .double-frame { display: none; }

    .messages { padding-block: 32px 40px; }
    .messages .container { padding-inline: 10px; }
    .messages .seg-tabs { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; box-shadow: none; overflow: visible; }
    .messages .seg-tabs [role="tab"] {
        width: 226px; height: 44px; justify-content: center; padding: 0 10px; font-size: 16px; line-height: 24px;
        background: #e5eeff; box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    }
    .messages .seg-tabs [role="tab"][aria-selected="true"] { background: #1755a7; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
    .messages .seg-tabs svg { width: 16px; height: 16px; }
    .message-card { display: flex; flex-direction: column; row-gap: 0; margin-top: 30px; padding: 36px 20px 36px; }
    .about-body, .message-quote, .message-body, .rte { text-align: justify; }
    .message-main { display: contents; }
    .message-title { order: 1; font-size: 18px; line-height: 22px; }
    .message-main > .bars { order: 2; margin-top: 20px; }
    .leader-card { order: 3; margin-top: 40px; padding: 24px 24px 28px; align-self: stretch; }
    .leader-photo { height: 245px; padding: 11px 37px 0 45px; }
    .leader-name { margin-top: 32px; font-size: 16px; letter-spacing: .01em; }
    .leader-role { margin-top: 12px; font-size: 14px; }
    .message-text { order: 4; margin-top: 28px; gap: 20px; }
    .message-quote { font-size: 16px; line-height: 28px; }
    .message-body { line-height: 28px; }
    .message-signoff, .message-signoff.is-long { margin-top: 8px; font-size: 20px; line-height: 24px; font-weight: 500; font-style: normal; letter-spacing: .025em; }
}

/* ---- Mobile: inner pages (titles, tabs, tables) ---- */
@media (max-width: 767px) {
    .page-body { padding-block: 40px 60px; gap: 24px; }
    .tab-panel { gap: 24px; }
    .b-title-page, .b-title-section { text-align: left; }
    .b-title-page h1, .b-title-page h2, .b-title-page-left h1, .b-title-page-left h2 {
        font-size: 20px; line-height: 32px; letter-spacing: .01em;
    }
    .b-title-page .bars, .b-title-page-left .bars, .b-title-section .bars { display: flex; width: max-content; margin-top: 16px; }
    .b-title-section h1, .b-title-section h2, .b-table-title { font-size: 16px; line-height: 28px; font-weight: 700; letter-spacing: 0; }
    .b-table-title { margin-bottom: -8px; }
    .page-body > * + .b-title-page { margin-top: 16px; }

    /* tabs inside pages: stacked buttons, left aligned */
    .page-body .seg-wrap { justify-content: flex-start; }
    .page-body .seg-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; background: none; box-shadow: none; overflow: visible; }
    .page-body .seg-tabs [role="tab"] { height: 40px; padding: 0 20px; font-size: 14px; line-height: 20px; background: #e5eeff; }
    .page-body .seg-tabs [role="tab"][aria-selected="true"] { background: #1755a7; }
    .page-body .seg-tabs svg { width: 14px; height: 14px; }

    /* tables keep their full width and scroll sideways to the screen edge */
    .b-table-wrap { width: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
    .b-table { font-size: 16px; line-height: 19px; min-width: 635px; }
    .b-table th, .b-table td { padding: 15px 20px; }
    .b-table.t-strength { min-width: 768px; }
    .b-table.t-fee { min-width: 1564px; }
    .b-table.t-strength th, .b-table.t-fee th { padding: 15px 8px; font-size: 16px; }
    .b-table.t-strength td, .b-table.t-fee td { padding: 18px 8px; font-size: 16px; }
    .b-table.t-fee td { font-size: 15px; }
    .b-table.t-fee td:first-child, .b-table.t-fee tbody tr:first-child td, .b-table.t-fee tbody tr:last-child td { font-size: 16px; }
    .b-table.t-fee th:first-child, .b-table.t-fee td:first-child { width: 244px; min-width: 244px; padding-left: 24px; }
    .b-table.t-strength th:nth-child(1) { width: 110px; } .b-table.t-strength th:nth-child(2) { width: 93px; }
    .b-table.t-strength th:nth-child(3) { width: 79px; } .b-table.t-strength th:nth-child(4) { width: 89px; }
    .b-table.t-strength th:nth-child(5) { width: 81px; } .b-table.t-strength th:nth-child(6) { width: 92px; }
    .b-table.t-strength th:nth-child(7) { width: 113px; } .b-table.t-strength th:nth-child(8) { width: 111px; }
    .b-table.t-uniform { min-width: 1077px; }
    .b-table.t-uniform td { padding: 32px 30px; min-width: 0; }
    .b-table.t-uniform th { padding: 16px 30px; }
    .b-table.t-uniform th:first-child, .b-table.t-uniform td:first-child { padding-left: 32px; }
    .b-table.t-uniform td:first-child { min-width: 0; width: 191px; font-size: 16px; }
    .b-callout-red.plain { padding: 16px 18px; font-size: 16px; line-height: 30px; }
}

/* ---- Mobile: people, houses, panels, checklists ---- */
@media (max-width: 767px) {
    /* tabs wrap onto as many rows as they need */
    .page-body .seg-tabs { flex-direction: row; flex-wrap: wrap; }
    .page-body .seg-tabs [role="tab"] { padding: 0 24px; box-shadow: 0 2px 4px rgba(0, 0, 0, .05); }

    /* staff cards: two columns, 10 shown until "View More" */
    .b-people-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .b-people-photo li { padding: 6px 6px 14px; border: .33px solid rgba(217, 217, 217, .6); border-radius: 4.3px; box-shadow: 0 2px 10px rgba(33, 37, 41, .05); }
    .pp-photo { aspect-ratio: 153 / 126; border-radius: 3.3px; }
    .b-people-photo strong { margin-top: 14px; font-size: 14px; line-height: 20px; letter-spacing: .14px; padding: 0 6px; }
    .b-people-photo li > span:last-child { margin-top: 8px; font-size: 12px; line-height: 15px; letter-spacing: .12px; }
    .b-people-photo:not(.is-expanded):has(+ .b-more [data-more-people]) > li:nth-child(n+11) { display: none; }
    .b-more { margin-top: 10px; }

    /* name cards (Student Council) */
    .b-people-name-lg { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .b-people-name-lg li { min-height: 117px; padding: 30px 36px; align-items: flex-start; text-align: left; justify-content: flex-start;
        background: #e6f5ff; border: 1px solid rgba(217, 217, 217, .6); border-radius: 8px; }
    .b-people-name-lg strong { font-size: 18px; line-height: 22px; letter-spacing: .18px; }
    .b-people-name-lg li > span:last-child { margin-top: 16px; font-size: 16px; line-height: 19px; font-weight: 500; letter-spacing: .16px; }

    /* house cards: flag on the left, names on the right */
    .b-houses { gap: 20px; }
    .b-houses li { flex-direction: row; min-height: 199px; border: .6px solid rgba(217, 217, 217, .8); border-radius: 15px; box-shadow: 0 4px 18px rgba(33, 37, 41, .05); }
    .house-flag { flex: 0 0 136px; width: 136px; max-width: none; height: auto; min-height: 199px; }
    .house-body { padding: 20px 16px 20px 24px; }
    .house-name { font-size: 14px; line-height: 17px; letter-spacing: .14px; }
    .house-red .house-name { color: #fa2842; }
    .house-people { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
    .house-person { align-items: flex-start; text-align: left; }
    .hp-photo { display: none; }
    .house-person strong { margin-top: 0; font-size: 16px; line-height: 19px; }
    .house-person span:last-child { margin-top: 8px; font-size: 14px; line-height: 17px; font-weight: 500; color: rgba(10, 37, 64, .8); }

    /* panels (Code of Conduct and similar) */
    .b-text-intro { margin-top: 0; font-size: 16px; line-height: 24px; color: #212529; text-align: left; }
    .b-title-page-left.size-lg h1, .b-title-page-left.size-lg h2 { font-size: 20px; line-height: 32px; }
    .b-panel, .b-panel:not(.w-medium):not(.w-narrow), .b-checklist { padding: 24px; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 2px 6px rgba(10, 37, 64, .03), 0 4px 20px rgba(10, 37, 64, .05); }
    .b-panel.has-img { display: flex; flex-direction: column; }
    .b-panel.has-img .b-panel-grid { display: contents; }
    .b-panel.has-img .b-panel-after { order: 2; margin-top: 20px; }
    .b-panel.has-img .b-panel-fig { order: 3; margin-top: 20px; }
    .b-panel .double-frame { padding: 0; border: 0; box-shadow: none; max-width: none; margin-top: 0; }
    .b-panel .double-frame::before, .b-panel .double-frame::after { display: none; }
    .b-panel .double-frame img { aspect-ratio: 306 / 189; border-radius: 8px; box-shadow: 0 2.7px 5.4px rgba(0, 0, 0, .05); }
    .b-panel .double-frame figcaption { display: none; }
    .rte ul { gap: 20px; }
    .rte li:has(> strong:first-child) { padding-left: 0; }
    .rte li:has(> strong:first-child)::before { display: none; }
    .b-panel .rte { font-size: 16px; line-height: 28px; color: #334155; }
    .b-panel .rte strong { color: #0a2540; font-weight: 600; }
    .b-dot-title { margin-bottom: 24px; font-size: 16px; line-height: 19px; letter-spacing: -.5px; }
    .b-checklist li { padding: 17px 13px; gap: 12px; font-size: 16px; line-height: 28px; text-align: justify; }
    .b-checklist .tick { width: 17px; height: 17px; margin-top: 4px; border-radius: 3.4px; }
}

/* ---- Mobile: tabbed content (Houses, Clubs, Labs …) sits on the page, not in a card ---- */
@media (max-width: 767px) {
    .tab-panel > .b-group, .tab-panel > .b-panel.w-medium {
        padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    }
    .tab-panel > .b-group { gap: 24px; }
    .tab-panel > .b-group > .b-title-section + * { margin-top: 0; }
    .b-title-card h1, .b-title-card h2 { font-size: 16px; line-height: 19px; font-weight: 700; color: #284ba2; letter-spacing: 0; }
    .b-title-card .bars, .b-title-card .bars-card { margin-top: 15px; }
    .bars-card i:nth-child(1) { width: 61px; } .bars-card i:nth-child(2) { width: 34px; } .bars-card i:nth-child(3) { width: 9px; }
    .bars-card i { height: 4px; }
    .b-panel > .b-title, .tab-panel .b-panel > .b-title { margin-bottom: 24px; }
    .b-lead, .b-text-quote p { margin-bottom: 0; font-size: 16px; line-height: 28px; font-weight: 500; }
    .b-text { font-size: 16px; line-height: 28px; }
    .plain-frame img, .b-image img, .b-panel .plain-frame img { border-radius: 15px; }
    .b-panel .plain-frame img { aspect-ratio: 350 / 270; object-fit: cover; }

    /* small name cards (house in-charges, house teachers) */
    .b-people-name { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .b-people-name li { min-height: 111px; padding: 24px 20px; align-items: center; justify-content: center; text-align: center;
        background: #e6f5ff; border: 1px solid rgba(217, 217, 217, .6); border-radius: 8px; }
    .b-people-name strong { font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: .18px; color: #1755a7; }
    .b-people-name li > span:last-child { margin-top: 14px; font-size: 16px; line-height: 19px; font-weight: 500; letter-spacing: .16px; color: rgba(10, 37, 64, .9); }

    /* PDF preview */
    .b-pdf img { height: 332px; object-fit: cover; object-position: left top; }
    .b-pdf iframe { height: 332px; }
}

/* ---- Mobile: page titles of every size, flat groups, gallery, photos ---- */
@media (max-width: 767px) {
    .b-title-page.size-sm h1, .b-title-page.size-sm h2, .b-title-page.size-lg h1, .b-title-page.size-lg h2 { font-size: 20px; line-height: 32px; }

    /* long tab names wrap inside their button */
    .page-body .seg-tabs [role="tab"] { height: auto; min-height: 40px; padding: 10px 20px; white-space: normal; text-align: left; line-height: 24px; max-width: 100%; }

    /* a group of blocks sits directly on the page (Library, Counselling Cell) */
    .page-body > .b-group, .b-group > .b-panel { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
    .page-body > .b-group { gap: 24px; }
    .b-group > .b-panel + .b-panel { margin-top: 36px; }
    .b-group > .b-panel .b-title-card h1, .b-group > .b-panel .b-title-card h2 { font-size: 20px; line-height: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
    .b-group > .b-panel .b-title-card .bars { margin-top: 16px; }
    .b-text-large { font-size: 16px; line-height: 28px; }

    /* photo grids: one photo per row in a white frame */
    .b-photos, .b-photos.cols-2, .b-photos.cols-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .b-photos li { padding: 13px; border: .9px solid #e2e8f0; border-radius: 13.4px; box-shadow: 0 1.8px 5.4px rgba(10, 37, 64, .03), 0 3.6px 17.9px rgba(10, 37, 64, .05); }
    .b-photos img { border-radius: 8.9px; aspect-ratio: 324 / 238; object-fit: cover; }

    /* gallery albums: two columns */
    .b-albums, .b-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .b-albums a, .b-videos a { min-height: 180px; border: .54px solid #e2e8f0; border-radius: 4.3px;
        background: linear-gradient(90deg, #284ba2, #febd30) bottom / 100% 48px no-repeat, #fff;
        box-shadow: 0 1px 3.2px rgba(10, 37, 64, .03), 0 2.1px 10.7px rgba(10, 37, 64, .05); }
    .al-img img { height: 132px; }
    .al-cap { margin: -16px 4px 4px; padding: 12px 10px 13px; gap: 8px; border-radius: 3.2px; }
    .al-cap strong { font-size: 12px; line-height: 15px; font-weight: 500; }
    .al-cap > span { font-size: 10px; line-height: 12px; gap: 6px; letter-spacing: .1px; }
    .al-cap > span svg { width: 9px; height: 9px; }
}
@media (max-width: 767px) {
    .b-group > .b-panel.b-panel.b-panel, .tab-panel > .b-panel.w-medium.w-medium {
        padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    }
    .b-panel.text-lg .rte, .b-panel.text-lg .b-panel-text { font-size: 16px; line-height: 28px; }
}

/* ---- Mobile: contact page, event page ---- */
@media (max-width: 767px) {
    .b-contact-cards { gap: 16px; }
    .b-contact-cards li { padding: 22px 20px 24px; border-radius: 8px; text-align: left; border-bottom-width: 4px; }
    .b-contact-cards .cc-label { justify-content: flex-start; margin-bottom: 14px; font-size: 16px; line-height: 19px; }
    .b-contact-cards p { font-size: 16px; line-height: 28px; }
    .b-contact-form { margin-top: 16px; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
    .b-contact-form > .b-title { margin-bottom: 28px; }
    .b-contact-form .b-title-section h1, .b-contact-form .b-title-section h2 { font-size: 20px; line-height: 32px; letter-spacing: .01em; }
    .b-contact-form .b-title-section .bars { margin-top: 16px; }

    .event-main { gap: 24px; }
    .event-main .b-image img { aspect-ratio: 350 / 270; object-fit: cover; border-radius: 15px; }
    .event-side .b-title-card h1, .event-side .b-title-card h2 { font-size: 20px; line-height: 32px; text-transform: none; }
}
@media (max-width: 767px) {
    .page-body > .b-panel.w-medium.w-medium { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
}
@media (max-width: 1080px) {
    .nav-list .nav-item > .nav-link, .nav-list .nav-item:first-child > .nav-link, .nav-list .has-sub > .nav-link { padding: 18px 0; background: none; height: auto; }
    .nav-list .nav-item.is-current > .nav-link { background: none; color: #284ba2; font-weight: 600; }
    .nav-list .nav-link::after { display: none; }
    /* thin chevron, as in the design */
    .has-sub > .sub-toggle svg { display: none; }
    .has-sub > .sub-toggle::before {
        content: ''; display: block; width: 7px; height: 7px; margin: -4px 0 0 4px;
        border-right: 1.5px solid #284ba2; border-bottom: 1.5px solid #284ba2; transform: rotate(45deg); transition: transform .25s;
    }
    .has-sub.is-open > .sub-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
}
@media (max-width: 1080px) {
    :root { --m-head: 88px; }
    .topbar-inner, .is-scrolled .topbar-inner { min-height: 88px; }
    .main-nav .container { padding-top: 10px; }
}
@media (max-width: 767px) {
    :root { --m-head: 80px; }
    .topbar-inner, .is-scrolled .topbar-inner { min-height: 80px; }
}
@media (max-width: 1080px) {
    body.nav-open { overflow: visible; overflow-x: clip; }
    .main-nav { overflow-y: auto; overscroll-behavior: contain; }
}

/* ---- Mobile: exact text styles from the Figma check ---- */
@media (max-width: 767px) {
    .page-body .seg-tabs [role="tab"] { line-height: 20px; }
    .b-table-title h3, .b-table-title h2 { font-size: 16px; line-height: 28px; font-weight: 700; letter-spacing: 0; }
    .b-table td { padding: 10px 20px; line-height: 24px; }
    .b-table.t-uniform th { font-size: 16px; font-weight: 600; }
    .b-table.t-uniform td, .b-table.t-uniform td:first-child { line-height: 30px; }
    .b-table.t-strength tbody tr:last-child td:first-child { font-weight: 600; }

    .b-title-card h1, .b-title-card h2 { line-height: 24px; }
    .tab-panel .b-group > .b-title-card:not(:first-child) h2 { font-weight: 600; }
    .page-houses .b-text-quote:not(:first-child) p { font-size: 18px; line-height: 32px; font-weight: 600; font-style: italic; }

    .b-panel.w-medium .rte, .b-panel.text-lg .rte, .b-panel.w-medium .b-panel-text, .tab-panel .b-panel .rte { color: #0a2540; }
    .page-labs .b-panel .rte p > strong:only-child { color: #284ba2; font-weight: 600; }
    .page-library-rules .rte { color: #0a2540; }
    .b-panel.text-lg .rte { line-height: 28px; }
    .page-library .b-text-large { line-height: 36px; }
    .page-library .b-text-large p > strong:only-child { font-size: 15px; line-height: 26px; font-weight: 500; }
    .page-body > .b-text-intro.b-text-intro { line-height: 24px; color: #212529; }
    .b-checklist li { line-height: 26px; }
    .b-checklist li:first-child { line-height: 28px; }

    .ev-cap strong { font-size: 18px; line-height: 22px; }
    .ev-cap .ev-more { font-size: 14px; }
    .b-title.b-title-page-left h1, .b-title.b-title-page-left h2, .b-title.no-caps.b-title-page-left h1 { font-weight: 700; }
    .ph-more-label { font-size: 14px; }
}
@media (max-width: 767px) {
    main.page-library-rules .b-panel .rte, main.page-library-rules .b-panel .rte li { color: #0a2540; }
    .b-panel.text-lg .rte p:has(> strong:only-child) { line-height: 28px; }
}
@media (max-width: 767px) { .b-group > .b-panel .plain-frame img { aspect-ratio: 350 / 200; } }

/* ---- Responsive fixes from the all-screens check ---- */
@media (max-width: 767px) {
    /* tables wider than the phone scroll sideways inside their box (never cut off) */
    .b-table-wrap, .b-table-wrap:has(.b-table-narrow) {
        width: auto; max-width: none; align-self: stretch; margin-left: 0; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    }
    .ticker-track { margin: 0; }
}
/* Laptops 1081–1280 px (e.g. 13" MacBook): keep the welcome text and photo cards side by side */
@media (min-width: 1081px) and (max-width: 1280px) {
    .welcome-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 36px; align-items: center; }
    .highlights { max-width: none; }
    .hl-card { padding: 22px 18px; }
    .hl-card h2, .hl-label { font-size: 17px; }
    .hl-card p { font-size: 13px; line-height: 21px; }
    .f-about .f-map { margin-top: 24px; }
}
/* the "Admissions open" badge never hangs off the screen edge */
@media (max-width: 1500px) { .rotating-badge { right: -12px; } }
@media (max-width: 1080px) { .rotating-badge { right: -6px; } }
.hl-results .hl-arrow { margin-left: 10px; }
@media (min-width: 1081px) and (max-width: 1500px) {
    .hl-results .hl-sub { display: inline; white-space: nowrap; }
    .hl-results .hl-arrow { position: static; display: inline-block; vertical-align: -4px; margin-left: 8px; }
}
@media (min-width: 1081px) and (max-width: 1280px) { .hl-results .hl-sub { font-size: 15px; } .hl-results .hl-arrow { width: 17px; height: 17px; margin-left: 6px; } }
@media (min-width: 768px) and (max-width: 1080px) { .announce-promo { max-width: none; width: 100%; } }

/* Hover lift without flicker: an invisible strip fills the gap left when the element moves up,
   so the mouse never "falls off" the bottom edge and the hover doesn't switch on and off. */
.hbtn { position: relative; }
.hbtn::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 4px; }
.hl-card { position: relative; }
.hl-card::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }

/* News ticker label: the Figma red pill with the label text */
.ticker-label {
    background: #ff4343; color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; clip-path: none;
    justify-content: flex-start; padding: 0 18px 0 1px; width: auto; min-width: 147px; height: 48px; gap: 10px; white-space: nowrap;
}
.ticker-label::before {
    width: 46px; height: 46px; margin: 0; flex: none; background: #ff5252;
    border: 2px solid #fff; box-sizing: border-box; animation: none;
}
.ticker-list .spark { color: #fd422a; }
.ticker-list a:hover { color: #ff8a7a; }
@media (max-width: 767px) {
    .ticker-label { min-width: 0; height: 36px; font-size: 11.5px; gap: 8px; padding-right: 14px; margin-left: var(--gutter, 16px); }
    .ticker-label::before { width: 34px; height: 34px; }
}
