/* ============================================================
   GREAT IFE STUDENTS' UNION — DESIGN SYSTEM v2
   Maroon & gold, matching the union crest — now on a warm white
   canvas. Typography: Playfair Display (display) + Inter (body).
   Palette: deep maroon, crimson, gold — sampled from the crest,
   used as accents against soft cream/white surfaces.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces — warm white, not stark */
  --bg: #FBF8F4;
  --bg-soft: #F4EEE6;
  --bg-elevated: #FFFFFF;
  --surface: rgba(122, 31, 52, 0.035);
  --surface-hover: rgba(122, 31, 52, 0.07);
  --border: rgba(45, 18, 16, 0.10);
  --border-strong: rgba(45, 18, 16, 0.20);

  /* ink — dark warm greys for text on light surfaces */
  --ink-50: #241019;   /* headings / highest emphasis */
  --ink-100: #3B2229;  /* strong body text */
  --ink-300: #5F4A45;  /* default paragraph text */
  --ink-500: #8C766E;  /* muted labels / meta */
  --ink-700: #CDBFB6;  /* faint / placeholder text */

  /* legacy aliases kept for inline styles already in the markup */
  --maroon-900: #7A1F34;      /* deep maroon — emphasis text on light cards */
  --maroon-950: #3A0F18;      /* rich maroon — dark panel background */
  --cream-50: #FBF3E8;        /* light text on dark maroon panels */
  --cream-100: #FBF3EC;       /* subtle alt-section background */

  /* signature gradient family — sampled from the union crest */
  --violet-400: #9C3349;
  --violet-500: #7A1F34;
  --violet-600: #5C1725;
  --magenta-400: #B23A4F;
  --magenta-500: #9C2340;
  --gold-300: #A8722C;        /* deep amber — used as readable text */
  --gold-pale: #F0D9A8;       /* pale gold — used for tints only */
  --gold-500: #C68A3A;
  --cyan-300: #17838A;        /* deep teal — readable status text */

  --gradient-signature: linear-gradient(135deg, var(--violet-500) 0%, var(--magenta-500) 52%, var(--gold-500) 100%);
  --gradient-signature-soft: linear-gradient(135deg, rgba(122,31,52,.10) 0%, rgba(156,35,64,.08) 52%, rgba(198,138,58,.10) 100%);

  --sos: #E0293B;

  /* type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: var(--font-body);

  /* geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --container: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
  --shadow-glow: 0 20px 50px -22px rgba(122,31,52,.28);
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 28px -16px rgba(45,18,16,.16);
  --shadow-sm: 0 4px 16px -8px rgba(45,18,16,.12);
  --shadow-md: 0 14px 34px -14px rgba(45,18,16,.18);
  --shadow-lg: 0 30px 70px -22px rgba(45,18,16,.22);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-300);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink-50); line-height: 1.15; }
p { margin: 0 0 1em; color: var(--ink-300); }

em { font-style: italic; background: var(--gradient-signature); -webkit-background-clip: text; background-clip: text; color: transparent; }

::selection { background: var(--violet-500); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg-soft); }

:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Ambient paper grain — subtle, sitewide ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
body > *:not(script) { position: relative; z-index: 1; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-gold, .btn-primary {
  background: var(--gradient-signature);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(122,31,52,.45);
}
.btn-gold:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(122,31,52,.55); }

.btn-ghost {
  background: rgba(255,255,255,.6);
  color: var(--ink-100);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; border-color: var(--violet-400); color: var(--violet-500); }

.btn-outline {
  background: transparent;
  color: var(--violet-500);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-hover); border-color: var(--violet-500); color: var(--violet-600); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ============================================================
   HEADER / NAV — floating glass pill
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0 0;
  transition: padding .3s var(--ease);
}
.site-header.scrolled { padding-top: 10px; }

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--container) - 40px);
  margin: 0 auto;
  padding: 10px 12px 10px 26px;
  height: 68px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 2px rgba(45,18,16,.04), 0 16px 36px -18px rgba(45,18,16,.20);
  transition: box-shadow .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled .nav-row {
  height: 60px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(45,18,16,.05), 0 20px 44px -18px rgba(45,18,16,.28);
}

.brand-cluster { grid-column: 1; display: flex; align-items: center; gap: 10px; }
.brand-cluster img, .portal-brand img, .auth-brand img {
  height: 34px; width: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  position: relative;
  box-shadow: 0 2px 8px rgba(45,18,16,.12);
}
.brand-cluster img:first-child { z-index: 2; }
.brand-cluster img + img { margin-left: -14px; z-index: 1; }
.auth-brand img + img { margin-left: -18px; }
.brand-divider { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 15px; color: var(--ink-50); }
.brand-text span { font-size: 11px; color: var(--ink-500); }

.nav-links { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-300);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--violet-500); background: var(--surface); }
.nav-links a.active { color: var(--violet-500); background: var(--surface-hover); font-weight: 600; }

/* ---------- Nav "About" dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-300);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--violet-500); background: var(--surface); }
.nav-caret { transition: transform .2s var(--ease); }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 10;
}
.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-300);
}
.nav-dropdown-menu a:hover { color: var(--violet-500); background: var(--surface); }
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
}

.nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-50);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 74px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .brand-text span { display: none; }

  .nav-dropdown-trigger { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0 0 4px 10px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 170px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
  filter: brightness(0.85) saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 620px at 8% 0%, rgba(198,138,58,.14), transparent 60%),
    linear-gradient(115deg, rgba(24,9,14,.72) 0%, rgba(58,15,24,.62) 32%, rgba(58,15,24,.4) 58%, rgba(24,9,14,.32) 100%),
    linear-gradient(180deg, rgba(24,9,14,.22) 0%, transparent 20%, transparent 75%, rgba(24,9,14,.38) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  max-width: var(--container);
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; margin-bottom: 20px; color: var(--cream-50); text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero h1 em { color: var(--gold-pale); font-style: italic; }
.hero .lead { font-size: 17px; color: rgba(251,243,232,.86); max-width: 480px; margin-bottom: 32px; }
.hero .eyebrow { color: var(--gold-pale); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

/* ---------- Hero badge (pulse) ---------- */
.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(251,243,232,.28);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 22px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22);
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,.06); }
}

