/* ── SCOTSA Platform Design System — Premium Edition ──────────
   Colors: Royal Blue #0A1F44  |  Gold #D4AF37  |  Ink #0F172A
   Fonts: DM Sans (headings) · Lato (body) — matches wiuc-ghana.edu.gh
──────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════════════ */
:root {
    /* Brand */
    --royal:      #0A1F44;
    --royal-deep: #07172f;
    --royal-hover:#0d2a5c;
    --gold:       #D4AF37;
    --gold-hover: #b8961e;
    --gold-light: rgba(212,175,55,.12);
    /* Same hue as --gold, darkened to pass WCAG AA (4.5:1) as text on a
       light background — --gold itself is only ~2.1:1 on white, which
       fails for small/bold text like .eyebrow. Reserve --gold for fills,
       borders, and text on dark backgrounds, where it already passes. */
    --gold-text:  #8C6D08;
    --ink:        #0F172A;

    /* Surfaces (light) */
    --bg-base:    #ffffff;
    --bg-surface: #ffffff;
    --bg-muted:   #f8fafc;
    --bg-subtle:  #f1f5f9;
    --border-soft: rgb(226 232 240);
    --border-muted: rgb(241 245 249);

    /* Text (light) */
    --text-primary:   #0F172A;
    --text-secondary: rgb(100 116 139);
    --text-muted:     rgb(148 163 184);

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-card: 0 4px 16px rgba(10,31,68,.07);
    --shadow-lift: 0 20px 48px rgba(10,31,68,.13);
    --shadow-glow: 0 0 0 3px rgba(10,31,68,.10);

    /* Easing */
    --ease-out:    cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --ease-smooth: cubic-bezier(.25,.46,.45,.94);
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE TOKENS + OVERRIDES
════════════════════════════════════════════════════════════ */
[data-theme="dark"],
.dark {
    color-scheme: dark;
    --bg-base:    #0b1120;
    --bg-surface: #111827;
    --bg-muted:   #0f172a;
    --bg-subtle:  #1a2236;
    --border-soft:  rgba(255,255,255,.09);
    --border-muted: rgba(255,255,255,.05);
    --text-primary:   #e2e8f0;
    --text-secondary: rgba(226,232,240,.62);
    --text-muted:     rgba(226,232,240,.36);
    --shadow-card: 0 4px 16px rgba(0,0,0,.35);
    --shadow-lift: 0 20px 48px rgba(0,0,0,.50);
    --shadow-glow: 0 0 0 3px rgba(255,255,255,.06);
}

/* ── Body + global transitions ──────────────────────────── */
body {
    transition: background-color 220ms ease, color 220ms ease;
}
[data-theme="dark"] body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}


/* ── Navbar — covers opacity-modifier classes ───────────── */
[data-theme="dark"] header,
.dark header {
    background-color: rgba(11,17,32,.97) !important;
    border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] .nav-link { color: rgba(226,232,240,.65) !important; }
[data-theme="dark"] .nav-link:hover,
.dark .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.07) !important;
}
[data-theme="dark"] .nav-link.active,
.dark .nav-link.active {
    color: var(--gold) !important;
    background: rgba(212,175,55,.10) !important;
}
[data-theme="dark"] [data-mobile-menu],
.dark [data-mobile-menu] {
    background: #111827 !important;
    border-color: rgba(255,255,255,.07) !important;
}
[data-theme="dark"] [data-mobile-menu] a { color: rgba(226,232,240,.7) !important; }
[data-theme="dark"] [data-mobile-menu] a:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }

/* ── White / light surfaces ─────────────────────────────── */
[data-theme="dark"] .bg-white        { background-color: var(--bg-surface) !important; }
[data-theme="dark"] .bg-slate-50     { background-color: var(--bg-muted)   !important; }
[data-theme="dark"] .bg-slate-100    { background-color: var(--bg-subtle)  !important; }

/* Tailwind opacity-modifier variants — these generate different class names */
[data-theme="dark"] .bg-white\/96,
[data-theme="dark"] .bg-white\/95,
[data-theme="dark"] .bg-white\/90,
[data-theme="dark"] .bg-white\/80 { background-color: rgba(11,17,32,.97) !important; }
[data-theme="dark"] .bg-slate-50\/70,
[data-theme="dark"] .bg-slate-50\/80 { background-color: var(--bg-muted) !important; }

/* Hover state variants */
[data-theme="dark"] .hover\:bg-slate-50:hover,
.dark .hover\:bg-slate-50:hover  { background-color: rgba(255,255,255,.04) !important; }
[data-theme="dark"] .hover\:bg-slate-100:hover,
.dark .hover\:bg-slate-100:hover { background-color: rgba(255,255,255,.07) !important; }

/* Active nav link with opacity modifier */
[data-theme="dark"] .bg-blue-50\/70 { background-color: rgba(212,175,55,.10) !important; }

