/* ==========================================================================
   Laboratory of Food Bioactives and Molecular Health (FBMH)
   Department of Biochemistry and Molecular Biology, University of Chittagong
   ========================================================================== */

:root {
  /* Brand palette */
  --primary: #0A2540;
  --primary-dark: #061A30;
  --primary-light: #1E3A5F;
  --primary-soft: #E8EEF5;

  /* Lab accent colors */
  --lab1-accent: #C8902E;          /* Food Science & Nutraceutical — amber/gold */
  --lab1-accent-dark: #A0731F;
  --lab1-accent-soft: #F5E9D0;

  --lab2-accent: #2A9D8F;          /* Applied Biosciences — teal/green */
  --lab2-accent-dark: #1F7A6F;
  --lab2-accent-soft: #D6EFEB;
  /* DNA cursor colors (high-contrast defaults) */
  --dna-strand-1: #0B3D91; /* deep blue */
  --dna-strand-2: #A3E635; /* lime */

  /* Neutrals */
  --text: #1A1A1A;
  --text-muted: #5A6478;
  --bg: #FAFAF8;
  --bg-alt: #F2F4F7;
  --border: #E2E5EA;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.12);

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #60A5FA;
  --primary-dark: #2563EB;
  --primary-light: #93C5FD;
  --primary-soft: #1E293B;

  --lab1-accent: #FBBF24;
  --lab1-accent-dark: #FDE68A;
  --lab1-accent-soft: #3B2A08;

  --lab2-accent: #34D399;
  --lab2-accent-dark: #6EE7B7;
  --lab2-accent-soft: #063C2D;

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --bg: #0B0F17;
  --bg-alt: #131B2A;
  --border: #243247;
  --white: #172236;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   COMPREHENSIVE DARK THEME STYLING
   Applies high-contrast dark backgrounds and bright legible text to all boxes
   ========================================================================== */

[data-theme="dark"] body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #F8FAFC !important;
}

[data-theme="dark"] .logo-text strong {
  color: #F8FAFC !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] label {
  color: var(--text);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] small,
[data-theme="dark"] .card-meta {
  color: var(--text-muted) !important;
}

[data-theme="dark"] a {
  color: var(--primary);
}

[data-theme="dark"] a:hover {
  color: var(--primary-light);
}

