/* =====================================================================
   NIT Meghalaya — 13th Convocation 2026 · Shared stylesheet
   Used by every page of the site.
   ===================================================================== */

/* =====================================================================
   1. DESIGN TOKENS
   All colours, shadows, radii and spacing live here so the whole theme
   can be adjusted from one place.
   ===================================================================== */
:root {
  /* Brand colours */
  --primary:        #0077B6;  /* Ocean Blue — buttons, links, highlights */
  --primary-dark:   #023E8A;  /* Dark Navy — headings, footer, nav text  */
  --primary-darker: #01285C;  /* Deeper navy for gradients              */
  --primary-light:  #48CAE4;  /* Tints & gradients (never body text)    */
  --primary-50:     #E6F4FA;  /* Soft section backgrounds               */
  --primary-100:    #CCE9F5;

  /* Surfaces & text */
  --surface:        #FFFFFF;
  --surface-alt:    #F7FAFC;
  --text:           #0F1B2D;
  --text-muted:     #5B6B7F;  /* 5.4:1 on white — passes AA          */
  --border:         #DDE6EE;

  /* Ceremonial accents (decorative use only on light backgrounds) */
  --accent-gold:       #C9A227;
  --accent-gold-light: #E3C766; /* Gold text on navy — passes AA      */
  --accent-silver:     #8C99A6;
  --success:        #1B7F4B;
  --danger:         #B3261E;

  /* Material-style elevation */
  --elev-1: 0 1px 3px rgba(2,62,138,.08), 0 1px 2px rgba(2,62,138,.06);
  --elev-2: 0 6px 16px rgba(2,62,138,.10);
  --elev-3: 0 16px 40px rgba(2,62,138,.14);

  /* Shape */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* 8px spacing system */
  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 40px; --space-6: 48px; --space-8: 64px; --space-10: 80px;
  --section-y: clamp(4rem, 10vw, 8rem);
  --container: 1200px;

  /* Typography */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hindi: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
  --fs-h1: clamp(2.6rem, 5.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.1rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 250ms;
}

/* =====================================================================
   2. RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;               /* guard against horizontal scroll */
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }            /* decorative offsets (gold frames, 3D booklet) never cause sideways scroll */  /* used while the drawer / modal is open */
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }

/* Visible, consistent keyboard focus ring (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--accent-gold-light); }

/* Screen-reader-only helper */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link — first focusable element on the page */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 2000;
  background: var(--primary-dark); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* =====================================================================
   3. TYPOGRAPHY
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
[lang="hi"] { font-family: var(--font-hindi); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 var(--space-2); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 64ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-2);
}
/* Thin gold hairline in front of every eyebrow — the ceremonial motif */
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-gold); }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.text-center .eyebrow { justify-content: center; }

/* =====================================================================
   4. LAYOUT UTILITIES
   ===================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--primary-50); }
.section--alt  { background: var(--surface-alt); }
.section-head { margin-bottom: var(--space-8); }
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Gold ornamental divider used between major blocks */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--accent-gold); margin: var(--space-3) 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 64px; background: currentColor; opacity: .7; }

/* =====================================================================
   5. BUTTONS, CHIPS & RIPPLE (Material micro-interaction)
   ===================================================================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-50); color: var(--primary-dark); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--primary-50); color: var(--primary-dark); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Ripple span injected by JS on pointerdown */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .25; transform: scale(0);
  animation: ripple 600ms var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Filter chips (Medalists page) */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; margin-bottom: var(--space-5); }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: #fff; color: var(--primary-dark); font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--elev-1); }

/* =====================================================================
   6. TOP UTILITY BAR
   ===================================================================== */
.topbar { background: var(--primary-darker); color: #E6EEF7; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 40px; flex-wrap: wrap; }
.topbar__info { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.topbar__info i { color: var(--accent-gold-light); margin-right: 6px; }
.social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-grid; place-items: center; width: 44px; height: 40px;
  color: #E6EEF7; border-radius: var(--radius-sm); transition: background var(--dur), color var(--dur);
}
.social a:hover { background: rgba(255,255,255,.1); color: var(--accent-gold-light); }

/* =====================================================================
   7. MASTHEAD — centered logo with navigation below
   ===================================================================== */
.masthead { background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.masthead__inner { display: flex; flex-direction: column; align-items: center; padding-top: var(--space-3); }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; text-decoration: none; color: var(--primary-dark); }
.brand__crest {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--accent-gold), var(--elev-2);
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand__crest { transform: rotate(-4deg) scale(1.03); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__hi { font-size: .95rem; color: var(--text-muted); }
.brand__en { font-family: var(--font-head); font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 700; }
.brand__sub { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-top: 4px; }
.brand__short { display: none; }

/* Primary navigation row */
.primary-nav { width: 100%; margin-top: var(--space-2); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-link, .dropdown-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 52px; padding: 0 14px; background: none; border: 0;
  color: var(--primary-dark); font-weight: 500; font-size: .93rem; text-decoration: none;
}
/* Animated underline for hover & the active page */
.nav-link::after, .dropdown-toggle::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav-link:hover::after, .dropdown-toggle:hover::after,
.nav-link[aria-current="page"]::after, .dropdown-toggle.is-current::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .dropdown-toggle.is-current { color: var(--primary); font-weight: 600; }
.dropdown-toggle i { font-size: .7rem; transition: transform var(--dur); }
.dropdown-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* "More" dropdown */
.dropdown {
  position: absolute; top: 100%; right: 0; min-width: 240px; z-index: 60;
  list-style: none; margin: 0; padding: 8px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--elev-3); border: 1px solid var(--border);
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
}
.dropdown.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.dropdown .nav-link { width: 100%; min-height: 44px; border-radius: var(--radius-sm); }
.dropdown .nav-link::after { display: none; }
.dropdown .nav-link:hover, .dropdown .nav-link[aria-current="page"] { background: var(--primary-50); }

/* Hamburger (mobile only) */
.hamburger {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; position: relative;
}
.hamburger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--primary-dark); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 30px; }