/* ---------- Hero trust row ---------- */
.hero-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: rgba(251,243,232,.85); }
.trust-icon { display: flex; color: var(--gold-pale); flex-shrink: 0; }
.trust-icon svg { width: 15px; height: 15px; }
.trust-divider { width: 1px; height: 16px; background: rgba(251,243,232,.28); }

/* ---------- Hero visual: rotating union seal + floating badges ---------- */
.hero-art { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-seal {
  width: 340px; height: 340px;
  border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(from 0deg, var(--violet-500), var(--magenta-500), var(--gold-500), var(--violet-500));
  animation: spin-slow 18s linear infinite;
  box-shadow: 0 30px 80px -20px rgba(122,31,52,.35), 0 0 0 10px #fff, 0 0 0 11px var(--border);
}
.hero-seal::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: #fff;
}
.hero-seal::after {
  content: "";
  position: absolute; inset: -30px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spin-slow-rev 40s linear infinite;
}
.hero-seal-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: spin-slow-rev 18s linear infinite;
}
.hero-seal-inner img {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(45,18,16,.18);
}

@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-rev { to { transform: rotate(-360deg); } }

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  white-space: nowrap;
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-float-card .fc-icon { display: flex; color: var(--violet-500); flex-shrink: 0; }
.hero-float-card .fc-icon svg { width: 19px; height: 19px; }
.hero-float-card > div { display: flex; flex-direction: column; gap: 1px; }
.hero-float-card strong { font-size: 12.5px; font-weight: 700; color: var(--ink-50); }
.hero-float-card span:last-child { font-size: 11px; color: var(--ink-500); }

.fc-1 { top: -14px; left: -36px; animation-delay: 0s; animation-duration: 6s; }
.fc-2 { bottom: 4px; left: -46px; animation-delay: 1s; animation-duration: 7s; }
.fc-3 { top: 44%; right: -40px; animation-delay: 2s; animation-duration: 5.5s; }

