/* =========================================================
   Nusrat Senior Secondary School — public site styles
   ========================================================= */
:root {
  --primary: #13307a;
  --accent: #f2b705;
  --primary-700: color-mix(in oklab, var(--primary) 80%, black);
  --primary-900: color-mix(in oklab, var(--primary) 55%, black);
  --primary-50: color-mix(in oklab, var(--primary) 6%, white);
  --primary-100: color-mix(in oklab, var(--primary) 12%, white);
  --accent-ink: #1b1400;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 4px 10px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --container: 1220px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.ico { flex-shrink: 0; vertical-align: middle; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 999; font-weight: 700; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.empty { color: var(--muted); text-align: center; padding: 3rem 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, white); color: var(--accent-ink); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: #fff; color: var(--primary); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--primary); }
.link-arrow .ico { transition: transform .2s var(--ease); }
.link-arrow:hover .ico, a:hover .link-arrow .ico { transform: translateX(4px); }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .8rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow-light { color: #fff; }
.h-display { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--ink); }
.h-section { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chip-soft { background: var(--primary-100); color: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: all .2s var(--ease); }
.pill small { color: var(--muted); font-weight: 600; }
.pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill.is-active small { color: rgba(255,255,255,.75); }

/* ---------- Announcement + topbar ---------- */
.announce { background: var(--accent); color: var(--accent-ink); font-size: .88rem; font-weight: 600; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: .7rem; padding-top: .5rem; padding-bottom: .5rem; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .2rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #b91c1c; box-shadow: 0 0 0 0 rgba(185, 28, 28, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(185, 28, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); } }

.topbar { background: var(--primary-900); color: rgba(255,255,255,.82); font-size: .83rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar a, .topbar span { color: inherit; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar-info, .topbar-links { display: flex; gap: 1.4rem; align-items: center; }
.topbar-search { display: flex; align-items: center; background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 .3rem 0 .85rem; }
.topbar-search input { background: transparent; border: 0; color: #fff; padding: .35rem 0; width: 150px; font: inherit; outline: none; }
.topbar-search input::placeholder { color: rgba(255,255,255,.6); }
.topbar-search button { background: none; border: 0; color: #fff; padding: .35rem; display: flex; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(15,23,42,.25); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); min-width: 0; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--primary); max-width: 230px; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.7); }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav > ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; padding: .6rem .7rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .94rem; background: none; border: 0; }
.nav-link:hover, .nav li.active > .nav-link { color: var(--primary); background: var(--primary-50); }
.nav li.active > .nav-link { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); }
.nav .sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub, .nav li.has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: flex; align-items: center; gap: .35rem; padding: .6rem .8rem; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .93rem; }
.nav .sub a:hover, .nav .sub a.current { background: var(--primary-50); color: var(--primary); }
.nav-cta { margin-left: .25rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--primary-900); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in oklab, var(--primary-900) 92%, transparent) 0%, color-mix(in oklab, var(--primary-900) 60%, transparent) 45%, rgba(0,0,0,.08) 100%), linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%); }
.hero-content { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 4.5rem; }
.hero-text { display: none; max-width: 720px; }
.hero-text.is-active { display: block; animation: rise .9s var(--ease) both; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; margin-bottom: 1.1rem; letter-spacing: -.02em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); max-width: 600px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-controls { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: .2s; }
.hero-arrow:hover { background: #fff; color: var(--primary); }
.hero-dots { display: flex; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); padding: 0; transition: all .35s var(--ease); }
.hero-dots button.is-active { width: 34px; background: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Quick links ---------- */
.quicklinks { position: relative; z-index: 3; margin-top: -2.6rem; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ql { display: flex; gap: .9rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }
.ql:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.ql strong { display: block; font-size: 1rem; }
.ql small { color: var(--muted); font-size: .84rem; }
.ql-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-100); color: var(--primary); flex-shrink: 0; transition: .25s; }
.ql:hover .ql-ico { background: var(--primary); color: var(--accent); }

/* ---------- Admissions status ---------- */
.adm-home { padding-top: 2.5rem; }
.adm-home + .section { padding-top: clamp(3rem, 6vw, 5rem); }
.adm-page { margin-bottom: 2.2rem; }
.adm { display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; padding: 1.3rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.adm.is-open { background: linear-gradient(100deg, var(--primary-50), #fff 70%); border-color: var(--primary-100); }
.adm-status { display: flex; align-items: center; gap: 1rem; flex: 1 1 320px; }
.adm-status strong { display: block; font-size: 1.08rem; }
.adm-status small { color: var(--muted); font-size: .9rem; }
.adm-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; background: #e2e8f0; color: #475569; }
.adm-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.is-open .adm-badge { background: #dcfce7; color: #15803d; }
.is-open .adm-dot { animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); } 70% { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); } }
.adm-cut { text-align: center; padding: .4rem 1.4rem; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.adm-cut small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.adm-cut strong { font-family: var(--display); font-size: 2rem; line-height: 1.1; color: var(--primary); }
.adm-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 760px) {
  .adm-status { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .adm-cut { border: 0; padding: 0; text-align: left; }
  .adm-actions { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--bg-soft); }
.section-dark { background: var(--primary-900); color: #fff; }
.section-dark .h-display { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head .h-display { margin-bottom: .2rem; }
.section-head p { margin: .4rem 0 0; max-width: 560px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-media { position: relative; }
.split-media > img { border-radius: 28px; aspect-ratio: 4/4.2; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.split-media::before { content: ''; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border-radius: 28px; background: repeating-linear-gradient(45deg, var(--accent) 0 2px, transparent 2px 12px); opacity: .5; z-index: -1; }
.badge-float { position: absolute; left: -1.2rem; bottom: 2rem; display: flex; align-items: center; gap: .8rem; background: #fff; padding: .9rem 1.2rem .9rem .9rem; border-radius: 18px; box-shadow: var(--shadow-lg); }
.badge-float img { width: 44px; }
.badge-float strong { display: block; color: var(--primary); font-size: 1.05rem; }
.badge-float small { color: var(--muted); }
.motto { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--primary); border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1rem; margin: 1.5rem 0 2rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-900) 100%); color: #fff; position: relative; overflow: hidden; }
.stats::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 3.2rem; padding-bottom: 3.2rem; }
.stat { text-align: center; padding: .5rem 1rem; border-right: 1px solid rgba(255,255,255,.14); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat span { color: rgba(255,255,255,.82); font-weight: 600; font-size: .95rem; }

/* ---------- Principal ---------- */
.principal { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: #fff; border-radius: 28px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.principal-photo img, .principal-placeholder { width: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; }
.principal-placeholder { background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); color: var(--primary); display: grid; place-items: center; }
.principal-quote { font-size: 1.12rem; color: var(--ink-2); }
.principal-quote p:first-child::before { content: '“'; font-family: var(--display); font-size: 4rem; line-height: 0; color: var(--accent); vertical-align: -1.6rem; margin-right: .2rem; }
.principal-sign { display: flex; flex-direction: column; margin-top: 1rem; }
.principal-sign strong { font-family: var(--display); font-size: 1.2rem; color: var(--primary); }
.principal-sign span { color: var(--muted); font-size: .9rem; }

/* ---------- Streams ---------- */
.streams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.stream-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem 1.3rem; color: var(--ink); display: flex; flex-direction: column; transition: all .3s var(--ease); overflow: hidden; }
.stream-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.stream-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.stream-card:hover::after { transform: scaleX(1); }
.stream-card h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.stream-card p { color: var(--muted); font-size: .86rem; flex: 1; }
.stream-count { font-size: .78rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }
.stream-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--accent); }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; color: var(--ink); }
a.card:hover, .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--primary-50); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media > img { transform: scale(1.06); }
.card-media .chip { position: absolute; left: 1rem; top: 1rem; }
.card-media-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--primary) 0%, var(--primary-900) 80%); }
.card-media-fallback img { width: 64px; opacity: .9; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.card-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: .2rem 0; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: .6rem; }
.card-body time { color: var(--muted); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .35rem; }

