/* ============================================================
   FILE: C:\xampp\htdocs\wmsb2\assets\css\public.css
   WMSB "Academic Beacon" Design System
   Oxford Navy (#002147) + Vivid Amber (#FFB800) + Bone White (#F9F9F9)
   WCAG AAA · Accessible · Prestigious · 2026
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:       #002147;
  --navy-deep:  #001530;
  --navy-mid:   #003070;
  --navy-light: #0a3a8a;
  --amber:      #FFB800;
  --amber-deep: #D69500;
  --amber-pale: #FFF3C4;
  --bone:       #F9F9F9;
  --charcoal:   #121212;
  --slate:      #374151;
  --muted:      #6B7280;
  --border:     #E5E7EB;

  /* Semantic */
  --text-body:    var(--charcoal);
  --text-muted:   var(--muted);
  --bg-page:      var(--bone);
  --bg-card:      #FFFFFF;
  --bg-card-alt:  #F3F4F6;
  --border-card:  #E5E7EB;

  /* Gradient */
  --grad: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 80%, var(--navy-light) 100%);
  --grad-amber: linear-gradient(135deg, var(--amber-deep), var(--amber));
  --grad-hero: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #0a3a8a 100%);

  /* Spacing & radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Progress bar */
  --prog-h: 3px;
}

/* Dark mode override */
[data-theme="dark"] {
  --bg-page:      var(--navy-deep);
  --bg-card:      var(--navy);
  --bg-card-alt:  var(--navy-mid);
  --border-card:  rgba(255,255,255,0.1);
  --text-body:    #F9F9F9;
  --text-muted:   #A8B8CC;
  --border:       rgba(255,255,255,0.12);
}

/* High-contrast yellow mode */
[data-theme="yellow"] {
  --bg-page:    #1A1A00;
  --bg-card:    #000;
  --text-body:  #FFE600;
  --text-muted: #CCCC00;
  --border:     #FFE600;
  --amber:      #FFE600;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--amber); color: var(--navy);
  padding: .5rem 1rem; border-radius: 0 0 .25rem .25rem;
  font-weight: 700; transition: top 200ms;
}
.skip-link:focus { top: 0; }

/* ── Scroll progress ─────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--prog-h);
  background: var(--grad-amber);
  transform-origin: left; transform: scaleX(0);
  z-index: 9999;
}
@supports (animation-timeline: scroll(root)) {
  #scroll-progress {
    animation: prog-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes prog-grow { to { transform: scaleX(1); } }
}

/* ── Grain overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px; opacity: .4; mix-blend-mode: multiply;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: var(--prog-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 4rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  transition: box-shadow 300ms;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,33,71,.08); }

.nav-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark {
  width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm);
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9rem; color: var(--amber);
  letter-spacing: -.01em; flex-shrink: 0;
  border: 2px solid var(--amber);
}
.nav-brand-name {
  font-size: .78rem; font-weight: 700; color: var(--navy);
  line-height: 1.25; max-width: 11rem;
}

.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-links a {
  display: block; padding: .4rem .8rem;
  font-size: .8rem; font-weight: 600; color: var(--slate);
  border-radius: var(--r-sm); text-decoration: none;
  border: 2px solid transparent;
  transition: background 140ms, color 140ms, border-color 140ms;
  white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(0,33,71,.07);
  color: var(--navy);
  text-decoration: none;
}
.nav-links a.active {
  background: var(--navy);
  color: var(--amber);
  border-color: var(--navy);
}

.nav-end { display: flex; align-items: center; gap: .5rem; }
.staff-portal-btn {
  padding: .42rem 1rem;
  background: var(--navy); color: var(--amber);
  font-size: .78rem; font-weight: 700;
  border-radius: var(--r-sm);
  border: 2px solid var(--navy);
  cursor: pointer; font-family: var(--font);
  transition: background 150ms, color 150ms;
  white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.staff-portal-btn:hover { background: var(--amber); color: var(--navy); border-color: var(--amber); text-decoration: none; }
.theme-btn {
  background: transparent; border: 2px solid var(--border);
  border-radius: var(--r-sm); color: var(--muted);
  padding: .38rem .5rem; cursor: pointer;
  transition: border-color 150ms, color 150ms;
  font-size: .9rem;
}
.theme-btn:hover { border-color: var(--navy); color: var(--navy); }
.nav-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); padding: .25rem; }

/* Mobile drawer */
.mob-overlay { display: none; position: fixed; inset: 0; z-index: 199; background: rgba(0,21,48,.55); backdrop-filter: blur(4px); }
.mob-overlay.open { display: block; }
.mob-drawer {
  position: fixed; inset: 0 0 0 20%; z-index: 200;
  background: #fff; display: flex; flex-direction: column; padding: 1.5rem;
  transform: translateX(100%);
  border-left: 3px solid var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .mob-drawer { transition: transform 300ms cubic-bezier(.4,0,.2,1); }
}
.mob-drawer.open { transform: translateX(0); }
.mob-drawer-close { align-self: flex-end; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); margin-bottom: 1.5rem; }
.mob-drawer a {
  display: block; padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--slate); font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: color 140ms;
}
.mob-drawer a:hover, .mob-drawer a.active { color: var(--navy); text-decoration: none; }