/* =====================================================================
   8. COMPACT STICKY BAR
   Appears (slides down) once the full masthead scrolls out of view.
   Implemented as a separate fixed bar so the page never "jumps".
   ===================================================================== */
.compact-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
  box-shadow: var(--elev-2); transform: translateY(-110%);
  transition: transform 350ms var(--ease);
}
.compact-bar.is-visible { transform: translateY(0); }
.compact-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 64px; }
.compact-bar .brand { flex-direction: row; text-align: left; gap: 12px; }
.compact-bar .brand__crest { width: 42px; height: 42px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent-gold); }
.compact-bar .brand__hi, .compact-bar .brand__en, .compact-bar .brand__sub { display: none; }
.compact-bar .brand__short { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.compact-bar .brand__short small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.compact-bar .primary-nav { width: auto; margin: 0; }
.compact-bar .nav-link, .compact-bar .dropdown-toggle { padding: 0 10px; font-size: .88rem; min-height: 64px; }
.compact-bar .nav-link::after, .compact-bar .dropdown-toggle::after { left: 10px; right: 10px; bottom: 16px; }
.compact-bar .dropdown .nav-link { min-height: 44px; }

/* Reading progress bar (sits at the very top of the viewport) */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1000;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--accent-gold));
  transform-origin: left; transform: scaleX(0);
}

/* =====================================================================
   9. MOBILE DRAWER
   ===================================================================== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(1,40,92,.5); z-index: 1100;
  opacity: 0; transition: opacity 300ms var(--ease);
}
.drawer-overlay.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 1200;
  background: #fff; box-shadow: var(--elev-3); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 350ms var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer__title { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); font-size: 1.1rem; }
.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--primary-dark); font-size: 1.1rem;
  transition: background var(--dur);
}
.icon-btn:hover { background: var(--primary-50); }
.drawer__nav { overflow-y: auto; padding: 12px; flex: 1; }
.drawer__nav ol { list-style: none; margin: 0; padding: 0; counter-reset: dn; }
.drawer__nav a {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 14px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--primary-dark); font-weight: 500;
}
.drawer__nav a::before { counter-increment: dn; content: counter(dn, decimal-leading-zero); font-size: .75rem; color: var(--text-muted); width: 20px; }
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary); }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }

/* =====================================================================
   10. PAGES & ROUTE TRANSITIONS
   ===================================================================== */
.page { animation: pageIn 550ms var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page h1[tabindex="-1"]:focus { outline: none; }

/* Inner page banner with its own parallax layers */
.page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--primary-dark);
}
.page-hero__layer { position: absolute; inset: -20% 0; z-index: -1; will-change: transform; }
.page-hero__bg { background:
    radial-gradient(1200px 400px at 85% -10%, rgba(72,202,228,.45), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-darker) 100%); }
