/* ==========================================================================
   AL-IMRA INTERNATIONAL UNIVERSITY  —  Design System
   Deep Navy & Academic Gold  ·  Playfair Display + Plus Jakarta Sans
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --navy-950: #081018;
  --navy-900: #0B192C;
  --navy-850: #0D2038;
  --navy-800: #102A43;
  --navy-700: #16324F;
  --navy-600: #1B3A5C;
  --gold: #D4AF37;
  --gold-bright: #E8C55C;
  --gold-deep: #B8942A;
  --amber: #F5A623;
  --white: #F8FAFC;
  --cream: #F3EFE4;
  --text: #E6EDF6;
  --text-soft: #B9C7DA;
  --muted: #8DA1BC;
  --line: rgba(148, 168, 195, 0.14);
  --line-gold: rgba(212, 175, 55, 0.28);

  /* Surfaces */
  --bg: var(--navy-950);
  --surface: rgba(16, 42, 67, 0.55);
  --surface-solid: #0E2236;
  --glass: rgba(13, 30, 51, 0.72);
  --glass-light: rgba(148, 168, 195, 0.06);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #E8C55C 0%, #D4AF37 45%, #B8942A 100%);
  --grad-navy: linear-gradient(160deg, #102A43 0%, #0B192C 60%, #081018 100%);
  --grad-hero: linear-gradient(115deg, rgba(8, 16, 24, 0.94) 0%, rgba(11, 25, 44, 0.82) 45%, rgba(16, 42, 67, 0.55) 100%);
  --grad-text: linear-gradient(120deg, #F0D584 0%, #D4AF37 50%, #E8C55C 100%);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(3, 8, 14, 0.35);
  --shadow-md: 0 12px 34px rgba(3, 8, 14, 0.45);
  --shadow-lg: 0 30px 70px rgba(3, 8, 14, 0.55);
  --glow-gold: 0 0 34px rgba(212, 175, 55, 0.22);
  --glow-gold-strong: 0 6px 30px rgba(212, 175, 55, 0.38);

  /* Shape & rhythm */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1240px;
  --header-h: 76px;
  --topbar-h: 38px;

  /* Type */
  --ff-serif: "Playfair Display", "Georgia", serif;
  --ff-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0.26, 1);
  --t-fast: 0.22s var(--ease);
  --t-med: 0.45s var(--ease);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--bg);
  overflow-x: hidden;
}
body::before { /* faint global vignette + grid sheen */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(212, 175, 55, 0.05), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(27, 58, 92, 0.35), transparent 60%),
    var(--navy-950);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .serif { font-family: var(--ff-serif); color: var(--white); font-weight: 600; line-height: 1.18; }
h4, h5 { color: var(--white); font-weight: 600; line-height: 1.3; }

[dir="rtl"] { --ff-serif: "Playfair Display", "Amiri", "Georgia", serif; }

