/* ==========================================================================
   Lens Polytechnic Offa: website stylesheet (2026 redesign)

   One stylesheet for every public page. No build step: edit and reload
   (header.php adds ?v=<filemtime> so browsers pick up changes).

   Direction: editorial and photo-led. The crest's maroon (#7A0703, the
   live site's own header colour) carries the brand; warm ivory and sand
   neutrals replace flat white; Fraunces (a high-contrast serif) sets the
   headlines and Inter sets everything else. The live site's blue
   (#4678A1) survives only as a small accent (the HND badge, focus ring).
   ========================================================================== */

:root {
    --maroon-950: #240201;
    --maroon-900: #3a0502;
    --maroon-800: #560704;
    --primary:    #7A0703;
    --primary-2:  #96140B;
    --primary-3:  #B12A1D;
    --rose-50:    #fbf3f1;
    --rose-100:   #f5e4df;
    --rose-200:   #ead0c8;
    --accent:     #4678A1;
    --accent-2:   #6C97BE;

    --ivory:      #fbf8f3;
    --sand:       #f3ece2;
    --cream:      var(--sand);          /* older inline styles use --cream */
    --white:      #ffffff;
    --ink:        #1b1311;
    --ink-2:      #3b2f2b;
    --muted:      #6e625e;
    --line:       #e8dfd5;
    --border:     var(--line);

    --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
    --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(36,2,1,.06), 0 2px 8px rgba(36,2,1,.05);
    --shadow:    0 2px 6px rgba(36,2,1,.05), 0 18px 40px -12px rgba(36,2,1,.16);
    --shadow-lg: 0 30px 70px -20px rgba(36,2,1,.35);
    --ease:      cubic-bezier(.2,.7,.2,1);
    --container: 1240px;
    --gutter:    clamp(16px, 4vw, 32px);
    --header-h:  78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; background: var(--ivory); color: var(--ink);
    font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; font-variation-settings: 'SOFT' 30; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
h4 { font-family: var(--sans); font-size: 1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; height: auto; }
main img { background-color: var(--sand); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a, li a, .prose a, .faq a, .empty-note a, .empty-state a, .form-note a { color: var(--primary); font-weight: 500; }
p a:hover, li a:hover { color: var(--primary-2); }
address { font-style: normal; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ic { flex-shrink: 0; vertical-align: middle; }
.spacer { flex: 1; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow, .narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--maroon-950); color: #f4e9e5; }

.section-tag {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--primary); font-family: var(--sans); font-weight: 600;
    font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.section-tag::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.section-head { max-width: 720px; margin: 0 0 clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 600px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin: 0 auto; }
.section-head.center .section-tag::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.split h2 { margin-bottom: 0; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); text-decoration: none; padding: 10px 0; border-bottom: 1.5px solid var(--rose-200); transition: gap .25s var(--ease), border-color .25s; }
.link-more:hover { gap: 12px; border-color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px -10px rgba(122,7,3,.7); }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 14px 30px -12px rgba(122,7,3,.8); }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-outline:hover { background: #fff; color: var(--maroon-900); border-color: #fff; }
.btn-outline-dark { border-color: var(--rose-200); color: var(--primary); background: transparent; }
.btn-outline-dark:hover { border-color: var(--primary); background: var(--rose-50); }
.btn-light { background: #fff; color: var(--maroon-900); }
.btn-light:hover { background: var(--rose-100); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Utility bar ---------- */
.util-bar { background: var(--maroon-950); color: rgba(255,255,255,.72); font-size: 13px; }
.util-bar-inner { max-width: var(--container); margin: 0 auto; padding: 9px var(--gutter); display: flex; gap: 24px; align-items: center; }
.util-place { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .01em; }
.util-bar a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
.util-bar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251,248,243,.86);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(36,2,1,.25); background: rgba(251,248,243,.94); }
.site-header-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--maroon-900); }
.brand small { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; font-weight: 500; }

