/* KSCOET Mopa — public website landing page */

:root {
    --green-950: #04261a;
    --green-900: #063a24;
    --green-800: #0a4d30;
    --green-700: #0c623c;
    --green-600: #108049;
    --green-100: #dcefe3;
    --green-50: #f0f8f3;
    --gold: #f4b400;
    --gold-600: #d69a00;
    --gold-100: #fdeec2;
    --gold-50: #fff9e8;
    --blue: #1d6fd1;
    --blue-50: #eaf2fd;
    --maroon: #9b1d20;
    --maroon-50: #fbecec;
    --ink: #14211a;
    --ink-2: #33433a;
    --muted: #5f6f66;
    --line: #e2e8e4;
    --paper: #fbfaf5;
    --white: #ffffff;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(6, 58, 36, .06), 0 2px 8px rgba(6, 58, 36, .05);
    --shadow: 0 10px 30px -12px rgba(6, 58, 36, .22);
    --shadow-lg: 0 30px 60px -20px rgba(6, 40, 25, .35);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html, body { overflow-x: clip; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.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: 16px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--green-950); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.075rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 8px 20px -8px rgba(244, 180, 0, .7); }
.btn-gold:hover { background: #ffc419; }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-800); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .875rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-700); }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Top bar ---------- */

.topbar { background: var(--green-950); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact a:hover, .topbar-social a:hover { color: var(--gold); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-notice { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.topbar-notice .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 180, 0, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(244, 180, 0, 0); } }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand-text strong, .brand-text span { white-space: nowrap; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--green-900); }
.brand-text span { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--green-700); background: var(--green-50); }
.nav > a[aria-current="page"] { color: var(--green-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-group { position: relative; }
.nav-group summary {
    list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: color .2s, background-color .2s;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover, .nav-group[open] summary { color: var(--green-700); background: var(--green-50); }
.nav-group[open] .icon-chevron { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; left: 0; top: calc(100% + 10px); width: 240px; padding: 8px; z-index: 5;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    display: grid;
}
.nav .nav-dropdown a { display: block; padding: 10px 12px; }
.nav .nav-dropdown a[aria-current="page"] { color: var(--green-700); background: var(--green-50); }

.portal-menu { position: relative; }
.portal-menu summary { list-style: none; }
.portal-menu summary::-webkit-details-marker { display: none; }
.portal-menu[open] summary .icon-chevron { transform: rotate(180deg); }
.icon-chevron { transition: transform .2s ease; }
.portal-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.portal-dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; }
.portal-dropdown a:hover { background: var(--green-50); }
.portal-dropdown .icon { margin-top: 3px; color: var(--green-700); }
.portal-dropdown strong { display: block; font-size: .92rem; }
.portal-dropdown small { color: var(--muted); font-size: .8rem; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
    align-items: center; justify-content: center; color: var(--ink);
}

/* ---------- Hero ---------- */

.hero { position: relative; color: var(--white); overflow: hidden; background: var(--green-950); }
.hero-slides { display: grid; }
.hero-slide {
    grid-area: 1 / 1; position: relative; isolation: isolate;
    opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); transition: transform 8s ease-out; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(4, 38, 26, .96) 0%, rgba(6, 58, 36, .88) 38%, rgba(6, 58, 36, .45) 70%, rgba(6, 58, 36, .2) 100%),
        linear-gradient(0deg, rgba(4, 38, 26, .7) 0%, transparent 40%);
}
.hero-slide > .container {
    /* Bottom padding clears the quick-access panel (96px overlap) and the controls */
    min-height: var(--hero-h); display: flex; align-items: center;
    padding-top: 48px; padding-bottom: 150px;
}

/* Banner height presets (Admin > Website > Sliders > Slider Settings) */
.hero { --hero-h: 520px; }
.hero--medium { --hero-h: 620px; }
.hero--large { --hero-h: 720px; }
.hero--full { --hero-h: max(560px, calc(100vh - 116px)); }
.hero--compact .hero-title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin: 16px 0 14px; }
.hero--compact .hero-lead { font-size: 1.05rem; }
.hero--compact .hero-actions { margin-top: 24px; }
.hero--medium .hero-title { font-size: clamp(2.3rem, 5vw, 3.9rem); margin: 18px 0 18px; }
.hero--medium .hero-actions { margin-top: 28px; }