/* All Cards, Boxes, Articles & Containers */
[data-theme="dark"] .card,
[data-theme="dark"] article.card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .protocol-card,
[data-theme="dark"] .protocol-hero,
[data-theme="dark"] .pi-profile,
[data-theme="dark"] .core-value-card,
[data-theme="dark"] .focus-list li,
[data-theme="dark"] .member-item,
[data-theme="dark"] .transit-guide-card,
[data-theme="dark"] .transit-step,
[data-theme="dark"] .calculator-card,
[data-theme="dark"] .calc-box,
[data-theme="dark"] .progress-card,
[data-theme="dark"] .overview-card,
[data-theme="dark"] .pub-metrics-bar,
[data-theme="dark"] .pub-item,
[data-theme="dark"] .step-card {
  background-color: var(--white) !important;
  background-image: none !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .overview-card-body {
  background: transparent !important;
}

[data-theme="dark"] .overview-card p,
[data-theme="dark"] .card p,
[data-theme="dark"] .tool-card p,
[data-theme="dark"] .protocol-card p,
[data-theme="dark"] .core-value-card p {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .overview-card h3,
[data-theme="dark"] .card h3,
[data-theme="dark"] .tool-card h4,
[data-theme="dark"] .protocol-card h3,
[data-theme="dark"] .core-value-card h4,
[data-theme="dark"] .pi-profile h2 {
  color: #F8FAFC !important;
}

/* Sections with alternate backgrounds */
[data-theme="dark"] section,
[data-theme="dark"] .section {
  background-color: var(--bg);
}

[data-theme="dark"] section[style*="background: var(--bg-alt)"],
[data-theme="dark"] section[style*="background:var(--bg-alt)"],
[data-theme="dark"] div[style*="background: var(--bg-alt)"],
[data-theme="dark"] div[style*="background:var(--bg-alt)"] {
  background-color: var(--bg-alt) !important;
}

/* Subcategory and Directory Headers */
[data-theme="dark"] .subcategory-header {
  background: #1E2D47 !important;
  border-left-color: var(--primary) !important;
}
[data-theme="dark"] .subcategory-header h4 {
  color: #93C5FD !important;
}

/* Protocol Sidebar */
[data-theme="dark"] .protocol-sidebar {
  background: var(--white) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .protocol-sidebar a {
  color: var(--text) !important;
}
[data-theme="dark"] .protocol-sidebar a:hover,
[data-theme="dark"] .protocol-sidebar a.active {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

/* Form Inputs, Textareas, Selects */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .resource-search-input {
  background-color: #0F172A !important;
  color: #F8FAFC !important;
  border: 1px solid var(--border) !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748B !important;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}

/* Tables */
[data-theme="dark"] .alumni-table,
[data-theme="dark"] table {
  background: var(--white) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .alumni-table th,
[data-theme="dark"] table th {
  background: #1E293B !important;
  color: #F8FAFC !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .alumni-table td,
[data-theme="dark"] table td {
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .alumni-table tr:nth-child(even) td,
[data-theme="dark"] table tr:nth-child(even) td {
  background: #111B2D !important;
}

/* Navigation & Dropdowns */
[data-theme="dark"] .site-header {
  background: rgba(11, 15, 23, 0.95) !important;
  border-bottom: 1px solid var(--border) !important;
}
[data-theme="dark"] .dropdown {
  background: #172236 !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}
[data-theme="dark"] .dropdown a {
  color: var(--text) !important;
}
[data-theme="dark"] .dropdown a:hover {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}
[data-theme="dark"] .nav-list a,
[data-theme="dark"] .nav-list button.nav-link {
  color: var(--text) !important;
}
[data-theme="dark"] .nav-list a:hover,
[data-theme="dark"] .nav-list button.nav-link:hover,
[data-theme="dark"] .nav-list a.active,
[data-theme="dark"] .nav-list button.nav-link.active {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

/* Badges & Chips */
[data-theme="dark"] .badge {
  background: #1E293B !important;
  color: #93C5FD !important;
  border: 1px solid #334155 !important;
}
[data-theme="dark"] .badge-lab1 {
  background: #3B2A08 !important;
  color: #FCD34D !important;
  border: 1px solid #78350F !important;
}
[data-theme="dark"] .badge-lab2 {
  background: #063C2D !important;
  color: #6EE7B7 !important;
  border: 1px solid #065F46 !important;
}
[data-theme="dark"] .specialty-chip {
  background: #1E293B !important;
  color: #E2E8F0 !important;
  border: 1px solid var(--border) !important;
}
[data-theme="dark"] .specialty-chip.gold {
  background: #3B2A08 !important;
  color: #FCD34D !important;
}
[data-theme="dark"] .specialty-chip.green {
  background: #063C2D !important;
  color: #6EE7B7 !important;
}
[data-theme="dark"] .specialty-chip.blue {
  background: #162B4D !important;
  color: #93C5FD !important;
}

/* Filter pills */
[data-theme="dark"] .theme-pill {
  background: #172236 !important;
  color: #CBD5E1 !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .theme-pill.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

/* Publication Abstracts */
[data-theme="dark"] .pub-abstract {
  background: #0F172A !important;
  border-left: 3px solid var(--primary) !important;
  color: #E2E8F0 !important;
}

/* Buttons in Dark Mode */
[data-theme="dark"] .btn-primary {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
}
[data-theme="dark"] .btn-primary:hover {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
}
[data-theme="dark"] .btn-outline {
  background: rgba(30, 41, 59, 0.7) !important;
  color: #93C5FD !important;
  border-color: #3B82F6 !important;
}
[data-theme="dark"] .btn-outline:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
}
[data-theme="dark"] .btn-lab1 {
  background: #D97706 !important;
  color: #FFFFFF !important;
  border-color: #D97706 !important;
}
[data-theme="dark"] .btn-lab1:hover {
  background: #B45309 !important;
  color: #FFFFFF !important;
  border-color: #B45309 !important;
}
[data-theme="dark"] .btn-lab2 {
  background: #059669 !important;
  color: #FFFFFF !important;
  border-color: #059669 !important;
}
[data-theme="dark"] .btn-lab2:hover {
  background: #047857 !important;
  color: #FFFFFF !important;
  border-color: #047857 !important;
}
[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

/* Gradient CTA Cards in Dark Mode */
.card-gradient-cta,
[data-theme="dark"] .card-gradient-cta {
  background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 50%, #0D9488 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .card-gradient-cta h3,
[data-theme="dark"] .card-gradient-cta h4,
[data-theme="dark"] .card-gradient-cta strong,
[data-theme="dark"] .card-gradient-cta small {
  color: #FFFFFF !important;
}
[data-theme="dark"] .card-gradient-cta p {
  color: rgba(255, 255, 255, 0.9) !important;
}
[data-theme="dark"] .card-gradient-cta .btn-primary {
  background: #FFFFFF !important;
  color: #0A2540 !important;
  border-color: #FFFFFF !important;
}
[data-theme="dark"] .card-gradient-cta .btn-primary:hover {
  background: #E2E8F0 !important;
  color: #0A2540 !important;
}
[data-theme="dark"] .card-gradient-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme="dark"] .card-gradient-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

/* Lightbox */
[data-theme="dark"] .lightbox-dialog {
  background: #172236 !important;
  border: 1px solid var(--border) !important;
}

/* ---------- Skip link for accessibility ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-4);
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  z-index: 99999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--primary-light);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(10, 37, 64, 0.18);
  color: var(--primary);
}

::-moz-selection {
  background: rgba(10, 37, 64, 0.18);
  color: var(--primary);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus { color: var(--primary); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--space-4); }

ul, ol { padding-left: 1.25rem; }
ul li, ol li { margin-bottom: var(--space-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-8) 0;
}
.section + .section { border-top: 1px solid var(--border); }

.section-title {
  text-align: center;
  margin-bottom: var(--space-3);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-7);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-2);
}

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

.flex { display: flex; gap: var(--space-4); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s var(--ease);
  line-height: 1.2;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.btn-lab1 { background: var(--lab1-accent); color: var(--white); border-color: var(--lab1-accent); }
.btn-lab1:hover, .btn-lab1:focus { background: var(--lab1-accent-dark); border-color: var(--lab1-accent-dark); color: var(--white); text-decoration: none; }
.btn-lab2 { background: var(--lab2-accent); color: var(--white); border-color: var(--lab2-accent); }
.btn-lab2:hover, .btn-lab2:focus { background: var(--lab2-accent-dark); border-color: var(--lab2-accent-dark); color: var(--white); text-decoration: none; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  line-height: 1.2;
}
.badge svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}
.badge-lab1 { background: var(--lab1-accent-soft); color: var(--lab1-accent-dark); }
.badge-lab2 { background: var(--lab2-accent-soft); color: var(--lab2-accent-dark); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); margin-bottom: var(--space-4); flex-grow: 1; }
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.card > img:first-child:not(.avatar) {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.card-img-top-tall {
  height: 240px;
}
.card-title-compact {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}
.card-text-compact {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0;
  display: block;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.card-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.card-footer a,
.card-footer button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-footer a svg,
.card-footer button svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

.overview-showcase {
  display: grid;
  gap: var(--space-6);
}
.overview-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(246,249,252,0.98) 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(10, 37, 64, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.overview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lab1-accent), var(--lab2-accent));
}
.overview-card-research::before {
  background: linear-gradient(90deg, #c8902e 0%, #2a9d8f 100%);
}
.overview-card-publication::before {
  background: linear-gradient(90deg, #1e3a5f 0%, #4b7bd3 100%);
}
.overview-card-join::before {
  background: linear-gradient(90deg, #2a9d8f 0%, #6bbf59 100%);
}
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(10, 37, 64, 0.12);
}
.overview-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  text-align: center;
  align-items: center;
}
.overview-card-body h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 1.8vw + 1rem, 1.9rem);
}
.overview-card-body p {
  margin-bottom: 0;
  color: var(--text-muted);
  flex-grow: 0;
  max-width: 640px;
}
.overview-card .card-footer {
  width: 100%;
  justify-content: center;
  border-top: 0;
  padding-top: 0;
  margin-top: 0.25rem;
}
.overview-highlight {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 1.03rem;
}
.overview-theme-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overview-theme-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}
.overview-theme-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}
.overview-theme-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.overview-theme-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}
.overview-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
}
.overview-list {
  padding-left: 1rem;
  margin: 0;
  color: var(--text-muted);
}
.overview-list li {
  margin-bottom: 0.45rem;
}

.leadership-stack {
  display: grid;
  gap: var(--space-5);
}
.pi-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
.pi-spotlight-media {
  overflow: hidden;
  border-radius: 22px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 34px rgba(10, 37, 64, 0.12);
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-alt) 100%);
  border: 2px solid rgba(10, 37, 64, 0.08);
  display: block;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0;
  margin: 0 auto;
}
.pi-spotlight-content h3 {
  margin-bottom: var(--space-2);
}
.pi-spotlight-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
}
.pi-spotlight-right {
  grid-template-columns: 1.15fr 0.85fr;
}
.pi-spotlight-left {
  grid-template-columns: 0.85fr 1.15fr;
}

/* ---------- Placeholder image ---------- */
.placeholder-img {
  background:
    linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-alt) 100%);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: var(--space-4);
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(10,37,64,0.04) 48%, rgba(10,37,64,0.04) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(10,37,64,0.04) 48%, rgba(10,37,64,0.04) 52%, transparent 52%);
  background-size: 24px 24px;
  pointer-events: none;
}
.placeholder-img span { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  height: auto;
  gap: var(--space-3);
  padding: 0.5rem 0;
}

/* Logo wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--primary);
  min-width: 0;
  flex: 0 0 auto;
}
.logo:hover { text-decoration: none; color: var(--primary); }
.logo-mark {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.logo:hover .logo-mark {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.16);
}
.logo-mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
[data-theme="dark"] .logo-mark {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex: 1 1 auto;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.15rem;
}
.nav-list a, .nav-list button.nav-link {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list a:hover, .nav-list button.nav-link:hover,
.nav-list a:focus, .nav-list button.nav-link:focus {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}
.nav-list a.active, .nav-list button.nav-link.active {
  background: var(--primary);
  color: var(--white);
}

/* Navigation Login Button */
.nav-login-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.38rem !important;
  padding: 0.38rem 0.82rem !important;
  margin-left: 0.4rem !important;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.18) !important;
  transition: all 0.2s var(--ease) !important;
  text-decoration: none !important;
}
.nav-login-link:hover, .nav-login-link:focus {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--teal) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.28) !important;
}
.nav-login-link svg {
  color: #6ee7b7;
  transition: transform 0.2s ease;
}
.nav-login-link:hover svg {
  transform: scale(1.1);
  color: #ffffff;
}
[data-theme="dark"] .nav-login-link {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

@media (max-width: 959px) {
  .nav-item-login {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(10, 37, 64, 0.08);
    width: 100%;
  }
  .nav-login-link {
    margin-left: 0 !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-md) !important;
  }
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-item.has-dropdown > .nav-link::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .2s var(--ease);
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 105;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item.has-dropdown:hover > .nav-link::after,
.nav-item.has-dropdown:focus-within > .nav-link::after {
  transform: rotate(180deg);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}
.dropdown a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}
.dropdown a.active {
  background: var(--primary);
  color: var(--white);
}



.dropdown a strong { display: block; font-weight: 600; color: var(--text); }
.dropdown a small { display: block; font-size: 0.78rem; color: var(--text-muted); }
.nav-item.more-nav > .nav-link { font-weight: 600; color: var(--primary); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--primary);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: all .3s var(--ease);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  --banner-bg-image: none;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, rgba(6, 16, 30, 0.75) 0%, rgba(18, 40, 65, 0.58) 40%, rgba(15, 32, 50, 0.75) 100%), var(--banner-bg-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.hero-slider-bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-slider-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  filter: brightness(0.55) saturate(1.08);
}
.hero-slider-bg-current {
  opacity: 1;
}
.hero-slider-bg-next.visible {
  opacity: 1;
}
.hero::before {
  z-index: 1;
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 25, 0.45) 0%, rgba(10, 22, 40, 0.25) 35%, rgba(8, 18, 34, 0.60) 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 60px), repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  z-index: 2;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero .btn-primary {
  background: #FFFFFF;
  color: #0A2540;
  border-color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.hero .btn-primary:hover {
  background: #F1F5F9;
  color: #061A30;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.hero .btn-outline {
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
}
.hero .btn-outline:hover {
  background: #FFFFFF;
  color: #0A2540;
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .hero .btn-primary {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}
[data-theme="dark"] .hero .btn-primary:hover {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
}
[data-theme="dark"] .hero .btn-outline {
  color: #F8FAFC !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  background: rgba(15, 23, 42, 0.8) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .hero .btn-outline:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5) !important;
}

/* ---------- Page banner (for inner pages) ---------- */
.page-banner {
  --banner-bg-image: none;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
body.about-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.collaborations-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.contact-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.facilities-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.gallery-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.join-us-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.lab1-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.lab2-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.people-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.publications-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.research-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.resources-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
body.protocols-page .page-banner {
  background-image: linear-gradient(135deg, rgba(6, 26, 48, 0.94) 0%, rgba(31, 82, 110, 0.88) 48%, rgba(42, 157, 143, 0.72) 100%), var(--banner-bg-image, none);
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,0.12) 0%, transparent 28%),
    radial-gradient(circle at 85% 24%, rgba(42, 157, 143, 0.18) 0%, transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(200, 144, 46, 0.12) 0%, transparent 25%);
  pointer-events: none;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 40px);
  opacity: 0.35;
  pointer-events: none;
}
.page-banner h1 { color: var(--white); margin-bottom: var(--space-2); }
.page-banner p { color: rgba(255,255,255,0.88); max-width: 640px; margin: 0; }

.breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--space-3);
}
.breadcrumbs a { color: rgba(255,255,255,0.9); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { margin: 0 0.4rem; opacity: 0.65; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: calc(var(--space-7) * -1);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Labs preview ---------- */
.labs-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.lab-preview-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.lab-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.lab-preview-card.lab1 { background: linear-gradient(135deg, var(--lab1-accent) 0%, var(--lab1-accent-dark) 100%); }
.lab-preview-card.lab2 { background: linear-gradient(135deg, var(--lab2-accent) 0%, var(--lab2-accent-dark) 100%); }
.lab-preview-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: var(--space-3); }
.lab-preview-card p { color: rgba(255,255,255,0.92); margin-bottom: var(--space-5); flex-grow: 1; }
.lab-preview-card .cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--white);
}
.lab-preview-card .cta::after {
  content: '→';
  transition: transform .2s var(--ease);
}
.lab-preview-card:hover .cta::after { transform: translateX(4px); }

