/* ==========================================================================
   iVAR Lab — Modern Academic & Immersive Tech Design System
   Interactive Virtual & Augmented Reality Lab · IIT Kharagpur
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand Palette */
  --navy-deep: #050b18;
  --navy-950: #081126;
  --navy-900: #0c1a36;
  --navy-800: #12244a;
  --navy-700: #1a3466;
  --navy-600: #25488c;

  /* Accent Colors */
  --accent-cyan: #0284c7;
  --accent-cyan-light: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-cyan-subtle: rgba(2, 132, 199, 0.08);

  --gold: #d4af37;
  --gold-light: #f59e0b;
  --gold-subtle: rgba(212, 175, 55, 0.12);

  --burgundy: #8c1d40;
  --burgundy-subtle: rgba(140, 29, 64, 0.08);

  /* Surface & Backgrounds */
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-dark: #0c1a36;

  /* Neutral Text / Ink */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --text-inverse-muted: #94a3b8;

  /* Borders & Dividers */
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(56, 189, 248, 0.35);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 50px -12px rgba(15, 23, 42, 0.2);
  --shadow-glow: 0 0 30px -4px rgba(56, 189, 248, 0.3);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--navy-700);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

::selection {
  background: rgba(2, 132, 199, 0.2);
  color: var(--navy-900);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section, main > div {
  animation: fadeUp 0.45s ease both;
}

/* ==========================================================================
   Header & Modern Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

/* Brand Lockup (Left Corner) */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* Navbar logo is white-on-light; render it dark so it contrasts the light bar */
.navbar .brand-logo {
  filter: brightness(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.brand-name span {
  color: var(--accent-cyan);
}

.brand-sub {
  font-size: 14px;
  font-weight: 1000;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Menu Items */
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 auto;
}

.menu > a, .dropbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.menu > a:hover, .dropbtn:hover, .dropbtn:focus-visible {
  color: var(--accent-cyan);
  background: var(--bg-subtle);
  outline: none;
}

.menu > a.active, .dropbtn.active {
  color: var(--accent-cyan);
  font-weight: 700;
  background: var(--accent-cyan-subtle);
}

.menu > a.active::after, .dropbtn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

/* Nav CTA Button */
.menu > a.nav-cta {
  margin-left: 10px;
  padding: 9px 18px;
  color: #ffffff !important;
  font-weight: 600;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(12, 26, 54, 0.18);
  transition: var(--transition);
}

.menu > a.nav-cta:hover, .menu > a.nav-cta.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0369a1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.menu > a.nav-cta.active::after {
  display: none;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  gap: 5px;
}

.dropbtn .caret {
  font-size: 10px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.dropdown:hover .dropbtn .caret {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--surface);
  min-width: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 600;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-content a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.dropdown-content a:hover {
  background: var(--bg-subtle);
  color: var(--accent-cyan);
  padding-left: 17px;
}

.dropdown-content a:hover::before {
  background: var(--accent-cyan);
  transform: scale(1.4);
}

/* Right Corner (IIT Kharagpur Logo & Controls) */
.nav-right-corner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-inst-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-inst-link:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.nav-inst-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
}

.hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Announcement strip (homepage banner)
   ========================================================================== */
.announcement-strip {
  position: relative;
  display: block;
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  text-decoration: none;
  overflow: hidden;
}
.announcement-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 140px at 12% 50%, rgba(2, 132, 199, 0.20), transparent 70%),
    radial-gradient(480px 140px at 88% 50%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.announcement-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(56, 189, 248, 0.5) 45%, rgba(212, 175, 55, 0.5) 60%, transparent 95%);
}
.announcement-strip:hover::before { opacity: 0.75; }
.announcement-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.announcement-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.10);
  color: var(--gold-light);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.announcement-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: announcePulse 2.4s ease-out infinite;
}
@keyframes announcePulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.announcement-strip-title {
  flex: 1;
  min-width: 0;
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.announcement-strip:hover .announcement-strip-title { color: var(--accent-cyan-light); }
.announcement-strip-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-inverse-muted);
}
.announcement-strip-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan-light);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.announcement-strip-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.announcement-strip:hover .announcement-strip-arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .announcement-strip-date { display: none; }
  .announcement-strip-label { display: none; }
}