/* Bottom nav */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 3.5rem; z-index: 90;
  background: rgba(255,255,255,.97);
  border-top: 2px solid var(--border);
  align-items: stretch;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .1rem;
  color: var(--muted); font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; min-height: 2.75rem; transition: color 140ms;
}
.bottom-nav a i { font-size: 1rem; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--navy); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  padding: 5rem 2rem 0;
  min-height: 85vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
/* Subtle geometric accent */
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 65vw; height: 65vw; max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; top: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px; opacity: .6; pointer-events: none; mix-blend-mode: screen;
}
/* Hero photo overlay */
.hero-bg-photo {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .18; mix-blend-mode: luminosity;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,184,0,.15);
  border: 2px solid rgba(255,184,0,.4);
  border-radius: var(--r-pill);
  padding: .32rem 1rem;
  font-size: .7rem; font-weight: 700; color: var(--amber);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900; line-height: 1.04;
  letter-spacing: -.03em; color: #FFFFFF;
  margin-bottom: 1.25rem; max-width: 700px;
}
.hero-title .accent { color: var(--amber); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.72);
  max-width: 480px; line-height: 1.7; margin-bottom: 2.25rem;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.btn-amber {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.6rem;
  background: var(--amber); color: var(--navy);
  font-size: .9rem; font-weight: 800;
  border-radius: var(--r-md);
  border: 2px solid var(--amber);
  cursor: pointer; font-family: var(--font);
  transition: background 150ms, transform 150ms; text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); transform: translateY(-1px); text-decoration: none; }
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.6rem;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: .9rem; font-weight: 700;
  border-radius: var(--r-md);
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer; font-family: var(--font);
  backdrop-filter: blur(8px); text-decoration: none;
  transition: background 150ms;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* Hero stats bar */
.hero-stats {
  background: rgba(0,21,48,.55);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,184,0,.2);
  padding: 1.5rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative; z-index: 1;
}
.hstat { text-align: center; }
.hstat-n {
  font-size: 2rem; font-weight: 900; color: var(--amber);
  line-height: 1; letter-spacing: -.03em;
  font-family: var(--font);
}
.hstat-l {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.55);
  margin-top: .3rem; font-weight: 600;
}

/* ── Ticker ──────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--navy-deep);
  border-top: 3px solid var(--amber);
  border-bottom: 1px solid rgba(255,184,0,.15);
  height: 3.25rem;
  display: flex; align-items: stretch;
  position: relative; overflow: hidden;
}
/* Fade-out gradient mask at the right edge */
.ticker-wrap::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 8rem; height: 100%;
  background: linear-gradient(to right, transparent 0%, var(--navy-deep) 100%);
  pointer-events: none; z-index: 2;
}
.ticker-badge {
  flex-shrink: 0; padding: 0 1.1rem;
  background: var(--amber); color: var(--navy);
  font-size: .75rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em;
  display: flex; align-items: center; white-space: nowrap;
  z-index: 3; position: relative;
}
.ticker-scroll-area {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  position: relative;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker-go 50s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; font-weight: 600;
  color: rgba(255,255,255,.88);
  padding: 0 2.5rem;
  letter-spacing: -.01em;
}
.ticker-item::before {
  content: '';
  width: .35rem; height: .35rem; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}