/* ---------- PI profile ---------- */
.pi-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  align-items: start;
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.pi-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}
.pi-info h2 { margin-bottom: var(--space-2); }
.pi-info .pi-title {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-4);
}
.pi-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.pi-contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--primary);
}

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.filter-bar label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-bar input[type="search"],
.filter-bar select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  min-width: 180px;
}
.filter-bar input[type="search"] { flex: 1; min-width: 220px; }
.filter-bar input[type="search"]:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- Interactive protocols page ---------- */
.protocol-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-6);
}
.protocol-hero-content h2 {
  margin-bottom: var(--space-3);
}
.progress-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-2);
}
.progress-meter {
  width: 100%;
  height: 12px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lab2-accent) 0%, var(--primary-light) 100%);
  transition: width .25s var(--ease);
}
.progress-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.protocol-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.protocol-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
}
.protocol-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
  max-height: calc(100vh - var(--header-height) - 12rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}
.protocol-nav::-webkit-scrollbar {
  width: 6px;
}
.protocol-nav::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 999px;
}
.protocol-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}
.protocol-nav a svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.protocol-nav a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.protocol-nav a:hover,
.protocol-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}
.protocol-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--white);
}
.protocol-note h4 {
  margin-bottom: var(--space-2);
}
.protocol-content {
  display: grid;
  gap: var(--space-5);
}
.protocol-card {
  padding: var(--space-6);
}
.protocol-card-header {
  margin-bottom: var(--space-5);
}
.protocol-card-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}
.step-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.step-item.completed {
  border-color: rgba(42, 157, 143, 0.35);
  box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.12);
}
.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.step-label {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  flex: 1;
  font-size: 1rem;
}
.step-label input {
  margin-top: 0.35rem;
  accent-color: var(--lab2-accent);
}
.step-toggle {
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.step-toggle:hover {
  background: var(--primary);
  color: var(--white);
}
.step-content {
  display: none;
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.step-item.open .step-content {
  display: block;
}
.protocol-reference {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}
.protocol-reference h4 {
  margin-bottom: var(--space-2);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: all .2s var(--ease);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tab-btn[data-tab="lab1"].active { color: var(--lab1-accent-dark); border-bottom-color: var(--lab1-accent); }
.tab-btn[data-tab="lab2"].active { color: var(--lab2-accent-dark); border-bottom-color: var(--lab2-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Publication list ---------- */
/* ---------- Publication list ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.pub-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(10, 37, 64, 0.2);
  border-left-color: var(--primary);
}
.pub-item.lab1 { border-left-color: var(--primary); }
.pub-item.lab2 { border-left-color: var(--lab2-accent); }
.pub-item h4 {
  margin-bottom: var(--space-2);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}
.pub-authors {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}
.pub-authors strong {
  color: var(--primary);
  font-weight: 700;
}
.pub-journal {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.pub-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pub-meta .badge { font-size: 0.72rem; }
.pub-doi {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-light);
}
.pub-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.85rem;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.2s var(--ease);
}
.pub-link svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0 !important;
}
.pub-link:hover,
.pub-link:focus {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.empty-state {
  text-align: center;
  padding: var(--space-7);
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

/* ---------- People grid ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-5);
}
.alumni-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
}
.person-card h4 { margin-bottom: var(--space-1); }
.person-role { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-3); }
.alumni-intro {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 82, 116, 0.06), rgba(122, 72, 20, 0.08));
  box-shadow: var(--shadow-sm);
}
.alumni-intro p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-muted);
}
.alumni-card {
  position: relative;
  overflow: hidden;
  text-align: left;
}
.alumni-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: var(--space-5);
  align-items: start;
}
.alumni-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.alumni-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
}
.alumni-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.alumni-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 82, 116, 0.04), rgba(122, 72, 20, 0.06));
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.alumni-card:hover::before { opacity: 1; }
.alumni-card .person-photo {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 24px rgba(17, 82, 116, 0.12);
}
.alumni-card:hover .person-photo {
  transform: scale(1.04);
  box-shadow: 0 14px 28px rgba(17, 82, 116, 0.18);
}
.alumni-card .person-bio {
  margin: 0 0 var(--space-3);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Facilities ---------- */
.facility-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,247,249,0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: grid;
  grid-template-rows: 320px 1fr;
}
.facility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.facility-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.facility-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.facility-body h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.facility-body p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ---------- Timeline / News ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 48px;
  padding-bottom: var(--space-5);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
}
.timeline-item.lab1::before { border-color: var(--lab1-accent); }
.timeline-item.lab2::before { border-color: var(--lab2-accent); }
.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.timeline-item p { color: var(--text-muted); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  max-width: 960px;
}

.gallery-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  color: var(--white);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.gallery-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.gallery-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  color: #60A5FA;
  margin-bottom: 0.1rem;
}

.gallery-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Featured Spotlight Section */
.gallery-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.gallery-spotlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}

.gallery-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #2563EB;
}

.gallery-spotlight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0B1329;
}

.gallery-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-spotlight-card:hover .gallery-spotlight-media img {
  transform: scale(1.05);
}

.gallery-spotlight-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.85);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gallery-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.gallery-spotlight-card:hover .gallery-play-icon {
  transform: translate(-50%, -50%) scale(1.12);
  background: #2563EB;
}

.gallery-spotlight-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-spotlight-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.gallery-spotlight-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Enhanced Gallery Grid */
.gallery-grid,
.gallery-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.gallery-item,
.gallery-item-enhanced {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #0F172A;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-item:hover,
.gallery-item-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover img,
.gallery-item-enhanced:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 26, 48, 0.9) 0%, rgba(6, 26, 48, 0.35) 40%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.15rem;
  color: #FFFFFF;
  opacity: 0.95;
  transition: opacity 0.25s var(--ease);
}

.gallery-item-tag {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #93C5FD;
  margin-bottom: 0;
}

.gallery-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.25rem 0;
  line-height: 1.35;
}

.gallery-item-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-zoom-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.75);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-item:hover .gallery-zoom-btn,
.gallery-item-enhanced:hover .gallery-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

/* Insights Section */
.gallery-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.gallery-insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-insight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.gallery-insight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.gallery-insight-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Dark Mode for Gallery */
[data-theme="dark"] .gallery-spotlight-card,
[data-theme="dark"] .gallery-insight-card {
  background: #111A2E;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .gallery-spotlight-body h3,
[data-theme="dark"] .gallery-insight-card h3 {
  color: #F8FAFC;
}

[data-theme="dark"] .gallery-insight-icon {
  background: rgba(255, 255, 255, 0.05);
  color: #60A5FA;
}

@media (max-width: 900px) {
  .gallery-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-spotlight-grid,
  .gallery-grid,
  .gallery-grid-enhanced,
  .gallery-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-hero-stats {
    grid-template-columns: 1fr;
  }
  .gallery-spotlight-grid,
  .gallery-grid,
  .gallery-grid-enhanced,
  .gallery-insights-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 48, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.lightbox.open { display: flex; animation: fadeIn .2s var(--ease); }
.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.lightbox-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-6);
  text-align: center;
}
.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox-caption {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  display: none !important;
}
.lightbox-caption h4 { margin: 0 0 var(--space-1); }
.lightbox-caption p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background .2s var(--ease), transform .2s var(--ease);
  box-shadow: var(--shadow-md);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--white); transform: scale(1.08); }