/* ==========================================================================
   Announcements page
   ========================================================================== */
.announce-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.announce-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 32px 26px 36px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  animation: fadeUp 0.5s ease both;
}
.announce-card:nth-child(2) { animation-delay: 0.06s; }
.announce-card:nth-child(3) { animation-delay: 0.12s; }
.announce-card:nth-child(4) { animation-delay: 0.18s; }
.announce-card:nth-child(5) { animation-delay: 0.24s; }
.announce-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan-light), var(--accent-cyan));
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.announce-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.22);
}
.announce-card:hover::before { transform: scaleY(1); }
.announce-card.is-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, rgba(212, 175, 55, 0.65), rgba(56, 189, 248, 0.5)) border-box;
  box-shadow: 0 12px 32px -14px rgba(212, 175, 55, 0.35);
}
.announce-card.is-featured:hover {
  box-shadow: 0 16px 40px -14px rgba(212, 175, 55, 0.45);
}
.announce-card.is-featured::before {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transform: scaleY(1);
}
.announce-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.announce-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.announce-date svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}
.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--gold-subtle);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #8a6d1a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.announce-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.announce-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.announce-status.is-live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #047857;
}
.announce-status.is-live::before {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: announce-pulse 1.8s ease-out infinite;
}
@keyframes announce-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.announce-status.is-upcoming {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.32);
  color: #0369a1;
}
.announce-status.is-ended {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.announce-title {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.announce-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 18px;
}
.announce-link { margin-top: 2px; }

/* ==========================================================================
   IP (Patents & Copyrights) Section
   ========================================================================== */
.ip-section { margin-top: 40px; }
.ip-section:first-of-type { margin-top: 0; }
.ip-section h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 10px;
  margin: 0 0 24px;
}
.ip-list {
  display: grid;
  gap: 16px;
}
.ip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.ip-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: #cbd5e1;
  border-left-color: var(--accent-cyan);
}
.ip-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ip-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.35;
  flex: 1;
}
.ip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 4px;
}
.ip-field {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.ip-field strong {
  color: var(--text);
  font-weight: 600;
}
.ip-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 0;
}
.ip-item .doi-btn {
  margin-top: 12px;
}
.ip-status {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ip-status.is-granted,
.ip-status.is-registered {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
}
.ip-status.is-pending {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
}
.ip-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ip-meta div {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ip-meta strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}
.ip-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}
@media (max-width: 640px) {
  .announce-card { padding: 22px 22px 22px 26px; }
  .announce-title { font-size: 17.5px; }
}

/* ==========================================================================
   Homepage Hero Section
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(2, 132, 199, 0.15), transparent 70%),
    radial-gradient(800px 400px at 10% 90%, rgba(212, 175, 55, 0.08), transparent 60%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-950) 45%, var(--navy-900) 100%);
  color: var(--text-inverse);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(ellipse 900px 620px at 12% 45%, rgba(7, 25, 47, 0.8) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Vanta canvas sits behind the grid scrim (z-index 0) */
.hero .vanta-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* Hero Content (Left) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-cyan-light);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan-light);
  box-shadow: 0 0 8px var(--accent-cyan-light);
}

.hero-badge-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(1.2);
}