.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.primary-nav > a { position: relative; padding: 10px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 999px; transition: color .2s; }
.primary-nav > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav > a:hover { color: var(--primary); }
.primary-nav > a:hover::after, .primary-nav > a.active::after { transform: scaleX(1); }
.primary-nav > a.active { color: var(--primary); font-weight: 600; }
.primary-nav > a.nav-search { display: inline-flex; align-items: center; gap: 6px; }
.primary-nav > a.nav-search::after { display: none; }
.nav-search-text { display: none; }
.nav-extra { display: none; }
.btn-apply { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; flex-shrink: 0; transition: background .25s, gap .25s var(--ease); }
.btn-apply:hover { background: var(--primary-2); gap: 12px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; flex-shrink: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 50%; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle-bars { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) {
    .nav-toggle { display: block; }
    .site-header-inner { gap: 14px; }
    .btn-apply { margin-left: auto; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--ivory); border-top: 1px solid var(--line);
        padding: 12px var(--gutter) 28px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        box-shadow: 0 30px 50px -20px rgba(36,2,1,.3);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    }
    .primary-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
    .primary-nav > a { font-family: var(--serif); font-size: 24px; font-weight: 500; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
    .primary-nav > a::after { display: none; }
    .primary-nav > a.active { color: var(--primary); }
    .nav-search-text { display: inline; }
    .nav-extra { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; }
    .nav-extra a:not(.btn) { color: var(--muted); font-size: 14.5px; text-decoration: none; }
    .nav-extra .btn { width: 100%; margin-top: 8px; }
}
@media (max-width: 760px) {
    .util-bar { display: none; }
    :root { --header-h: 68px; }
    .brand img { width: 44px; }
    .brand-name { font-size: 18px; }
    .brand small { display: none; }
}
@media (max-width: 460px) {
    .site-header-inner { gap: 10px; }
    .brand { gap: 8px; min-width: 0; }
    .brand img { width: 38px; }
    .brand-name { font-size: 17px; }
    .nav-toggle { width: 42px; height: 42px; }
    .btn-apply { padding: 10px 15px; font-size: 13.5px; }
    .btn-apply .ic { display: none; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--maroon-950); color: #fff; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(177,42,29,.55), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(122,7,3,.6), transparent 60%),
        linear-gradient(160deg, var(--maroon-900), var(--maroon-950) 70%);
}
.hero::after { /* a faint fine-line pattern for texture */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero-inner {
    max-width: var(--container); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(110px, 12vw, 160px);
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 500; color: rgba(255,255,255,.88); margin-bottom: 26px; }
.hero-eyebrow .ic { background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px; width: 24px; height: 24px; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 24px; font-weight: 400; }
.hero h1 em { font-style: normal; font-weight: 300; color: #f3c9bd; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-ctas .btn-primary { background: #fff; color: var(--maroon-900); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.hero-ctas .btn-primary:hover { background: var(--rose-100); }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.hero-search:focus-within { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 15px; padding: 10px 0; }
.hero-search input::placeholder { color: rgba(255,255,255,.55); }
.hero-search button { border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; padding: 11px 20px; cursor: pointer; transition: background .2s; }
.hero-search button:hover { background: var(--primary-3); }

.hero-media { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 44vw, 580px); }
.hero-media figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-media figure:hover img { transform: scale(1.04); }
.hero-media .hm-1 { grid-row: 1 / 3; }
.hero-media .hm-2 { margin-top: 36px; }
.hero-media .hm-3 { margin-bottom: 36px; }
.hero-badge { position: absolute; left: -28px; bottom: 44px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 14px 18px 14px 14px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero-badge .ic { color: var(--primary); background: var(--rose-50); border-radius: 12px; padding: 9px; width: 42px; height: 42px; }
.hero-badge strong { display: block; font-size: 14.5px; }
.hero-badge span { display: block; font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { height: 380px; }
    .hero-badge { left: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
    .hero-media { height: 300px; gap: 10px; grid-template-columns: 1fr 1fr; }
    .hero-media .hm-2 { margin-top: 20px; }
    .hero-media .hm-3 { margin-bottom: 20px; }
    .hero-ctas .btn { flex: 1; }
    .hero-search button { padding: 11px 16px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 88px); background: var(--maroon-950); }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: url('../images/live/campus-wide.jpg') center 40% / cover no-repeat;
    opacity: .22; filter: grayscale(.4);
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(70% 120% at 100% 0%, rgba(177,42,29,.45), transparent 60%), linear-gradient(90deg, var(--maroon-950) 15%, rgba(36,2,1,.75) 60%, rgba(36,2,1,.55));
}
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); font-weight: 400; letter-spacing: -.03em; margin: 0 0 14px; max-width: 900px; line-height: 1.04; }
.page-hero p { color: rgba(255,255,255,.75); font-size: clamp(17px, 1.6vw, 19px); max-width: 640px; margin: 0; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.crumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb span[aria-current] { color: rgba(255,255,255,.95); }

/* ---------- Admissions strip (home) and card (admissions page) ---------- */
.admit-strip { position: relative; z-index: 2; margin-top: -64px; }
.admit-strip-inner, .admit-card {
    display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap;
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
    padding: 26px clamp(22px, 3vw, 36px);
}
.admit-strip-inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
@media (max-width: 1240px) { .admit-strip-inner { margin: 0 var(--gutter); } }
.admit-status { display: flex; align-items: flex-start; gap: 16px; }
.admit-status strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; }
.admit-status span:not(.dot) { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #b9aaa4; flex-shrink: 0; margin-top: 9px; display: inline-block; }
.is-open .dot { background: #1f9e56; box-shadow: 0 0 0 0 rgba(31,158,86,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,158,86,.45); } 70% { box-shadow: 0 0 0 10px rgba(31,158,86,0); } 100% { box-shadow: 0 0 0 0 rgba(31,158,86,0); } }
.admit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admit-card > div:first-child { max-width: 680px; }
.admit-card h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 8px; }
.admit-card p { color: var(--muted); margin: 0; }
.admit-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--sand); }
.admit-badge .dot { margin: 0; width: 8px; height: 8px; }
.is-open .admit-badge { background: #e7f6ed; color: #17703f; }
@media (max-width: 600px) { .admit-actions, .admit-actions .btn { width: 100%; } }

/* ---------- Notice ticker ---------- */
.ticker { padding: 26px 0 0; }
.ticker-inner { display: flex; align-items: center; gap: 18px; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.ticker-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-list { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; width: max-content; animation: ticker 45s linear infinite; }
.ticker-track:hover .ticker-list, .ticker-track:focus-within .ticker-list { animation-play-state: paused; }
.ticker-list li { white-space: nowrap; position: relative; }
.ticker-list li + li::before { content: "•"; position: absolute; left: -26px; color: var(--rose-200); }
.ticker-list a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.ticker-list a:hover { color: var(--primary); text-decoration: underline; }
.ticker-all { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker-all { display: none; } }

/* ---------- Stats ---------- */
.stats-strip { padding: clamp(48px, 7vw, 84px) 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid > div { padding: 30px 24px; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 72px); font-weight: 400; line-height: 1; color: var(--primary); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
@media (max-width: 760px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Quick links ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-tile {
    position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 168px;
    padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    text-decoration: none; color: var(--ink); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background .35s;
}
.quick-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.quick-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-50); color: var(--primary); transition: background .35s, color .35s; }
.quick-tile:hover .quick-ico { background: var(--primary); color: #fff; }
.quick-text { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.quick-text strong { font-size: 16.5px; font-weight: 600; }
.quick-text small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.quick-arrow { position: absolute; top: 24px; right: 22px; color: var(--rose-200); transform: rotate(-45deg); transition: color .3s, transform .35s var(--ease); }
.quick-tile:hover .quick-arrow { color: var(--primary); transform: rotate(-45deg) translateX(3px); }
@media (max-width: 980px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: 1fr; gap: 10px; } .quick-tile { min-height: 0; padding: 18px; flex-direction: row; align-items: center; } .quick-text { margin: 0; } .quick-arrow { position: static; margin-left: auto; } }

/* ---------- Schools (home) ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.fac-card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.fac-card:nth-child(4), .fac-card:nth-child(5) { grid-column: span 3; }
.fac-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.fac-card-top {
    position: relative; min-height: 230px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
    background-color: var(--maroon-900); background-size: cover; background-position: center; color: #fff; isolation: isolate;
}
.fac-card-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,2,1,.05) 20%, rgba(36,2,1,.88)); }
.fac-icon { position: absolute; top: 20px; left: 20px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.fac-card-top h3 { color: #fff; font-size: 24px; font-weight: 500; margin: 0; }
.fac-card-top span { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 6px; }
.fac-card-body { padding: 10px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.prog-list { list-style: none; margin: 0 0 14px; padding: 0; }
.prog-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.prog-list li:last-child { border-bottom: 0; }
.prog-list a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.prog-list a:hover { color: var(--primary); }
.see-all { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--primary); text-decoration: none; }
.see-all:hover .ic { transform: translateX(3px); }
.see-all .ic { transition: transform .25s var(--ease); }
@media (max-width: 980px) { .fac-grid { grid-template-columns: 1fr 1fr; } .fac-card, .fac-card:nth-child(4), .fac-card:nth-child(5) { grid-column: span 1; } .fac-card:nth-child(5) { grid-column: span 2; } }
@media (max-width: 640px) { .fac-grid { grid-template-columns: 1fr; } .fac-card:nth-child(5) { grid-column: span 1; } }

.lvl-badges { display: inline-flex; gap: 5px; flex-shrink: 0; }
.lvl-badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--rose-50); color: var(--primary); border: 1px solid var(--rose-100); line-height: 1.4; }
.lvl-badge--hnd { background: #edf3f8; color: #2f5d83; border-color: #dbe7f1; }

/* ---------- Why (home): photo + numbered list ---------- */
.why-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.why-media { position: relative; padding: 0 0 70px 0; }
.why-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow); }
.why-media .why-media-2 { position: absolute; right: -24px; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid var(--ivory); box-shadow: var(--shadow-lg); }
.why-quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--maroon-900); border-left: 2px solid var(--primary); padding-left: 20px; margin: 0 0 34px; }
.why-list { list-style: none; margin: 0; padding: 0; counter-reset: why; }
.why-list li { counter-increment: why; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list li::before { content: counter(why, decimal-leading-zero); font-family: var(--serif); font-size: 28px; color: var(--primary); line-height: 1; grid-row: span 2; padding-top: 2px; }
.why-list h3 { margin: 0; font-size: 21px; }
.why-list p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .why-split { grid-template-columns: 1fr; } .why-media { max-width: 560px; } .why-media .why-media-2 { right: 0; } }