/* ---------- 3. Layout utilities ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 118px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(16, 42, 67, 0.35), rgba(16, 42, 67, 0.05)); border-block: 1px solid var(--line); }
.section--tight { padding: clamp(46px, 6vw, 72px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 0.45em 0 0.35em; letter-spacing: -0.01em; }
.section-sub { font-size: 1.06rem; color: var(--muted); max-width: 60ch; }
.section-head--center .section-sub { margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--grad-gold); border-radius: 2px; }
.section-head--center .kicker::after { content: ""; width: 26px; height: 1.5px; background: var(--grad-gold); border-radius: 2px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-1 { grid-template-columns: 1fr; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-gold { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4. Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn--gold { background: var(--grad-gold); color: #16130A; box-shadow: var(--glow-gold-strong); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5); }
.btn--outline { border: 1.5px solid var(--line-gold); color: var(--gold-bright); background: rgba(212, 175, 55, 0.05); }
.btn--outline:hover { background: rgba(212, 175, 55, 0.14); border-color: var(--gold); transform: translateY(-2px); }
.btn--ghost { color: var(--text-soft); border: 1.5px solid var(--line); background: transparent; }
.btn--ghost:hover { color: var(--white); border-color: var(--muted); }
.btn--lg { padding: 17px 36px; font-size: 1.02rem; }
.btn--sm { padding: 10px 20px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.08); border: 1px solid var(--line-gold);
  color: var(--gold-bright); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
}
.badge--dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 12px 2px rgba(212, 175, 55, 0.65);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.chip {
  padding: 9px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-soft); border: 1px solid var(--line); background: var(--glass-light);
  transition: all var(--t-fast);
}
.chip:hover { color: var(--gold-bright); border-color: var(--line-gold); }
.chip.is-active { background: var(--grad-gold); color: #16130A; border-color: transparent; box-shadow: var(--glow-gold); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 5. Top strip + header ---------- */
.topbar {
  height: var(--topbar-h); font-size: 0.78rem;
  background: rgba(8, 16, 24, 0.9); border-bottom: 1px solid var(--line);
  position: relative; z-index: 60;
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-contact { display: flex; gap: 22px; color: var(--muted); }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; transition: color var(--t-fast); }
.topbar-contact a:hover { color: var(--gold-bright); }
.topbar-contact svg { width: 13px; height: 13px; color: var(--gold); }
.topbar-links { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.topbar-links a:hover { color: var(--gold-bright); }
.topbar-links .sep { width: 1px; height: 14px; background: var(--line); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  height: var(--header-h);
  background: rgba(8, 16, 24, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.site-header.is-scrolled {
  background: rgba(8, 16, 24, 0.88);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-md);
}
.site-header > .container { height: 100%; display: flex; align-items: center; gap: 26px; }

.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand__logo {
  width: 48px; height: 48px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35), var(--glow-gold);
  background: #fff; object-fit: cover;
  transition: transform var(--t-fast);
}
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--ff-serif); font-weight: 700; font-size: 1.32rem; color: var(--white); letter-spacing: 0.01em; }
.brand__tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }

/* Desktop nav + mega menu */
.nav-desktop { display: flex; align-items: stretch; height: 100%; }
.nav-item { position: relative; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 15px; font-size: 0.93rem; font-weight: 600; color: var(--text-soft);
  position: relative; transition: color var(--t-fast);
}
.nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 18px; height: 2px;
  background: var(--grad-gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast);
}
.nav-link:hover, .nav-link.active, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { color: var(--white); }
.nav-link.active::after, .nav-link:hover::after, .nav-item:hover > .nav-link::after { transform: scaleX(1); }
.nav-link .caret { width: 13px; height: 13px; transition: transform var(--t-fast); }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%) translateY(14px);
  min-width: 300px; padding: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--line-gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(248, 250, 252, 0.05);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}
.mega-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.mega-link:hover { background: rgba(212, 175, 55, 0.09); }
.mega-link b { color: var(--white); font-size: 0.92rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mega-link b::after { content: "→"; margin-left: auto; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: all var(--t-fast); }
.mega-link:hover b::after { opacity: 1; transform: none; }
.mega-link span { font-size: 0.78rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 700; color: var(--text-soft); letter-spacing: 0.06em;
  transition: all var(--t-fast);
}
.lang-btn:hover { border-color: var(--line-gold); color: var(--gold-bright); }
.lang-btn svg { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 170px; padding: 8px;
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--t-fast); z-index: 95;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; color: var(--text-soft); text-align: left;
  transition: all var(--t-fast);
}
.lang-menu button:hover { background: rgba(212, 175, 55, 0.09); color: var(--white); }
.lang-menu button.is-active { color: var(--gold-bright); }
.lang-menu button.is-active::after { content: "✓"; margin-left: auto; }