@media (max-width: 1020px) {
  .hero-content { grid-template-columns: 1fr; text-align: left; }
  .hero-text { display: flex; flex-direction: column; align-items: flex-start; }
  .hero .lead { margin-left: 0; margin-right: 0; }
  .hero-actions, .hero-badge-top { justify-content: flex-start; }
  .hero-trust {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-trust::-webkit-scrollbar { display: none; }
  .trust-item { flex-shrink: 0; }
  .hero-art { justify-content: flex-start; margin-top: 14px; }
  .hero-seal { display: none; }
  .hero-float-card {
    position: static;
    animation: none;
    padding: 10px 14px;
    font-size: 12.5px;
    flex: 1 1 auto;
    box-sizing: border-box;
    justify-content: flex-start;
  }
  .hero-art {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    overflow: visible;
  }
}
@media (max-width: 900px) {
  .hero { padding: 140px 0 60px; }
  .hero-seal { width: 240px; height: 240px; }
  .hero-seal-inner img { width: 84px; height: 84px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; align-items: flex-start; padding: 220px 0 26px; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 12px; }
  .hero .lead { font-size: 14.5px; margin-bottom: 20px; }
  .hero-badge-top { margin-bottom: 14px; font-size: 12px; }
  .hero-actions { flex-wrap: nowrap; margin-bottom: 16px; gap: 8px; }
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
  .hero-trust { gap: 10px; margin-bottom: 3px; }
  .trust-item { font-size: 11.5px; gap: 5px; }
  .hero-art { margin-top: 8px; margin-bottom: 0; gap: 7px; }
  .hero-float-card { padding: 8px 10px; font-size: 10.5px; gap: 7px; }
  .hero-float-card .fc-icon svg { width: 14px; height: 14px; }
  .hero-float-card strong { font-size: 10.5px; }
  .hero-float-card span:last-child { font-size: 9px; }
}

/* ---------- Ticker ---------- */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-300);
  white-space: nowrap;
}
.ticker-track .dot { color: var(--magenta-500); font-size: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS / SHARED LAYOUT
   ============================================================ */
section { padding: 90px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.section-head p { max-width: 380px; margin: 0; font-size: 14.5px; }

.arch-divider {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.arch-divider::before, .arch-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.arch-divider span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .arch-divider::before { display: none; }
  .arch-divider { padding: 0 18px; }
}

/* ---------- Pathways ---------- */
.pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pathway-card {
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pathway-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-signature);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.pathway-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.pathway-card:hover::after { transform: scaleX(1); }
.pathway-card h3 { font-size: 17px; margin-bottom: 8px; }
.pathway-card p { font-size: 13.5px; margin: 0; }
.icon-badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-signature);
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  margin-bottom: 18px;
}

@media (max-width: 900px) { .pathways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pathways { grid-template-columns: 1fr; } }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat-cell {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--gradient-signature);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px;
}
.stat-cell span { font-size: 12.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }

@media (max-width: 720px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-bottom: 1px solid var(--border); }
}

/* ---------- Card grid / info cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: block;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.info-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-signature);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.info-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.info-card:hover::after { transform: scaleX(1); }
.info-card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface); }
.info-card-body { padding: 22px 22px 24px; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p { font-size: 13.5px; margin-bottom: 16px; }
.info-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
}

.tag {
  display: inline-flex;
  align-items: center;
  margin: 18px 0 0 18px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(122,31,52,.08);
  color: var(--violet-500);
  border: 1px solid rgba(122,31,52,.22);
}
.tag-open { background: rgba(23,131,138,.10); color: var(--cyan-300); border-color: rgba(23,131,138,.28); }
.tag-closed { background: rgba(224,41,59,.09); color: #C22636; border-color: rgba(224,41,59,.25); }
.tag-pending { background: rgba(168,114,44,.12); color: var(--gold-300); border-color: rgba(168,114,44,.28); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-500);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: rgba(122,31,52,.02);
}

/* ---------- Executives ---------- */
.exec-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 420px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.exec-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.exec-avatar {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-signature);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: #fff;
}
.exec-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.exec-card h3 { font-size: 16.5px; margin: 16px 16px 2px; }
.exec-role { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-300); margin: 0 16px 14px; }
.exec-socials { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 18px; }
.exec-social-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-500);
  transition: color .2s, background .2s, border-color .2s;
}
.exec-social-btn:hover { color: var(--violet-500); background: var(--surface-hover); border-color: var(--border-strong); }
.exec-social-btn svg { width: 15px; height: 15px; }

@media (max-width: 600px) { .exec-card { height: 360px; } }

@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Blog article (full story) ---------- */
.article-shell { max-width: 760px; margin: 0 auto; padding: 48px 28px 80px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-500); margin-bottom: 22px; }
.article-back:hover { color: var(--violet-500); }
.article-header .tag { margin: 0 0 16px; }
.article-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-500); margin-bottom: 28px; }
.article-meta span + span::before { content: "·"; margin-right: 10px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 32px; }
.article-body { font-size: 15.5px; line-height: 1.8; color: var(--ink-100); }
.article-body p { margin-bottom: 18px; white-space: pre-line; }