.page-hero__pattern {
  opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
}
.page-hero__rings { opacity: .18; }
.page-hero__rings::before, .page-hero__rings::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--accent-gold-light);
}
.page-hero__rings::before { width: 520px; height: 520px; right: -140px; top: 10%; }
.page-hero__rings::after  { width: 320px; height: 320px; right: -40px; top: 28%; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-2); }
.page-hero .lead { color: #D7E6F5; }
.page-hero .eyebrow { color: var(--accent-gold-light); }
.page-hero .eyebrow::before { background: var(--accent-gold-light); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 var(--space-3); font-size: .88rem; }
.breadcrumb a { color: #D7E6F5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.5); }
.breadcrumb [aria-current] { color: #fff; }

/* =====================================================================
   11. HOME HERO — three parallax depth layers
   Layer 1 (slowest): campus photograph + gradient
   Layer 2 (medium):  Sohra hills & cloud silhouettes
   Layer 3 (normal):  foreground content
   ===================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  /* min-height: min(92vh, 880px); display: flex; align-items: center; */
  min-height: clamp(560px, 44vw, 780px); display: flex; align-items: center;
  padding: var(--space-10) 0 calc(var(--space-10) + 60px);
  background: var(--primary-darker);
}
.hero__layer { position: absolute; inset: -18% 0; will-change: transform; }
.hero__bg {
   /* z-index: -3; inset: -5% 0; */
   z-index: -3; inset: -3% 0; 
  /* Backup: paint the campus photo as a cover background too, so the hero is always filled */
  background: var(--primary-darker) url('../img/nitm.png') center 58% / cover no-repeat; }
.hero__bg img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; object-position: center 60%;
}
.hero__overlay { z-index: -2; inset: 0;
  background:
    linear-gradient(95deg, rgba(1,40,92,.78) 0%, rgba(1,40,92,.55) 26%, rgba(2,62,138,.18) 52%, rgba(2,62,138,0) 74%),
    linear-gradient(to top, rgba(1,40,92,.45) 0%, transparent 30%); }
.hero__hills { z-index: -1; inset: auto 0 -80px 0; height: calc(60% + 80px); }
.hero__hills svg { position: absolute; bottom: 0; width: 100%; height: 100%; }
.hero__clouds { z-index: -1; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(30px); }
.hero__content { position: relative; max-width: 820px; }
.hero .eyebrow { color: var(--accent-gold-light); }
.hero .eyebrow::before { background: var(--accent-gold-light); }
.hero h1 { color: #fff; font-size: clamp(3rem, 7.4vw, 5.75rem); margin-bottom: var(--space-2); }
.hero h1 em { font-style: italic; color: var(--accent-gold-light); font-weight: 600; }
.hero__sub { font-size: var(--fs-lead); color: #DCEAF6; max-width: 56ch; margin-bottom: var(--space-4); }
.meta-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-4); padding: 0; list-style: none; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25); font-size: .92rem; backdrop-filter: blur(6px);
}
.meta-chip i { color: var(--accent-gold-light); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.6); border-radius: 16px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =====================================================================
   12. COUNTDOWN (overlaps the bottom of the hero)
   ===================================================================== */
.countdown-wrap { position: relative; z-index: 5; margin-top: -40px; }
.countdown {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--elev-3);
  padding: var(--space-4); display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--space-4); align-items: center;
  border-top: 3px solid var(--accent-gold);
}
.countdown__label h2 { font-size: 1.5rem; margin-bottom: 4px; }
.countdown__label p { margin: 0; color: var(--text-muted); }
.countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.cd-unit { text-align: center; padding: var(--space-2) 8px; border-radius: var(--radius); background: var(--primary-50); }
.cd-unit__num { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--primary-dark); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.cd-unit__lbl { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.countdown__done { grid-column: 1 / -1; text-align: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary-dark); margin: 0; }

/* =====================================================================
   13. CARDS (generic Material surface)
   ===================================================================== */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--elev-1);
  border: 1px solid var(--border); overflow: hidden; position: relative;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur);
}
.card--hover:hover { box-shadow: var(--elev-3); transform: translateY(-4px); border-color: transparent; }
.card__body { padding: var(--space-3); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary); font-size: 1.4rem; margin-bottom: var(--space-2);
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.card--hover:hover .card__icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-top: var(--space-2); min-height: 44px; }
.card__link i { transition: transform var(--dur); }
.card__link:hover i { transform: translateX(4px); }
/* Stretched link: whole card becomes clickable */
.stretched::after { content: ""; position: absolute; inset: 0; }

/* Media wrapper with skeleton shimmer until the image loads */
.media { position: relative; overflow: hidden; background: var(--primary-50); }
.media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.7) 50%, transparent 80%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
.media.is-loaded::before { display: none; }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.media.is-loaded img { opacity: 1; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* Dignitary preview card on Home */
.dig-card .media { aspect-ratio: 4 / 4.4; }
.dig-card:hover .media img { transform: scale(1.05); }
.dig-card__role { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.dig-card h3 { font-size: 1.15rem; }
.dig-card p { font-size: .9rem; color: var(--text-muted); }

/* =====================================================================
   14. WELCOME MESSAGE / SPLIT LAYOUT
   ===================================================================== */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--rev { grid-template-columns: 7fr 5fr; }
.split--rev .split__media { order: 2; }
.portrait-frame { position: relative; }
.portrait-frame .media { aspect-ratio: 5 / 6; border-radius: var(--radius-lg); box-shadow: var(--elev-3); }
/* Offset gold frame behind the portrait */
.portrait-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg); z-index: -1;
}
.split--rev .portrait-frame::before { inset: 22px 22px -22px -22px; }
.signature { font-family: var(--font-head); font-size: 1.25rem; color: var(--primary-dark); margin-top: var(--space-3); margin-bottom: 0; }
.signature small { display: block; font-family: var(--font-body); font-size: .88rem; color: var(--text-muted); }
blockquote.pull {
  margin: 0 0 var(--space-3); padding-left: var(--space-3); border-left: 3px solid var(--accent-gold);
  font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--primary-dark); font-style: italic; line-height: 1.5;
}

/* =====================================================================
   15. STATISTICS COUNTER BAND (with parallax pattern)
   ===================================================================== */