.news-events { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.news-grid .post-card:first-child { grid-column: span 2; flex-direction: row; }
.news-grid .post-card:first-child .card-media { aspect-ratio: auto; flex: 1.1; min-height: 280px; }
.news-grid .post-card:first-child .card-body { flex: 1; padding: 1.8rem; justify-content: center; }
.news-grid .post-card:first-child h3 { font-size: 1.45rem; font-family: var(--display); font-weight: 600; }

.events-panel { background: var(--primary); color: #fff; border-radius: 24px; padding: 1.8rem; position: sticky; top: 100px; box-shadow: var(--shadow-lg); }
.events-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.events-head h3 { font-family: var(--display); font-size: 1.4rem; margin: 0; }
.events-panel .link-arrow { color: var(--accent); }
.events-panel .muted { color: rgba(255,255,255,.7); }
.event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.event-list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.event-list h4 { font-size: .98rem; margin: 0 0 .3rem; font-weight: 700; }
.event-list small { display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.72); font-size: .82rem; }
.date-tile { flex-shrink: 0; width: 58px; height: 62px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-tile strong { font-size: 1.45rem; font-family: var(--display); }
.date-tile span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.date-tile-lg { width: 78px; height: 88px; }
.date-tile-lg strong { font-size: 2rem; }
.date-tile em { font-style: normal; font-size: .7rem; opacity: .7; margin-top: .15rem; }

.pill-cloud { display: flex; flex-wrap: wrap; gap: .7rem; }
.pill-cloud .pill { padding: .8rem 1.3rem; font-size: 1rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.8rem; color: var(--accent); }
.testimonial blockquote { margin: 1rem 0 1.4rem; color: #fff; font-size: 1.05rem; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; color: #fff; }
.testimonial figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { display: flex; flex-direction: column; }
.testimonial small { color: rgba(255,255,255,.65); }

/* ---------- Mosaic gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.mosaic-item { position: relative; border-radius: 16px; overflow: hidden; }
.mosaic-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic-item:nth-child(6) { grid-column: span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; color: #fff; font-weight: 700; font-size: .88rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px); transition: .3s var(--ease); }
.mosaic-item:hover img { transform: scale(1.07); }
.mosaic-item:hover span { opacity: 1; transform: none; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 16px); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.cta-inner p { margin: 0; max-width: 560px; font-weight: 500; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn-accent { background: var(--primary); color: #fff; box-shadow: none; }
.cta-band .btn-ghost-light { border-color: var(--accent-ink); color: var(--accent-ink); }
.cta-band .btn-ghost-light:hover { background: var(--accent-ink); color: var(--accent); }

.footer { background: #0b1530; background: var(--primary-900); color: rgba(255,255,255,.75); padding-top: 4.5rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--accent); }
.footer-about p { margin: 1.2rem 0; max-width: 360px; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ico { color: var(--accent); margin-top: .25rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--accent); color: var(--accent-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--primary-900); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 20%, color-mix(in oklab, var(--primary) 70%, transparent), transparent 55%), radial-gradient(circle at 10% 110%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 40%); }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); z-index: -1; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .28; }
.page-hero.has-image::before { background: linear-gradient(100deg, var(--primary-900) 20%, color-mix(in oklab, var(--primary-900) 55%, transparent)); }
.page-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 900px; margin-bottom: .6rem; letter-spacing: -.02em; }
.page-hero .lead { color: rgba(255,255,255,.82); max-width: 680px; margin: 0; }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; margin-bottom: 1.3rem; color: rgba(255,255,255,.55); }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--accent); }
.crumbs a:last-child { color: #fff; }

/* ---------- Article / prose ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.article-meta { display: flex; gap: 1.4rem; color: var(--muted); font-size: .92rem; font-weight: 600; margin-bottom: 1.5rem; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-image { border-radius: var(--radius); margin-bottom: 2rem; width: 100%; box-shadow: var(--shadow); }
.prose { color: var(--ink-2); }
.prose-lg { font-size: 1.06rem; }
.prose h2 { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.65rem; margin: 2.2rem 0 .8rem; }
.prose h3 { color: var(--ink); font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-family: var(--display); font-size: 1.2rem; font-style: italic; color: var(--primary); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th { background: var(--primary); color: #fff; text-align: left; padding: .8rem 1rem; font-weight: 700; }
.prose td { padding: .75rem 1rem; border-top: 1px solid var(--line); }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }

.sidebar { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 100px; }
.side-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.side-card-accent { background: var(--primary); color: #fff; border: 0; }
.side-card-accent p { color: rgba(255,255,255,.8); }
.side-card-accent .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.side-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; flex-direction: column; padding: .75rem 0; color: var(--ink); }
.side-list a strong { font-size: .93rem; font-weight: 600; line-height: 1.4; }
.side-list a:hover strong { color: var(--primary); }
.side-list small { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.side-list.compact a { padding: .55rem 0; }
.side-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.side-nav a { display: block; padding: .6rem .9rem; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.side-nav a:hover { background: #fff; color: var(--primary); }
.side-nav a.is-active { background: var(--primary); color: #fff; }

.share { display: flex; align-items: center; gap: .6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--primary); border: 1px solid var(--line); }
.share a:hover { background: var(--primary); color: #fff; }

.filter-bar, .stream-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.pager a.is-active, .pager a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Events page ---------- */
.event-cards { display: flex; flex-direction: column; gap: 1rem; }
.event-card { display: flex; gap: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: .25s var(--ease); scroll-margin-top: 120px; }
.event-card:hover { box-shadow: var(--shadow); }
.event-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.event-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: .6rem; }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-card .prose { font-size: .95rem; }
.event-card .prose p:last-child { margin: 0; }
.is-past .event-card { padding: 1.1rem 1.3rem; background: var(--bg-soft); }
.is-past .date-tile { background: var(--line); color: var(--ink-2); }
.is-past h3 { font-size: 1.02rem; }
.empty-card { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-card p { margin: 0; }

/* ---------- Academics ---------- */
.stream-block { margin-bottom: 3.5rem; scroll-margin-top: 110px; }
.stream-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.stream-title .h-section { margin: 0; }
.programme-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.programme-top h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.tag-list { list-style: none; padding: 0; margin: .2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font-size: .78rem; padding: .25rem .6rem; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.tag-list li.more { background: var(--primary-100); color: var(--primary); border-color: transparent; }
.info-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.info-box { flex: 1; min-width: 150px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.info-box small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.info-box strong { font-size: 1.1rem; color: var(--primary); }
.subject-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.subject-grid li { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); padding: .8rem 1rem; border-radius: 12px; font-weight: 600; }
.subject-grid .ico { color: #16a34a; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--primary-50); border: 1px solid var(--primary-100); flex-wrap: wrap; margin-top: 2rem; }
.callout h3 { margin: 0 0 .2rem; }
.callout p { margin: 0; color: var(--muted); }
.feature-link h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; }

/* ---------- Clubs ---------- */
.club-initial { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-900)); color: var(--accent); font-weight: 800; font-size: 1.05rem; margin-bottom: .5rem; letter-spacing: .04em; }

/* ---------- Staff ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; margin-top: 1.2rem; }
.people-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.2rem; transition: .3s var(--ease); }
.person:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.person-photo { width: 130px; height: 130px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent); background: var(--primary-100); display: grid; place-items: center; }
.person-lg .person-photo { width: 160px; height: 160px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo span { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--primary); }
.person h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.person-role { color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.person-mail { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; }

/* ---------- Gallery ---------- */
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; display: block; background: var(--primary-900); box-shadow: var(--shadow-sm); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; opacity: .92; }
.album-card:hover img { transform: scale(1.07); opacity: .8; }
.album-info { position: absolute; inset: auto 0 0 0; padding: 3rem 1.4rem 1.3rem; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; }
.album-info h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: .6rem 0 .1rem; }
.album-info small { color: rgba(255,255,255,.75); }
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry-item { display: block; margin-bottom: 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; }
.masonry-item img { width: 100%; transition: transform .6s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item span { position: absolute; inset: auto 0 0 0; padding: 1.5rem .9rem .7rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 10, 25, .94); display: flex; align-items: center; justify-content: center; padding: 3rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 8rem); max-width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: .9rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: var(--accent); color: var(--accent-ink); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact / forms ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.form input, .form select, .form textarea, .search-big input { font: inherit; font-weight: 400; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus, .search-big input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-100); }
.form button { align-self: flex-start; }
.alert { display: flex; gap: .6rem; align-items: center; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.map { margin-top: 3rem; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

.search-big { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.search-big input { flex: 1; font-size: 1.05rem; }
.results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.results a { display: block; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: .2s; }
.results a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.results h3 { margin: .6rem 0 .3rem; font-size: 1.1rem; }
.results p { margin: 0; color: var(--muted); font-size: .93rem; }

.error-code { font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--primary); display: block; margin-bottom: 1rem; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px var(--primary), 0 0 0 4px rgba(255,255,255,.7); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s; }
main:focus { outline: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.to-top .ico { transition: transform .2s var(--ease); }
.to-top:hover .ico { transform: translateY(-2px); }
body.nav-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .nav-link { padding: .55rem .5rem; font-size: .9rem; }
  .brand-text small { display: none; }
  .streams { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-toggle { display: flex; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; flex-direction: column; align-items: stretch; padding: 5.5rem 1.2rem 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; z-index: 60; }
  .nav.open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); }
  .nav > ul { flex-direction: column; gap: .2rem; }
  .nav-link { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1rem; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 .8rem; display: none; min-width: 0; }
  .nav li.open > .sub { display: block; }
  .nav li.has-sub:hover > .sub { display: none; }
  .nav li.has-sub.open:hover > .sub { display: block; }
  .nav-cta { margin: 1rem 0 0; }
  .menu-toggle { position: relative; z-index: 70; }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 1rem; right: 1rem; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 40; }
  .news-events, .article-layout, .contact-layout { grid-template-columns: 1fr; }
  .events-panel, .sidebar { position: static; }
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principal { grid-template-columns: 220px 1fr; }
}
@media (max-width: 760px) {
  .topbar-info .hide-sm, .topbar-search { display: none; }
  .topbar-info a:nth-child(2) { display: none; }
  .split, .principal { grid-template-columns: 1fr; }
  .principal-photo { max-width: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .stat:nth-child(2) { border-right: 0; }
  .streams { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .grid-2, .grid-3, .testimonials, .form-row, .subject-grid { grid-template-columns: 1fr; }
  .news-grid .post-card:first-child { grid-column: auto; flex-direction: column; }
  .news-grid .post-card:first-child .card-media { min-height: 0; aspect-ratio: 16/10; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic-item:nth-child(6) { grid-column: auto; }
  .badge-float { left: .8rem; bottom: .8rem; }
  .hero { min-height: 640px; }
  .hero-content { padding-bottom: 4.5rem; }
  .brand-text strong { font-size: .98rem; }
  .brand img { width: 40px; }
  .header-inner { min-height: 70px; }
  .lightbox { padding: 4rem .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}
@media (max-width: 480px) {
  .quicklinks-grid { grid-template-columns: 1fr; }
  .streams { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; gap: 1rem; }
  .brand-text strong { font-size: .9rem; }
}