/* ---------- Doc list ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.doc-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateX(4px); }
.doc-info { display: flex; flex-direction: column; gap: 2px; }
.doc-info strong { font-size: 14.5px; color: var(--ink-50); font-weight: 600; }
.doc-info span { font-size: 12.5px; color: var(--ink-500); }

/* On the dark CTA-band documents section (home page), doc-rows need a
   surface that reads on a maroon background rather than white-on-white. */
#documents .doc-row {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
#documents .doc-row:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
#documents .doc-info strong { color: var(--cream-50); }
#documents .doc-info span { color: rgba(251,243,232,.65); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 150px 0 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 560px; height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(122,31,52,.08) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 640px; position: relative; }
.page-hero p { max-width: 560px; font-size: 15.5px; position: relative; }

/* ---------- Tabs ---------- */
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-300);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tab-btn:hover { border-color: var(--border-strong); color: var(--violet-500); }
.tab-btn.active { background: var(--gradient-signature); color: #fff; border-color: transparent; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 20px 60px;
  background:
    radial-gradient(600px 420px at 12% 0%, rgba(122,31,52,.06), transparent 60%),
    radial-gradient(600px 420px at 88% 100%, rgba(198,138,58,.08), transparent 60%);
}
.form-shell {
  width: 100%; max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.auth-brand img { height: 52px; width: 52px; }
.auth-brand img:first-child { z-index: 2; }
.auth-brand img:last-child { z-index: 1; }

.role-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 22px;
}
.role-toggle button {
  flex: 1;
  border: none;
  background: none;
  color: var(--ink-300);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.role-toggle button:hover { color: var(--violet-500); }
.role-toggle button.active { background: var(--gradient-signature); color: #fff; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-500);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink-50);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-700); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(122,31,52,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 0; }
.field-row + .field { margin-top: 18px; }

.form-note { text-align: center; font-size: 13.5px; color: var(--ink-500); margin-top: 6px; }
.form-note a { color: var(--violet-400); font-weight: 600; }
.form-note a:hover { color: var(--violet-600); }

.alert-box {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-box.show { display: block; }
.alert-box.error { background: rgba(224,41,59,.06); border-color: rgba(224,41,59,.28); color: #C22636; }
.alert-box.success { background: rgba(23,131,138,.08); border-color: rgba(23,131,138,.28); color: var(--cyan-300); }

@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 18px; } }

/* ============================================================
   PORTAL SHELL (dashboard / complaints / admin etc.)
   ============================================================ */
.portal-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; padding-top: 78px; background: var(--bg-soft); }

.portal-side {
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  display: flex; flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  overflow-y: auto;
  background: #fff;
}
.portal-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.portal-brand img { height: 30px; width: 30px; }
.portal-brand strong { font-family: var(--font-display); font-size: 14px; margin-left: 2px; }

.portal-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.portal-nav a {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-300);
  transition: background .2s, color .2s;
}
.portal-nav a:hover { background: var(--surface); color: var(--violet-500); }
.portal-nav a.active { background: var(--gradient-signature-soft); color: var(--violet-600); border: 1px solid var(--border-strong); font-weight: 700; }

.portal-user {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.portal-user strong { font-size: 13.5px; color: var(--ink-50); }
.portal-user span { font-size: 12px; color: var(--ink-500); }

.portal-main { padding: 34px 40px 60px; min-width: 0; background: var(--bg); }
.portal-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.portal-header h1 { font-size: 1.7rem; margin: 0; }

.mini-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.mini-stat {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.mini-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 4px; background: var(--gradient-signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-stat span { font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ---------- Mobile drawer trigger + backdrop (injected by layout.js) ---------- */
.portal-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  position: fixed;
  top: 88px;
  left: 16px;
  z-index: 220;
  height: 42px;
  padding: 0 16px 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.25);
  background: var(--maroon-950);
  box-shadow: 0 10px 26px -8px rgba(45,18,16,.45);
  color: var(--cream-50);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.portal-nav-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.portal-nav-toggle.is-open { display: none !important; }

.portal-side-close {
  display: none;
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--ink-500);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px 0 4px;
  margin-bottom: -10px;
}

.portal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 14, .45);
  z-index: 195;
}
.portal-overlay.open { display: block; }

body.portal-nav-locked { overflow: hidden; }