.lightbox-close { top: var(--space-4); right: var(--space-4); }
.lightbox-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }


/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  caret-color: var(--primary);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Join page ---------- */
.join-hero-card,
.join-process-card,
.join-enquiry-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(245,249,252,0.98) 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.08);
  padding: var(--space-6);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.join-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.join-hero-copy { max-width: 720px; }
.join-hero-copy h2 { margin-bottom: var(--space-3); }
.join-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.join-form-shell {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.04) 0%, rgba(42, 157, 143, 0.08) 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 24px;
  padding: var(--space-5);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.08);
  min-height: 100%;
}
.join-form-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  min-height: 220px;
}
.join-form-callout h3 {
  margin-bottom: var(--space-2);
}
.join-form-callout p {
  margin-bottom: 0;
  color: var(--text-muted);
}
.join-form-url {
  margin-top: var(--space-4);
  font-size: 0.95rem;
  color: var(--text-muted);
  word-break: break-all;
}
.join-form-url a {
  color: var(--primary-light);
  font-weight: 600;
}
.join-process-list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.join-process-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}
.join-process-item strong { color: var(--primary); }
.join-process-item span { color: var(--text-muted); }
.join-enquiry-card { margin-top: var(--space-2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.contact-block.lab1 { border-top: 4px solid var(--lab1-accent); }
.contact-block.lab2 { border-top: 4px solid var(--lab2-accent); }
.contact-block h3 { margin-bottom: var(--space-3); }
.contact-block .pi-name { font-weight: 600; color: var(--primary); margin-bottom: var(--space-3); }
.contact-block .contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.contact-block .contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(240, 246, 250, 0.96));
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 14px;
}
.contact-block .contact-detail-item.wide {
  grid-column: 1 / -1;
}
.contact-block .contact-detail-item svg {
  flex: 0 0 auto;
  display: block;
  color: var(--primary);
  margin-top: 2px;
}
.contact-block .contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-block .contact-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.contact-block .contact-value {
  line-height: 1.55;
  color: var(--text-muted);
}
.contact-block .contact-detail-item a {
  line-height: 1.55;
}

/* ---------- Map and location card ---------- */
.map-embed {
  margin-top: var(--space-6);
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(245,249,252,0.98) 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 24px;
  padding: var(--space-5);
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.08);
}
.map-embed-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: center;
}
.map-embed-content img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 18px;
}
.map-embed-content h3 {
  margin-bottom: var(--space-2);
}
.map-embed-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ---------- Contact message box ---------- */
.contact-form-card {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6);
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(245,249,252,0.98) 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.08);
}
.contact-form-intro {
  margin-bottom: var(--space-5);
}
.contact-form-intro h2 {
  margin-bottom: var(--space-2);
}
.contact-form-intro p {
  color: var(--text-muted);
  margin-bottom: 0;
}
.contact-form {
  display: grid;
  gap: var(--space-1);
}
.contact-form .btn {
  justify-self: flex-start;
  margin-top: var(--space-2);
}
.contact-form #contact-form-status {
  margin-top: var(--space-3);
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Resources list ---------- */
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.resource-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.resource-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resource-info { flex: 1; }
.resource-info h4 { margin: 0 0 2px; font-family: var(--font-body); font-size: 1rem; }
.resource-info small { color: var(--text-muted); font-size: 0.82rem; }
.resource-download {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0A2540 0%, #152E48 100%);
  color: #FFFFFF;
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(10, 37, 64, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(200, 144, 46, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(42, 157, 143, 0.22) 0%, transparent 40%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #FFFFFF !important; margin-bottom: var(--space-3); font-weight: 700; }
.cta-banner p { color: rgba(255, 255, 255, 0.92) !important; max-width: 580px; margin: 0 auto var(--space-5); font-size: 1.02rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.cta-banner .btn-primary {
  background: #FFFFFF;
  color: #0A2540;
  border-color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.cta-banner .btn-primary:hover {
  background: #F1F5F9;
  color: #061A30;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.cta-banner .btn-outline {
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
}
.cta-banner .btn-outline:hover {
  background: #FFFFFF !important;
  color: #0A2540 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

/* Dark Mode CTA Banner */
[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #06090F 0%, #0F172A 100%) !important;
  border: 1px solid #1E293B !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7) !important;
}
[data-theme="dark"] .cta-banner::before {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 40%) !important;
}
[data-theme="dark"] .cta-banner h2 {
  color: #F8FAFC !important;
}
[data-theme="dark"] .cta-banner p {
  color: #94A3B8 !important;
}
[data-theme="dark"] .cta-banner .btn-primary {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}
[data-theme="dark"] .cta-banner .btn-primary:hover {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
}
[data-theme="dark"] .cta-banner .btn-outline {
  color: #F8FAFC !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .cta-banner .btn-outline:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5) !important;
}

/* ---------- Org chart ---------- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.org-node {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 240px;
  max-width: 360px;
  box-shadow: var(--shadow-md);
}
.org-node h4 { color: var(--white); margin: 0 0 var(--space-1); font-size: 1.05rem; }
.org-node small { color: rgba(255,255,255,0.8); font-size: 0.82rem; }
.org-node.lab1 { background: var(--lab1-accent); }
.org-node.lab2 { background: var(--lab2-accent); }
.org-connector {
  width: 2px;
  height: 28px;
  background: var(--border);
  position: relative;
}
.org-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  width: 100%;
  max-width: 720px;
  position: relative;
}
.org-branch::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--border);
}
.org-branch::after {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  width: 2px;
  height: 28px;
  background: var(--border);
  transform: translateX(-50%);
}
.org-branch .org-node { width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.site-footer h4 {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.site-footer p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.82); }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { font-size: 0.9rem; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: var(--space-3);
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-contact svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-top: 3px;
  color: var(--lab2-accent);
}
.footer-contact span {
  flex: 1;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-credit {
  text-align: right;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}
.social-links {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  transition: all 0.25s var(--ease);
  border: 1px solid rgba(255,255,255,0.15);
}
.social-links a:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.social-links a.social-link-facebook:hover {
  background: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #FFFFFF !important;
}
.social-links a.social-link-linkedin:hover {
  background: #0A66C2 !important;
  border-color: #0A66C2 !important;
  color: #FFFFFF !important;
}
.footer-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.footer-logo-link:hover {
  transform: scale(1.06);
}

/* Dark Mode Footer */
[data-theme="dark"] .site-footer {
  background: #06090F !important;
  border-top: 1px solid #1E293B !important;
  color: #94A3B8 !important;
}
[data-theme="dark"] .site-footer h4 {
  color: #F8FAFC !important;
}
[data-theme="dark"] .site-footer p {
  color: #94A3B8 !important;
}
[data-theme="dark"] .site-footer a {
  color: #CBD5E1 !important;
}
[data-theme="dark"] .site-footer a:hover {
  color: #60A5FA !important;
}
[data-theme="dark"] .footer-contact svg {
  color: #34D399 !important;
}
[data-theme="dark"] .footer-contact li,
[data-theme="dark"] .footer-contact span {
  color: #CBD5E1 !important;
}
[data-theme="dark"] .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #64748B !important;
}
[data-theme="dark"] .footer-credit {
  color: #64748B !important;
}
[data-theme="dark"] .footer-credit a {
  color: #93C5FD !important;
}
[data-theme="dark"] .social-links a {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #CBD5E1 !important;
}
[data-theme="dark"] .social-links a:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
}

@media (max-width: 768px) {
  .protocol-hero {
    grid-template-columns: 1fr;
  }
  .protocol-grid {
    grid-template-columns: 1fr;
  }
  .protocol-sidebar {
    position: static;
  }
  .step-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-credit {
    text-align: left;
    white-space: normal;
  }
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   FBMH ENHANCED COMPONENTS & INTERACTIVE STYLES
   ========================================================================== */

/* ---------- Hero Metric Counters ---------- */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero-pill-badge .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

[data-theme="dark"] .hero-pill-badge {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1.5px solid rgba(96, 165, 250, 0.4) !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  text-shadow: none !important;
}
[data-theme="dark"] .hero-pill-badge .pill-dot {
  background: #34D399 !important;
  box-shadow: 0 0 12px #34D399 !important;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-7);
}

@media (max-width: 1080px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}
@media (max-width: 640px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  position: relative;
  overflow: hidden;
  background: rgba(6, 26, 48, 0.76);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.metric-label {
  font-size: 0.84rem;
  color: #E2E8F0 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Research Specialty Chips ---------- */
.specialty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-3) 0;
}
.specialty-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(10, 37, 64, 0.08);
}
.specialty-chip.green {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}
.specialty-chip.gold {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.specialty-chip.blue {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

/* ---------- Featured Publications on Homepage ---------- */
.featured-pubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.featured-pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.featured-pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.featured-pub-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: var(--space-3);
  align-self: flex-start;
}
.featured-pub-card h4 {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: var(--space-3);
  color: var(--primary);
}
.featured-pub-authors {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.featured-pub-journal {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* ---------- Gallery Teaser Grid ---------- */
.gallery-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.gallery-teaser-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  background: #061A30;
}
.gallery-teaser-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.gallery-teaser-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-teaser-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 0.85rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 26, 48, 0.95) 75%);
  color: #FFFFFF !important;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .gallery-teaser-item {
  background: #0B0F17;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .gallery-teaser-item:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
}
[data-theme="dark"] .gallery-teaser-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 15, 0.96) 75%) !important;
  color: #F8FAFC !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
}