/* Search */
.search-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-soft); transition: all var(--t-fast);
}
.search-toggle:hover { border-color: var(--line-gold); color: var(--gold-bright); }
.search-toggle svg { width: 16px; height: 16px; }
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8, 16, 24, 0.97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line-gold);
  box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden; transition: max-height var(--t-med);
}
.search-panel.is-open { max-height: 430px; }
.search-panel .container { padding: 28px 0 34px; }
.search-input-row { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--line-gold); padding-bottom: 12px; }
.search-input-row svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }
#site-search {
  flex: 1; background: none; border: 0; outline: none;
  font-family: var(--ff-serif); font-size: 1.5rem; color: var(--white);
}
#site-search::placeholder { color: var(--muted); opacity: 0.7; }
.search-results { margin-top: 18px; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.search-results a {
  display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.search-results a:hover { background: rgba(212, 175, 55, 0.09); }
.search-results b { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.search-results span { color: var(--muted); font-size: 0.8rem; }
.search-results .empty { color: var(--muted); padding: 11px 14px; font-size: 0.9rem; }

/* Burger + drawer */
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; z-index: 130; }
.nav-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--white); transition: all 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 25px; }
body.drawer-open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.drawer-open .nav-burger span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(390px, 92vw); z-index: 120;
  background: rgba(8, 16, 24, 0.97);
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  border-left: 1px solid var(--line-gold);
  padding: calc(var(--header-h) + 26px) 30px 40px;
  overflow-y: auto;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
}
[dir="rtl"] .drawer { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--line-gold); transform: translateX(-100%); }
body.drawer-open .drawer { transform: none; }
.drawer-veil {
  position: fixed; inset: 0; z-index: 110; background: rgba(3, 8, 14, 0.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: all var(--t-med);
}
body.drawer-open .drawer-veil { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav a, .drawer-nav .drawer-group-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 4px; font-size: 1.02rem; font-weight: 600; color: var(--text);
}
.drawer-nav a.active { color: var(--gold-bright); }
.drawer-group-btn svg { width: 15px; height: 15px; transition: transform var(--t-fast); color: var(--gold); }
.drawer-group.is-open .drawer-group-btn svg { transform: rotate(180deg); }
.drawer-sub { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.drawer-group.is-open .drawer-sub { max-height: 320px; }
.drawer-sub a { padding: 10px 4px 10px 20px; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.drawer-sub a:hover { color: var(--gold-bright); }
.drawer-cta { margin-top: 26px; display: grid; gap: 12px; }
.drawer-meta { margin-top: 30px; font-size: 0.82rem; color: var(--muted); display: grid; gap: 6px; }
.drawer-meta a { color: var(--text-soft); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h) - var(--topbar-h));
  display: flex; align-items: center;
  padding: clamp(60px, 8vw, 90px) 0 clamp(90px, 10vw, 130px);
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }
.hero-orb {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: orb-float 9s ease-in-out infinite alternate;
}
.hero-orb--gold { width: 420px; height: 420px; right: -90px; top: -60px; background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 65%); }
.hero-orb--blue { width: 520px; height: 520px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(27, 58, 92, 0.8), transparent 65%); animation-delay: -4s; }
@keyframes orb-float { from { transform: translateY(-16px); } to { transform: translateY(22px); } }

.hero-content { max-width: 780px; }
.hero-badge { margin-bottom: 26px; animation: fade-up 0.8s var(--ease) both; }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 24px; animation: fade-up 0.8s 0.12s var(--ease) both;
}
.hero-title .accent { display: block; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 58ch;
  margin-bottom: 38px; animation: fade-up 0.8s 0.22s var(--ease) both;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; animation: fade-up 0.8s 0.32s var(--ease) both; }

.hero-stats {
  margin-top: clamp(52px, 7vw, 84px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  animation: fade-up 0.8s 0.45s var(--ease) both;
}
.stat {
  padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--glass-light); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.stat:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--glow-gold); }