@media (max-width: 980px) {
  .portal-shell { grid-template-columns: 1fr; z-index: auto; }

  .portal-nav-toggle { display: flex; }
  .portal-side-close { display: inline-flex; }

  .portal-side {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 272px;
    max-width: 82vw;
    transform: translateX(-100%);
    transition: transform .28s var(--ease);
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 16px 0 40px rgba(45,18,16,.25);
    background: var(--maroon-950) !important;
    opacity: 1 !important;
    border-right: none;
  }
  .portal-side .portal-nav a { color: rgba(251,243,232,.8); }
  .portal-side .portal-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .portal-side .portal-nav a.active { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
  .portal-side .portal-user { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
  .portal-side .portal-user strong { color: #fff; }
  .portal-side .portal-user span { color: rgba(251,243,232,.65); }
  .portal-side .portal-side-close { color: rgba(251,243,232,.8); }
  .portal-side.open { transform: translateX(0); }
  .portal-nav { flex-direction: column; }
  .portal-user { display: flex; }

  .mini-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-main { padding: 78px 20px 50px; }
}

/* ---------- Tables ---------- */
.table-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
tbody td { padding: 15px 20px; font-size: 13.5px; color: var(--ink-100); border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface); }

.badge {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid;
}
.badge.pending { background: rgba(168,114,44,.10); color: var(--gold-300); border-color: rgba(168,114,44,.28); }
.badge.resolved { background: rgba(23,131,138,.10); color: var(--cyan-300); border-color: rgba(23,131,138,.28); }
.badge.closed { background: rgba(45,18,16,.05); color: var(--ink-500); border-color: var(--border-strong); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 10, 14, .5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98);
  transition: transform .25s var(--ease);
}
.modal-backdrop.open .modal-box { transform: translateY(0) scale(1); }

.thread { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.thread-msg {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-100);
  align-self: flex-start;
  max-width: 92%;
}
.thread-msg span { display: block; font-size: 10.5px; color: var(--ink-500); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.thread-msg.staff { align-self: flex-end; background: var(--gradient-signature-soft); border-color: var(--border-strong); }

/* ============================================================
   SOS
   ============================================================ */
.sos-btn {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--sos);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  box-shadow: 0 0 0 0 rgba(224,41,59,.5), 0 12px 30px -8px rgba(224,41,59,.55);
  animation: sos-pulse 2.4s ease-out infinite;
}
@keyframes sos-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,41,59,.45), 0 12px 30px -8px rgba(224,41,59,.55); }
  70% { box-shadow: 0 0 0 16px rgba(224,41,59,0), 0 12px 30px -8px rgba(224,41,59,.55); }
  100% { box-shadow: 0 0 0 0 rgba(224,41,59,0), 0 12px 30px -8px rgba(224,41,59,.55); }
}