.hero-title {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.68;
  color: #e2e8f0;
  max-width: 540px;
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  opacity: 0.96;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-highlights-row {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
}

.hero-mini-stat .num {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
}

.hero-mini-stat .lbl {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Showcase Card (Right) */
.hero-visual-card {
  position: relative;
  background: rgba(12, 26, 54, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 40px -10px rgba(2, 132, 199, 0.2);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-pi-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--accent-cyan-light);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.hero-pi-meta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-pi-meta .role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-pi-meta .dept {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}

/* Research Pillars Grid inside Hero */
.hero-pillars-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 12px;
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.pillar-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(56, 189, 248, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 2px solid rgba(56, 189, 248, 0.55);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.015em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.pillar-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-cyan-light);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.pillar-chip:nth-child(2)::before { background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,0.7); }
.pillar-chip:nth-child(3)::before { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.7); }
.pillar-chip:nth-child(4)::before { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.7); }
.pillar-chip:nth-child(2) { border-left-color: rgba(167,139,250,0.65); }
.pillar-chip:nth-child(3) { border-left-color: rgba(251,191,36,0.65); }
.pillar-chip:nth-child(4) { border-left-color: rgba(52,211,153,0.65); }

.pillar-chip:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(255, 255, 255, 0.10));
  border-color: rgba(56, 189, 248, 0.40);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(56, 189, 248, 0.18);
}

.pillar-chip .p-icon {
  font-size: 16px;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Stats Band
   ========================================================================== */
.stats-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 38px 0;
  box-shadow: var(--shadow-xs);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-box {
  text-align: center;
  position: relative;
  padding: 8px 12px;
}

.stat-box:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Interior Page Hero (Compact, Modern, Crisp)
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(2, 132, 199, 0.12), transparent 70%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-900) 100%);
  color: #ffffff;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--border-dark);
}

.page-hero-compact {
  padding: 20px 0 18px;
}
.page-hero-compact h1 {
  font-size: 26px;
}
.page-hero-compact .lead {
  font-size: 13.5px;
  margin-top: 2px;
}
.page-hero-compact .breadcrumb {
  margin-bottom: 6px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #94a3b8;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb .sep {
  color: #475569;
}

.breadcrumb .current {
  color: var(--accent-cyan-light);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.page-hero .lead {
  font-size: 15px;
  color: #94a3b8;
  max-width: 620px;
  line-height: 1.5;
}

/* ==========================================================================
   Sections & Section Headers
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 36px;
  max-width: 680px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.section-head p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff !important;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0369a1);
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, var(--navy-800));
  border-color: #0369a1;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: #ffffff;
  color: var(--navy-900) !important;
  border-color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-900) !important;
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--navy-900);
  color: #ffffff !important;
  border-color: var(--navy-900);
}

.btn-small {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-secondary) !important;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary) !important;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Feature & Focus Cards (Home) */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan-light);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Team & Member Showcase
   ========================================================================== */
.team-pi-section {
  margin-bottom: 44px;
}

.pi-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.pi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--gold));
}

.pi-photo {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
}

.pi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.pi-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.pi-info .pi-affiliation {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pi-info .pi-bio {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pi-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Researcher Member Cards */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan-light);
}

.member-avatar-wrap {
  position: relative;
  margin-bottom: 14px;
}

.member-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border), var(--shadow-sm);
  background: var(--bg-subtle);
}

.member-avatar-fallback {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #94a3b8;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border), var(--shadow-sm);
  background: var(--bg-subtle);
}

.member-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
  text-transform: capitalize;
}

.member-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  width: 100%;
}

.member-affil {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Role-grouped team sections */
.role-group {
  margin-bottom: 44px;
}

.role-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent-gold);
}

.role-group-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   Distinguished Lab Alumni Section (Special Hall of Fame)
   ========================================================================== */
.alumni-section {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 44px 36px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(212, 175, 55, 0.14), transparent 70%),
    radial-gradient(600px 300px at 90% 100%, rgba(2, 132, 199, 0.12), transparent 70%),
    linear-gradient(145deg, #060d1a 0%, #0c1829 60%, #10233d 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 16px 40px -10px rgba(5, 11, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.alumni-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-cyan-light), transparent);
}

.alumni-header {
  margin-bottom: 30px;
  max-width: 760px;
}

.alumni-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #070e1c;
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
  margin-bottom: 12px;
}

.alumni-badge-ic {
  font-size: 13px;
}

.alumni-header h2 {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.alumni-sub {
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.55;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.alumni-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-xl);
  padding: 26px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alumni-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 175, 55, 0.18);
}