.stat-value {
  font-family: var(--ff-serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--gold-bright); line-height: 1.1;
}
.stat-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ""; width: 1.5px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: scroll-drip 2s ease-in-out infinite;
}
@keyframes scroll-drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Course finder */
.finder {
  margin-top: clamp(40px, 5vw, 60px); padding: 10px;
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--line-gold); border-radius: 999px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  max-width: 640px; position: relative;
  animation: fade-up 0.8s 0.4s var(--ease) both;
}
.finder svg { width: 19px; height: 19px; color: var(--gold); margin-left: 16px; flex: 0 0 auto; }
.finder input { flex: 1; background: none; border: 0; outline: none; color: var(--white); font-size: 0.98rem; min-width: 0; }
.finder input::placeholder { color: var(--muted); }
.finder .btn { flex: 0 0 auto; }
.finder-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40;
  background: var(--glass); border: 1px solid var(--line-gold); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg); padding: 10px; display: none; max-height: 300px; overflow-y: auto;
}
.finder-results.is-open { display: block; }
.finder-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 15px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.finder-results a:hover { background: rgba(212, 175, 55, 0.09); }
.finder-results b { color: var(--white); font-weight: 600; }
.finder-results span { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.finder-results .empty { padding: 11px 15px; color: var(--muted); font-size: 0.9rem; }

/* ---------- 6b. Welcome emblem panel (home) ---------- */
.welcome-visual { position: relative; }
.welcome-emblem {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  padding: clamp(26px, 4vw, 48px); overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); border: 1px solid var(--line-gold);
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.16), transparent 62%),
    linear-gradient(155deg, #14314C 0%, #0B192C 55%, #081018 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(248, 250, 252, 0.06);
}
/* faint concentric rings behind the seal */
.welcome-emblem::before, .welcome-emblem::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.16); left: 50%; top: 50%; translate: -50% -50%;
}
.welcome-emblem::before { width: 78%; aspect-ratio: 1; }
.welcome-emblem::after { width: 104%; aspect-ratio: 1; border-color: rgba(212, 175, 55, 0.09); }
.welcome-emblem img {
  width: min(66%, 290px); height: auto; border-radius: 50%;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5));
  animation: emblem-float 7s ease-in-out infinite alternate;
}
@keyframes emblem-float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

.welcome-photo {
  position: absolute; width: 44%; bottom: -34px; left: -20px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 620px) {
  .welcome-visual { margin-bottom: 46px; }
  .welcome-photo { width: 40%; left: 0; bottom: -28px; }
}
@media (prefers-reduced-motion: reduce) { .welcome-emblem img { animation: none; } }

/* ---------- 7. Page hero (interior) ---------- */
.page-hero {
  position: relative; padding: clamp(70px, 9vw, 110px) 0; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: saturate(0.8); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(8, 16, 24, 0.96) 20%, rgba(11, 25, 44, 0.8) 65%, rgba(16, 42, 67, 0.55));
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 65%); filter: blur(50px);
}
.page-hero .container { max-width: 860px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0.4em 0 0.35em; letter-spacing: -0.01em; }
.page-hero p { font-size: 1.1rem; color: var(--text-soft); max-width: 62ch; }

/* Breadcrumbs-ish trail */
.page-trail { display: flex; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.page-trail a:hover { color: var(--gold-bright); }

/* ---------- 8. Cards ---------- */
.card {
  position: relative; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  overflow: hidden;
}
.card::before { /* top gold sheen on hover */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-gold); opacity: 0; transition: opacity var(--t-fast);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow-md), var(--glow-gold); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 18px; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--line-gold);
  margin-bottom: 20px; box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.08);
}
.card h3, .card h4 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; color: var(--muted); }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  color: var(--gold-bright); font-weight: 700; font-size: 0.88rem;
}
.card-link svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.card-link:hover svg { transform: translateX(5px); }

/* Faculty card */
.faculty-card { display: flex; flex-direction: column; gap: 14px; }
.faculty-card .fc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faculty-card .fc-count {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-bright); padding: 6px 13px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.1); border: 1px solid var(--line-gold); white-space: nowrap;
}
.faculty-card .fc-dean { font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.faculty-card .fc-dean svg { width: 14px; height: 14px; color: var(--gold); }
.faculty-card .fc-depts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.faculty-card .fc-depts span {
  font-size: 0.76rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: var(--glass-light); border: 1px solid var(--line); color: var(--text-soft);
  transition: all var(--t-fast);
}
.faculty-card:hover .fc-depts span { border-color: rgba(212, 175, 55, 0.2); }

/* Fee card */
.fee-card { text-align: center; padding-top: 40px; }
.fee-card .fee-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.fee-card .fee-price { font-family: var(--ff-serif); font-size: 3rem; font-weight: 700; color: var(--white); margin: 14px 0 2px; }
.fee-card .fee-price small { font-size: 1rem; color: var(--muted); font-family: var(--ff-sans); font-weight: 500; }
.fee-card .fee-reg { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.fee-card ul { text-align: left; margin: 0 auto 26px; max-width: 250px; display: grid; gap: 10px; }
.fee-card li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-soft); }
.fee-card li::before { content: "✓"; color: var(--gold-bright); font-weight: 800; }
.fee-card--featured { border-color: var(--line-gold); background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), var(--surface) 45%); box-shadow: var(--glow-gold); }
.fee-card--featured::before { opacity: 1; }
.fee-tag {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: #16130A; background: var(--grad-gold); padding: 5px 14px; border-radius: 999px;
}