.sos-modal-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(30,10,14,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.sos-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.sos-modal {
  width: 100%; max-width: 400px;
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF3F4 100%);
  border: 1px solid rgba(224,41,59,.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.sos-icon-lg {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224,41,59,.1);
  color: var(--sos);
  font-size: 26px;
  border: 1px solid rgba(224,41,59,.3);
}
.sos-actions { display: flex; gap: 10px; margin-top: 18px; }
.sos-actions .btn { flex: 1; }
.sos-status { margin-top: 14px; font-size: 13px; color: var(--ink-500); min-height: 18px; }

.sos-toast {
  position: fixed;
  top: 90px; right: 24px;
  z-index: 260;
  width: min(340px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid rgba(224,41,59,.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transform: translateX(120%);
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.sos-toast.show { transform: translateX(0); }
.sos-toast strong { display: block; color: var(--sos); font-size: 13.5px; margin-bottom: 4px; }
.sos-toast p { margin: 0; font-size: 13px; color: var(--ink-300); }
.sos-toast-actions { margin-top: 10px; }
.sos-toast-actions a { font-size: 12.5px; font-weight: 600; color: var(--sos); }
.sos-toast-actions a:hover { text-decoration: underline; }

.sos-nearby-panel {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 240;
  width: min(340px, calc(100vw - 40px));
  max-height: 320px;
  background: #fff;
  border: 1px solid rgba(224,41,59,.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sos-nearby-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sos-nearby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(224,41,59,.2);
}
.sos-nearby-header strong { color: var(--sos); font-size: 13.5px; }
.sos-nearby-close {
  background: none; border: none; cursor: pointer;
  color: var(--ink-500); font-size: 18px; line-height: 1;
  padding: 2px 6px;
}
.sos-nearby-close:hover { color: var(--ink-50); }
.sos-nearby-list { overflow-y: auto; padding: 6px; }
.sos-nearby-item {
  position: relative;
  padding: 10px 30px 10px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sos-nearby-dismiss {
  position: absolute;
  top: 6px; right: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--ink-500); font-size: 16px; line-height: 1;
  padding: 2px 6px;
}
.sos-nearby-dismiss:hover { color: var(--ink-50); }
.sos-nearby-item + .sos-nearby-item { margin-top: 4px; border-top: 1px solid var(--border); }
.sos-nearby-item.closest {
  background: rgba(224,41,59,.06);
  border: 1px solid rgba(224,41,59,.25);
}
.sos-nearby-info strong { display: block; font-size: 13px; color: var(--ink-50); }
.sos-nearby-info span { font-size: 12px; color: var(--ink-500); }
.sos-nearby-actions { display: flex; gap: 14px; }
.sos-nearby-actions a { font-size: 12px; font-weight: 600; color: var(--sos); }
.sos-nearby-actions a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .sos-btn { width: 52px; height: 52px; font-size: 11px; right: 16px; bottom: 16px; }
  .sos-toast { right: 12px; left: 12px; width: auto; top: 80px; }
  .sos-nearby-panel { left: 12px; right: 12px; width: auto; bottom: 88px; }
}

/* ============================================================
   FOOTER — kept deep maroon, a deliberate dark bookend against
   the otherwise white/cream site.
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 64px 0 26px;
  background: var(--maroon-950);
}
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(251,243,232,.55); margin-bottom: 16px; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid li, .footer-grid a { font-size: 14px; color: rgba(251,243,232,.72); }
.footer-grid a:hover { color: var(--gold-pale); }
.footer-grid p { color: rgba(251,243,232,.65); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: rgba(251,243,232,.45);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.armed { opacity: 0; transform: translateY(18px); }
.reveal.armed.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE TYPE / SECTION PADDING
   ============================================================ */
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .container { padding: 0 18px; }
}

/* ============================================================
   PHOTO CAROUSEL (for About page: "Where We Came From",
   "History of George Iwilade Afrika", etc.)
   ============================================================ */
.photo-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--bg-soft);
}
.photo-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.photo-carousel-track::-webkit-scrollbar { display: none; }
.photo-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4 / 3;
}
.photo-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(36,16,25,.75), transparent);
  color: var(--cream-50);
  font-size: 13px;
  font-weight: 500;
}
.photo-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.photo-carousel-nav svg { width: 18px; height: 18px; color: var(--ink-50); }
.photo-carousel-nav.prev { left: 12px; }
.photo-carousel-nav.next { right: 12px; }
.photo-carousel-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.photo-carousel-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.photo-carousel-dots button.active { background: var(--gold-500); width: 18px; border-radius: 4px; }

@media (max-width: 640px) {
  .photo-carousel-nav { width: 30px; height: 30px; }
  .photo-carousel-nav svg { width: 15px; height: 15px; }
  .photo-carousel-caption { font-size: 12px; padding: 14px 16px; }
}

/* ============================================================
   STUDENT DASHBOARD: profile card + counsellor referral
   ============================================================ */
.student-profile-card {
  display: flex;
  gap: 26px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.student-profile-photo-wrap { position: relative; flex-shrink: 0; margin-bottom: 4px; }
.student-profile-photo {
  width: 150px; height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gradient-signature);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: #fff;
}
.student-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.student-photo-upload-btn {
  position: absolute;
  bottom: -8px; right: -8px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-500);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.student-photo-upload-btn:hover { transform: scale(1.06); background: var(--bg-soft); }