/* ---------- Interactive Timeline Component (About) ---------- */
.timeline-container {
  position: relative;
  max-width: 820px;
  margin: var(--space-6) auto 0;
  padding-left: 2.2rem;
}
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--lab2-accent) 0%, var(--lab1-accent) 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -2.2rem;
  top: 0.2rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--lab2-accent);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
}
.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lab2-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}
.timeline-card h4 {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  color: var(--primary);
}
.timeline-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Core Values Grid (About) ---------- */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.core-value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.core-value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.core-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.core-value-card h4 {
  font-size: 1.1rem;
  margin: 0 0 var(--space-2);
}
.core-value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- C. elegans Spotlight Card (Research) ---------- */
.celegans-spotlight-card {
  background: linear-gradient(135deg, #091b2c 0%, #102e48 60%, #164e63 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.16);
}
.celegans-spotlight-card h3 {
  color: var(--white);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}
.celegans-spotlight-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.7;
}
.celegans-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.celegans-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- Publication Tools & Copy Citation ---------- */
.pub-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.pub-metric-item {
  text-align: center;
  border-right: 1px solid var(--border);
}
.pub-metric-item:last-child {
  border-right: none;
}
.pub-metric-item strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.1;
}
.pub-metric-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .pub-metric-item strong {
  color: #60A5FA !important;
}
[data-theme="dark"] .pub-metric-item span {
  color: #94A3B8 !important;
}
[data-theme="dark"] .pub-metric-item {
  border-right-color: var(--border) !important;
}

.theme-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
  align-items: center;
}
.theme-pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  line-height: 1.2;
  transition: all 0.22s var(--ease);
}
.theme-pill svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 !important;
}
.theme-pill:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.theme-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}
.theme-pill.active svg {
  color: #60A5FA;
}

.btn-copy-citation {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.2;
  transition: all 0.2s var(--ease);
}
.btn-copy-citation svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0 !important;
}
.btn-copy-citation:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

/* ---------- Molarity & Dilution Calculator (Protocols) ---------- */
.calculator-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240,248,255,0.98) 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  box-shadow: var(--shadow-md);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.calc-input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.calc-input-group input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.calc-result-box {
  background: #1e3a5f;
  color: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-result-box strong {
  font-size: 1.25rem;
  color: #6ee7b7;
}

/* ---------- Safety Warnings Alert ---------- */
.alert-safety {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-3) 0;
  font-size: 0.88rem;
  color: #991b1b;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ---------- FAQ Accordion (Join Us) ---------- */
.faq-accordion {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--space-4) var(--space-5);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-trigger::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
}
.faq-item.open .faq-trigger::after {
  content: '−';
}
.faq-content {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.faq-item.open .faq-content {
  display: block;
}

/* ---------- Alumni Table (People) ---------- */
.alumni-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.alumni-table th, .alumni-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.alumni-table th {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Transit Guide (Contact) ---------- */
.transit-guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.transit-steps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  justify-content: space-between;
}

/* ---------- Print Styles for Bench Research ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-banner, .filter-bar, .tabs, .lightbox,
  .progress-card, .btn, .btn-print-protocol, .calculator-card { display: none !important; }
  body { background: white !important; color: black !important; font-size: 10pt; }
  a { color: black !important; text-decoration: underline; }
  .protocol-card, .card, .pub-item, .person-card, .facility-card, .contact-block {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #999 !important;
    margin-bottom: 1rem !important;
    page-break-inside: avoid;
  }
  .hero, .page-banner { background: white !important; color: black !important; padding: 1rem 0 !important; min-height: auto !important; }
  .hero h1, .page-banner h1, h1, h2, h3, h4 { color: black !important; }
  .step-content { display: block !important; }
}

@media (max-width: 959px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-pubs-grid {
    grid-template-columns: 1fr;
  }
  .gallery-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .core-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .celegans-spotlight-card {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .pub-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .transit-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s var(--ease);
  margin-left: var(--space-2);
}
.theme-toggle-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* ---------- Quick Nav Icon Bar ---------- */
.quick-nav-bar {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-5) 0 var(--space-2);
}
.quick-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.quick-nav-item:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ---------- Publication Abstract & Citations ---------- */
.pub-abstract {
  display: none;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}
.pub-abstract.is-visible {
  display: block;
  animation: fadeIn 0.25s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-abstract-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.2;
  transition: all 0.2s var(--ease);
}
.btn-abstract-toggle svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s var(--ease);
  margin: 0 !important;
}
.btn-abstract-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.btn-abstract-toggle:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

/* ---------- Resource Instant Search ---------- */
.resource-search-bar {
  margin-bottom: var(--space-5);
  position: relative;
}
.resource-search-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.resource-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  outline: none;
}
.resource-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------- Table Responsiveness ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   ILLUSTRATED ICON SYSTEM & MODERN COMPONENT UTILITIES
   ========================================================================== */

/* ---------- Core Icon Box Container ---------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.icon-box svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}

/* Size Variants */
.icon-box-xs {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
}
.icon-box-xs svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.icon-box-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}
.icon-box-sm svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.icon-box-lg {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
}
.icon-box-lg svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.icon-box-xl {
  width: 68px;
  height: 68px;
  border-radius: 50%;
}
.icon-box-xl svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

/* Color Theme Variants */
.icon-box-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-box-gold {
  background: var(--lab1-accent-soft);
  color: var(--lab1-accent-dark);
}

.icon-box-teal {
  background: var(--lab2-accent-soft);
  color: var(--lab2-accent-dark);
}

.icon-box-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.icon-box-danger {
  background: #FEF2F2;
  color: #DC2626;
}

[data-theme="dark"] .icon-box-primary {
  background: rgba(96, 165, 250, 0.15);
  color: var(--primary);
}
[data-theme="dark"] .icon-box-gold {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .icon-box-teal {
  background: rgba(52, 211, 153, 0.18);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .icon-box-danger {
  background: rgba(220, 38, 38, 0.2);
  color: #F87171;
}

/* Hover Lift */
.card:hover .icon-box,
.icon-box:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Quick Nav Bar Icons ---------- */
.quick-nav-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}

.quick-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.08);
  transition: all 0.2s var(--ease);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.quick-nav-item svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: var(--lab1-accent-dark);
  transition: transform 0.2s var(--ease);
}

.quick-nav-item:hover {
  background: var(--white);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.14);
  text-decoration: none;
}

.quick-nav-item:hover svg {
  transform: scale(1.15);
}

[data-theme="dark"] .quick-nav-item {
  background: rgba(23, 34, 54, 0.85);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .quick-nav-item svg {
  color: var(--lab1-accent);
}

/* ---------- Hero Metric Cards with Watermark Icons ---------- */
.metric-watermark {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 72px;
  height: 72px;
  opacity: 0.16;
  color: #FFFFFF;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.metric-card:hover .metric-watermark {
  opacity: 0.32;
  transform: scale(1.1) rotate(-5deg);
}

[data-theme="dark"] .metric-card {
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1.5px solid rgba(96, 165, 250, 0.35) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .metric-card:hover {
  border-color: rgba(96, 165, 250, 0.7) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(96, 165, 250, 0.2) !important;
}
[data-theme="dark"] .metric-value {
  color: #60A5FA !important;
  text-shadow: 0 0 16px rgba(96, 165, 250, 0.5) !important;
}
[data-theme="dark"] .metric-label {
  color: #F1F5F9 !important;
  text-shadow: none !important;
}
[data-theme="dark"] .metric-watermark {
  color: #60A5FA !important;
  opacity: 0.22 !important;
}

/* ---------- Modern Research Theme Cards ---------- */
.theme-feature-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}

.theme-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 37, 64, 0.2);
}