/* Project / publication rows */
.project-card .pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.project-card .pc-area { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
.project-card .pc-fund { font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.project-card .pc-lead { font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.project-card .pc-status {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7BD8A8;
}
.project-card .pc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7BD8A8; box-shadow: 0 0 10px #7BD8A8; }

.pub-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.pub-year {
  font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 700; color: var(--gold-bright);
  padding: 10px 16px; border-radius: var(--radius-sm); background: rgba(212, 175, 55, 0.08); border: 1px solid var(--line-gold);
}
.pub-card .pub-cat { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pub-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.pub-card .pub-src { font-size: 0.85rem; color: var(--muted); }
.pub-card .pub-src b { color: var(--text-soft); font-weight: 600; }

/* Event card */
.event-card { display: flex; gap: 22px; align-items: center; }
.event-date {
  flex: 0 0 auto; width: 76px; text-align: center; padding: 13px 8px;
  border-radius: var(--radius); background: rgba(212, 175, 55, 0.08); border: 1px solid var(--line-gold);
}
.event-date b { display: block; font-family: var(--ff-serif); font-size: 1.7rem; color: var(--gold-bright); line-height: 1; }
.event-date span { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.event-card .ev-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.event-card .ev-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; color: var(--muted); }
.event-card .ev-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-card .ev-meta svg { width: 14px; height: 14px; color: var(--gold); }

/* News card */
.news-card { padding: 0; display: flex; flex-direction: column; }
.news-card .nc-img { aspect-ratio: 16 / 9.6; overflow: hidden; }
.news-card .nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.news-card:hover .nc-img img { transform: scale(1.07); }
.news-card .nc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card .nc-meta { display: flex; align-items: center; gap: 12px; font-size: 0.76rem; color: var(--muted); }
.news-card .nc-cat {
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright);
  padding: 4px 12px; border-radius: 999px; background: rgba(212, 175, 55, 0.1); border: 1px solid var(--line-gold);
  font-size: 0.66rem;
}
.news-card h3 { font-size: 1.08rem; line-height: 1.4; }
.news-card p { font-size: 0.88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); cursor: pointer; isolation: isolate;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 44px 22px 20px;
  background: linear-gradient(transparent, rgba(8, 16, 24, 0.94));
  transform: translateY(8px); opacity: 0.92; transition: all var(--t-fast);
}
.gallery-card:hover figcaption { transform: none; opacity: 1; }
.gallery-card .g-cat {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-bright);
}
.gallery-card h3 { font-size: 1.05rem; margin: 4px 0 3px; }
.gallery-card p { font-size: 0.78rem; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 4vmin;
  background: rgba(3, 8, 14, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox .lb-cap { color: var(--text-soft); text-align: center; margin-top: 16px; font-size: 0.95rem; }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-gold); color: var(--white); font-size: 1.3rem; background: rgba(16, 42, 67, 0.6);
}

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; gap: 16px; }
.testimonial-card .t-quote { font-size: 0.95rem; color: var(--text-soft); font-style: italic; position: relative; }
.testimonial-card .t-quote::before {
  content: "“"; font-family: var(--ff-serif); font-size: 3.4rem; color: var(--gold);
  opacity: 0.5; position: absolute; top: -22px; left: -6px;
}
.testimonial-card .t-person { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-gold); color: #16130A; font-weight: 800; font-size: 0.88rem; flex: 0 0 auto;
}
.testimonial-card .t-person b { color: var(--white); font-size: 0.95rem; display: block; }
.testimonial-card .t-person span { color: var(--muted); font-size: 0.78rem; }