@keyframes ticker-go { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════════════════════════════════════ */
.page-header {
  background: var(--grad-hero);
  padding: 4rem 2rem 3rem;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 50vw; height: 50vw; max-width: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,0,.1) 0%, transparent 65%);
  pointer-events: none;
}
/* Faint background photo behind the white content area of inner pages */
.content-bg-photo {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* When a photo backdrop is active, float the actual content in a solid card
   so text (filter bars, empty states, etc.) keeps good contrast */
.content-bg-photo .section-inner {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0,21,48,.25);
}
.page-header-inner { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }
.page-header-eye {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--amber);
  margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem;
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900;
  color: #fff; letter-spacing: -.025em; line-height: 1.1;
  margin-bottom: .5rem;
}
.page-header p { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 460px; font-weight: 400; }

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */
.section { padding: 4rem 2rem; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-alt { background: #F0F2F5; }
[data-theme="dark"] .section-alt { background: rgba(0,33,71,.3); }

.section-label-row {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: .75rem;
}
.section-eyebrow {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--amber);
  background: rgba(255,184,0,.12);
  border: 1px solid rgba(255,184,0,.3);
  border-radius: var(--r-pill); padding: .25rem .85rem;
  display: inline-block; margin-bottom: .5rem;
}
.section-heading {
  font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 900;
  color: var(--navy); letter-spacing: -.025em;
  line-height: 1.15;
}
[data-theme="dark"] .section-heading { color: #fff; }
.section-heading-line {
  width: 3rem; height: 3px;
  background: var(--grad-amber);
  border-radius: 2px; margin-top: .5rem;
}
.view-all-link {
  font-size: .82rem; font-weight: 700; color: var(--navy);
  display: inline-flex; align-items: center; gap: .3rem;
  border: 2px solid var(--navy); border-radius: var(--r-sm);
  padding: .38rem .9rem; text-decoration: none;
  transition: background 140ms, color 140ms;
}
.view-all-link:hover { background: var(--navy); color: var(--amber); text-decoration: none; }
[data-theme="dark"] .view-all-link { color: var(--amber); border-color: var(--amber); }

/* ══════════════════════════════════════════════════════════
   BENTO GRID
══════════════════════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 188px;
  gap: 14px;
}

/* Cell base */
.bc {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.bc:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,33,71,.12);
  border-color: rgba(0,33,71,.2);
}
[data-theme="dark"] .bc:hover { box-shadow: 0 12px 40px rgba(0,0,0,.4); }

/* Scroll-driven entrance */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bc {
      animation: bc-in linear both;
      animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
    @keyframes bc-in { to { opacity: 1; transform: translateY(0); } }
  }
}
/* bc.io-ready: visible by default, JS animates in */
.bc.io-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease, box-shadow 220ms ease;
}

/* Span helpers */
.w2{grid-column:span 2} .w3{grid-column:span 3} .w4{grid-column:span 4}
.w5{grid-column:span 5} .w6{grid-column:span 6} .w7{grid-column:span 7}
.w8{grid-column:span 8} .w9{grid-column:span 9} .w12{grid-column:span 12}
.h1{grid-row:span 1} .h2{grid-row:span 2} .h3{grid-row:span 3}

/* Card variants */
.bc-navy {
  background: var(--grad);
  border-color: transparent;
}
.bc-amber {
  background: var(--grad-amber);
  border-color: transparent;
}
.bc-navy-mid {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: transparent;
}

/* Image card */
.bc-img-wrap { position: absolute; inset: 0; }
.bc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bc-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,21,48,.92) 0%,
    rgba(0,21,48,.45) 55%,
    rgba(0,21,48,.1) 100%);
}
.bc-img-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem; z-index: 2; }
/* Placeholder when no image */
.bc-img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a3a8a 100%);
  display: flex; align-items: center; justify-content: center;
}
.bc-img-placeholder i { font-size: 3rem; color: rgba(255,184,0,.25); }