.alumni-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.alumni-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.alumni-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #f6e05e;
  border: 3px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.alumni-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.alumni-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6e05e;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 8px;
}

.alumni-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin-top: 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-gold);
  font-size: 13px;
  color: #e2e8f0;
  text-align: left;
  line-height: 1.45;
}

.alumni-info-ic {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

.alumni-card-footer {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.tag.accent {
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
}

.tag.gold {
  background: var(--gold-subtle);
  color: #b45309;
}

/* Collaborator Cards */
.collab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.collab-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan-light);
}

.collab-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid var(--border);
  background: var(--bg-subtle);
}

.collab-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.collab-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Equipment & Hardware Showcase
   ========================================================================== */
.equip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.equip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan-light);
}

.equip-img-wrap {
  width: 100%;
  height: 180px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.equip-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.equip-card:hover .equip-img-wrap img {
  transform: scale(1.05);
}

.equip-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.equip-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.equip-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* Media & Press Coverage cards */
.media-preview {
  position: relative;
  width: 100%;
  height: 180px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-card:hover .media-preview img {
  transform: scale(1.05);
}

.media-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.media-preview-fallback .media-ic {
  font-size: 40px;
}

.media-preview-fallback span {
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
  margin-bottom: 14px;
}

/* ==========================================================================
   Publications Filter & Academic Cards
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.filter-btn.active {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.pub-list {
  display: grid;
  gap: 16px;
}

.pub-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.pub-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: #cbd5e1;
  border-left-color: var(--accent-cyan);
}

.pub-item .citation {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}

.pub-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pub-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

.pub-item p strong {
  color: var(--navy-900);
  font-weight: 600;
}

.pub-meta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.doi-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--navy-900);
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.doi-btn:hover {
  background: var(--accent-cyan);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Awards & Gallery
   ========================================================================== */
.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-align: center;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.award-badge-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  color: var(--gold-light);
  font-size: 24px;
  margin: 0 auto 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.award-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  cursor: zoom-in;
  border: 1px solid var(--border);
}

.award-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.award-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(8px);
}