/* Slide transition: slides move sideways instead of crossfading */
.hero--slide .hero-slide {
    opacity: 1; transform: translateX(var(--offset, 100%));
    transition: transform .8s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .8s;
}
.hero--slide .hero-slide.is-active { transform: translateX(var(--offset, 0%)); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.hero-content { max-width: 680px; }
.hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .12s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .24s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .36s; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; font-weight: 600;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 180, 0, .25); }
.hero-title { color: var(--white); font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(2.5rem, 6.2vw, 4.5rem); margin: 22px 0 22px; line-height: 1.04; }
.hero-title em { font-style: italic; color: var(--gold); font-weight: 500; }

/* Slider controls sit above the quick-access panel that overlaps the hero */
.hero-controls { position: absolute; left: 0; right: 0; bottom: 116px; z-index: 3; pointer-events: none; }
.hero-controls .container { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hero-controls button { pointer-events: auto; }
.hero-dots { display: flex; gap: 8px; margin-right: 8px; }
.hero-dot { width: 34px; height: 24px; transition: width .3s ease; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero-dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; transition: background-color .2s; }
.hero-dot:hover span { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active { width: 52px; }
.hero-dot.is-active span { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; }
.hero.is-running .hero-dot.is-active span::after { animation: heroProgress var(--slide-duration, 6s) linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--white);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background-color .2s, border-color .2s, color .2s;
}
.hero-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold); }

/* Quick access panel overlapping the hero */
.quick { position: relative; z-index: 2; margin-top: -96px; }
.quick-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
}
.quick-item { display: flex; gap: 16px; align-items: flex-start; padding: 26px 24px; border-right: 1px solid var(--line); transition: background-color .2s ease; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: var(--green-50); }
.quick-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--green-50); color: var(--green-700); transition: background-color .2s, color .2s; }
.quick-item:hover .quick-icon { background: var(--green-700); color: var(--white); }
.quick-item.is-primary .quick-icon { background: var(--gold); color: var(--green-950); }
.quick-item h3 { font-size: 1rem; margin-bottom: 4px; }
.quick-item p { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ---------- Stats ---------- */

.stats { padding: clamp(48px, 7vw, 80px) 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding-left: 20px; border-left: 3px solid var(--gold); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--green-800); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-media { position: relative; padding: 0 0 56px 0; }
.about-media .img-main { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 88%; box-shadow: var(--shadow); }
.about-media .img-sub {
    position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: var(--shadow);
}
.about-media .since {
    position: absolute; left: -10px; bottom: 76px; background: var(--green-800); color: var(--white);
    padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.since strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--gold); }
.since span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.about-body > p { color: var(--ink-2); margin-bottom: 16px; }
.about-body h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 14px 0 22px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.mv-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mv-card .mv-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-600); margin-bottom: 14px; }
.mv-card h3 { margin-bottom: 8px; }
.mv-card p { font-size: .92rem; color: var(--muted); }

/* ---------- Dual mandate ---------- */