.theme-card-media-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.theme-card-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  margin: 0 !important;
  border-radius: 0 !important;
}

.theme-feature-card:hover .theme-card-media-wrapper img {
  transform: scale(1.05);
}

.theme-pill-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(10, 37, 64, 0.85);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.theme-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
}

.theme-pill-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.theme-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.theme-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  margin-top: 0.25rem;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

[data-theme="dark"] .theme-feature-card {
  background: #111A2E !important;
  border-color: #1E2E4A !important;
}

[data-theme="dark"] .theme-feature-card:hover {
  border-color: rgba(96, 165, 250, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .theme-pill-floating {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .theme-pill-icon {
  color: #60A5FA !important;
}

[data-theme="dark"] .theme-card-title {
  color: #F8FAFC !important;
}

/* ---------- Principal Investigator (PI) Spotlight Section & Profile Cards ---------- */
.pi-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.pi-spotlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-5);
  align-items: start;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  box-shadow: var(--shadow-sm);
}

.pi-spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 37, 64, 0.2);
}

.pi-spotlight-media-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.pi-spotlight-media-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #E2E8F0;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08);
  margin: 0 !important;
}

.pi-spotlight-media,
.pi-spotlight-media-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  margin: 0 !important;
  border-radius: var(--radius-md) !important;
  transition: transform 0.4s var(--ease) !important;
}

.pi-spotlight-card:hover .pi-spotlight-media {
  transform: scale(1.03);
}

.pi-spotlight-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 100%;
}

.pi-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  line-height: 1;
}

.pi-social-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.pi-social-btn.pi-social-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pi-social-btn.pi-social-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.pi-spotlight-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0 !important;
  height: 100%;
}

.pi-spotlight-name {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.15rem 0;
  line-height: 1.25;
}

.pi-spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.pi-title-text {
  font-weight: 500;
  color: var(--text-muted);
}

.pi-spotlight-bio {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.62;
  margin: 0.2rem 0 0.75rem 0;
}

.pi-spotlight-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.pi-spotlight-chips-down {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.82rem !important;
}

/* Specialty Chips */
.specialty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.4rem 0;
}

.specialty-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.specialty-chip.blue {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(10, 37, 64, 0.12);
}

.specialty-chip.green {
  background: rgba(13, 148, 136, 0.1);
  color: #0D9488;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

[data-theme="dark"] .pi-spotlight-card {
  background: #111A2E;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pi-spotlight-media-wrapper {
  background: #0F172A;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pi-spotlight-name {
  color: #F8FAFC;
}

[data-theme="dark"] .pi-title-text {
  color: #94A3B8;
}

[data-theme="dark"] .pi-social-btn {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

[data-theme="dark"] .pi-social-btn:hover {
  background: rgba(37, 99, 235, 0.25);
  color: #60A5FA;
  border-color: #3B82F6;
}

[data-theme="dark"] .pi-social-btn.pi-social-primary {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

[data-theme="dark"] .pi-spotlight-actions,
[data-theme="dark"] .pi-spotlight-chips-down {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .specialty-chip.blue {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .specialty-chip.green {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}

@media (max-width: 860px) {
  .pi-spotlight-card {
    grid-template-columns: 200px 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }
  .pi-spotlight-media-wrapper {
    height: 230px;
  }
}

@media (max-width: 640px) {
  .pi-spotlight-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .pi-spotlight-media-col {
    max-width: 280px;
    margin: 0 auto;
  }
  .pi-spotlight-media-wrapper {
    height: 280px;
  }
  .pi-spotlight-body {
    text-align: center;
  }
  .pi-spotlight-meta,
  .specialty-chips,
  .pi-spotlight-actions,
  .pi-spotlight-chips-down {
    justify-content: center;
  }
}

/* Lab Sub-Pages PI Profile Card */
.pi-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pi-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.pi-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pi-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
}

.pi-contact a:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 768px) {
  .pi-profile {
    grid-template-columns: 1fr;
  }
  .pi-photo {
    height: 300px;
  }
}

/* ---------- Interactive Research Pipeline Flow ---------- */
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
  margin-top: var(--space-5);
}

.pipeline-step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.pipeline-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.pipeline-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary);
}

@media (max-width: 900px) {
  .pipeline-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pipeline-flow {
    grid-template-columns: 1fr;
  }
}

/* ---------- Transit Guide Steps with Transportation Badges ---------- */
.transit-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.transit-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.transit-step-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transit-step-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

[data-theme="dark"] .transit-step {
  background: var(--white);
  border-color: var(--border);
}

/* ---------- Document Upload Boxes (Join Us) ---------- */
.doc-upload-box {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--white);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.doc-upload-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.doc-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .doc-upload-box {
  background: var(--white);
  border-color: var(--border);
}

/* ---------- Alert & Callout Callout Boxes ---------- */
.callout-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.callout-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.callout-tip {
  background: rgba(42, 157, 143, 0.08);
  border-left-color: var(--lab2-accent);
  color: var(--text);
}

.callout-warning {
  background: rgba(200, 144, 46, 0.1);
  border-left-color: var(--lab1-accent);
  color: var(--text);
}

.callout-info {
  background: var(--primary-soft);
  border-left-color: var(--primary);
  color: var(--text);
}

/* ---------- Button Inline Icon Helpers ---------- */
.btn svg,
.btn-outline svg,
.btn-primary svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0;
}

.btn-icon-right svg {
  margin: 0;
}

/* ---------- Pulse Status Indicator ---------- */
.status-pill-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ---------- Timeline Milestone Icon Badge ---------- */
.timeline-milestone-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  position: absolute;
  left: -19px;
  top: 0;
  z-index: 2;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.timeline-item:hover .timeline-milestone-icon {
  transform: scale(1.15);
  background: var(--primary);
  color: var(--white);
}

[data-theme="dark"] .timeline-milestone-icon {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   MODERN ALUMNI REFLECTIONS & SHOWCASE SECTION
   ========================================================================== */

.alumni-header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.alumni-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.alumni-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.alumni-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alumni-stat-icon.gold {
  background: var(--lab1-accent-soft);
  color: var(--lab1-accent-dark);
}

.alumni-stat-icon.teal {
  background: var(--lab2-accent-soft);
  color: var(--lab2-accent-dark);
}

.alumni-stat-icon.blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.alumni-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.alumni-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Alumni Controls (Search & Filter) */
.alumni-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.alumni-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.alumni-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.alumni-search-box input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s var(--ease);
}

.alumni-search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

.alumni-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.alumni-filter-btn {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.alumni-filter-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.alumni-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Alumni Cards Container */
.alumni-cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.alumni-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

.alumni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 37, 64, 0.2);
}

/* Left Profile Column */
.alumni-card-left {
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(242, 244, 247, 0.4) 100%);
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.alumni-card-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lab1-accent), var(--lab2-accent));
}

.alumni-photo-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin-bottom: var(--space-4);
}

.alumni-photo {
  width: 148px;
  height: 148px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 30%;
  image-orientation: from-image;
  border: 3.5px solid var(--white);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: var(--bg-alt);
  display: block;
}

.alumni-card:hover .alumni-photo {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.16);
}