/* Stat card */
.bc-stat {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  height: 100%; padding: 1.5rem; gap: .25rem;
}
.bc-stat-n {
  font-size: 2.75rem; font-weight: 900;
  line-height: 1; letter-spacing: -.03em;
}
.bc-stat-l {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 700; opacity: .7;
}
.bc-stat-icon { font-size: 1.5rem; margin-bottom: .35rem; }

/* Text content */
.bc-pad { padding: 1.35rem; }
.bc-tag {
  display: inline-block;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .2rem .6rem; border-radius: var(--r-sm);
  margin-bottom: .5rem;
  border: 1.5px solid;
}
.bc-tag-white { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); }
.bc-tag-amber { background: rgba(255,184,0,.18); color: var(--amber); border-color: rgba(255,184,0,.35); }
.bc-tag-navy  { background: rgba(0,33,71,.1); color: var(--navy); border-color: rgba(0,33,71,.2); }
.bc-title-xl  { font-size: 1.45rem; font-weight: 900; line-height: 1.1; letter-spacing: -.025em; }
.bc-title     { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.bc-sub       { font-size: .8rem; line-height: 1.55; margin-top: .4rem; opacity: .8; }
.t-white { color: #fff; } .t-amber { color: var(--amber); } .t-navy { color: var(--navy); }
.t-amber-dark { color: var(--amber-deep); }

/* Read more button inside card */
.bc-read-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .75rem; padding: .35rem .85rem;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: .72rem; font-weight: 700;
  border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,.35);
  text-decoration: none; transition: background 150ms;
  backdrop-filter: blur(8px);
}
.bc-read-btn:hover { background: rgba(255,255,255,.28); text-decoration: none; }

/* Quote/holo card */
.bc-quote {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border: 2px solid rgba(255,184,0,.2);
}