.student-photo-upload-btn svg { width: 16px; height: 16px; }
.student-photo-upload-btn.uploading { pointer-events: none; opacity: .6; }
.student-profile-info { flex: 1; min-width: 240px; }
.student-profile-info h2 { font-size: 19px; margin-bottom: 2px; }
.student-profile-info .matric { font-size: 13px; color: var(--ink-500); font-family: var(--font-mono); }
.student-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  margin-top: 18px;
}
.student-info-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.student-info-item span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-500);
}
.student-info-item strong { font-size: 14px; color: var(--ink-50); font-weight: 600; word-break: break-word; }
.student-photo-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  pointer-events: none;
}
.student-photo-status.error { color: #C0342A; }
.student-photo-status.success { color: var(--cyan-300); }

@media (max-width: 720px) {
  .student-profile-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .student-info-grid { grid-template-columns: repeat(2, 1fr); }
  .student-profile-photo { width: 120px; height: 120px; font-size: 36px; }
}
@media (max-width: 420px) {
  .student-info-grid { grid-template-columns: 1fr; }
}

.counsellor-card {
  background: var(--maroon-950);
  color: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 34px;
}
.counsellor-card .eyebrow { color: var(--gold-pale); }
.counsellor-card h2 { color: var(--cream-50); font-size: 19px; margin-bottom: 8px; }
.counsellor-card p { color: rgba(251,246,236,.82); font-size: 14px; max-width: 640px; margin: 0 0 6px; }
.counsellor-trust {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--gold-pale);
  margin: 16px 0 20px;
}
.counsellor-trust svg { width: 16px; height: 16px; flex-shrink: 0; }
.counsellor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.counsellor-frame-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: #fff;
}
.counsellor-frame {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}
@media (max-width: 720px) {
  .counsellor-card { padding: 22px; }
  .counsellor-frame { height: 520px; }
}

/* Compact "Talk to a Counsellor" promo link used on the dashboard,
   pointing through to the dedicated counsellor.html page. */
.counsellor-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--maroon-950);
  color: var(--cream-50);
  text-decoration: none;
  margin-bottom: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.counsellor-promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.counsellor-promo-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-pale);
}
.counsellor-promo-icon svg { width: 20px; height: 20px; }
.counsellor-promo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.counsellor-promo-text strong { font-size: 14.5px; font-weight: 700; }
.counsellor-promo-text span { font-size: 12.5px; color: rgba(251,246,236,.75); }
.counsellor-promo-arrow { font-size: 18px; color: var(--gold-pale); flex-shrink: 0; }
@media (max-width: 480px) {
  .counsellor-promo { padding: 16px 18px; }
  .counsellor-promo-text strong { font-size: 13.5px; }
  .counsellor-promo-text span { font-size: 11.5px; }
}

/* ============================================================
   RIDE BOARDING SLIP
   ============================================================ */
.slip-wrap { max-width: 560px; margin: 0 auto; }
.slip-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.slip-header {
  background: var(--maroon-950);
  color: var(--cream-50);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.slip-header .eyebrow { color: var(--gold-pale); margin-bottom: 4px; }
.slip-header h1 { color: var(--cream-50); font-size: 21px; margin: 0; }
.slip-status {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--gold-pale);
  font-size: 12.5px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.slip-status svg { width: 14px; height: 14px; }
.slip-body { padding: 28px; }
.slip-route {
  text-align: center;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}
.slip-route .from-to { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--maroon-900); }
.slip-route .bus-seat { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.slip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin-bottom: 24px; }
.slip-field span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 3px; }
.slip-field strong { font-size: 14.5px; color: var(--ink-50); }
.slip-baggage {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-50);
}
.slip-baggage strong { display: block; margin-bottom: 4px; font-size: 13px; }
.slip-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-500);
  flex-wrap: wrap;
}
.slip-actions { max-width: 560px; margin: 18px auto 0; display: flex; justify-content: center; }

@media print {
  header, .portal-side, .slip-actions, .no-print { display: none !important; }
  body { background: #fff !important; }
  .slip-wrap { max-width: 100%; margin: 0; }
  .slip-card { border: none; box-shadow: none; }
}

/* ============================================================
   PROGRAM DETAILS PAGE
   ============================================================ */
.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.detail-card h1 { font-size: 25px; margin: 10px 0 14px; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-500); font-size: 13px; margin-bottom: 22px; }
.detail-description { font-size: 15px; line-height: 1.75; color: var(--ink-50); white-space: pre-wrap; margin-bottom: 28px; }
.register-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.register-box strong { display: block; font-size: 14px; margin-bottom: 4px; }
.register-box p { font-size: 13px; color: var(--ink-500); margin: 0 0 14px; }
.register-status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--maroon-900); font-weight: 700; font-size: 13.5px;
}
.register-status svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .detail-card { padding: 22px; }
}

/* Two-column layout for About page sections: text alongside a photo carousel */
.about-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.about-split .photo-carousel { position: sticky; top: 90px; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 24px; }
  .about-split .photo-carousel { position: static; }
}