/* Value / step / timeline / leadership */
.value-card { text-align: center; }
.value-card .card-icon { margin-inline: auto; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step-card { text-align: left; padding: 26px 22px; }
.step-num {
  font-family: var(--ff-serif); font-size: 2.6rem; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 14px; display: block;
}
.step-card h3 { font-size: 1.02rem; }
.step-card p { font-size: 0.84rem; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: ""; position: absolute; left: 89px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--gold), rgba(212, 175, 55, 0.06));
}
.timeline-item { display: grid; grid-template-columns: 70px 40px 1fr; align-items: start; padding: 20px 0; }
.timeline-year { font-family: var(--ff-serif); font-size: 1.32rem; font-weight: 700; color: var(--gold-bright); text-align: right; }
.timeline-dot {
  place-self: start center; margin-top: 8px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--navy-950); border: 2.5px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12), 0 0 18px rgba(212, 175, 55, 0.45);
}
.timeline-body h3 { font-size: 1.14rem; margin-bottom: 5px; }
.timeline-body p { color: var(--muted); font-size: 0.93rem; max-width: 62ch; }

.leader-card { text-align: center; }
.leader-card .avatar { width: 82px; height: 82px; font-size: 1.5rem; margin: 0 auto 18px; box-shadow: var(--glow-gold); }
.leader-card h3 { font-size: 1.1rem; }
.leader-card .l-role { color: var(--gold-bright); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.leader-card .l-sub { color: var(--muted); font-size: 0.84rem; margin-top: 8px; }

/* Course rows */
.course-table { display: grid; gap: 12px; }
.course-row {
  display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; gap: 18px;
  padding: 18px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.course-row:hover { border-color: var(--line-gold); transform: translateX(6px); }
.course-code { font-family: var(--ff-serif); font-weight: 700; color: var(--gold-bright); font-size: 1.05rem; }
.course-row .c-name { color: var(--white); font-weight: 600; }
.course-row .c-fac { color: var(--muted); font-size: 0.84rem; }
.course-cr {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
}

/* Stats band (about + research) */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats-band .stat { text-align: center; }

/* CTA band */
.cta-band {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 84px) clamp(26px, 5vw, 70px); text-align: center;
  background: var(--grad-navy); border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-lg), inset 0 0 90px rgba(212, 175, 55, 0.05);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px);
}
.cta-band::before { width: 340px; height: 340px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 65%); }
.cta-band::after { width: 300px; height: 300px; left: -70px; bottom: -110px; background: radial-gradient(circle, rgba(27, 58, 92, 0.9), transparent 65%); }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); font-size: 1.06rem; margin-bottom: 34px; }
.cta-band .hero-ctas, .hero-ctas--center { justify-content: center; animation: none; }
.section-title--sm { font-size: 1.7rem; }
/* Video thumbnail placeholder (media centre) */
.video-thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 3rem;
  background: rgba(8, 16, 24, 0.6); border-radius: var(--radius); border: 1px solid var(--line);
  color: var(--gold-bright);
}
/* Gallery meta chips (venue / graduates / class year) */
.g-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.g-meta span {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.12); border: 1px solid var(--line-gold); color: var(--gold-bright);
}