.mandate { background: var(--green-900); color: var(--white); position: relative; overflow: hidden; }
.mandate::before {
    content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 180, 0, .16), transparent 65%);
}
.mandate .section-head h2, .mandate h3 { color: var(--white); }
.mandate .section-head p { color: rgba(255, 255, 255, .72); }
.mandate .eyebrow { color: var(--gold); }
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 44px; }
.cert {
    position: relative; padding: 24px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12); transition: background-color .2s, transform .2s;
}
.cert:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.cert-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-display); font-size: 1.6rem; color: rgba(255, 255, 255, .14); }
.cert .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; }
.cert h3 { font-size: 1.02rem; margin-bottom: 6px; }
.cert p { font-size: .85rem; color: rgba(255, 255, 255, .66); line-height: 1.5; }
.merits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.merit { display: flex; gap: 14px; padding: 26px 22px 0 0; }
.merit .icon { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.merit h3 { font-size: 1rem; margin-bottom: 4px; }
.merit p { font-size: .88rem; color: rgba(255, 255, 255, .66); line-height: 1.5; }

/* ---------- Schools ---------- */

.schools-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.school {
    grid-column: span 2; display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.school:nth-child(4), .school:nth-child(5) { grid-column: span 3; }
.school:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.school-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.school-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.school-icon .icon { width: 26px; height: 26px; }
.school-count { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.school h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 16px; }
.school ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.school li { display: flex; gap: 10px; align-items: baseline; font-size: .93rem; color: var(--ink-2); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.school li:last-child { border-bottom: 0; }
.school li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; flex: none; transform: translateY(-2px); background: currentColor; opacity: .5; }
.school:nth-child(4) ul, .school:nth-child(5) ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.school:nth-child(4) li:nth-last-child(2), .school:nth-child(5) li:nth-last-child(2) { border-bottom: 0; }

.tone-maroon .school-icon { background: var(--maroon-50); color: var(--maroon); }
.tone-maroon .school-count { background: var(--maroon-50); color: var(--maroon); }
.tone-green .school-icon { background: var(--green-50); color: var(--green-700); }
.tone-green .school-count { background: var(--green-50); color: var(--green-700); }
.tone-gold .school-icon { background: var(--gold-50); color: var(--gold-600); }
.tone-gold .school-count { background: var(--gold-50); color: #9a6c00; }
.tone-blue .school-icon { background: var(--blue-50); color: var(--blue); }
.tone-blue .school-count { background: var(--blue-50); color: var(--blue); }
.tone-ink .school-icon { background: #eef0ef; color: var(--ink); }
.tone-ink .school-count { background: #eef0ef; color: var(--ink); }

/* ---------- Admissions ---------- */

.admissions { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adm-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.steps { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 28px; counter-increment: step; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.steps li::before {
    content: counter(step); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; background: var(--green-50); color: var(--green-700); border: 1.5px solid var(--green-100);
}
.steps h3 { margin: 8px 0 4px; }
.steps p { color: var(--muted); font-size: .95rem; }
.req-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.req-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.checklist .icon { color: var(--green-600); margin-top: 3px; }
.flyer-btn {
    display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 12px; width: 100%; text-align: left;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.flyer-btn:hover { border-color: var(--green-600); box-shadow: var(--shadow-sm); }
.flyer-btn img { width: 64px; height: 84px; object-fit: cover; object-position: top; border-radius: 8px; }
.flyer-btn strong { display: block; font-size: .95rem; }
.flyer-btn small { color: var(--muted); }
.flyer-btn .icon { margin-left: auto; color: var(--green-700); }

/* ---------- TRCN ---------- */

.trcn-card {
    display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
    border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.trcn-main { padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, var(--gold-50), var(--white) 60%); }
.trcn-main h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 14px; }
.trcn-main > p { color: var(--ink-2); margin-bottom: 24px; }
.trcn-date { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: var(--maroon); color: var(--white); font-weight: 700; font-size: .9rem; margin-bottom: 24px; }
.who { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.who li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.who b { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--white); font-size: .78rem; }
.trcn-side { padding: clamp(28px, 4vw, 48px); border-left: 1px solid var(--line); display: grid; gap: 26px; align-content: start; }
.trcn-side h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fee-table th { text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 10px; }
.fee-table th:not(:first-child), .fee-table td:not(:first-child) { text-align: right; }
.fee-table td { padding: 11px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fee-table td:first-child { font-weight: 600; }
.fee-table td.total { font-weight: 700; color: var(--green-800); }
.fee-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 18px; border-radius: var(--radius); background: var(--green-50); font-size: .93rem; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.trcn-docs { padding: 22px 0; margin-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trcn-docs h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.docs { columns: 2; column-gap: 24px; padding: 0; margin: 0; list-style: none; font-size: .88rem; color: var(--ink-2); }
.docs li { break-inside: avoid; display: flex; gap: 8px; padding: 4px 0; }
.docs .icon { color: var(--green-600); width: 1.1em; height: 1.1em; margin-top: 4px; }
.desk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--ink-2); }
.desk a { font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Leadership ---------- */

.leaders-grid { display: grid; grid-template-columns: 1.15fr 2fr; gap: 24px; align-items: stretch; }
.provost {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; color: var(--white);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; isolation: isolate;
}
.provost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
.provost::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(4, 38, 26, .95) 100%); }
.provost .tag { align-self: flex-start; background: var(--gold); color: var(--green-950); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.provost h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--white); margin-bottom: 4px; }
.provost p { color: rgba(255, 255, 255, .8); font-size: .95rem; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.member:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.member img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 15%; background: var(--green-50); }
.member div { padding: 14px 16px 16px; }
.member h3 { font-size: .98rem; line-height: 1.3; }
.member p { font-size: .82rem; font-weight: 700; color: var(--green-700); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.visitor {
    margin-bottom: 24px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center;
    padding: 12px 28px 12px 12px; border-radius: var(--radius-lg); color: var(--white); transition: box-shadow .25s, transform .25s;
    background: radial-gradient(ellipse at 100% 50%, rgba(244, 180, 0, .22), transparent 60%), linear-gradient(120deg, var(--green-950), var(--green-800));
}
.visitor:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.visitor-photo { display: block; aspect-ratio: 4 / 5; border-radius: calc(var(--radius-lg) - 10px); overflow: hidden; background: var(--green-900); box-shadow: 0 0 0 3px var(--gold); }
.visitor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.visitor-photo img.is-crest { object-fit: contain; padding: 18%; }
.visitor-body { display: grid; gap: 6px; min-width: 0; }
.visitor-label { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.visitor-label .icon { width: 1.1em; height: 1.1em; }
.visitor-body strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.15; }
.visitor-body > span:last-child:not(.visitor-label) { color: rgba(255, 255, 255, .8); }
.member { display: block; }
.provost { background: linear-gradient(135deg, var(--green-950), var(--green-800)); }
.provost:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.provost img.is-crest { object-fit: contain; padding: 18% 22% 40%; opacity: .9; }
.member img.is-crest { object-fit: contain; padding: 18%; }

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

.campus { background: var(--white); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--green-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 38, 26, .7)); opacity: 0; transition: opacity .3s; }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }
.gallery figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: var(--white); font-weight: 600; font-size: .9rem; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gallery button:hover figcaption, .gallery button:focus-visible figcaption { opacity: 1; transform: none; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.tetfund-note { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: .92rem; }
.tetfund-note .icon { color: var(--green-600); }

/* ---------- News ---------- */

.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.news-tag { font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; }
.news-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.news-card .link-arrow { margin-top: auto; padding-top: 18px; font-size: .9rem; }

/* ---------- Partners ---------- */

.partners { padding: 40px 0; border-top: 1px solid var(--line); }
.partners .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.partners p { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.partner strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--green-800); letter-spacing: .02em; }
.partner span { font-size: .72rem; color: var(--muted); }

/* ---------- CTA + Contact ---------- */

.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); color: var(--white); padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(4, 38, 26, .97) 30%, rgba(6, 58, 36, .75)); }
.cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, .78); }
.cta .hero-actions { margin-top: 26px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.contact-item .icon { color: var(--gold); margin-top: 3px; }
.contact-item small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; }
.contact-item a:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.footer { background: var(--green-950); color: rgba(255, 255, 255, .72); padding: 72px 0 0; margin-top: clamp(64px, 9vw, 112px); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand-text strong { color: var(--white); }
.footer .brand-text span { color: rgba(255, 255, 255, .55); }
.footer .brand img { background: var(--white); border-radius: 14px; padding: 5px; width: 58px; }
.footer-about { margin-top: 18px; max-width: 340px; }
.footer h3 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--gold); color: var(--green-950); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.footer-motto { font-family: var(--font-display); font-style: italic; color: var(--gold); }