/* ══════════════════════════════════════════════════════════
   POST CARDS
══════════════════════════════════════════════════════════ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  text-decoration: none; color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
@media (prefers-reduced-motion: no-preference) {
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,33,71,.1);
    border-color: rgba(0,33,71,.2);
    text-decoration: none;
  }
  /* io-ready: JS adds this class; cards always visible, JS adds smooth reveal */
  .post-card.io-visible { opacity: 1; transform: translateY(0); transition: opacity 500ms ease, transform 500ms ease, box-shadow 220ms ease; }
}
.post-card-thumb { height: 11.5rem; overflow: hidden; position: relative; background: var(--navy); flex-shrink: 0; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center;
}
.post-card-thumb-ph i { font-size: 2.5rem; color: rgba(255,184,0,.25); }
.post-card-badge { position: absolute; top: .65rem; left: .65rem; }
.post-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.post-card-cat {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--amber-deep);
}
.post-card-title {
  font-size: .9375rem; font-weight: 800; color: var(--navy);
  line-height: 1.3; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-theme="dark"] .post-card-title { color: #fff; }
.post-card-excerpt {
  font-size: .8rem; color: var(--muted); flex: 1; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; color: var(--muted);
  padding-top: .65rem; border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.post-card-more { color: var(--navy); font-weight: 700; }
[data-theme="dark"] .post-card-more { color: var(--amber); }

/* Badges */
.badge { display: inline-block; padding: .2em .6em; font-size: .65rem; font-weight: 700; border-radius: var(--r-sm); border: 1.5px solid; }
.badge-activity     { background: rgba(0,33,71,.08); color: var(--navy); border-color: rgba(0,33,71,.18); }
.badge-event        { background: rgba(255,184,0,.1); color: #8a5f00; border-color: rgba(255,184,0,.3); }
.badge-announcement { background: rgba(59,130,246,.08); color: #1d4ed8; border-color: rgba(59,130,246,.2); }

/* ══════════════════════════════════════════════════════════
   QUOTE SECTION
══════════════════════════════════════════════════════════ */
.quote-section {
  background: var(--grad);
  padding: 5rem 2rem;
  position: relative; overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute; top: -30%; right: -5%;
  width: 50vw; height: 50vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,0,.08) 0%, transparent 65%);
  pointer-events: none;
}
.quote-inner { max-width: 52rem; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.quote-mark { font-size: 5rem; color: var(--amber); line-height: .8; margin-bottom: .5rem; font-family: Georgia, serif; }
.quote-text {
  font-size: clamp(1.2rem, 2.8vw, 1.9rem); font-weight: 700;
  color: #fff; line-height: 1.5;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms cubic-bezier(.16,1,.3,1);
}
.quote-text.revealed { clip-path: inset(0 0 0% 0); }
@supports (animation-timeline: view()) {
  .quote-text {
    clip-path: unset;
    animation: qReveal linear both;
    animation-timeline: view(); animation-range: entry 10% entry 55%;
  }
  @keyframes qReveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0% 0); } }
}
.quote-attr { margin-top: 1.25rem; font-size: .78rem; color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

/* ══════════════════════════════════════════════════════════
   SPONSORS
══════════════════════════════════════════════════════════ */
.sponsors-strip { padding: 1.5rem 2rem; background: var(--bg-card); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.sponsors-lbl { text-align: center; font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 1rem; font-weight: 700; }
.sponsors-logos { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.sponsors-logos img { height: 2.5rem; max-width: 8rem; object-fit: contain; opacity: .6; filter: grayscale(1); transition: opacity 200ms, filter 200ms; }
.sponsors-logos img:hover { opacity: 1; filter: grayscale(0); }
.sp-name { font-size: .82rem; font-weight: 700; color: var(--muted); padding: .3rem .85rem; border: 2px solid var(--border); border-radius: var(--r-sm); }

/* ══════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════ */
.gallery-grid { columns: 3 14rem; gap: .85rem; }
.gallery-item { break-inside: avoid; margin-bottom: .85rem; border-radius: var(--r-lg); overflow: hidden; position: relative; cursor: pointer; border: 2px solid var(--border); }
.gallery-item img { width: 100%; display: block; transition: transform 300ms ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .85rem;
  background: linear-gradient(to top, rgba(0,21,48,.88) 0%, transparent 100%);
  color: #fff; font-size: .78rem; opacity: 0; transition: opacity 200ms;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────── */
.wmsb-lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,10,25,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.wmsb-lightbox.open { opacity: 1; visibility: visible; pointer-events: all; }
.wmsb-lightbox-img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: var(--r-md); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.wmsb-lightbox-caption { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 1rem; text-align: center; max-width: 40rem; }
.wmsb-lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms;
}
.wmsb-lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════════════════════
   STAFF
══════════════════════════════════════════════════════════ */
.dept-section { margin-bottom: 3.5rem; }
.dept-heading-row { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border); }
.dept-color-bar { width: .35rem; height: 1.75rem; border-radius: .25rem; }
.dept-heading { font-size: 1.1rem; font-weight: 900; color: var(--navy); }
[data-theme="dark"] .dept-heading { color: #fff; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; }
.staff-card {
  background: var(--bg-card); border: 2px solid var(--border-card);
  border-radius: var(--r-xl); overflow: hidden; text-align: center;
  padding: 1.1rem .85rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.staff-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,33,71,.1); border-color: rgba(0,33,71,.2); }
.staff-photo { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto .7rem; border: 3px solid var(--amber); }
.staff-initials {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .7rem;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  border: 3px solid var(--amber);
}
.staff-name { font-size: .82rem; font-weight: 800; color: var(--navy); margin-bottom: .2rem; }
[data-theme="dark"] .staff-name { color: #fff; }
.staff-role { font-size: .72rem; color: var(--amber-deep); font-weight: 700; }
.staff-former { font-size: .62rem; color: var(--muted); margin-top: .25rem; }

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about-sections { max-width: 50rem; margin: 0 auto; padding: 3.5rem 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.about-fold {
  background: rgba(0,20,45,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  overflow: hidden;
}
.about-fold-summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem;
  font-size: 1.15rem; font-weight: 800; color: #FFFFFF;
  letter-spacing: -.01em;
}
.about-fold-summary::-webkit-details-marker { display: none; }
.about-fold-summary i.bi-flag, .about-fold-summary i.bi-eye, .about-fold-summary i.bi-info-circle { color: var(--amber); margin-right: .6rem; }
.about-fold-chevron { font-size: .9rem; color: rgba(255,255,255,.6); transition: transform 200ms ease; }
.about-fold[open] .about-fold-chevron { transform: rotate(180deg); }
.about-fold-body { padding: 0 2rem 2rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.75rem; }
.about-fold-item + .about-fold-item { margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed rgba(255,255,255,.14); }
.about-fold-item-title { font-size: 1.05rem; font-weight: 800; color: #FFFFFF; margin-bottom: .9rem; letter-spacing: -.01em; }
.about-img { width: 100%; border-radius: var(--r-md); max-height: 17rem; object-fit: cover; margin-bottom: 1.5rem; }
.about-body { font-size: 1rem; line-height: 1.95; color: #F8F9FA; white-space: pre-line; font-weight: 400; letter-spacing: .01em; }

/* ══════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; max-width: 900px; margin: 0 auto; align-items: start; }
.contact-info-card { background: var(--grad); border-radius: var(--r-xl); padding: 2rem; border: 2px solid rgba(255,184,0,.2); }
.contact-info-title { font-size: 1.05rem; font-weight: 900; color: #fff; margin-bottom: 1.75rem; }
.contact-detail { display: flex; gap: .85rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-icon-wrap { width: 2.35rem; height: 2.35rem; border-radius: var(--r-sm); background: rgba(255,184,0,.18); border: 1.5px solid rgba(255,184,0,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--amber); font-size: .875rem; }
.contact-detail-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: .2rem; font-weight: 700; }
.contact-detail-val { font-size: .875rem; color: #fff; font-weight: 600; text-decoration: none; }
.contact-form-card { background: var(--bg-card); border: 2px solid var(--border-card); border-radius: var(--r-xl); padding: 2rem; }
.form-title { font-size: 1.05rem; font-weight: 900; color: var(--navy); margin-bottom: 1.5rem; }
[data-theme="dark"] .form-title { color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .65rem .9rem;
  background: var(--bone); border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font); font-size: .9rem; color: var(--charcoal);
  transition: border-color 150ms, box-shadow 150ms;
}
.form-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,33,71,.1); }
.form-input::placeholder { color: rgba(0,0,0,.3); }
.btn-submit {
  width: 100%; padding: .8rem;
  background: var(--navy); color: var(--amber);
  font-size: .9375rem; font-weight: 800;
  border-radius: var(--r-md); border: 2px solid var(--navy);
  cursor: pointer; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: background 150ms, color 150ms;
}
.btn-submit:hover { background: var(--amber); color: var(--navy); border-color: var(--amber); }

/* ══════════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════════ */
.post-single { max-width: 50rem; margin: 0 auto; padding: 2.5rem 1.5rem; }
.post-title { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 900; color: var(--navy); letter-spacing: -.025em; line-height: 1.15; margin-bottom: .75rem; }
[data-theme="dark"] .post-title { color: #fff; }
.post-author-row { display: flex; align-items: center; gap: .65rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.75rem; }
.post-author-av { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: var(--amber); flex-shrink: 0; border: 2px solid var(--amber); }
.post-thumb { width: 100%; max-height: 22rem; object-fit: cover; border-radius: var(--r-xl); margin-bottom: 1.75rem; border: 2px solid var(--border); }
.post-body { font-size: 1rem; line-height: 1.85; color: var(--slate); white-space: pre-line; }

/* Comments */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.comment-form-card { background: var(--bone); border: 2px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; margin-bottom: 1.75rem; }
.comment-item { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.comment-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: var(--amber); flex-shrink: 0; margin-top: .1rem; border: 2px solid var(--amber); }
.comment-name { font-size: .82rem; font-weight: 800; color: var(--navy); }
[data-theme="dark"] .comment-name { color: #fff; }
.comment-time { font-size: .72rem; color: var(--muted); }
.comment-body { font-size: .875rem; color: var(--slate); line-height: 1.65; margin-top: .3rem; white-space: pre-line; }
.comment-reply-btn { background: none; border: none; color: var(--navy); font-size: .75rem; font-weight: 700; cursor: pointer; padding: 0; margin-top: .4rem; font-family: var(--font); border-bottom: 1px solid var(--navy); transition: color 150ms; }
[data-theme="dark"] .comment-reply-btn { color: var(--amber); border-color: var(--amber); }
.comment-reply { margin-left: 2.85rem; padding-left: 1rem; border-left: 3px solid var(--amber); }

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert { display: flex; align-items: flex-start; gap: .65rem; padding: .9rem 1.1rem; border-radius: var(--r-md); font-size: .875rem; margin-bottom: 1rem; font-weight: 500; }
.alert-success { background: rgba(22,163,74,.08); border: 2px solid rgba(22,163,74,.25); color: #166534; }
.alert-error   { background: rgba(220,38,38,.07); border: 2px solid rgba(220,38,38,.2); color: #991b1b; }
.alert-warning { background: rgba(255,184,0,.1); border: 2px solid rgba(255,184,0,.3); color: #7a4800; }

/* ══════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════ */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; align-items: center; }
.filter-select {
  padding: .5rem .9rem; background: var(--bg-card);
  border: 2px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font); font-size: .82rem; color: var(--charcoal);
  cursor: pointer; transition: border-color 150ms;
}
.filter-select:focus { outline: none; border-color: var(--navy); }
.filter-btn { padding: .5rem 1rem; background: var(--navy); color: var(--amber); font-size: .82rem; font-weight: 700; border: 2px solid var(--navy); border-radius: var(--r-md); cursor: pointer; font-family: var(--font); }
.filter-btn:hover { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.filter-clear { padding: .5rem 1rem; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 600; border: 2px solid var(--border); border-radius: var(--r-md); cursor: pointer; font-family: var(--font); text-decoration: none; display: inline-flex; align-items: center; }
.filter-clear:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.filter-count { font-size: .8rem; color: var(--muted); margin-left: auto; align-self: center; font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.pagination { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem;
  border-radius: var(--r-md); font-size: .82rem; font-weight: 700;
  border: 2px solid var(--border); color: var(--muted);
  background: var(--bg-card); text-decoration: none;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.pagination a:hover { background: rgba(0,33,71,.07); color: var(--navy); border-color: rgba(0,33,71,.2); text-decoration: none; }
.pagination span.cur { background: var(--navy); color: var(--amber); border-color: var(--navy); }
.pagination span.dis { opacity: .35; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer { background: var(--navy-deep); border-top: 3px solid var(--amber); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-size: 1rem; font-weight: 900; color: var(--amber); margin-bottom: .5rem; }
.footer-brand-desc { font-size: .825rem; color: rgba(255,255,255,.78); line-height: 1.7; max-width: 22rem; margin-bottom: 1.1rem; }
.footer-social { display: flex; gap: .45rem; flex-wrap: wrap; }
.footer-social a {
  width: 2rem; height: 2rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .82rem;
  transition: background 150ms, border-color 150ms, color 150ms;
  text-decoration: none;
}
.footer-social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); text-decoration: none; }
.footer-col-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: .9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.75); text-decoration: none; transition: color 140ms; font-weight: 500; }
.footer-links a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .75rem; color: rgba(255,255,255,.6); }
.footer-portal-link { color: rgba(255,184,0,.4); text-decoration: none; font-size: .75rem; font-weight: 600; }
.footer-portal-link:hover { color: var(--amber); text-decoration: none; }

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; }
  .w3, .w4 { grid-column: span 3; } .w5, .w6 { grid-column: span 6; }
  .w7, .w8 { grid-column: span 6; } .w9, .w12 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 767px) {
  .nav-links { display: none; } .nav-hamburger { display: flex; }
  .bottom-nav { display: flex; } body { padding-bottom: 3.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .w3,.w4,.w5,.w6,.w7,.w8,.w9,.w12 { grid-column: span 2; }
  .h2,.h3 { grid-row: span 1; }
  .posts-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.25rem; }
  .page-header { padding: 3rem 1.25rem 2.5rem; }
  .hero { padding: 4rem 1.25rem 0; }
  .hero-stats { padding: 1.25rem 1.25rem; }
}
@media (max-width: 479px) {
  .bento { grid-template-columns: 1fr; }
  .w3,.w4,.w5,.w6,.w7,.w8,.w9,.w12 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}