/* ---------- 9. Tabs, accordions, alerts ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 4vw, 44px); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.tab-btn {
  padding: 11px 24px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--muted);
  transition: all var(--t-fast); position: relative;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.is-active { background: var(--grad-gold); color: #16130A; box-shadow: var(--glow-gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-up 0.5s var(--ease); }

.faq { display: grid; gap: 14px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; transition: border-color var(--t-fast);
}
.faq details[open] { border-color: var(--line-gold); box-shadow: var(--glow-gold); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; font-weight: 700; color: var(--white); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--ff-serif); font-size: 1.5rem; color: var(--gold); line-height: 1;
  transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 26px 22px; color: var(--muted); font-size: 0.95rem; }

.alert { padding: 16px 22px; border-radius: var(--radius); font-size: 0.95rem; margin-bottom: 22px; border: 1px solid; }
.alert-success { background: rgba(56, 161, 105, 0.12); border-color: rgba(123, 216, 168, 0.4); color: #A8E6C7; }
.alert-error { background: rgba(229, 62, 62, 0.1); border-color: rgba(229, 62, 62, 0.4); color: #F2A9A9; }
.alert ul { display: grid; gap: 4px; }

/* ---------- 10. Forms ---------- */
.form-card { padding: clamp(28px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-soft); }
.req { color: var(--gold-bright); }
/* Style form controls by element too, so a missing .input/.select/.textarea
   class can never leave a browser-default white box on the navy card. */
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="search"], .field input[type="number"], .field input[type="date"],
.field select, .field textarea,
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"],
.form-card input[type="search"], .form-card select, .form-card textarea,
.input, .select, .textarea {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(8, 16, 24, 0.55); border: 1px solid var(--line);
  color: var(--white); font: inherit; font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder,
.field input::placeholder, .field textarea::placeholder,
.form-card input::placeholder, .form-card textarea::placeholder { color: var(--muted); opacity: 0.7; }
.input:focus, .select:focus, .textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus,
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.select, .field select, .form-card select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.select option, .field select option, .form-card select option,
.field select optgroup, .form-card select optgroup { background: var(--navy-900); color: var(--text); }
.textarea, .field textarea, .form-card textarea { min-height: 140px; resize: vertical; }
/* File inputs keep the dashed drop styling, not the solid field look. */
.field input[type="file"], .form-card input[type="file"] { padding: 12px; }
.field-hint { font-size: 0.76rem; color: var(--muted); }
.file-drop { position: relative; }
.file-drop input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed var(--line-gold); border-radius: var(--radius-sm); background: rgba(212, 175, 55, 0.04); color: var(--muted); font-size: 0.85rem; }

/* Contact info tiles */
.info-tile { display: flex; gap: 18px; align-items: flex-start; }
.info-tile .card-icon { margin: 0; width: 50px; height: 50px; font-size: 1.3rem; flex: 0 0 auto; }
.info-tile h3 { font-size: 0.98rem; margin-bottom: 4px; }
.info-tile p, .info-tile a { color: var(--muted); font-size: 0.92rem; }
.info-tile a:hover { color: var(--gold-bright); }

/* Verify result */
.verify-cert {
  border: 1.5px solid var(--line-gold); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.1), var(--surface) 55%);
  box-shadow: var(--glow-gold);
}
.verify-cert .vc-head { display: flex; align-items: center; gap: 14px; padding: 22px 30px; border-bottom: 1px solid var(--line-gold); }
.verify-cert .vc-head img { width: 44px; height: 44px; border-radius: 50%; }
.verify-cert .vc-body { padding: 26px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.verify-cert .vc-row b { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.verify-cert .vc-row span { color: var(--white); font-weight: 600; }
.vc-valid { display: inline-flex; align-items: center; gap: 8px; color: #7BD8A8; font-weight: 800; }
.vc-valid::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(123, 216, 168, 0.15); border: 1px solid rgba(123, 216, 168, 0.5); font-size: 0.75rem; }

/* ---------- 11. Footer ---------- */
.site-footer {
  margin-top: clamp(60px, 8vw, 100px);
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.25), rgba(8, 16, 24, 0.95) 30%);
  border-top: 1px solid var(--line-gold);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 320px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.09), transparent 65%); filter: blur(40px);
  pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(30px, 4vw, 54px);
  padding: clamp(54px, 7vw, 84px) 0 clamp(36px, 5vw, 54px);
}
.footer-brand .brand { margin: 0 0 18px; }
.footer-brand .f-tagline { color: var(--gold-bright); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-soft);
  transition: all var(--t-fast);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); box-shadow: var(--glow-gold); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: all var(--t-fast); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a::before { content: ""; width: 0; height: 1.5px; background: var(--gold); transition: width var(--t-fast); }