.lightbox.display {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Read More floating modal */
.readmore-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 24, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.readmore-modal.display {
  display: flex;
}

.readmore-panel {
  position: relative;
  background: var(--surface);
  color: var(--text-strong, #1e293b);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.readmore-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--navy-900);
  padding-right: 40px;
}

.readmore-body {
  flex: 1 1 auto;
  overflow-y: auto;
  color: var(--text-muted, #475569);
  line-height: 1.6;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.readmore-image {
  width: 100%;
  max-height: 40vh;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.readmore-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--navy-900);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.readmore-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.readmore-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Showcase / Video Grid & Clean Empty States
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.video-card h4 {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state .empty-ic {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================================
   Contact / Join Page
   ========================================================================== */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  border-radius: var(--radius-md);
}

.contact-ic svg {
  width: 20px;
  height: 20px;
}

.contact-block .k {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-block .v {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-900);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--navy-900);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
  display: block;
}

input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.success-note {
  padding: 12px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ==========================================================================
   Admin Section & Sizing Fixes (Critical: SVG sizing bug)
   ========================================================================== */
.admin-login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 60px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* FIX: Ensure lock icon is constrained to standard 48x48px */
.login-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.login-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.login-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.login-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 16px;
  text-align: center;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-section-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
}

.admin-section-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-sub {
  margin-bottom: 20px;
  padding-left: 8px;
}

.admin-list {
  list-style: none;
}

.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.admin-list li:hover {
  background: var(--bg-subtle);
}

.admin-list li:last-child {
  border-bottom: none;
}

.admin-list .empty {
  color: var(--text-muted);
  justify-content: flex-start;
}

.item-label {
  flex: 1;
  font-weight: 500;
  font-size: 14.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.inline-form {
  display: inline;
}

.upload-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
}

.admin-form-wrap .card {
  text-align: left;
  padding: 32px;
}

/* ==========================================================================
   Admin / CMS (sidebar, tables, drawer, action menus, pagination, grid)
   ========================================================================== */
.admin-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.admin-sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  box-shadow: var(--shadow-xs);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.admin-sidebar-brand-mark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.admin-sidebar-brand-mark span {
  color: var(--accent-cyan);
}
.admin-sidebar-brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-group {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 16px 10px 5px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.14s ease, color 0.14s ease;
}
.admin-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--navy-900);
}
.admin-nav-link.active {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}
.admin-nav-ico {
  width: 17px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}
.admin-nav-count {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--text-secondary);
}
.admin-nav-link.active .admin-nav-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.admin-sidebar-nav-bottom {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.admin-content {
  flex: 1;
  min-width: 0;
}
.admin-content-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-content-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
}
.admin-content-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}
.admin-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}
.admin-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
}
.admin-search input {
  padding: 7px 12px 7px 32px;
}
.admin-search-ico {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}
.admin-filters select {
  min-width: 130px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  color: inherit;
  transition: border-color 0.14s, transform 0.14s;
}
.stat-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}
.stat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}
.stat-card-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
}
.stat-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
}
.stat-card-pub {
  font-weight: 600;
}
.stat-card-go {
  color: var(--accent-cyan);
  font-weight: 700;
}
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.admin-table th,
.admin-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-subtle);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover {
  background: var(--bg-subtle);
}
.admin-th-check { width: 34px; }
.admin-th-actions { width: 130px; text-align: right; }
.admin-cell-empty { padding: 22px; text-align: center; color: var(--text-muted); }
.admin-item-label {
  font-weight: 600;
  color: var(--navy-900);
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-item-meta { font-size: 12px; color: var(--text-muted); }
.admin-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.status-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status-badge.published { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-badge.draft { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.action-menu { position: relative; display: inline-block; }
.action-menu-btn { padding: 2px 8px; font-weight: 700; }
.action-menu-drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
}
.action-menu.open .action-menu-drop { display: flex; }
.action-menu-drop button,
.action-menu-drop a,
.action-menu-drop form button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.action-menu-drop button:hover,
.action-menu-drop a:hover {
  background: var(--bg-subtle);
  color: var(--navy-900);
}
.action-menu-drop .danger { color: #dc2626; }
.action-menu-drop .danger:hover { background: #fef2f2; color: #b91c1c; }
.admin-bulk,
.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
}
.admin-bulk .btn,
.admin-bulk-bar .btn { margin: 0; }
.admin-bulk:not([hidden]),
.admin-bulk-bar:not([hidden]) { display: flex; }

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-page-info { font-size: 12.5px; color: var(--text-muted); margin-right: 4px; }
.pager-link { min-width: 28px; text-align: center; justify-content: center; }
.pager-link.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.admin-grid-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.admin-grid-item .bulk-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}
.admin-grid-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-grid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-grid-label {
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-grid-actions { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 12px; }

.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.45); backdrop-filter: blur(1.5px); }
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-head h3 { font-size: 17px; font-weight: 800; color: var(--navy-900); }
.drawer-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0 4px; }
.drawer-body { padding: 20px; overflow-y: auto; }
.drawer-loading { padding: 40px; text-align: center; color: var(--text-muted); }
.drawer { overflow: hidden; }

.activity-list { display: flex; flex-direction: column; }
.activity-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.activity-list li:last-child { border-bottom: none; }
.activity-action { font-weight: 700; color: var(--navy-900); }
.activity-when { margin-left: auto; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.activity-label { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 960px) {
  .admin-layout { flex-direction: column; padding: 16px 16px 40px; }
  .admin-sidebar { position: static; width: 100%; flex: none; max-height: none; }
  .admin-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-group { border-top: none; margin-top: 0; padding-top: 0; }
  .admin-sidebar-nav-bottom { display: none; }
  .stat-grid { grid-template-columns: 1fr; gap: 20px; }
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-deep);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  position: relative;
  padding: 60px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.3fr;
  gap: 40px;
}