/* ── Borders ─────────────────────────────────────────────── */
[data-theme="dark"] .border-slate-200        { border-color: var(--border-soft) !important; }
[data-theme="dark"] .border-slate-100        { border-color: var(--border-muted) !important; }
[data-theme="dark"] .border-slate-200\/70,
[data-theme="dark"] .border-slate-200\/50    { border-color: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .border-slate-300        { border-color: rgba(255,255,255,.12) !important; }
[data-theme="dark"] .section-divider {
    background: linear-gradient(to right, transparent, rgba(255,255,255,.08) 25%, rgba(255,255,255,.08) 75%, transparent);
}

/* ── Text ────────────────────────────────────────────────── */
[data-theme="dark"] .text-ink,
[data-theme="dark"] .text-slate-900,
[data-theme="dark"] .text-slate-800,
[data-theme="dark"] .text-slate-700 { color: var(--text-primary)   !important; }
[data-theme="dark"] .text-slate-600,
[data-theme="dark"] .text-slate-500 { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-slate-400,
[data-theme="dark"] .text-slate-300 { color: var(--text-muted)     !important; }

/* scotsaBlue text becomes white in dark */
[data-theme="dark"] .text-scotsaBlue { color: rgba(147,197,253,.90) !important; }
[data-theme="dark"] a.hover\:underline.text-scotsaBlue:hover { color: #93c5fd !important; }

/* ── Cards ───────────────────────────────────────────────── */
[data-theme="dark"] .card-hover {
    background-color: var(--bg-surface) !important;
    border-color:     var(--border-soft) !important;
}
[data-theme="dark"] .card-hover:hover {
    border-color: rgba(212,175,55,.25) !important;
    background-color: rgba(255,255,255,.02) !important;
}
[data-theme="dark"] .contact-card {
    background:   var(--bg-surface) !important;
    border-color: var(--border-soft) !important;
    color:        var(--text-primary) !important;
}

/* ── Forms ───────────────────────────────────────────────── */
[data-theme="dark"] .form-input {
    background:   var(--bg-subtle) !important;
    border-color: rgba(255,255,255,.12) !important;
    color:        var(--text-primary) !important;
}
[data-theme="dark"] .form-input:focus {
    border-color: var(--royal-hover) !important;
    box-shadow:   0 0 0 3px rgba(13,42,92,.5) !important;
}
[data-theme="dark"] .form-input::placeholder { color: rgba(226,232,240,.30) !important; }
[data-theme="dark"] .form-input option { background: #1a2236; }

/* ── Filter + sticky bars ────────────────────────────────── */
[data-theme="dark"] .sticky.bg-white,
[data-theme="dark"] .border-b.bg-white.shadow-sm {
    background:   #111827 !important;
    border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] .filter-tab {
    border-color: rgba(255,255,255,.10) !important;
    color:        rgba(226,232,240,.55) !important;
    background:   transparent !important;
}
[data-theme="dark"] .filter-tab:hover,
[data-theme="dark"] .filter-tab.filter-active {
    background:   var(--royal-hover) !important;
    border-color: var(--royal-hover) !important;
    color: #fff !important;
}

/* ── Badge / pill backgrounds ────────────────────────────── */
[data-theme="dark"] .bg-blue-50    { background: rgba(59,130,246,.14) !important; }
[data-theme="dark"] .bg-amber-50   { background: rgba(245,158,11,.14) !important; }
[data-theme="dark"] .bg-purple-50  { background: rgba(139,92,246,.14) !important; }
[data-theme="dark"] .bg-emerald-50 { background: rgba(16,185,129,.14) !important; }
[data-theme="dark"] .bg-blue-100   { background: rgba(59,130,246,.20) !important; }
[data-theme="dark"] .bg-red-50     { background: rgba(239,68,68,.12) !important; }
[data-theme="dark"] .bg-red-100    { background: rgba(239,68,68,.18) !important; }

/* ── Empty / dashed states ───────────────────────────────── */
[data-theme="dark"] .border-dashed.bg-slate-50,
[data-theme="dark"] .border-dashed { border-color: rgba(255,255,255,.12) !important; }
[data-theme="dark"] .border-dashed.bg-slate-50 { background: rgba(255,255,255,.03) !important; }
[data-theme="dark"] .border-dashed.border-slate-300 { border-color: rgba(255,255,255,.14) !important; }

/* ── Admin panel ─────────────────────────────────────────── */
[data-theme="dark"] .bg-slate-50.text-left.text-xs { background: var(--bg-subtle) !important; }

/* Admin table rows */
[data-theme="dark"] tbody tr.border-t  { border-color: var(--border-muted) !important; }
[data-theme="dark"] tbody tr:hover      { background: rgba(255,255,255,.025) !important; }
[data-theme="dark"] thead tr,
[data-theme="dark"] .bg-slate-50.text-xs { background: var(--bg-subtle) !important; }

/* Admin content wrapper (the white main area) */
[data-theme="dark"] .rounded-lg.border.border-slate-200.bg-white {
    background:   var(--bg-surface) !important;
    border-color: var(--border-soft) !important;
}

/* Admin top bar */
[data-theme="dark"] header.sticky.top-0.z-40 {
    background:   #111827 !important;
    border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] header.sticky.top-0.z-40 h1 { color: var(--text-primary) !important; }
[data-theme="dark"] header.sticky.top-0.z-40 p   { color: var(--text-secondary) !important; }

/* Admin topbar buttons */
[data-theme="dark"] .rounded-lg.border.border-slate-200:not(input):not(select):not(textarea) {
    border-color: var(--border-soft) !important;
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .hover\:bg-slate-50:hover:not(input):not(select) {
    background: rgba(255,255,255,.05) !important;
}

/* Admin body background */
[data-theme="dark"] body.bg-slate-100 { background-color: #0b1120 !important; }

/* ── Announcement card dark ──────────────────────────────── */
[data-theme="dark"] .ann-card {
    border-color: var(--border-soft) !important;
    background: var(--bg-surface) !important;
}
[data-theme="dark"] .ann-card:hover { border-color: rgba(212,175,55,.25) !important; }

/* ── Theme icon visibility ───────────────────────────────── */
[data-theme="dark"] [data-theme-sun],
.dark [data-theme-sun]              { display: block; }
[data-theme="dark"] [data-theme-moon],
.dark [data-theme-moon]             { display: none; }
[data-theme-sun]                    { display: none; }
[data-theme-moon]                   { display: block; }

/* ── SweetAlert2 dark mode (already defined in later block) ─ */

/* ═══════════════════════════════════════════════════════════
   GLOBAL BASE
════════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* Page enter animation */
body.page-entering { animation: pageEnter 380ms var(--ease-out) forwards; }
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.nav-link {
    position: relative;
    border-radius: 0.5rem;
    transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover { color: var(--royal); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 70%; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 220ms var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--royal); font-weight: 700; }

/* Dark mode toggle */
.theme-toggle {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    border: 1.5px solid var(--border-soft);
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease-spring);
    color: var(--text-secondary);
}
.theme-toggle:hover {
    background: var(--bg-subtle);
    border-color: rgba(10,31,68,.20);
    color: var(--royal);
    transform: rotate(15deg);
}
[data-theme="dark"] .theme-toggle {
    border-color: rgba(255,255,255,.12) !important;
    color: rgba(226,232,240,.65) !important;
}
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255,255,255,.08) !important;
    color: var(--gold) !important;
    border-color: rgba(212,175,55,.35) !important;
}

/* Mobile nav hamburger — opens #sidebar (assets/js/main.js "OFF-CANVAS
   SIDEBAR"). Same footprint as .theme-toggle for a consistent header row.
   display/place-items deliberately left to Tailwind utilities on the
   element itself (not set here) so lg:hidden — same specificity, but
   defined earlier in the cascade (tailwind.css loads before styles.css) —
   isn't silently overridden back to visible by a same-specificity rule
   that appears later in source order. */
.nav-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    border: 1.5px solid var(--border-soft);
    background: transparent;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
    color: var(--text-secondary);
}
.nav-toggle:hover { background: var(--bg-subtle); border-color: rgba(10,31,68,.20); color: var(--royal); }
[data-theme="dark"] .nav-toggle { border-color: rgba(255,255,255,.12) !important; color: rgba(226,232,240,.65) !important; }
[data-theme="dark"] .nav-toggle:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }

/* Mobile menu slide animation */
[data-mobile-menu] {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 300ms var(--ease-out), opacity 260ms ease;
}
[data-mobile-menu].open {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   HERO — HOMEPAGE CAROUSEL
   Slides are stacked, absolutely-positioned background photos that
   cross-fade via opacity (assets/js/main.js "HERO CAROUSEL" block);
   the tint/vignette lives on a separate .hero-overlay layer on top of
   the slides so it stays constant while photos rotate underneath it.
════════════════════════════════════════════════════════════ */
.hero-grid {
    /* Solid fallback so the navy look stays opaque before any slide has
       loaded, or if no hero_slides rows exist yet. */
    background-color: #0A1F44;
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 900ms ease;
}
.hero-slide.active {
    opacity: 1;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(140deg, rgba(10,31,68,.62) 0%, rgba(7,23,47,.56) 50%, rgba(13,42,92,.50) 100%),
        radial-gradient(ellipse at 78% 10%, rgba(212,175,55,.28) 0%, transparent 52%),
        radial-gradient(ellipse at 20% 80%, rgba(10,31,68,.45) 0%, transparent 50%);
}

/* Overlay is lighter now so the photo actually shows through; give the
   white copy a shadow so it still reads clearly over a busy photo. */
.hero-grid h1,
.hero-grid p,
.hero-grid .eyebrow {
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

/* Dots + arrows */
.hero-dots {
    display: flex;
    gap: 0.5rem;
}
.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 200ms var(--ease-out);
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.active {
    width: 1.5rem;
    background: #D4AF37;
}
.hero-arrow {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    color: white;
    cursor: pointer;
    transition: all 200ms var(--ease-out);
    backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(212,175,55,.5);
}

/* ═══════════════════════════════════════════════════════════
   SECTION TINT — alternates with plain white down the page so it
   doesn't read as one unbroken white sheet. Full-bleed background;
   the section's own inner wrapper keeps content at max-w-7xl.
════════════════════════════════════════════════════════════ */
.section-tint {
    background-color: #E7ECF6;
}
[data-theme="dark"] .section-tint {
    background-color: #131C33;
}
.section-plain {
    background-color: #ffffff;
}
[data-theme="dark"] .section-plain {
    background-color: #0b1120;
}

/* Navy full-bleed section — a "spotlight" band using the same brand
   navy as the hero, for the occasional section that should stand out
   rather than just alternate white/tint. Only the specific text
   colors actually used inside these sections are overridden (dark
   ink/slate wouldn't read on navy); card components that already sit
   on their own white background inside a section are untouched, since
   their text renders against that white, not the navy behind it. */
.section-navy {
    background-color: var(--royal);
}
[data-theme="dark"] .section-navy {
    background-color: var(--royal-deep);
}
.section-navy .text-ink { color: #fff !important; }
.section-navy p.text-slate-500,
.section-navy .text-slate-500:not(.card-hover *) { color: rgba(191,219,254,.75) !important; }

/* Gold full-bleed section — same idea, using the brand gold. Dark ink
   text already has strong contrast on gold (unlike white text, which
   is why .eyebrow's default gold-on-white text needs the opposite fix
   here: navy, not gold-on-gold). */
.section-gold {
    background-color: var(--gold);
}
[data-theme="dark"] .section-gold {
    background-color: #8f7326;
}
.section-gold .eyebrow { color: var(--royal) !important; }
.section-gold .gold-line { background: var(--royal) !important; }
.section-gold p.text-slate-500,
.section-gold .text-slate-500:not(.card-hover *) { color: rgba(15,23,42,.72) !important; }

/* ═══════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════════ */
.card-hover {
    transition: border-color 240ms ease, background-color 240ms ease;
}
.card-hover:hover {
    border-color: rgba(10,31,68,.28);
    background-color: rgba(10,31,68,.015);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.btn-primary {
    background: var(--royal);
    border-radius: 0.65rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    transition: background 150ms ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-primary:hover {
    background: var(--royal-hover);
}

.btn-gold {
    background: var(--gold);
    border-radius: 0.65rem;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    transition: background 150ms ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-gold:hover {
    background: var(--gold-hover);
}

.btn-outline-white {
    border: 1.5px solid rgba(255,255,255,.38);
    border-radius: 0.65rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    transition: background 150ms ease, border-color 150ms ease;
    white-space: nowrap;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.70);
}
/* .btn-outline-white's own display:inline-flex otherwise beats Tailwind's
   .hidden (same specificity, this file loads after tailwind.css) — needed
   for #hero-watch-btn, which starts hidden and is only shown by JS when
   the active hero slide has an associated video. */
.btn-outline-white.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════════ */
.form-input {
    border: 1.5px solid rgb(226 232 240);
    border-radius: 0.65rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    padding: 0.65rem 0.9rem;
    width: 100%;
    background: white;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
    appearance: none;
}
.form-input:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(10,31,68,.10);
    outline: none;
    background: white;
}
.form-input::placeholder { color: rgb(148 163 184); }

/* ═══════════════════════════════════════════════════════════
   EYEBROW
════════════════════════════════════════════════════════════ */
.eyebrow {
    display: inline-block;
    color: var(--gold-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
/* On a dark background (hero photo, dark-mode surfaces) the full-brightness
   brand gold already clears WCAG AA comfortably — use it there instead. */
[data-theme="dark"] .eyebrow,
.hero-grid .eyebrow,
.section-navy .eyebrow {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   GOLD ACCENT LINE
════════════════════════════════════════════════════════════ */
.gold-line {
    width: 2.5rem; height: 3px;
    background: linear-gradient(to right, var(--gold), rgba(212,175,55,.4));
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION DIVIDER
════════════════════════════════════════════════════════════ */
.section-divider {
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(10,31,68,.10) 25%,
        rgba(10,31,68,.10) 75%,
        transparent);
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL ICON (contact page)
════════════════════════════════════════════════════════════ */
.social-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY — uniform grid; source photos are a genuine mix of
   portrait and landscape shots, so every tile is a fixed 4:3 box
   with object-fit:cover cropping each photo to fit, rather than a
   masonry layout that would keep uneven tile heights.
════════════════════════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
    position: relative;
    cursor: zoom-in;
    border-radius: 0.875rem;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 380ms var(--ease-out);
    will-change: transform;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,68,.90) 0%, rgba(10,31,68,.20) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 280ms ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   FACILITIES — bento grid of lab photos; shares .gallery-overlay /
   .gallery-expand for the hover caption + expand icon, and the
   gallery lightbox (data-gallery-lightbox) for the click-to-enlarge
   viewer, so the only new styling needed is the tile itself.
════════════════════════════════════════════════════════════ */
.facility-tile {
    position: relative;
    cursor: zoom-in;
    border-radius: 1rem;
    overflow: hidden;
    isolation: isolate;
    height: 100%;
}
.facility-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 380ms var(--ease-out);
    will-change: transform;
}
.facility-tile:hover img { transform: scale(1.06); }
.facility-tile:hover .gallery-overlay { opacity: 1; }
.facility-tile:hover .gallery-expand { opacity: 1; transform: scale(1); }

/* Expand icon in gallery */
.gallery-expand {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    transition: opacity 250ms ease, transform 250ms var(--ease-spring);
    transform: scale(0.8);
    pointer-events: none;
}
.gallery-item:hover .gallery-expand {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════
   PROGRAMME CARDS
════════════════════════════════════════════════════════════ */
.prog-card {
    position: relative;
    overflow: hidden;
}
.prog-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, #0A1F44, #D4AF37);
    transition: width 320ms var(--ease-out);
}
.prog-card:hover::after,
.prog-card:focus-visible::after {
    width: 100%;
}
.prog-card.prog-card--postgrad::after {
    background: linear-gradient(to right, #D4AF37, #0A1F44);
}
.prog-kicker {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #D4AF37;
}
[data-theme="dark"] .prog-card { background: #111827; border-color: rgba(255,255,255,.08); }

/* filter tabs */
.filter-tab {
    border: 1.5px solid rgb(226 232 240);
    border-radius: 2rem;
    padding: 0.48rem 1.15rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgb(100 116 139);
    transition: all 200ms var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
}
.filter-tab:hover {
    background: rgba(10,31,68,.06);
    border-color: rgba(10,31,68,.20);
    color: var(--royal);
}
.filter-tab.filter-active {
    background: var(--royal);
    border-color: var(--royal);
    color: white;
    box-shadow: 0 4px 12px rgba(10,31,68,.22);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7,23,47,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms ease;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: min(90vw, 960px);
    max-height: 76vh;
    border-radius: 0.875rem;
    object-fit: contain;
    box-shadow: 0 40px 80px rgba(0,0,0,.6);
    transition: transform 320ms var(--ease-spring);
    transform: scale(0.94);
}
.lightbox.open img { transform: scale(1); }

/* ═══════════════════════════════════════════════════════════
   FACULTY PROFILE PAGE — a full-viewport takeover (not a small
   modal), opened from a faculty card, tab-switching handled by
   assets/js/main.js "FACULTY PROFILE PAGE" block.
════════════════════════════════════════════════════════════ */
#faculty-page {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: white;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms ease;
}
#faculty-page.open {
    opacity: 1;
    visibility: visible;
}
[data-theme="dark"] #faculty-page { background: #0b1120; }

.faculty-page-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 5rem;
}
@media (min-width: 640px) {
    .faculty-page-inner { padding: 2rem 2rem 6rem; }
}

.faculty-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.faculty-page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid rgb(226 232 240);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgb(71 85 105);
    transition: all 200ms var(--ease-out);
}
.faculty-page-back:hover {
    border-color: var(--royal);
    color: var(--royal);
    background: rgba(10,31,68,.04);
}
[data-theme="dark"] .faculty-page-back { border-color: rgba(255,255,255,.15); color: rgb(203 213 225); }
[data-theme="dark"] .faculty-page-back:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,.08); }

.faculty-page-nav-btn {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1.5px solid rgb(226 232 240);
    color: rgb(100 116 139);
    transition: all 200ms var(--ease-out);
}
.faculty-page-nav-btn:hover { border-color: var(--royal); color: var(--royal); }
[data-theme="dark"] .faculty-page-nav-btn { border-color: rgba(255,255,255,.15); color: rgb(148 163 184); }

.faculty-page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.faculty-page-header img {
    width: 8rem;
    height: 8rem;
    border-radius: 1.25rem;
    object-fit: cover;
    object-position: 50% 15%;
    flex-shrink: 0;
    box-shadow: 0 20px 48px rgba(10,31,68,.18);
}
@media (min-width: 640px) {
    .faculty-page-header { flex-direction: row; align-items: center; }
    .faculty-page-header img { width: 9.5rem; height: 9.5rem; }
}

.faculty-page-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-bottom: 1.5px solid rgb(226 232 240);
    margin-bottom: 2rem;
}
[data-theme="dark"] .faculty-page-tabs { border-color: rgba(255,255,255,.10); }
.faculty-tab-btn {
    flex-shrink: 0;
    padding: 0.75rem 0.25rem;
    margin-right: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgb(148 163 184);
    border-bottom: 2px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
    white-space: nowrap;
}
.faculty-tab-btn:hover { color: var(--royal); }
.faculty-tab-btn.active {
    color: var(--royal);
    border-bottom-color: var(--gold);
}
[data-theme="dark"] .faculty-tab-btn.active { color: var(--gold); }
[data-theme="dark"] .faculty-tab-btn:hover { color: var(--gold); }

.faculty-tab-panel { display: none; }
.faculty-tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   COURSE STRUCTURE MODAL — reuses .lightbox's dim/blur backdrop;
   wider/taller than the bio modal since it holds a full course
   list per level (assets/js/main.js "COURSE STRUCTURE MODAL" block).
════════════════════════════════════════════════════════════ */
.course-modal-card {
    display: flex;
    flex-direction: column;
    width: min(92vw, 860px);
    max-height: 85vh;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 40px 80px rgba(0,0,0,.6);
    transform: scale(0.94);
    transition: transform 320ms var(--ease-spring);
    overflow: hidden;
}
.lightbox.open .course-modal-card { transform: scale(1); }
.course-modal-header {
    flex-shrink: 0;
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgb(226 232 240);
}
.course-modal-body {
    padding: 1.5rem 1.75rem 1.75rem;
    overflow-y: auto;
}
[data-theme="dark"] .course-modal-card { background: #111827; }
[data-theme="dark"] .course-modal-header { border-color: rgba(255,255,255,.08); }

/* Video modal — 16:9 frame, iframe injected on demand by main.js */
.video-frame {
    width: min(90vw, 960px);
    aspect-ratio: 16 / 9;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT CARDS
════════════════════════════════════════════════════════════ */
.contact-card {
    background: white;
    border: 1.5px solid rgb(226 232 240);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 220ms ease, background-color 220ms ease;
}
.contact-card:hover {
    border-color: rgba(10,31,68,.28);
    background-color: rgba(10,31,68,.015);
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOADS — document cards with a real PDF page-1 preview
   thumbnail instead of a generic file icon.
════════════════════════════════════════════════════════════ */
.document-card {
    background: white;
    border: 1.5px solid rgb(226 232 240);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.document-card:hover { border-color: rgba(10,31,68,.28); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
[data-theme="dark"] .document-card { background: var(--bg-surface) !important; border-color: var(--border-soft) !important; }

.document-card-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--bg-muted);
    overflow: hidden;
}
[data-theme="dark"] .document-card-preview { background: rgba(255,255,255,.04) !important; }
.document-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 380ms var(--ease-out);
}
.document-card:hover .document-card-preview img { transform: scale(1.04); }
.document-card-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
}
.document-card-preview-label {
    position: absolute;
    left: .65rem; bottom: .65rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: rgba(10,31,68,.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 220ms ease, transform 220ms ease;
}
.document-card:hover .document-card-preview-label { opacity: 1; transform: translateY(0); }

.document-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.audience-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(10,31,68,.08);
    color: var(--royal);
}
[data-theme="dark"] .audience-badge { background: rgba(212,175,55,.14) !important; color: var(--gold) !important; }

.document-card-download {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--royal);
    text-decoration: none;
}
.document-card-download:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   ADMIN SIDEBAR
════════════════════════════════════════════════════════════ */
.admin-link {
    border-radius: 0.5rem;
    color: rgb(203 213 225);
    padding: 0.65rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.admin-link:hover {
    background: rgba(255,255,255,.09);
    color: white;
    transform: translateX(2px);
}
.admin-link.active-admin {
    background: rgba(212,175,55,.14);
    color: var(--gold);
    border-left: 2px solid var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE LAZY-LOAD FADE
════════════════════════════════════════════════════════════ */
img.lazy-fade {
    opacity: 0;
    transition: opacity 400ms ease;
}
img.lazy-fade.loaded { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   COUNT-UP NUMBER
════════════════════════════════════════════════════════════ */
.count-up {
    font-variant-numeric: tabular-nums;
    transition: color 300ms ease;
}

/* ═══════════════════════════════════════════════════════════
   EXECUTIVE CARD PREMIUM
════════════════════════════════════════════════════════════ */
.exec-avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    background: white;
    display: grid;
    place-items: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--royal);
    position: relative;
    box-shadow: 0 8px 24px rgba(7,23,47,.30), 0 0 0 3px rgba(212,175,55,.40);
    transition: box-shadow 240ms ease, transform 240ms var(--ease-spring);
}
.card-hover:hover .exec-avatar-ring {
    box-shadow: 0 12px 32px rgba(7,23,47,.40), 0 0 0 4px rgba(212,175,55,.60);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT TIMELINE DOT
════════════════════════════════════════════════════════════ */
.ann-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(212,175,55,.20);
    transition: box-shadow 200ms ease;
}
.card-hover:hover .ann-dot {
    box-shadow: 0 0 0 5px rgba(212,175,55,.25);
}

/* ═══════════════════════════════════════════════════════════
   RESOURCE TYPE BADGE
════════════════════════════════════════════════════════════ */
.resource-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 9999px;
    border-width: 1px;
    border-style: solid;
    padding: 0.15rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 160ms ease;
}

/* ═══════════════════════════════════════════════════════════
   SKELETON LOADING
════════════════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1a2236 25%, #243050 50%, #1a2236 75%);
    background-size: 200% 100%;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER LINK HOVER
════════════════════════════════════════════════════════════ */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 180ms ease, transform 180ms ease;
}
.footer-link:hover {
    color: white;
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════════════════ */

/* Hide scrollbar (gallery filter) */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Smooth image zoom containers */
.img-zoom { overflow: hidden; }
.img-zoom img {
    transition: transform 380ms var(--ease-out);
    will-change: transform;
}
.img-zoom:hover img { transform: scale(1.05); }

/* Announcement card */
.ann-card {
    position: relative;
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms ease;
}
.ann-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    border-radius: 0 2px 2px 0;
    transition: height 240ms var(--ease-out);
}
.ann-card:hover {
    border-color: rgba(10,31,68,.20);
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}
.ann-card:hover::before { height: 60%; }
[data-theme="dark"] .ann-card { border-color: var(--border-soft) !important; }
[data-theme="dark"] .ann-card:hover { border-color: rgba(212,175,55,.25) !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
════════════════════════════════════════════════════════════ */
@media (min-width: 1536px) {
    /* Ultra-wide: cap section max-width already at 7xl (80rem), fine */
    .hero-slide { background-position: center 20%; }
}

/* Smooth-scrolls the section jump strip's anchor links to their target. */
html { scroll-behavior: smooth; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   SWEETALERT2 — SCOTSA BRAND THEME
════════════════════════════════════════════════════════════ */

/* Ensure SweetAlert appears above admin sidebar (z-index 40) */
.swal2-container { z-index: 99999 !important; }

/* ── Popup ──────────────────────────────────────────────── */
.swal-scotsa-popup {
    border-radius: 1.375rem !important;
    font-family: 'Lato', sans-serif !important;
    padding: 2rem !important;
    box-shadow:
        0 25px 60px rgba(10,31,68,.18),
        0 0 0 1px rgba(10,31,68,.06) !important;
    border: none !important;
    max-width: 420px !important;
}

/* ── Title ──────────────────────────────────────────────── */
.swal-scotsa-title {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 900 !important;
    color: #0F172A !important;
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    padding: 0 0 .25rem !important;
    margin: 0 !important;
}

/* ── Body text ──────────────────────────────────────────── */
.swal-scotsa-body {
    color: #64748b !important;
    font-size: .875rem !important;
    line-height: 1.65 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Buttons shared ─────────────────────────────────────── */
.swal-scotsa-btn {
    border-radius: .625rem !important;
    font-weight: 700 !important;
    padding: .6rem 1.5rem !important;
    font-family: 'Lato', sans-serif !important;
    font-size: .875rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 160ms ease, transform 140ms ease, box-shadow 160ms ease !important;
    line-height: 1.4 !important;
}
.swal-scotsa-btn:focus { outline: none !important; }

/* Primary (blue) */
.swal-scotsa-btn--primary {
    background: #0A1F44 !important;
    color: #fff !important;
}
.swal-scotsa-btn--primary:hover {
    background: #0d2a5c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(10,31,68,.38) !important;
}
.swal-scotsa-btn--primary:focus {
    box-shadow: 0 0 0 3px rgba(10,31,68,.28) !important;
}

/* Danger (red) */
.swal-scotsa-btn--danger {
    background: #ef4444 !important;
    color: #fff !important;
}
.swal-scotsa-btn--danger:hover {
    background: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(239,68,68,.45) !important;
}
.swal-scotsa-btn--danger:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,.30) !important;
}

/* Secondary (ghost) */
.swal-scotsa-btn--secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.swal-scotsa-btn--secondary:hover {
    background: #e2e8f0 !important;
}
.swal-scotsa-btn--secondary:focus {
    box-shadow: 0 0 0 3px rgba(100,116,139,.20) !important;
}

/* ── Actions row ────────────────────────────────────────── */
.swal2-actions { gap: .625rem !important; margin-top: 1.5rem !important; }

/* ── Icon spacing ───────────────────────────────────────── */
.swal2-icon { margin: 0 auto 1.25rem !important; }

/* ── Toast ──────────────────────────────────────────────── */
.swal-scotsa-toast {
    border-radius: 1rem !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 600 !important;
    font-size: .875rem !important;
    box-shadow: 0 8px 30px rgba(10,31,68,.14), 0 2px 8px rgba(10,31,68,.08) !important;
    border: 1px solid rgba(10,31,68,.07) !important;
    padding: .6rem 1rem !important;
}

/* Toast progress bar */
.swal-scotsa-progress {
    background: rgba(10,31,68,.20) !important;
}
.swal-scotsa-toast .swal2-success .swal-scotsa-progress,
.swal-scotsa-popup .swal2-success .swal-scotsa-progress { background: rgba(16,185,129,.40) !important; }
.swal-scotsa-toast .swal2-error   .swal-scotsa-progress,
.swal-scotsa-popup .swal2-error   .swal-scotsa-progress { background: rgba(239,68,68,.40) !important; }

/* ── Dark mode ──────────────────────────────────────────── */
[data-theme="dark"] .swal-scotsa-popup {
    background: #1e293b !important;
    box-shadow: 0 25px 60px rgba(0,0,0,.50), 0 0 0 1px rgba(255,255,255,.07) !important;
}
[data-theme="dark"] .swal-scotsa-title {
    color: #e2e8f0 !important;
}
[data-theme="dark"] .swal-scotsa-body {
    color: #94a3b8 !important;
}
[data-theme="dark"] .swal-scotsa-btn--secondary {
    background: #334155 !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .swal-scotsa-btn--secondary:hover {
    background: #475569 !important;
}
[data-theme="dark"] .swal-scotsa-toast {
    background: #1e293b !important;
    border-color: rgba(255,255,255,.09) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.40) !important;
}
[data-theme="dark"] .swal2-icon--warning { border-color: rgba(245,158,11,.50) !important; }

/* ═══════════════════════════════════════════════════════════
   ADMIN DASHBOARD — Analytics Workspace
════════════════════════════════════════════════════════════ */

/* Animated pulse for today-pill indicators */
@keyframes scotsa-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}
.animate-pulse { animation: scotsa-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

/* Stat card top-border accent */
.stat-card-accent-blue    { background: linear-gradient(to right, #0A1F44, #0d2a5c); }
.stat-card-accent-gold    { background: linear-gradient(to right, #D4AF37, #F59E0B); }
.stat-card-accent-emerald { background: linear-gradient(to right, #10B981, #14B8A6); }
.stat-card-accent-violet  { background: linear-gradient(to right, #8B5CF6, #6366F1); }

/* Activity timeline dot colours */
.bg-scotsaGold { background-color: #D4AF37; }

/* Dark-mode table row hover */
[data-theme="dark"] tbody tr:hover { background: rgba(255,255,255,.025); }

/* Mono code pills in table */
[data-theme="dark"] .font-mono.bg-slate-100 {
    background: rgba(255,255,255,.07);
    color: #94a3b8;
}

/* Chart.js canvas — ensure it fills container */
canvas { display: block; max-width: 100%; }
[data-theme="dark"] .swal2-icon--question { border-color: rgba(99,102,241,.50) !important; }

/* ═══════════════════════════════════════════════════════════
   FOOTER SOCIAL ICONS — hover state as plain CSS instead of
   onmouseover/onmouseout (blocked by this site's CSP; also just
   simpler than JS for a static color swap).
════════════════════════════════════════════════════════════ */
.social-icon-link {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
    color: rgba(191,219,254,.65);
}
.social-icon-link:hover {
    background: rgba(212,175,55,.08);
    border-color: rgba(212,175,55,.5);
    color: #D4AF37;
}

/* ═══════════════════════════════════════════════════════════
   SKIP LINK — invisible until keyboard-focused, first thing a
   screen-reader/keyboard user encounters. Lets them bypass the
   header and jump straight to #main-content.
════════════════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 1100;
    background: var(--royal);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: .875rem;
    padding: .65rem 1.1rem;
    border-radius: .5rem;
    text-decoration: none;
    transition: top 150ms ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   PARENT-UNIVERSITY BAR — full-bleed strip above the nav that
   links out to the main WIUC Ghana site. Styled here rather than
   with utilities because the site's compiled Tailwind build has a
   fixed class set (no arbitrary values / fine-grained gaps).
════════════════════════════════════════════════════════════ */
.parent-site-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.1rem 0.4rem;
    padding: 0.55rem 1rem;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .01em;
    background: var(--royal-deep);
    color: rgba(191, 219, 254, .92);
    transition: background 160ms ease, color 160ms ease;
}
.parent-site-bar:hover {
    background: var(--royal);
    color: #fff;
}
.parent-site-bar__label {
    opacity: .8;
}
.parent-site-bar__name {
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, .55);
    text-underline-offset: 2px;
}
.parent-site-bar:hover .parent-site-bar__name {
    text-decoration-color: var(--gold);
}
.parent-site-bar__icon {
    display: inline-block;
    height: .8rem;
    width: .8rem;
    margin-left: .25rem;
    vertical-align: -2px;
    transition: transform 160ms ease;
}
.parent-site-bar:hover .parent-site-bar__icon {
    transform: translateX(2px);
}
@media (max-width: 380px) {
    .parent-site-bar { font-size: .72rem; }
}
[data-theme="dark"] .parent-site-bar {
    background: #060f22;
}
[data-theme="dark"] .parent-site-bar:hover {
    background: var(--royal-deep);
}

/* ═══════════════════════════════════════════════════════════
   LOADING BAR — thin progress indicator across the very top of
   the viewport while the page's critical assets finish loading.
   Driven by assets/js/loading-bar.js; respects reduced-motion.
════════════════════════════════════════════════════════════ */
#loading-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    z-index: 1200;
    background: linear-gradient(to right, var(--gold), #F5D77A);
    box-shadow: 0 0 8px rgba(212,175,55,.6);
    transition: width 400ms ease, opacity 300ms ease 200ms;
    opacity: 1;
}
#loading-bar.done { width: 100%; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    #loading-bar { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
════════════════════════════════════════════════════════════ */
#cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1150;
    max-width: 40rem;
    margin: 0 auto;
    background: var(--royal);
    color: rgba(255,255,255,.88);
    border-radius: 1rem;
    box-shadow: 0 20px 48px rgba(0,0,0,.35);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    transform: translateY(calc(100% + 2rem));
    transition: transform 320ms var(--ease-spring);
}
#cookie-consent.visible { transform: translateY(0); }
#cookie-consent p {
    flex: 1 1 18rem;
    font-size: .8rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(219,234,254,.8);
}
#cookie-consent .cookie-actions {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}
#cookie-consent button {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    padding: .55rem 1.1rem;
    border-radius: .5rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 150ms ease, border-color 150ms ease;
}
#cookie-consent .cookie-accept { background: var(--gold); color: var(--royal); }
#cookie-consent .cookie-accept:hover { background: var(--gold-hover); }
#cookie-consent .cookie-decline {
    background: transparent;
    color: rgba(255,255,255,.75);
    border-color: rgba(255,255,255,.25);
}
#cookie-consent .cookie-decline:hover { border-color: rgba(255,255,255,.5); color: #fff; }
/* Phone: a slim bar, not a stacked card — short text on its own line,
   small buttons side by side underneath rather than full-width. */
@media (max-width: 480px) {
    #cookie-consent {
        left: .5rem;
        right: .5rem;
        bottom: .5rem;
        max-width: none;
        margin: 0;
        padding: .75rem .85rem;
        border-radius: .75rem;
        gap: .5rem;
    }
    #cookie-consent p { flex-basis: 100%; font-size: .72rem; line-height: 1.45; }
    #cookie-consent .cookie-actions { width: 100%; justify-content: flex-end; gap: .5rem; }
    #cookie-consent button { padding: .4rem .85rem; font-size: .72rem; }
}