.alumni-badge-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--lab1-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.alumni-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.alumni-current-role {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.alumni-institution {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.alumni-institution svg {
  flex-shrink: 0;
  color: var(--lab2-accent-dark);
}

.alumni-academic-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
  width: 100%;
}

.alumni-meta-pill {
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

.alumni-social-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.alumni-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.alumni-social-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.alumni-social-btn.email:hover {
  background: #DC2626;
  border-color: #DC2626;
}

.alumni-social-btn.scholar:hover {
  background: #4285F4;
  border-color: #4285F4;
}

.alumni-social-btn.researchgate:hover {
  background: #00CCBB;
  border-color: #00CCBB;
  color: #003632;
}

.alumni-social-btn.orcid:hover {
  background: #A6CE39;
  border-color: #A6CE39;
  color: #213000;
}

/* Right Content Column (Opinion & Thesis) */
.alumni-card-right {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.alumni-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab1-accent-dark);
  margin-bottom: var(--space-3);
}

.alumni-quote-badge svg {
  color: var(--lab1-accent);
}

.alumni-opinion-body {
  position: relative;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.alumni-opinion-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.alumni-opinion-text p {
  margin-bottom: 0.65rem;
}

.alumni-opinion-text p:last-child {
  margin-bottom: 0;
}

.alumni-bg-quote-mark {
  position: absolute;
  top: -15px;
  right: 0;
  width: 70px;
  height: 70px;
  opacity: 0.06;
  color: var(--primary);
  pointer-events: none;
}

.alumni-thesis-highlight {
  background: var(--bg-alt);
  border-left: 3.5px solid var(--lab1-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alumni-thesis-icon {
  color: var(--lab1-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.alumni-thesis-info {
  font-size: 0.86rem;
  line-height: 1.45;
}

.alumni-thesis-label {
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.alumni-thesis-title {
  color: var(--text);
  font-weight: 500;
}

/* Quick Toggle View for Compact Directory */
.alumni-view-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.alumni-table-collapsible {
  margin-top: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

/* Dark Theme Adjustments for Alumni Section */
[data-theme="dark"] .alumni-stat-card,
[data-theme="dark"] .alumni-controls-bar,
[data-theme="dark"] .alumni-card,
[data-theme="dark"] .alumni-table-collapsible {
  background: var(--white) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .alumni-card-left {
  background: linear-gradient(180deg, #111A2B 0%, #172236 100%) !important;
  border-right-color: var(--border) !important;
}

[data-theme="dark"] .alumni-name {
  color: #F8FAFC !important;
}

[data-theme="dark"] .alumni-stat-number {
  color: #F8FAFC !important;
}

[data-theme="dark"] .alumni-current-role {
  background: #1E293B !important;
  color: #93C5FD !important;
}

[data-theme="dark"] .alumni-meta-pill,
[data-theme="dark"] .alumni-social-btn {
  background: #1E293B !important;
  border-color: var(--border) !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .alumni-thesis-highlight {
  background: #111A2B !important;
  border-left-color: var(--lab1-accent) !important;
}

[data-theme="dark"] .alumni-thesis-label {
  color: #93C5FD !important;
}

[data-theme="dark"] .alumni-opinion-text {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .alumni-filter-btn {
  background: #1E293B !important;
  color: #94A3B8 !important;
}

[data-theme="dark"] .alumni-filter-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
}

/* Responsive Media Queries */
@media (max-width: 880px) {
  .alumni-card {
    grid-template-columns: 1fr;
  }
  .alumni-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: var(--space-5);
  }
  .alumni-card-right {
    padding: var(--space-5);
  }
}

/* ==========================================================================
   STUDENT RESEARCHERS & SCHOLARS SECTION
   ========================================================================== */

.student-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border);
}

.student-category-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.student-category-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.student-category-badge.gold {
  background: var(--lab1-accent-soft);
  color: var(--lab1-accent-dark);
}

.student-category-badge.teal {
  background: var(--lab2-accent-soft);
  color: var(--lab2-accent-dark);
}

/* Laboratory Management Card (Spotlight) */
.manager-spotlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: var(--space-6);
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.manager-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.manager-spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 37, 64, 0.2);
}

.manager-photo-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.manager-photo {
  width: 170px;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center 20%;
  border: 3.5px solid var(--white);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
  background: var(--bg-alt);
  display: block;
  margin: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.manager-spotlight-card:hover .manager-photo {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.16);
}

.manager-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.manager-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  line-height: 1.2;
}

.manager-social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

.manager-social-btn.email:hover {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}

.manager-social-btn.scholar:hover {
  background: #4285F4 !important;
  border-color: #4285F4 !important;
}

.manager-social-btn.orcid:hover {
  background: #A6CE39 !important;
  border-color: #A6CE39 !important;
  color: #213000 !important;
}

.manager-social-btn.linkedin:hover {
  background: #0A66C2 !important;
  border-color: #0A66C2 !important;
}

.manager-social-btn.researchgate:hover {
  background: #00CCBB !important;
  border-color: #00CCBB !important;
  color: #003632 !important;
}

.manager-social-btn.website:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .manager-social-btn {
  background: #1E293B !important;
  border-color: var(--border) !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .manager-social-btn:hover {
  color: #ffffff !important;
}


/* MS Student Card (Spotlight) */
.student-ms-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-6);
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.student-ms-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lab1-accent), var(--lab2-accent));
}

.student-ms-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 37, 64, 0.2);
}

.student-ms-photo {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 3.5px solid var(--white);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.12);
  background: var(--bg-alt);
  display: block;
}

/* Undergraduate Student Grid */
.student-ug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.student-ug-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.student-ug-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lab2-accent);
}

.student-ug-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 37, 64, 0.2);
}

.student-ug-photo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-3);
}

.student-ug-photo {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--white);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.1);
  background: var(--bg-alt);
  display: block;
  transition: transform 0.3s var(--ease);
}

.student-ug-card:hover .student-ug-photo {
  transform: scale(1.04);
}

.student-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.student-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.student-session-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.student-links-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  width: 100%;
}

.student-email-link,
.student-social-link {
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  line-height: 1.2;
}

.student-email-link {
  color: var(--primary-dark);
}

.student-email-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.student-linkedin-link {
  color: #0A66C2;
}

.student-linkedin-link:hover {
  background: #0A66C2;
  color: var(--white);
  border-color: #0A66C2;
}

/* Dark Theme Adjustments for Students */
[data-theme="dark"] .manager-spotlight-card,
[data-theme="dark"] .student-ms-card,
[data-theme="dark"] .student-ug-card {
  background: var(--white) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .student-category-header {
  border-bottom-color: var(--border) !important;
}

[data-theme="dark"] .student-category-header h3,
[data-theme="dark"] .student-name {
  color: #F8FAFC !important;
}

[data-theme="dark"] .student-role {
  background: #1E293B !important;
  color: #93C5FD !important;
}

[data-theme="dark"] .student-email-link,
[data-theme="dark"] .student-social-link {
  background: #1E293B !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .student-email-link {
  color: #93C5FD !important;
}

[data-theme="dark"] .student-linkedin-link {
  color: #60A5FA !important;
}

[data-theme="dark"] .student-email-link:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .student-linkedin-link:hover {
  background: #0A66C2 !important;
  color: #ffffff !important;
  border-color: #0A66C2 !important;
}

@media (max-width: 768px) {
  .manager-spotlight-card,
  .student-ms-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .student-ug-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESEARCH PATHWAY & ELIGIBILITY NOTICES (JOIN US)
   ========================================================================== */

.pathway-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
}

.pathway-step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
}

.pathway-step.step-1 {
  border-left: 4px solid var(--lab2-accent);
}

.pathway-step.step-2 {
  border-left: 4px solid var(--lab1-accent);
}

.pathway-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: var(--space-2);
}

.pathway-step.step-1 .pathway-step-num {
  background: var(--lab2-accent-soft);
  color: var(--lab2-accent-dark);
}

.pathway-step.step-2 .pathway-step-num {
  background: var(--lab1-accent-soft);
  color: var(--lab1-accent-dark);
}

.pathway-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.eligibility-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  color: #1e3a8a;
  font-size: 0.93rem;
  line-height: 1.55;
}

.eligibility-banner strong {
  color: #1e40af;
}

/* ==========================================================================
   Facilities & Infrastructure Section
   ========================================================================== */