.stats { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--primary-dark); }
.stats__layer { position: absolute; inset: -30% 0; z-index: -1; will-change: transform; }
.stats__layer--a { background: radial-gradient(700px 300px at 10% 50%, rgba(72,202,228,.35), transparent 60%), linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 60%); }
.stats__layer--b { opacity: .1; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.stats h2 { color: #fff; }
.stats .lead { color: #D7E6F5; }
.stats .eyebrow { color: var(--accent-gold-light); }
.stats .eyebrow::before { background: var(--accent-gold-light); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.stat {
  text-align: center; padding: var(--space-4) var(--space-2); border-radius: var(--radius);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  transition: background var(--dur), transform var(--dur);
}
.stat:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.stat i { font-size: 1.5rem; color: var(--accent-gold-light); margin-bottom: 12px; display: block; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.stat__lbl { display: block; margin-top: 10px; font-size: .9rem; color: #D7E6F5; }

/* =====================================================================
   16. CAROUSEL (testimonials + gallery)
   ===================================================================== */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); touch-action: pan-y; }
.carousel__track { display: flex; transition: transform 650ms var(--ease); }
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); }
.carousel__dots { display: flex; gap: 4px; }
.carousel__dot {
  width: 44px; height: 44px; border: 0; background: none; position: relative; padding: 0;
}
.carousel__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: var(--radius-pill); background: var(--primary-100); transition: all var(--dur) var(--ease);
}
.carousel__dot[aria-current="true"]::before { width: 28px; margin-left: -14px; background: var(--primary); }

.testimonial {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--space-5); align-items: center;
  background: #fff; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin: 4px; box-shadow: var(--elev-1);
}
.testimonial .media { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--accent-gold); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--primary-dark); line-height: 1.55; font-style: italic; }
.testimonial .fa-quote-left { font-size: 2rem; color: var(--primary-100); margin-bottom: 12px; }
.testimonial figcaption { font-weight: 600; color: var(--text); }
.testimonial figcaption span { display: block; font-weight: 400; color: var(--text-muted); font-size: .9rem; }

.gallery-slide { position: relative; }
.gallery-slide .media { aspect-ratio: 16 / 7; }
.gallery-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5) var(--space-4) var(--space-3);
  background: linear-gradient(transparent, rgba(1,40,92,.9)); color: #fff; font-weight: 500;
}
.gallery-slide figcaption strong { font-family: var(--font-head); font-size: 1.3rem; display: block; }

/* =====================================================================
   17. CTA BAND
   ===================================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
  padding: clamp(2rem, 6vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); box-shadow: var(--elev-3);
}
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; border: 1px solid rgba(227,199,102,.5); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #DCEAF6; margin: 0; }

/* =====================================================================
   18. DIGNITARY PROFILES + MODAL
   ===================================================================== */
.profile + .profile { margin-top: clamp(4rem, 10vw, 8rem); }
.profile__role {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--primary-50);
  color: var(--primary-dark); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-2);
}
.profile__desig { color: var(--primary); font-weight: 600; margin-bottom: var(--space-2); }
.profile ul.facts { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 8px; }
.profile ul.facts li { display: flex; gap: 12px; align-items: flex-start; }
.profile ul.facts i { color: var(--accent-gold); margin-top: 6px; }

dialog.modal {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  border-radius: var(--radius-lg); box-shadow: var(--elev-3); color: var(--text);
}
dialog.modal::backdrop { background: rgba(1,40,92,.6); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modalIn 350ms var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--border); z-index: 1;
}
.modal__head h2 { font-size: 1.4rem; margin: 0; }
.modal__body { padding: 24px; overflow-y: auto; }
.modal__body p { color: #33475B; }

/* =====================================================================
   19. TABS & DATA TABLES (Awardees)
   ===================================================================== */
.tabs [role="tablist"] {
  display: flex; gap: 6px; padding: 6px; background: var(--primary-50); border-radius: var(--radius-pill);
  width: fit-content; max-width: 100%; margin: 0 auto var(--space-4); overflow-x: auto;
}
.tab {
  min-height: 44px; padding: 8px 22px; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--primary-dark); font-weight: 600; white-space: nowrap; transition: all var(--dur) var(--ease);
}
.tab[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--elev-1); }
.table-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border: 1px solid var(--border); border-radius: var(--radius-pill); font: inherit; background: #fff; }
.search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(0,119,182,.15); }
.result-count { font-size: .9rem; color: var(--text-muted); margin: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--elev-1); background: #fff; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--primary-dark); color: #fff; font-weight: 600; font-size: .88rem; position: sticky; top: 0; }
.data-table tbody tr { transition: background var(--dur); }
.data-table tbody tr:nth-child(even) { background: var(--surface-alt); }
.data-table tbody tr:hover { background: var(--primary-50); }
.data-table td:first-child { color: var(--text-muted); width: 80px; }
.sort-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; font-weight: 600; padding: 0; min-height: 32px; }
.sort-btn i { opacity: .7; font-size: .8rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--primary-50); color: var(--primary-dark); font-size: .8rem; font-weight: 600; }

/* =====================================================================
   20. MEDALS & AWARDS
   ===================================================================== */