/* ---------- Lightbox ---------- */

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 20, 13, .88); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 14px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox p { color: rgba(255, 255, 255, .85); text-align: center; margin-top: 12px; font-size: .95rem; }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

.nav-apply { display: none; }

@media (max-width: 1140px) {
    .nav a { padding: 8px 9px; font-size: .88rem; }
    .brand-text span { display: none; }
}

@media (max-width: 1024px) {
    /* backdrop-filter would make the header the containing block of the fixed menu */
    .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-toggle { display: inline-flex; }
    .nav-group summary { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
    .nav-dropdown { position: static; width: auto; padding: 4px 0 8px 12px; border: 0; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); }
    .nav .nav-dropdown a { border-bottom: 0; padding: 10px 12px; font-size: .98rem; }
    .nav .nav-apply { display: inline-flex; margin-top: 20px; border-bottom: 0; border-radius: 999px; padding: 12px 22px; font-size: 1rem; }
    .nav {
        position: fixed; left: 0; right: 0; top: 116px; bottom: 0; z-index: 49; margin: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 16px var(--gutter) 32px;
        background: var(--white); overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .site-header.is-scrolled .nav { top: 76px; }
    .nav.is-open { transform: none; visibility: visible; }
    .nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .header-actions { margin-left: auto; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-item:nth-child(2) { border-right: 0; }
    .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .about-grid, .adm-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 620px; }
    .certs { grid-template-columns: repeat(3, 1fr); }
    .merits { grid-template-columns: repeat(2, 1fr); }
    .schools-grid { grid-template-columns: 1fr 1fr; }
    .school, .school:nth-child(4), .school:nth-child(5) { grid-column: span 1; }
    .school:nth-child(5) { grid-column: span 2; }
    .school:nth-child(4) ul { grid-template-columns: 1fr; }
    .school:nth-child(4) li:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
    .trcn-card { grid-template-columns: 1fr; }
    .trcn-side { border-left: 0; border-top: 1px solid var(--line); }
    .leaders-grid { grid-template-columns: 1fr; }
    .provost { min-height: 460px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .cta { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .topbar-contact a:not(:first-child), .topbar-social { display: none; }
    .topbar .container { justify-content: center; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
    .site-header .container { min-height: 68px; gap: 12px; }
    .nav { top: 108px; }
    .site-header.is-scrolled .nav { top: 68px; }
    .brand img { width: 44px; }
    .brand-text strong { font-size: .95rem; }
    .header-actions .btn-gold { display: none; }
    .header-actions { gap: 8px; }
    .portal-menu summary { padding: 9px 12px; gap: 6px; }
    .hero-slide > .container { min-height: 0; padding-top: 40px; padding-bottom: 160px; }
    .hero-controls { bottom: 100px; }
    .hero-controls .container { justify-content: space-between; }
    .hero-controls [data-slider-prev], .hero-controls [data-slider-next] { display: none; }
    .hero-dot { width: 28px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .quick { margin-top: -80px; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
    .quick-item:last-child { border-bottom: 0; }
    .mv-grid { grid-template-columns: 1fr; }
    .about-media .since { left: 12px; bottom: 70px; padding: 12px 16px; }
    .certs { grid-template-columns: 1fr 1fr; }
    .cert:last-child { grid-column: span 2; }
    .merits { grid-template-columns: 1fr; }
    .schools-grid { grid-template-columns: 1fr; }
    .school:nth-child(5) { grid-column: span 1; }
    .school:nth-child(5) ul { grid-template-columns: 1fr; }
    .school:nth-child(5) li:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
    .school { padding: 22px; }
    .docs { columns: 1; }
    .team { grid-template-columns: 1fr 1fr; gap: 14px; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
    .g-wide { grid-column: span 2; }
    .g-tall { grid-row: span 1; }
    .gallery figcaption { opacity: 1; transform: none; font-size: .8rem; }
    .gallery button::after { opacity: 1; }
    .news-head { flex-direction: column; align-items: flex-start; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .lightbox-close { top: 8px; right: 8px; }
}

@media (max-width: 440px) {
    .portal-label { display: none; }
    .brand-text strong { white-space: normal; font-size: .9rem; line-height: 1.15; }
    .portal-dropdown { right: -52px; width: min(280px, calc(100vw - 32px)); }
}

/* Let grid children shrink so long strings (emails) wrap instead of overflowing */
.cta > *, .adm-grid > *, .about-grid > *, .trcn-card > * { min-width: 0; }
.contact-item, .footer li, .fee-note { overflow-wrap: anywhere; }

/* ---------- Website pages (Admin > Website > Pages) ---------- */

.page-hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--white);
    background: radial-gradient(ellipse at 85% 0%, rgba(244, 180, 0, .18), transparent 55%), linear-gradient(135deg, var(--green-950), var(--green-800));
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
}
.page-hero.has-image { padding: clamp(96px, 13vw, 160px) 0 clamp(56px, 8vw, 88px); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 38, 26, .92), rgba(4, 38, 26, .45)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 860px; }
.page-hero p { margin-top: 16px; max-width: 680px; font-size: 1.1rem; color: rgba(255, 255, 255, .82); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 600; }

.page-body { padding-top: clamp(48px, 7vw, 80px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.page-aside { display: grid; gap: 18px; position: sticky; top: 100px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.aside-cta { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.aside-cta h2 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.01em; text-transform: none; color: var(--white); margin-bottom: 8px; }
.aside-cta p { color: rgba(255, 255, 255, .75); font-size: .92rem; margin-bottom: 18px; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; }
.aside-links a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-weight: 600; font-size: .93rem; border-bottom: 1px solid var(--line); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--green-700); }
.aside-links .icon { color: var(--green-600); }

.prose { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); min-width: 0; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose h1, .prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--green-600); }
.prose img { height: auto; border-radius: var(--radius); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--green-50); color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.muted { color: var(--muted); }

@media (max-width: 1024px) {
    .page-grid { grid-template-columns: 1fr; }
    .page-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}


/* ---------- Leadership page (Admin > Website > Leadership) ---------- */

.lead-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(120px, 14vw, 170px); }
.lead-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.lead-visitor {
    display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 24px; align-items: center; width: min(100%, 520px);
    padding: 12px 22px 12px 12px; scroll-margin-top: 110px;
    border: 1px solid rgba(244, 180, 0, .45); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(244, 180, 0, .14), rgba(255, 255, 255, .05)); backdrop-filter: blur(6px);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5);
}
.lead-visitor-photo { aspect-ratio: 4 / 5; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: var(--green-950); box-shadow: 0 0 0 3px var(--gold); }
.lead-visitor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.lead-visitor-photo img.is-crest { object-fit: contain; padding: 18%; }
.lead-visitor-body { min-width: 0; }
.lead-visitor-label { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.lead-visitor-label .icon { width: 1.1em; height: 1.1em; }
.lead-visitor h2 { margin-top: 12px; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.2; color: var(--white); }
.lead-visitor p { margin-top: 8px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.lead-visitor.is-clickable:hover { border-color: var(--gold); }

/* Featured leader, lifted over the banner */
.lead-spotlight-wrap { margin-top: clamp(-130px, -12vw, -90px); position: relative; z-index: 1; }
.lead-spotlight {
    display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
    padding: clamp(16px, 2vw, 22px); padding-right: clamp(22px, 4vw, 56px);
    border-radius: var(--radius-lg); color: var(--white); box-shadow: var(--shadow-lg); scroll-margin-top: 110px;
    background: radial-gradient(ellipse at 100% 0%, rgba(244, 180, 0, .16), transparent 55%), linear-gradient(135deg, var(--green-900), var(--green-800));
}
.lead-spotlight-photo { border-radius: calc(var(--radius-lg) - 10px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-950); }
.lead-spotlight-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.lead-spotlight-body { padding: 12px 0; min-width: 0; }
.lead-spotlight .eyebrow { color: var(--gold); }
.lead-spotlight h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; margin-top: 14px; }
.lead-spotlight .lead-meta { color: rgba(255, 255, 255, .7); }
.lead-meta { margin-top: 8px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.lead-meta span { margin: 0 6px; }
.lead-quote {
    margin: 26px 0 0; padding-left: 20px; border-left: 3px solid var(--gold); max-width: 560px;
    font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; color: rgba(255, 255, 255, .92);
}
.lead-excerpt { margin-top: 18px; max-width: 620px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.lead-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.lead-actions:empty { display: none; }

/* Officers */
.lead-officers { padding-top: clamp(56px, 7vw, 88px); }
.lead-officers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 28px; }
.lead-officers-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 12px; }
.lead-officers-head p { max-width: 400px; color: var(--muted); }

.lead-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.lead-card {
    height: 100%; display: flex; flex-direction: column; padding: 10px; scroll-margin-top: 110px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.lead-card-photo { border-radius: calc(var(--radius) - 6px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-50); }
.lead-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .5s ease; }
.lead-card-body { padding: 14px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.lead-role { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }
.lead-card h3 { margin-top: 6px; font-size: 1.02rem; line-height: 1.3; }
.lead-card-link { all: unset; cursor: pointer; }
.lead-card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.lead-card-summary { margin-top: 6px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.lead-card-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; color: var(--green-700); }
.lead-card-more .icon { transition: transform .2s ease; }
.is-clickable { cursor: pointer; }
.lead-card.is-clickable:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--green-100); }
.lead-card.is-clickable:hover .lead-card-photo img { transform: scale(1.04); }
.lead-card.is-clickable:hover .lead-card-more .icon { transform: translateX(3px); }
.lead-card:target, .lead-spotlight:target { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }

.lead-spotlight-photo img.is-crest, .lead-card-photo img.is-crest, .lead-profile-photo img.is-crest { object-fit: contain; padding: 22%; }

.lead-contact-band {
    margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center;
    padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--gold-50); border: 1px solid var(--gold-100);
}
.lead-contact-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.lead-contact-band p { margin-top: 10px; color: var(--ink-2); }
.lead-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 600; font-size: .95rem; }
.lead-contact-list li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.lead-contact-list .icon { flex: none; margin-top: 3px; color: var(--gold-600); }
.lead-contact-list a { color: var(--green-800); overflow-wrap: anywhere; }
.lead-contact-list a:hover { text-decoration: underline; }