.footer-col a:hover { color: var(--white); }
.footer-col a:hover::before { width: 14px; }

.footer-contact li { display: flex; gap: 12px; color: var(--muted); font-size: 0.9rem; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold); flex: 0 0 auto; margin-top: 4px; }
.footer-contact a:hover { color: var(--gold-bright); }

.footer-news { margin-top: 26px; }
.footer-news form { display: flex; gap: 0; border: 1px solid var(--line-gold); border-radius: 999px; overflow: hidden; background: rgba(8, 16, 24, 0.5); }
.footer-news input {
  flex: 1; min-width: 0; padding: 13px 20px; background: none; border: 0; outline: none;
  color: var(--white); font-size: 0.88rem;
}
.footer-news input::placeholder { color: var(--muted); }
.footer-news button { padding: 0 22px; background: var(--grad-gold); color: #16130A; font-weight: 800; font-size: 0.84rem; }
.footer-news .f-note { font-size: 0.74rem; color: var(--muted); margin-top: 10px; }

.footer-map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.footer-map iframe { display: block; width: 100%; height: 150px; border: 0; filter: grayscale(0.4) contrast(1.05); }

.footer-bottom {
  border-top: 1px solid var(--line); padding: 24px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.8rem; color: var(--muted);
}
.footer-bottom a { color: var(--text-soft); }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- 12. Reveal on scroll ---------- */
/* Only hide pre-animation content when JS is running (main.js sets .js-anim on
   <html>), so a JS failure can never leave the page blank. */
.js-anim .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }
.js-anim .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js-anim .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  /* Match the .js-anim specificity so content is never left hidden. */
  .js-anim .reveal, .js-anim .reveal-stagger > *,
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- 13. Responsive ---------- */
/* The header must never clip. The desktop nav needs ~1035px of its own, so the
   drawer takes over well before that point rather than at a token 900px. */

@media (max-width: 1330px) {
  .nav-link { padding: 0 11px; font-size: 0.9rem; }
  .header-actions { gap: 10px; }
  .lang-btn { padding: 9px 12px; }
}

@media (max-width: 1180px) {
  .nav-desktop { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .topbar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .pub-card { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr auto; }
  .course-row .c-fac { grid-column: 1 / -1; }
  .course-code { grid-row: 1; }
  .verify-cert .vc-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  /* Apply Now lives in the drawer on phones, so the burger always has room. */
  .header-actions .btn--gold { display: none; }
  .brand__logo { width: 42px !important; height: 42px !important; }
  .brand__name { font-size: 1.15rem; }
  .brand__tag { font-size: 0.55rem; letter-spacing: 0.24em; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 34px, var(--container)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .stat { padding: 16px 18px; }
  .hero-ctas .btn { flex: 1; }
  .finder { border-radius: var(--radius-lg); flex-wrap: wrap; padding: 14px; }
  .finder input { width: 100%; padding: 6px 4px; }
  .finder .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; align-items: flex-start; }
  .timeline::before { left: 64px; }
  .timeline-item { grid-template-columns: 46px 38px 1fr; }
  .timeline-year { font-size: 1.05rem; }
  .steps { grid-template-columns: 1fr; }
  .verify-cert .vc-body { grid-template-columns: 1fr; }
  .tabs { gap: 6px; }
  .tab-btn { padding: 10px 16px; font-size: 0.86rem; }
  .section-head { margin-bottom: 30px; }
}

@media (max-width: 420px) {
  .brand__tag { display: none; }
  .search-toggle { width: 36px; height: 36px; }
  .lang-btn { padding: 8px 10px; font-size: 0.74rem; }
  .nav-burger { width: 38px; height: 38px; }
  .cta-band { padding: 38px 20px; }
  .fee-card .fee-price { font-size: 2.4rem; }
}

/* Long addresses, emails and URLs can never push a layout sideways. */
.footer-contact span, .footer-contact a, .info-tile p, .info-tile a,
.card p, .news-card p, .search-results a { overflow-wrap: anywhere; }

/* Media that ignores its container is the other classic cause of side-scroll. */
img, video, iframe, table { max-width: 100%; }