.footer .f-brand {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .f-brand span {
  color: var(--accent-cyan-light);
}

.footer h4 {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer a {
  color: #94a3b8;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.footer a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer p {
  margin-bottom: 6px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.footer .contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.footer .contact-line svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent-cyan-light);
}

.footer .contact-line a {
  display: inline;
  margin: 0;
}

.footer .contact-line a:hover {
  transform: none;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer a.social-ic {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.footer a.social-ic:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.social-ic svg {
  display: block;
  width: 16px;
  height: 16px;
}

.map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

.map iframe {
  width: 100%;
  height: 140px;
  border: 0;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .hamburger {
    display: block;
  }

  .nav-inner {
    flex-wrap: wrap;
    min-height: 68px;
  }

  .nav-inst-logo {
    height: 38px;
  }

  .menu {
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    margin-top: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .menu.open {
    display: flex;
  }

  .menu > a.active::after, .dropbtn.active::after {
    display: none;
  }

  .menu > a.active, .dropdown .dropbtn.active {
    background: var(--bg-subtle);
  }

  .menu > a.nav-cta {
    margin: 8px 12px;
    justify-content: center;
  }

  .dropdown-content {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: var(--bg-subtle);
    margin: 4px 12px;
    padding: 6px;
  }

  .dropdown:hover .dropdown-content,
  .dropdown.open .dropdown-content {
    display: block;
    opacity: 1;
    transform: none;
  }

  .dropdown .dropbtn {
    justify-content: space-between;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-box:nth-child(2)::after {
    display: none;
  }

  .pi-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 24px;
  }

  .pi-photo {
    width: 160px;
    height: 160px;
  }

  .pi-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inst-logo {
    height: 34px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-highlights-row {
    flex-direction: column;
    gap: 16px;
  }

  .hero-pillars-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-box::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 36px 0 32px;
  }
}

/* ==========================================================================
   Tier 3 — 3D enhancements (AR/VR lab feel)
   ========================================================================== */
/* 3D pointer tilt + cursor spotlight on cards */
.tilt3d {
  --mx: 50%;
  --my: 50%;
  --sx: 0;
  --sy: 0;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

/* Cursor-following spotlight (AR/VR "light from above" feel) */
.tilt3d::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background:
    radial-gradient(280px at var(--mx) var(--my), rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(500px at var(--mx) var(--my), rgba(255, 255, 255, 0.05), transparent 75%);
}

.tilt3d:hover::before {
  opacity: 1;
}

.tilt3d.tilt-active {
  transition: transform 0.08s linear;
}

/* Direction-aware 3D shadow (shifts opposite the tilt for depth) */
.tilt3d:hover {
  box-shadow:
    calc(var(--sx) * -22px) calc(var(--sy) * -22px) 44px -14px rgba(2, 132, 199, 0.45),
    calc(var(--sx) * -10px) calc(var(--sy) * -10px) 30px -10px rgba(56, 189, 248, 0.3),
    0 22px 44px -12px rgba(0, 0, 0, 0.45);
}

/* Hero scroll parallax (driven by --parallax JS var) */
.hero {
  --parallax: 0px;
}

.hero .container {
  transform: translateY(calc(var(--parallax) * -1));
  transition: transform 0.1s linear;
}

.hero-visual-card {
  transform: translateY(calc(var(--parallax) * 0.4));
  transition: transform 0.12s linear;
}

/* Floating micro-icons on section headers (immersive accent) */
.section-eyebrow {
  position: relative;
}

.section-eyebrow::after {
  content: "✦";
  position: absolute;
  top: -14px;
  right: -22px;
  font-size: 16px;
  color: var(--accent-cyan);
  opacity: 0.8;
  animation: floatY 3.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .tilt3d,
  .section-eyebrow::after,
  .hero .container,
  .hero-visual-card {
    transition: none;
    animation: none;
    transform: none !important;
  }
  .tilt3d::before {
    opacity: 0 !important;
  }
}