.medal-hero {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--space-5); align-items: center;
  background: linear-gradient(135deg, #FFFDF6 0%, #fff 60%); border: 1px solid #EBDDA8;
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--elev-2); position: relative; overflow: hidden;
  margin-bottom: var(--space-8);
}
.medal-hero::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent-gold); border-radius: 14px; opacity: .5; pointer-events: none; }
.medal-hero .media { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--accent-gold), var(--elev-2); }
.medal-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: radial-gradient(circle at 30% 30%, #F4DE8A, var(--accent-gold) 60%, #9C7A12);
  position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(201,162,39,.35);
}
/* Subtle shimmer that sweeps across medal icons */
.medal-icon::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
  transform: translateX(-120%); animation: medalShine 4s infinite;
}
@keyframes medalShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.medal-icon--silver { background: radial-gradient(circle at 30% 30%, #F1F4F7, var(--accent-silver) 60%, #5E6B77); box-shadow: 0 4px 10px rgba(94,107,119,.3); }
.medal-card { text-align: center; }
.medal-card .media { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto var(--space-2); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--accent-gold); }
.medal-card--silver .media { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--accent-silver); }
.medal-card { border-top: 3px solid var(--accent-gold); }
.medal-card--silver { border-top-color: var(--accent-silver); }
.medal-card .medal-icon { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
.medal-card .meta { font-size: .88rem; color: var(--text-muted); margin-bottom: 4px; }
.cgpa { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-weight: 700; color: var(--primary-dark); }
.group-title { display: flex; align-items: center; gap: 14px; margin: var(--space-8) 0 var(--space-3); }
.group-title h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.empty-state { text-align: center; color: var(--text-muted); padding: var(--space-4); grid-column: 1 / -1; }

.award-card { display: flex; flex-direction: column; }
.award-card__top { padding: var(--space-3); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; display: flex; gap: 16px; align-items: center; }
.award-card__top h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.award-card__top span { font-size: .8rem; color: #D7E6F5; letter-spacing: .1em; text-transform: uppercase; }
.award-card dl { margin: 0; display: grid; gap: 14px; }
.award-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 600; }
.award-card dd { margin: 2px 0 0; font-weight: 500; }
.award-card .thesis { font-family: var(--font-head); font-style: italic; color: var(--primary-dark); font-size: 1.05rem; }

/* =====================================================================
   21. SCHEDULE TIMELINE (progress line fills as you scroll)
   ===================================================================== */
.timeline { position: relative; margin: 0 auto; max-width: 900px; --progress: 0; }
.timeline__list { list-style: none; margin: 0; padding: 0; }
.timeline::before, .timeline__progress {
  content: ""; position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; border-radius: 3px;
}
.timeline::before { bottom: 0; background: var(--primary-100); }
.timeline__progress { height: calc(var(--progress) * 100%); background: linear-gradient(var(--primary-light), var(--primary), var(--primary-dark)); }
.tl-item { position: relative; width: 50%; padding: 0 var(--space-5) var(--space-5) 0; }
.tl-item:nth-child(odd) { margin-left: 50%; padding: 0 0 var(--space-5) var(--space-5); }
.tl-item::before {
  content: ""; position: absolute; top: 22px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary-100); transition: all 400ms var(--ease); z-index: 1;
}
.tl-item:nth-child(odd)::before { left: -9px; right: auto; }
.tl-item.is-active::before { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 6px rgba(0,119,182,.15); }
.tl-card { padding: var(--space-3); }
.tl-time { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: .9rem; margin-bottom: 6px; }
.tl-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tl-card p { font-size: .92rem; color: var(--text-muted); }

.rehearsal { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-4); border-left: 4px solid var(--accent-gold); }
.date-block { text-align: center; background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 14px 20px; min-width: 96px; }
.date-block strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.date-block span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-gold-light); }

/* =====================================================================
   22. NOTICE CALLOUT, STEPPER, ACCORDION
   ===================================================================== */
.notice {
  display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius);
  background: #FFF8E6; border: 1px solid #F0D98C; border-left: 5px solid var(--accent-gold);
}
.notice > i { font-size: 1.6rem; color: #8A6A0A; margin-top: 4px; }
.notice h2 { font-size: 1.35rem; color: #5C4600; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice li + li { margin-top: 6px; }

.stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; position: relative; }
.stepper::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-100) 0 10px, transparent 10px 18px); }
.step { text-align: center; position: relative; }
.step__num {
  width: 64px; height: 64px; margin: 0 auto var(--space-2); border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--primary); color: var(--primary); font-size: 1.3rem; position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--surface-alt); transition: all var(--dur);
}
.step:hover .step__num { background: var(--primary); color: #fff; transform: scale(1.06); }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .92rem; color: var(--text-muted); }

.accordion { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow var(--dur); }
.acc-item:has(.acc-trigger[aria-expanded="true"]) { box-shadow: var(--elev-2); border-color: var(--primary-100); }
.acc-item h3 { margin: 0; font-family: var(--font-body); font-size: 1rem; }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  min-height: 60px; padding: 16px 22px; background: none; border: 0; color: var(--primary-dark); font-weight: 600;
}
.acc-trigger i { transition: transform var(--dur) var(--ease); color: var(--primary); flex-shrink: 0; }
.acc-trigger[aria-expanded="true"] i { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease); }
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 20px; margin: 0; color: #33475B; }