/* ---------- Generic cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.why-card:hover { box-shadow: var(--shadow); }
.why-card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--rose-50); color: var(--primary); margin-bottom: 20px; font-size: 24px; }
.why-card h3 { font-size: 22px; }
.why-card p { color: var(--muted); margin: 0; }

.quote-card { margin: 0; position: relative; padding-top: 70px !important; background: #fff; }
.quote-card::before { content: "\201C"; position: absolute; top: 14px; left: 28px; font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--rose-200); }
.quote-card blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--ink); font-weight: 400; }
.quote-card figcaption { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.quote-card figcaption::before { content: ""; width: 28px; height: 1.5px; background: var(--primary); }
.quote-card figcaption strong { color: var(--ink); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card-pic { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.post-card:hover .post-card-pic { transform: scale(1.03); }
.post-card-pic--none { display: grid; place-items: center; background: linear-gradient(140deg, var(--rose-50), var(--sand)); color: var(--rose-200); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; position: relative; background: #fff; }
.post-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.post-meta b { color: var(--primary); font-weight: 700; }
.post-card-title { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.3; }
.post-card-title .pin { color: var(--primary); }
.post-card-text { color: var(--muted); font-size: 15px; }
.post-card-place { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; margin-top: auto; }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.info-card h3 .ic { color: var(--primary); }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.mini-list a:hover { color: var(--primary); }
.mini-list small { color: var(--muted); font-size: 13.5px; }
.empty-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.empty-state { text-align: center; padding: 64px 24px; background: #fff; border: 1px dashed var(--rose-200); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state .ic { color: var(--rose-200); margin: 0 auto 14px; }
.empty-state p { margin: 0 auto; max-width: 480px; }

/* ---------- Disclaimer ---------- */
.disclaimer { display: flex; gap: 20px; align-items: flex-start; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg); background: #fff8eb; border: 1px solid #f1dfba; }
.disclaimer .ico { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: #fdeccb; color: #9a5b00; }
.disclaimer h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: #5c3600; margin-bottom: 6px; }
.disclaimer p { margin: 0; color: #6d4b16; font-size: 15px; }
@media (max-width: 560px) { .disclaimer { flex-direction: column; } }

/* ---------- CTA banner ---------- */
.cta-banner {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); color: #fff; margin-top: 56px;
    background: var(--maroon-950);
}
.section > .container > .cta-banner:first-child { margin-top: 0; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('../images/live/signing-out-ceremony.jpg') center 30% / cover; opacity: .32; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--maroon-950) 25%, rgba(58,5,2,.82) 60%, rgba(122,7,3,.55)); }
.cta-banner h2 { color: #fff; font-size: clamp(30px, 3.8vw, 48px); max-width: 640px; font-weight: 400; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.75); margin: 0; font-size: 17px; }
.cta-banner .btn-primary { background: #fff; color: var(--maroon-900); padding: 16px 30px; }
.cta-banner .btn-primary:hover { background: var(--rose-100); }

/* ---------- Academics finder ---------- */
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 48px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 12px); z-index: 5; }
.finder--inline { position: static; box-shadow: none; padding: 0; border: 0; background: none; margin-bottom: 20px; max-width: 480px; }
.finder-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.finder--inline .finder-search { background: #fff; }
.finder-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--rose-50); }
.finder-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; padding: 14px 0; color: var(--ink); }
.finder .chips { margin-top: 14px; }
.finder-count { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .finder { position: static; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
nav.chips { margin-bottom: 36px; }
.chip { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--rose-200); color: var(--primary); }
.chip.on { background: var(--maroon-900); border-color: var(--maroon-900); color: #fff; }

.school-block { margin-bottom: clamp(56px, 7vw, 88px); }
.school-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.school-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--maroon-900); color: #fff; flex-shrink: 0; }
.school-head h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 4px; }
.school-dean { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.school-head p { color: var(--muted); margin: 0; max-width: 700px; }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.prog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.prog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prog-card[hidden] { display: none; }
.prog-pic { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.prog-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.prog-name { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.25; }
.prog-req { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prog-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.prog-card:hover .prog-more .ic { transform: translateX(3px); }
.prog-more .ic { transition: transform .25s var(--ease); }

/* ---------- Programme page ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-main h2 { font-size: clamp(26px, 2.8vw, 34px); margin-top: 44px; }
.detail-main h2:first-of-type { margin-top: 0; }
.detail-main > p { color: var(--ink-2); font-size: 17px; }
.detail-pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 40px; box-shadow: var(--shadow); }
.level-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.level-list li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.level-list li div { display: flex; flex-direction: column; gap: 2px; }
.level-list li span:not(.lvl-badge) { color: var(--muted); font-size: 14.5px; }
.level-list li.off { opacity: .55; background: transparent; border-style: dashed; }
@media (max-width: 560px) { .level-list { grid-template-columns: 1fr; } }
.req-box { padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); margin-bottom: 14px; }
.req-box strong { font-size: 12.5px; letter-spacing: .1em; color: var(--primary); }
.req-box p { margin: 6px 0 0; color: var(--ink-2); }
.form-note { font-size: 14px; color: var(--muted); }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.side-card h3 { font-size: 20px; }
.side-card p { color: var(--muted); font-size: 15px; }
.side-card p:last-child { margin-bottom: 0; }
.side-card .btn { width: 100%; }
.side-apply { background: var(--maroon-950); border-color: var(--maroon-950); color: #fff; }
.side-apply h3 { color: #fff; }
.side-apply p { color: rgba(255,255,255,.75); }
.side-apply .btn-primary { background: #fff; color: var(--maroon-900); }
.side-apply .btn-outline-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.side-apply .btn-outline-dark:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.side-open { display: flex; gap: 10px; align-items: flex-start; color: #fff !important; font-weight: 500; }
.side-open .dot { background: #4ade80; margin-top: 7px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-side { position: static; } }

/* ---------- Admissions page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; max-width: 880px; }
.timeline > li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; position: relative; padding-bottom: 34px; }
.timeline > li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 1.5px; background: linear-gradient(var(--rose-200), var(--line)); }
.timeline-n { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; background: #fff; border: 1.5px solid var(--rose-200); color: var(--primary); }
.timeline > li:first-child .timeline-n { background: var(--primary); color: #fff; border-color: var(--primary); }
.timeline-body { padding: 14px 0 0; }
.timeline-body h3 { font-size: 23px; margin-bottom: 6px; }
.timeline-body p { color: var(--ink-2); margin-bottom: 10px; }
.timeline-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-body ul li { font-size: 13.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
@media (max-width: 560px) { .timeline > li { grid-template-columns: 46px 1fr; gap: 14px; } .timeline-n { width: 46px; height: 46px; font-size: 20px; } .timeline > li:not(:last-child)::before { left: 22px; top: 46px; } .timeline-body { padding-top: 8px; } }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; }
.req-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.req-table th, .req-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.req-table thead th { background: var(--maroon-950); color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; position: sticky; top: 0; }
.req-table tbody tr:last-child > * { border-bottom: 0; }
.req-table tbody tr:hover { background: var(--rose-50); }
.req-table tbody th { font-weight: 600; min-width: 200px; }
.req-table tbody th a { color: var(--ink); text-decoration: none; }
.req-table tbody th a:hover { color: var(--primary); text-decoration: underline; }
.req-table td { color: var(--ink-2); }
.req-table td em { color: var(--muted); }
.req-table tr[hidden] { display: none; }
@media (max-width: 760px) {
    .req-table thead { display: none; }
    .req-table, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; width: 100%; }
    .req-table tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .req-table tbody th, .req-table td { border: 0; padding: 4px 0; }
    .req-table td::before { content: attr(data-label); display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 8px; }
}

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--rose-200); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--rose-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A0703' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- About ---------- */
.prose-lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: var(--ink); font-weight: 400; }
.about-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-split p { color: var(--ink-2); }
.about-facts { display: grid; gap: 14px; }
.about-fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.about-fact strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--primary); line-height: 1.1; }
.about-fact span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.people-card { text-align: left; }
.people-avatar { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(150deg, var(--rose-50), var(--sand)); display: grid; place-items: center; color: var(--rose-200); margin-bottom: 16px; }
.people-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease); }
.people-card:hover .people-avatar img { transform: scale(1.04); }
.people-card h4 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 2px; }
.people-card > span { color: var(--muted); font-size: 14.5px; }
.welcome-card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin-top: 56px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--maroon-950); color: #fff; }
.welcome-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255,255,255,.12); }
.welcome-card h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; }
.welcome-card p { color: rgba(255,255,255,.75); margin: 0; font-size: 17px; }
@media (max-width: 640px) { .welcome-card { grid-template-columns: 1fr; } .welcome-card img { width: 140px; } }