.facility-grant-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.grant-pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.grant-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.grant-pillar-card.pillar-fbmh::before, .grant-pillar-card.pillar-lfbmh::before, .grant-pillar-card.pillar-lfsn::before { background: #0A2540; }
.grant-pillar-card.pillar-heat::before { background: #2563EB; }
.grant-pillar-card.pillar-heqep::before { background: #0D9488; }
.grant-pillar-card.pillar-cre::before { background: #7C3AED; }

.grant-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.grant-pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.pillar-fbmh .grant-pillar-icon, .pillar-lfbmh .grant-pillar-icon, .pillar-lfsn .grant-pillar-icon { background: rgba(10, 37, 64, 0.1); color: #0A2540; }
.pillar-heat .grant-pillar-icon { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.pillar-heqep .grant-pillar-icon { background: rgba(13, 148, 136, 0.1); color: #0D9488; }
.pillar-cre .grant-pillar-icon { background: rgba(124, 58, 237, 0.1); color: #7C3AED; }

.grant-pillar-card h4 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem 0;
  color: var(--text);
  line-height: 1.3;
}

.grant-pillar-card .pillar-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.grant-pillar-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Facility Source Badges */
.facility-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.facility-source-badge.source-lfsn {
  background: rgba(10, 37, 64, 0.08);
  color: #0A2540;
  border: 1px solid rgba(10, 37, 64, 0.15);
}

.facility-source-badge.source-heat {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.facility-source-badge.source-heqep {
  background: rgba(13, 148, 136, 0.08);
  color: #0D9488;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.facility-source-badge.source-cre {
  background: rgba(124, 58, 237, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.facility-source-badge.source-bmb {
  background: rgba(217, 119, 6, 0.08);
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Facility Card Polish */
.facility-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.facility-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: calc(var(--radius-lg) - 1px);
  border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.facility-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-card-body h3 {
  font-size: 1.15rem;
  margin: 0.25rem 0 0.4rem 0;
  line-height: 1.35;
}

.facility-card-body p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.facility-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.facility-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Dark mode overrides for facilities */
[data-theme="dark"] .grant-pillar-card {
  background: #111A2E;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .grant-pillar-card h4 {
  color: #F8FAFC;
}

[data-theme="dark"] .pillar-fbmh .grant-pillar-icon, [data-theme="dark"] .pillar-lfbmh .grant-pillar-icon, [data-theme="dark"] .pillar-lfsn .grant-pillar-icon { background: rgba(96, 165, 250, 0.15); color: #60A5FA; }
[data-theme="dark"] .pillar-heat .grant-pillar-icon { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
[data-theme="dark"] .pillar-heqep .grant-pillar-icon { background: rgba(20, 184, 166, 0.15); color: #2DD4BF; }
[data-theme="dark"] .pillar-cre .grant-pillar-icon { background: rgba(168, 85, 247, 0.15); color: #C084FC; }

[data-theme="dark"] .facility-source-badge.source-lfsn {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .facility-source-badge.source-heat {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .facility-source-badge.source-heqep {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
  border-color: rgba(20, 184, 166, 0.3);
}

[data-theme="dark"] .facility-source-badge.source-cre {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.3);
}

[data-theme="dark"] .facility-source-badge.source-bmb {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .facility-spec-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

@media (max-width: 960px) {
  .facility-grant-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .facility-grant-pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Facility Inventory Tables ---------- */
.facility-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.facility-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.facility-table th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.facility-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.facility-table tr:last-child td {
  border-bottom: none;
}

.facility-table tr:hover td {
  background: rgba(10, 37, 64, 0.02);
}

.facility-name-cell {
  font-weight: 600;
  color: var(--text);
  min-width: 200px;
}

.facility-desc-cell {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  min-width: 280px;
}

.facility-spec-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

[data-theme="dark"] .facility-table-wrapper {
  background: #111A2E;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .facility-table th {
  background: #0F172A;
  color: #F8FAFC;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .facility-table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
}

[data-theme="dark"] .facility-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .facility-name-cell {
  color: #F8FAFC;
}

[data-theme="dark"] .facility-spec-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

[data-theme="dark"] .pathway-card,
[data-theme="dark"] .pathway-step {
  background: var(--white) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .eligibility-banner {
  background: #111e38 !important;
  border-color: #1e3a8a !important;
  border-left-color: #3b82f6 !important;
  color: #bfdbfe !important;
}

[data-theme="dark"] .eligibility-banner strong {
  color: #93c5fd !important;
}

@media (max-width: 768px) {
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .pathway-arrow {
    transform: rotate(90deg);
    padding: var(--space-2) 0;
  }
}

/* ---------- Collaboration Page Services & Capabilities ---------- */
.collab-service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.collab-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #2563EB;
}

.collab-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #0D9488);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.collab-service-card:hover::before {
  opacity: 1;
}

.collab-service-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.collab-service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collab-service-title {
  font-size: 1.12rem;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.collab-service-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.collab-service-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.collab-service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0D9488;
  font-weight: bold;
}

/* Workflow Step Grid */
.collab-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.collab-step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
  transition: transform 0.25s var(--ease);
}

.collab-step-card:hover {
  transform: translateY(-3px);
}

.collab-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.collab-step-card h4 {
  font-size: 1rem;
  margin: 0 0 var(--space-2) 0;
}

.collab-step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

[data-theme="dark"] .collab-service-card,
[data-theme="dark"] .collab-step-card {
  background: #111A2E;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .collab-service-title,
[data-theme="dark"] .collab-step-card h4 {
  color: #F8FAFC;
}

[data-theme="dark"] .collab-service-icon {
  background: rgba(255, 255, 255, 0.05);
  color: #60A5FA;
}

@media (max-width: 900px) {
  .collab-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

}

/* ==========================================================================
   RESEARCH PAGE: PI LEADERSHIP, PROJECT TOOLBAR & STATS
   ========================================================================== */

.research-pi-section {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.research-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.research-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.research-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.research-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.research-stat-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
}

.research-stat-icon.green {
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
}

.research-stat-icon.slate {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.research-stat-icon.amber {
  background: rgba(217, 119, 6, 0.12);
  color: #D97706;
}

.research-stat-info {
  display: flex;
  flex-direction: column;
}

.research-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.research-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Research Toolbar (Search + Filters) */
.research-toolbar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.research-search-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.research-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.research-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.research-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.research-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.research-count-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.research-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.research-filter-btn {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 0.38rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.research-filter-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.research-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Project Card Specific Enhancements */
.project-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.3);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.project-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 var(--space-2) 0;
}

.project-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.project-card-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.project-card-timeline {
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-card-year {
  color: var(--primary);
  font-weight: 600;
}

/* Dark mode for research page */
[data-theme="dark"] .research-stat-card,
[data-theme="dark"] .research-toolbar,
[data-theme="dark"] .project-card {
  background: #111A2E;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .research-stat-number,
[data-theme="dark"] .project-card-title {
  color: #F8FAFC;
}

[data-theme="dark"] .research-search-input {
  background: #0B1120;
  border-color: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
}

[data-theme="dark"] .research-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
}

[data-theme="dark"] .research-filter-btn:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #60A5FA;
}

[data-theme="dark"] .research-filter-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

[data-theme="dark"] .project-card-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-card-pi {
  color: #60A5FA;
}

@media (max-width: 900px) {
  .research-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .research-stats-grid {
    grid-template-columns: 1fr;
  }
  .research-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   PEOPLE DIRECTORY ROLE FILTER BAR (Sticky, Interactive & Responsive)
   ========================================================================== */
.people-filter-sticky-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 68px;
  z-index: 85;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .people-filter-sticky-bar {
  background: rgba(15, 23, 42, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.people-filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.people-filter-pills-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  scrollbar-width: none;
  max-width: 100%;
}

.people-filter-pills-scroll::-webkit-scrollbar {
  display: none;
}

.people-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.people-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.people-filter-btn svg {
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.2s ease;
}

.people-filter-btn .filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  min-width: 18px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .people-filter-btn .filter-count-badge {
  background: rgba(255, 255, 255, 0.1);
}

.people-filter-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.people-filter-btn:hover svg {
  transform: scale(1.1);
}

.people-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.people-filter-btn.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Global Search Box in Sticky Bar */
.people-search-wrap {
  flex-shrink: 0;
}

.people-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.people-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.people-search-input-box input {
  width: 100%;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.45rem 2.2rem 0.45rem 2.25rem;
  font-size: 0.84rem;
  outline: none;
  transition: all 0.2s ease;
}

[data-theme="dark"] .people-search-input-box input {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

.people-search-input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  width: 310px;
}

.people-search-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.people-search-clear:hover {
  color: var(--danger, #ef4444);
}

/* Status Bar */
.people-filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.people-status-reset-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Empty search results state */
.people-no-results {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  max-width: 520px;
  margin: var(--space-6) auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  box-shadow: var(--shadow-sm);
  animation: peopleFadeIn 0.3s ease-out;
}

[data-theme="dark"] .people-no-results {
  background: var(--bg-alt);
}

.people-no-results-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.people-no-results h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.people-no-results p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}

/* Animation */
@keyframes peopleFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.people-fade-in {
  animation: peopleFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 991px) {
  .people-filter-sticky-bar {
    top: 60px;
  }
  .people-filter-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .people-search-input-box {
    width: 100%;
  }
  .people-search-input-box input:focus {
    width: 100%;
  }
}
/* ---------- Official FBMH Logo Branding Elements ---------- */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: var(--space-3);
}
.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  padding: 1.5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.footer-brand-title h4 {
  margin: 0;
  line-height: 1.25;
}
.footer-affiliation-note {
  display: block;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.hero-pill-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  flex-shrink: 0;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.about-identity-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-5);
}
.about-identity-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-logo-emblem {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 4px solid var(--white);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.14);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.about-logo-emblem:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 36px rgba(10, 37, 64, 0.2);
}
[data-theme="dark"] .about-logo-emblem {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
@media (max-width: 768px) {
  .about-identity-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
  }
  .about-logo-emblem {
    width: 130px;
    height: 130px;
    margin: 0 auto;
  }
}