/* Profile dialog */
.lead-profile {
    border: 0; padding: 0; width: min(880px, calc(100vw - 32px)); max-height: min(88vh, 760px);
    border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
.lead-profile::backdrop { background: rgba(4, 20, 13, .7); backdrop-filter: blur(4px); }
.lead-profile[open] { animation: lead-pop .25s ease; }
@keyframes lead-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lead-profile-close {
    position: sticky; top: 14px; margin: 14px 14px -54px auto; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.lead-profile-close:hover { border-color: var(--green-700); color: var(--green-700); }
.lead-profile-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 28px; }
.lead-profile-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-50); align-self: start; position: sticky; top: 28px; }
.lead-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.lead-profile-body { padding-top: 6px; min-width: 0; }
.lead-profile-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 8px; padding-right: 40px; }
.lead-profile-summary { margin-top: 16px; font-size: 1.05rem; color: var(--ink-2); }
.lead-profile .prose { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1rem; }
.lead-contact { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.lead-contact a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; overflow-wrap: anywhere;
    background: var(--green-50); color: var(--green-800); font-weight: 600; font-size: .9rem;
}
.lead-contact a:hover { background: var(--green-100); }

@media (max-width: 1024px) {
    .lead-hero-grid { grid-template-columns: 1fr; align-items: start; }
    .lead-spotlight { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
    .lead-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lead-contact-band { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .lead-visitor { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding-right: 16px; }
    .visitor { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding-right: 16px; }
    .lead-spotlight { grid-template-columns: 1fr; padding: 14px 14px 22px; }
    .lead-spotlight-photo { aspect-ratio: 1 / 1; }
    .lead-spotlight-body { padding: 4px 8px 0; }
    .lead-actions .btn { flex: 1 1 100%; }
    .lead-grid { grid-template-columns: 1fr; gap: 10px; }
    .lead-card { flex-direction: row; align-items: center; gap: 14px; }
    .lead-card-photo { flex: none; width: 84px; aspect-ratio: 4 / 5; }
    .lead-card-body { padding: 0; justify-content: center; }
    .lead-card-more { padding-top: 6px; }
    .lead-profile-grid { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
    .lead-profile-photo { position: static; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-profile[open] { animation: none; }
    .lead-card, .lead-card-photo img { transition: none; }
}


/* ---------- News and notices (Admin > Website > News & Notices) ---------- */

.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.news-filter a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s; }
.news-filter a:hover { border-color: var(--green-700); color: var(--green-700); }
.news-filter a[aria-current] { background: var(--green-900); border-color: var(--green-900); color: var(--white); }

.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-item { position: relative; min-width: 0; }
.news-item.has-image { padding-top: 0; overflow: hidden; }
.news-thumb { display: block; margin: 0 -24px 20px; aspect-ratio: 16 / 9; background: var(--green-50); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-item:hover .news-thumb img { transform: scale(1.03); }
.news-item h2 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; overflow-wrap: anywhere; }
.news-item h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-item h2 a:focus-visible { outline: none; }
.news-item:has(h2 a:focus-visible) { outline: 2px solid var(--green-700); outline-offset: 2px; }
.news-item p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.news-pin { display: inline-flex; margin-left: auto; color: var(--gold-600); }
.news-pin .icon { width: 1.05em; height: 1.05em; fill: currentColor; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; font-size: .9rem; }
.news-file { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; color: var(--maroon); background: var(--maroon-50); padding: 3px 9px; border-radius: 999px; }
.news-file .icon { width: 1.1em; height: 1.1em; }
.news-empty { padding: 48px 0; text-align: center; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.pager-status { font-size: .9rem; color: var(--muted); }
.pager .is-disabled { opacity: .45; pointer-events: none; }

.news-hero-meta { font-size: .95rem; font-weight: 600; color: var(--gold) !important; }
.news-download { display: flex; align-items: center; gap: 14px; margin-top: 2em; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--green-50); text-decoration: none !important; color: var(--ink) !important; font-weight: 400 !important; transition: border-color .2s; }
.news-download:hover { border-color: var(--green-700); }
.news-download > .icon { color: var(--green-700); }
.news-download > .icon:last-child { margin-left: auto; }
.news-download span { display: grid; }
.news-download small { font-size: .82rem; color: var(--muted); }
.news-back { margin-top: 2.4em; font-size: .95rem; }
.news-back a { text-decoration: none; }

.aside-news { list-style: none; margin: 0; padding: 0; display: grid; }
.aside-news a { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.aside-news li:last-child a { border-bottom: 0; }
.aside-news span { font-weight: 600; font-size: .93rem; line-height: 1.4; }
.aside-news a:hover span { color: var(--green-700); }
.aside-news small { font-size: .78rem; color: var(--muted); }

@media (max-width: 1024px) {
    .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .news-list { grid-template-columns: 1fr; }
    .pager { gap: 10px; }
}


/* ---------- About page (Admin > Website > About the College) ---------- */

.about-more { margin-top: 26px; }
.about-pillars { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pillars-grid .mv-card { background: var(--paper); }
.pillars-grid .mv-card p { font-size: .98rem; line-height: 1.7; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.values-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--ink-2); }
.values-list .icon { color: var(--green-600); margin-top: 2px; }
.about-story { padding-top: clamp(48px, 7vw, 80px); }

.aside-leader { display: flex; align-items: center; gap: 14px; transition: border-color .2s; }
.aside-leader:hover { border-color: var(--green-700); }
.aside-leader img { width: 64px; height: 76px; flex: none; object-fit: cover; object-position: center 15%; border-radius: var(--radius-sm); background: var(--green-50); }
.aside-leader img.is-crest { object-fit: contain; padding: 10px; }
.aside-leader span { display: grid; gap: 2px; min-width: 0; }
.aside-leader small { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.aside-leader strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