/* ---------- Campus life ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease), filter .6s; }
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img:nth-child(6) { grid-row: span 2; }
.gallery-grid img:nth-child(7) { grid-column: span 2; }
.gallery-grid img:nth-child(10) { grid-column: span 2; }
.gallery-hero { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 14px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .gallery-grid img:nth-child(6) { grid-row: span 1; } .gallery-grid img:nth-child(10) { grid-column: span 1; } }
.campus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.campus-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding: 0 28px 30px; transition: box-shadow .35s var(--ease); }
.campus-card:hover { box-shadow: var(--shadow); }
.campus-card img { width: calc(100% + 56px); max-width: none; margin: 0 -28px 0; aspect-ratio: 16 / 9; object-fit: cover; }
.campus-card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: #fff; margin: -26px 0 18px; position: relative; box-shadow: 0 10px 24px -8px rgba(122,7,3,.6); }
.campus-card h3 { font-size: 23px; }
.campus-card p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .campus-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--rose-50); color: var(--primary); flex-shrink: 0; }
.contact-item h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item p, .contact-item a { margin: 0; font-family: var(--serif); font-size: 21px; color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--primary); }
.map-embed { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.contact-form-card .section-head { margin-bottom: 28px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.form-field input, .form-field textarea, .chat-panel-form input, .chat-panel-form textarea {
    width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--ivory);
    border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input:focus, .form-field textarea:focus, .chat-panel-form input:focus, .chat-panel-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--rose-50); }
.form-submit { width: 100%; padding: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- News article ---------- */
.article-wrap { max-width: 860px; }
.article-pic { width: 100%; border-radius: var(--radius-lg); margin-bottom: 34px; box-shadow: var(--shadow); }
.article-lead { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 25px); line-height: 1.5; color: var(--ink); }
.article-body { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.article-body p { margin-bottom: 1.2em; }
.article-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-back a { text-decoration: none; font-weight: 600; }
.article-more { margin-top: 72px; }
.article-more h2 { font-size: 32px; margin-bottom: 26px; }
.article-more .post-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.event-box { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--maroon-950); color: #fff; margin-bottom: 30px; }
.event-box .ic { color: #f3c9bd; }
.event-box strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.event-box span { color: rgba(255,255,255,.72); font-size: 15px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 48px; color: var(--muted); font-size: 14.5px; }
.pager a { text-decoration: none; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; transition: border-color .2s, color .2s; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Search ---------- */
.big-search { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted); margin-bottom: 26px; }
.big-search:focus-within { border-color: var(--primary); }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; padding: 12px 0; background: none; color: var(--ink); }
.big-search button { border: 0; background: var(--primary); color: #fff; font-weight: 600; padding: 14px 26px; border-radius: 999px; cursor: pointer; }
.big-search button:hover { background: var(--primary-2); }
.result-h { font-size: 13px; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin: 40px 0 12px; font-weight: 600; }
.result-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.result-list li { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; transition: background .2s; }
.result-list li:hover { background: var(--rose-50); }
.result-list li:last-child { border-bottom: 0; }
.result-list a { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); text-decoration: none; }
.result-list a:hover { color: var(--primary); }
.result-list small { flex-basis: 100%; color: var(--muted); font-size: 14px; }

/* ---------- Long-form text (policies, accessibility) ---------- */
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--primary); }
.prose b { background: var(--sand); padding: 1px 6px; border-radius: 5px; font-size: .9em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-950); color: rgba(255,255,255,.66); position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -240px; top: -360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(177,42,29,.35), transparent); }
.site-footer-top { max-width: var(--container); margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter) 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.footer-brand img { width: 64px; height: auto; background: #fff; border-radius: 14px; padding: 6px; }
.footer-brand span { font-family: var(--serif); font-size: 26px; color: #fff; font-weight: 500; line-height: 1.15; }
.footer-brand small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 6px; }
.footer-blurb { max-width: 440px; margin: 0; font-size: 15.5px; }
.footer-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-cta p { margin: 0; font-family: var(--serif); font-size: 24px; color: #fff; font-style: italic; }
.site-footer-inner { max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 { color: #fff; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col address { display: block; color: rgba(255,255,255,.66); text-decoration: none; font-size: 15px; padding: 5px 0; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; }
.footer-col address { line-height: 1.6; padding-bottom: 8px; }
.site-footer-bottom { max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter) 30px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; }
.site-footer-bottom a { color: rgba(255,255,255,.66); text-decoration: none; }
.site-footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Cookie banner and chat widgets ---------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 200; max-width: 420px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--ink); color: rgba(255,255,255,.82); border-radius: 18px; box-shadow: var(--shadow-lg); font-size: 14px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #fff; }
.cookie-banner .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
@media (max-width: 560px) { .cookie-banner { left: 12px; right: 84px; bottom: 12px; flex-direction: column; align-items: flex-start; } }

#chat-widgets { position: fixed; right: 20px; bottom: 20px; z-index: 210; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fabs { display: flex; flex-direction: column; gap: 10px; }
.fab { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -10px rgba(36,2,1,.55); transition: transform .25s var(--ease); }
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab-chat { background: var(--primary); }
.fab-whatsapp { background: #1f9e56; }
.chat-panel { width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--maroon-950); color: #fff; }
.chat-panel-head--wa { background: #1f9e56; }
.chat-panel-head img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.chat-panel-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-panel-head span { font-size: 12.5px; opacity: .75; }
.chat-panel-head button { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.chat-panel-body { padding: 18px 18px 0; }
.chat-panel-body--list { padding-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { background: var(--sand); border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.chat-bubble a { color: var(--primary); }
.chat-panel-form { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.chat-panel-form input, .chat-panel-form textarea { padding: 11px 13px; font-size: 14.5px; }
.wa-contact-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.wa-contact-link:hover { border-color: #1f9e56; background: #f0faf4; }
.wa-contact-label { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.wa-contact-cta { color: #17703f; font-size: 13px; font-weight: 600; }

/* ---------- Scroll reveal (added by site-extras.js; nothing hides without JS) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .util-bar, .site-header, .site-footer, #chat-widgets, .cookie-banner, .hero-search, .finder { display: none !important; }
    .page-hero, .hero { background: none; color: #000; }
    .page-hero h1, .hero h1 { color: #000; }
}

/* Very narrow phones: Apply lives in the menu and the hero instead. */
@media (max-width: 379px) {
    .btn-apply { display: none; }
    .nav-toggle { margin-left: auto; }
}
.contact-item > div { min-width: 0; }
.contact-item p, .contact-item a { overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-item p, .contact-item a { font-size: 18px; } }
@media (max-width: 560px) { #chat-widgets { right: 12px; bottom: 12px; } .fab { width: 48px; height: 48px; } }