.info-table th, .info-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; }
.info-table th { color: var(--primary-dark); font-weight: 600; width: 55%; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

/* =====================================================================
   23. BOOKLET (3D tilt cover)
   ===================================================================== */
.booklet-stage { perspective: 1200px; display: grid; place-items: center; padding: var(--space-4); }
.booklet {
  width: min(340px, 80vw); aspect-ratio: 3 / 4.2; border-radius: 6px 16px 16px 6px; position: relative;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 55%, var(--primary-darker) 100%);
  color: #fff; box-shadow: -14px 24px 50px rgba(1,40,92,.35), inset 12px 0 18px rgba(0,0,0,.25);
  transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(4deg); transition: transform 300ms var(--ease);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px;
}
.booklet::before { content: ""; position: absolute; inset: 14px 14px 14px 24px; border: 1px solid var(--accent-gold-light); border-radius: 4px 10px 10px 4px; opacity: .8; }
.booklet::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent); border-radius: 6px 0 0 6px; }
.booklet .crest-mini { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--accent-gold-light); margin-bottom: 18px; }
.booklet small { letter-spacing: .2em; text-transform: uppercase; font-size: .68rem; color: var(--accent-gold-light); }
.booklet strong { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.2; margin: 10px 0; }
.booklet span { font-size: .85rem; color: #D7E6F5; }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { color: var(--primary); margin-top: 5px; }

/* =====================================================================
   24. INVITATION CARD
   ===================================================================== */
.invite-wrap { display: grid; place-items: center; }
.invite {
  position: relative; width: min(680px, 100%); background: #FFFDF7; color: #1D2A3A; text-align: center;
  border: 10px solid var(--primary-dark); border-radius: 6px; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  box-shadow: var(--elev-3); overflow: hidden; transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
/* Gold hairline inner frame */
.invite::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent-gold); pointer-events: none; }
/* Shine sweep on hover */
.invite::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg);
  transition: left 900ms var(--ease); pointer-events: none;
}
.invite:hover { transform: translateY(-6px) rotateX(2deg); box-shadow: 0 24px 60px rgba(2,62,138,.22); }
.invite:hover::after { left: 130%; }
.invite__corner { position: absolute; width: 46px; height: 46px; border: 2px solid var(--accent-gold); }
.invite__corner--tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.invite__corner--tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.invite__corner--bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.invite__corner--br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }
.invite__crest { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #FFFDF7, 0 0 0 4px var(--accent-gold); }
.invite__hi { font-size: .95rem; color: #4A5A6C; margin: 0; }
.invite__inst { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--primary-dark); margin: 2px 0 0; font-weight: 700; }
.invite__addr { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #5B6B7F; margin: 4px 0 0; }
.invite__title { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3rem); color: var(--primary-dark); margin: 18px 0 0; line-height: 1.1; }
.invite__title sup { font-size: .5em; }
.invite__text { font-family: var(--font-head); font-style: italic; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.8; color: #2A3A4E; max-width: 46ch; margin: 0 auto 18px; }
.invite__date { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; padding: 14px 24px; border-top: 1px solid var(--accent-gold); border-bottom: 1px solid var(--accent-gold); margin-bottom: 22px; font-weight: 600; color: var(--primary-dark); }
.invite__date i { color: var(--accent-gold); margin-right: 6px; }
.invite__guests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.invite__guests small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6B5A1E; font-weight: 700; }
.invite__guests strong { font-family: var(--font-head); color: var(--primary-dark); font-size: 1.05rem; }
.invite__guests span { display: block; font-size: .82rem; color: #5B6B7F; }
.invite__rsvp { font-size: .9rem; color: #33475B; margin: 0; }

/* =====================================================================
   25. COMMITTEE
   ===================================================================== */
.committee-card .card__head { display: flex; align-items: center; gap: 14px; padding: var(--space-3); border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.committee-card .card__head .card__icon { margin: 0; width: 48px; height: 48px; font-size: 1.15rem; }
.committee-card .card__head h3 { margin: 0; font-size: 1.15rem; }
.member-list { list-style: none; margin: 0; padding: var(--space-2) var(--space-3) var(--space-3); display: grid; gap: 12px; }
.member { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: var(--primary-dark); background: var(--primary-50); border: 1px solid var(--primary-100);
}
.member--lead .avatar { background: var(--primary-dark); color: #fff; border-color: var(--accent-gold); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent-gold); }
.member strong { display: block; font-size: .95rem; }
.member span { display: block; font-size: .83rem; color: var(--text-muted); }
.member .role-tag { display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); font-weight: 700; }

/* =====================================================================
   26. PAST CONVOCATIONS TIMELINE (horizontal scroller)
   ===================================================================== */
.past-track { list-style: none; margin: 0; padding: 8px 4px 24px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; }
.past-track::-webkit-scrollbar { height: 8px; }
.past-track::-webkit-scrollbar-thumb { background: var(--primary-100); border-radius: 8px; }
.past-card { scroll-snap-align: start; padding: var(--space-3); border-top: 3px solid var(--primary); }
.past-card__no { font-family: var(--font-head); font-size: 2.6rem; color: var(--primary-100); line-height: 1; font-weight: 700; }
.past-card h3 { font-size: 1.15rem; margin: 6px 0; }
.past-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 6px; }
.scroller-nav { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: var(--space-2); }

/* =====================================================================
   27. CONTACT — cards, form, map
   ===================================================================== */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: var(--space-3); }
.contact-card .card__icon { margin: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p { font-size: .93rem; margin: 0; color: #33475B; }
.contact-card a { overflow-wrap: anywhere; }

.form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--primary-dark); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; color: var(--text);
  border: 1px solid #B9C7D4; border-radius: 12px; background: #fff; transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,119,182,.18); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF7F6; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179,38,30,.15); }
.field .hint { font-size: .82rem; color: var(--text-muted); }
.field .error { font-size: .85rem; color: var(--danger); font-weight: 500; display: flex; gap: 6px; align-items: center; min-height: 0; }
.field .error:empty { display: none; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--success); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */
.error-summary { border: 1px solid var(--danger); border-left: 5px solid var(--danger); background: #FFF7F6; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.error-summary h3 { font-family: var(--font-body); font-size: 1rem; color: var(--danger); margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--danger); }
.char-count { font-size: .8rem; color: var(--text-muted); text-align: right; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--elev-3); border: 6px solid #fff; aspect-ratio: 16 / 7; background: var(--primary-50); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =====================================================================
   28. TOAST, BACK-TO-TOP, REVEAL
   ===================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1500; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px;
  background: var(--primary-darker); color: #fff; box-shadow: var(--elev-3); max-width: calc(100vw - 32px);
  transition: transform 400ms var(--ease), visibility 400ms; visibility: hidden;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.toast i { color: #7EE2A8; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 800; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff; box-shadow: var(--elev-3); font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Scroll-reveal: elements start slightly lowered & transparent (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   29. FOOTER
   ===================================================================== */
.site-footer { background: var(--primary-darker); color: #C9D7E6; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent-gold), var(--primary)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5); padding-block: var(--space-10) var(--space-6); }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: var(--space-2); }
.site-footer p { font-size: .93rem; }
.site-footer a { color: #C9D7E6; text-decoration: none; }
.site-footer a:hover { color: var(--accent-gold-light); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.footer-links i { font-size: .65rem; color: var(--accent-gold-light); }
.footer-dates { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-dates strong { display: block; color: #fff; font-weight: 600; font-size: .93rem; }
.footer-dates span { font-size: .86rem; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-2); }
.footer-brand .brand__crest { width: 56px; height: 56px; box-shadow: 0 0 0 3px var(--primary-darker), 0 0 0 4px var(--accent-gold); }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.1rem; line-height: 1.3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--space-3); display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; align-items: center; font-size: .86rem; }
.footer-bottom .social a { color: #C9D7E6; }

/* 404 view */
.notfound { text-align: center; padding-block: var(--section-y); }
.notfound__code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =====================================================================
   30. RESPONSIVE BREAKPOINTS (mobile-first adjustments: 1200 / 992 / 768 / 576)
   ===================================================================== */
@media (max-width: 1200px) {
  .nav-link, .dropdown-toggle { padding: 0 10px; font-size: .9rem; }
  .compact-bar .nav-link, .compact-bar .dropdown-toggle { padding: 0 7px; font-size: .83rem; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  /* Compact bar gets tight — hide its nav and show the hamburger instead */
  .compact-bar .primary-nav { display: none; }
  .compact-bar .hamburger { display: block; }
}
@media (max-width: 991.98px) {
  .hero__overlay { background: linear-gradient(to bottom, rgba(1,40,92,.75) 0%, rgba(1,40,92,.50) 45%, rgba(1,40,92,.70) 100%); }
  .masthead__inner { flex-direction: row; justify-content: space-between; padding-block: 14px; }
  .masthead__inner { flex-direction: row; justify-content: space-between; padding-block: 14px; }
  .masthead .brand { flex-direction: row; text-align: left; }
  .masthead .brand__crest { width: 56px; height: 56px; }
  .masthead .brand__hi { font-size: .8rem; }
  .masthead .brand__en { font-size: 1.05rem; }
  .masthead .brand__sub { font-size: .68rem; }
  .masthead .primary-nav { display: none; }
  .hamburger { display: block; flex-shrink: 0; }
  .topbar__info li:nth-child(2) { display: none; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media { max-width: 460px; width: 100%; margin-inline: auto; }
  .countdown { grid-template-columns: 1fr; text-align: center; }
  .testimonial { grid-template-columns: 1fr; text-align: center; }
  .testimonial .media { width: 160px; margin: 0 auto; }
  .medal-hero { grid-template-columns: 1fr; text-align: center; }
  .medal-hero .media { width: 220px; margin: 0 auto; }
  .medal-hero .medal-icon { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: 1fr 1fr; row-gap: var(--space-5); }
  .stepper::before { display: none; }
}
@media (max-width: 767.98px) {
  /* Timeline collapses to a single column with the line on the left */
  .timeline::before, .timeline__progress { left: 12px; }
  .tl-item, .tl-item:nth-child(odd) { width: 100%; margin-left: 0; padding: 0 0 var(--space-3) 44px; }
  .tl-item::before, .tl-item:nth-child(odd)::before { left: 3px; right: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .rehearsal { grid-template-columns: auto 1fr; }
  .rehearsal .btn { grid-column: 1 / -1; }
  .gallery-slide .media { aspect-ratio: 4 / 3; }
  .map-frame { aspect-ratio: 4 / 3; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid li:last-child { grid-column: 1 / -1; }
  .topbar__inner { justify-content: center; }
  .topbar__info { justify-content: center; }
  .topbar .social { display: none; }
}
@media (max-width: 575.98px) {
  .masthead .brand__hi { display: none; }
  .masthead__inner { gap: 12px; }
  .masthead .brand { gap: 10px; }
  .masthead .brand__crest { width: 46px; height: 46px; }
  .masthead .brand__en { font-size: .95rem; }
  .countdown__units { gap: 8px; }
  .cd-unit { padding: 12px 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .invite__guests { grid-template-columns: 1fr; }
  .notice { flex-direction: column; }
  .scroll-cue { display: none; }
  .btn-row .btn { width: 100%; }
  .portrait-frame::before, .split--rev .portrait-frame::before { inset: 14px -8px -14px 8px; }
}

/* =====================================================================
   31. REDUCED MOTION — respect the user's OS setting
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__layer, .page-hero__layer, .stats__layer { transform: none !important; }
}

/* =====================================================================
   32. PRINT — prints only the Invitation card or Schedule when requested
   ===================================================================== */
@media print {
  .topbar, .masthead, .compact-bar, .progress-bar, .site-footer, .to-top, .toast, .no-print, .page-hero { display: none !important; }
  body { background: #fff; }
  body[data-print] * { visibility: hidden; }
  body[data-print] .print-area, body[data-print] .print-area * { visibility: visible; }
  body[data-print] .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .invite { box-shadow: none; transform: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invite::after { display: none; }
  .tl-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: none; }
}

/* =====================================================================
   DRESS CODE (information.html — Annexure I)
   ===================================================================== */
#dress-code .grid + .grid,
#dress-code .grid + .notice { margin-top: var(--space-3); }
.dress-head { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: end; }
.dress-head .lead { max-width: 72ch; }
.dress-head p:last-child { margin-bottom: 0; max-width: 72ch; color: var(--text-muted); }

.dress-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.dress-list li { position: relative; padding-left: 28px; }
.dress-list li + li { margin-top: 8px; }
.dress-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary-100); box-shadow: inset 0 0 0 3px var(--primary);
}

.swatches { list-style: none; margin: var(--space-2) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; color: var(--primary-dark); }
.swatch {
  width: 72px; height: 72px; border-radius: 50%; background: var(--sw);
  border: 1px solid #D8D2C4; box-shadow: var(--elev-1);
}
.dress-note { font-style: italic; color: var(--text-muted); margin-top: var(--space-2); }

.attire-grid .card__body { display: flex; flex-direction: column; height: 100%; }
.attire-row {
  margin-top: auto; padding-top: var(--space-3);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.attire-fig { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-alt); aspect-ratio: 1 / 3.2; }
.attire-fig img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; display: block; }
.attire-cap { text-align: center; font-weight: 700; font-size: .9rem; color: var(--primary-dark); margin: 12px 0 0; }

.dress-avoid ul { columns: 2 320px; column-gap: var(--space-4); }
.dress-avoid li { break-inside: avoid; }

@media (max-width: 760px) {
  .dress-head { grid-template-columns: 1fr; align-items: start; }
  .swatch { width: 56px; height: 56px; }
  .notice.dress-avoid { flex-direction: column; gap: var(--space-2); padding: var(--space-3); }
}
/* Chief Guest profile PDF inside the pop-up */
.pdf-embed { margin-top: var(--space-3); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-alt); }
.pdf-embed iframe { display: block; width: 100%; height: 70vh; min-height: 480px; border: 0; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }

/* Sub-headings and icon lists inside the profile pop-up */
.modal__body h3 { font-size: 1.3rem; margin: var(--space-3) 0 var(--space-1); }
.profile-meta { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: grid; gap: 8px; }
.profile-meta li { display: flex; gap: 10px; align-items: baseline; color: #33475B; }
.profile-meta i { color: var(--primary); width: 18px; text-align: center; flex-shrink: 0; }
.profile-meta a { overflow-wrap: anywhere; }

/* Profile pages shown as images inside the pop-up */
.profile-pages { display: grid; gap: 20px; margin-top: var(--space-3); }
.profile-pages img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--elev-1); transition: box-shadow var(--dur); }
.profile-pages a:hover img { box-shadow: var(--elev-3); }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }

.profile-source { font-size: .85rem; color: var(--text-muted); margin-top: var(--space-3); }