/* ==========================================================================
   CoE-KISTI Website Core Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --color-primary:        #50162d;   /* Deep Crimson — institutional authority */
  --color-primary-light:  #702543;   /* Muted Rose — secondary states, tags */
  --color-primary-ghost:  #f4ebee;   /* Blush — tinted backgrounds, hover states */
  --color-bg:             #FAF8F6;   /* Warm White — page background */
  --color-surface:        #FFFFFF;   /* Pure White — cards, panels */
  --color-ink:            #1A1A1A;   /* Near Black — body text */
  --color-ink-muted:      #5A5A5A;   /* Mid Grey — captions, metadata */
  --color-ink-subtle:     #9A9A9A;   /* Light Grey — placeholders, dividers */
  --color-border:         #E8E4E0;   /* Warm Border — card edges, separators */
  --color-rule:           #50162d;   /* Crimson Rule — editorial accent line */
  
  /* Status/Category Colors */
  --color-success:        #2E6A4F;
  --color-warning:        #B57C1E;
  --color-info:           #2C5D88;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing System */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;
  --space-40:  160px;

  /* Layout Boundaries */
  --max-width: 1440px;
  --content-gutter: 80px;
  --section-spacing: 120px;

  /* Radius & Shadows */
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --radius-pill:   100px;

  --shadow-card:   0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover:  0 4px 24px rgba(80, 22, 45,0.12);
  --shadow-modal:  0 20px 60px rgba(0,0,0,0.14);

  /* Focus Outlines */
  --focus-outline: 2px solid var(--color-primary);
  --focus-offset: 3px;
}

/* ==========================================================================
   Base resets and styling
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  padding-top: 130px; /* Offset for sticky header */
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
}

.text-hero {
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 700;
}

.text-h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 700;
}

.text-h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 600;
}

.text-h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 600;
}

.text-h4 {
  font-size: 20px;
  line-height: 1.3;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  text-align: justify;
}

.text-body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-ink-muted);
  text-align: justify;
}

.text-body {
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
}

.text-body-sm {
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}

.text-label {
  font-size: 12px;
  line-height: 1.2;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-ink-muted);
}

.text-mono {
  font-family: var(--font-mono);
}

.italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

/* Layout container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
}

.section-padding {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

/* ==========================================================================
   Reusable UI/UX Micro-Components
   ========================================================================== */

/* Section Eyebrow */
.eyebrow-container {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--color-primary);
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background-color: #551c2e;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 27px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-ghost:hover {
  background-color: var(--color-primary-ghost);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* Ghost White Button */
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 27px;
  border: 1.5px solid #FFFFFF;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Tag Pill */
.tag-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* Link Row Molecule */
.link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--space-4);
  transition: color 150ms ease;
}

.link-row .arrow {
  transition: transform 200ms ease;
}

.link-row:hover {
  color: #551c2e;
}

.link-row:hover .arrow {
  transform: translateX(4px);
}

/* Shimmer Loading Skeleton */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #F0EDEA 25%, #E8E4E0 50%, #F0EDEA 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  display: block;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-success { background-color: #E2F0D9; color: var(--color-success); }
.badge-warning { background-color: #FFF2CC; color: var(--color-warning); }
.badge-info { background-color: #DEEBF7; color: var(--color-info); }
.badge-muted { background-color: #EDEDED; color: var(--color-ink-muted); }

/* Table design (Ledgers, registries) */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

  text-align: left;
  background-color: var(--color-surface);
}

.leader-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  transition: all 240ms ease;
}

th {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 24px;
}

td {
  font-size: 14px;
  font-family: var(--font-body);
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
}

tr:nth-child(even) td {
  background-color: #FAF8F6;
}

tr:hover td {
  background-color: var(--color-primary-ghost);
}

/* Common form setups */
.form-group {
  position: relative;
  margin-bottom: var(--space-6);
}

.form-input {
  width: 100%;
  padding: 18px 16px 8px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  transition: border-color 200ms ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-label {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--color-ink-muted);
  font-size: 16px;
  pointer-events: none;
  transition: transform 200ms ease, font-size 200ms ease, color 200ms ease;
  transform-origin: left top;
}

/* Floating labels effect */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translate(0, -10px) scale(0.75);
  color: var(--color-primary);
}

.form-input::placeholder {
  color: transparent;
}

.input-error {
  border-color: var(--color-primary) !important;
}

.error-message {
  color: var(--color-primary);
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* Outlines on accessibility focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

/* ==========================================================================
   GLOBAL ORGANISMS (Navbar & Footer)
   ========================================================================== */

/* Navbar */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-container-fluid {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 16px;
}

.navbar-logo-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  justify-self: start;
}

.logo-img-element {
  height: 110px;
  width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-partner-logos {
  display: flex;
  align-items: center;
  gap: 20%;
  margin-left: 20px;
  justify-self: end;
  width: 162px;
}

.header-partner-logo {
  height: 63px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .header-partner-logos {
    display: none;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-top {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.logo-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 2px;
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: 2px;
}

.nav-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary-ghost);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 14px;
  transition: all 150ms ease;
  margin-left: 8px;
}

.nav-search-btn:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: center;
  margin: 0 auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 200ms ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.chevron {
  font-size: 10px;
  transition: transform 180ms ease;
  display: inline-block;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  min-width: 200px;
  padding: 12px 0;
  display: none;
  flex-direction: column;
  z-index: 1010;
  animation: slideDropdown 180ms ease forwards;
}

.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background-color: transparent;
}

.nav-item:hover .dropdown-panel {
  display: flex;
}

@keyframes slideDropdown {
  from { opacity: 0; transform: translateX(-50%) translateY(0px); }
  to { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

.dropdown-item {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  text-decoration: none;
  padding: 10px 20px;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease;
}

.dropdown-item:hover {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
}

/* Hamburger toggle for mobile drawer */
.hamburger-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1050;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 240ms ease, opacity 240ms ease;
}

.hamburger-button.open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-button.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-button.open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Drawer navigation */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-surface);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: right 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 300ms ease;
  visibility: hidden;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
}

.drawer-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.mobile-nav-links {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-mainlink {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  display: block;
}

.mobile-accordion {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-accordion-header {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  text-align: left;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease-out;
  background-color: var(--color-bg);
}

.mobile-accordion-body.open {
  max-height: 200px;
}

.mobile-sublink {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink-muted);
  text-decoration: none;
  padding: 12px 40px;
}

/* Footer Section */
.footer {
  background-color: #1A1A1A;
  color: #FFFFFF;
  padding: 80px 0 40px;
  flex-shrink: 0;
  border-top: 2px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-wide {
  padding-right: var(--space-4);
}

.footer-logo-zone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-mission {
  color: #B0B0B0;
  line-height: 1.6;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #2A2A2A;
  color: #B0B0B0;
  transition: all 200ms ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-heading {
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: #B0B0B0;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-contact-info {
  color: #B0B0B0;
  line-height: 1.6;
}

.footer-map-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #333;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bottom-bar {
  border-top: 1px solid #333;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  color: #888;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-link {
  color: #888;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-bottom-link:hover {
  color: #FFFFFF;
}

.divider-dot {
  color: #555;
}

/* ==========================================================================
   INDIVIDUAL PAGES (HTML Custom styling classes)
   ========================================================================== */

/* 1. HOME PAGE */
.hero-section {
  background-color: var(--color-bg);
  min-height: 700px;
  height: calc(100vh - 72px);
  position: relative;
}

.hero-split {
  display: flex;
  height: 100%;
  width: 100%;
}

.hero-left-content {
  width: 60%;
  display: flex;
  align-items: center;
  padding-left: var(--content-gutter);
  padding-right: 48px;
}

.hero-left-inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
}

.hero-headline {
  margin-top: 16px;
}

.hero-subheadline {
  margin-top: 24px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.hero-stat-row {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stat-tile:not(:last-child) {
  border-right: 1px solid var(--color-border);
  padding-right: 16px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  margin-top: 4px;
}

.hero-right-image {
  width: 40%;
  position: relative;
  overflow: hidden;
}

.hero-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(80, 22, 45, 0.15) 0%, var(--color-bg) 100%);
  pointer-events: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  animation: bounce 2s infinite;
  background-color: var(--color-surface);
  z-index: 5;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* About Introduction */
.intro-header-ribbon {
  background-color: var(--color-primary);
  padding: var(--space-10) 0;
  text-align: center;
  width: 100%;
}

.intro-header-ribbon .centered-eyebrow {
  justify-content: center;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.intro-header-ribbon .white-line {
  background-color: #FFFFFF;
}

.intro-header-ribbon .white-text {
  color: #FFFFFF;
}

.intro-header-ribbon .section-title {
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.intro-header-ribbon .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-align: center;
}

.intro-content-centered {
  max-width: 800px;
  margin: var(--space-10) auto 0;
  text-align: justify;
}

.intro-content-centered .about-text {
  line-height: 1.8;
  color: var(--color-ink-muted);
}

.stacked-card-wrapper {
  position: relative;
  width: 80%;
  max-width: 360px;
  height: 440px;
  margin: 0 auto;
}

.stacked-primary-card {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stacked-primary-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-accent-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  z-index: 10;
}

.floating-accent-text {
  display: flex;
  flex-direction: column;
}

.accent-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.accent-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-ink-muted);
}

/* Research Domains */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.domain-card.centered {
  grid-column: span 3;
  justify-self: center;
  width: 100%;
  max-width: calc(33.333% - 16px);
}

@media (max-width: 992px) {
  .domain-card.centered {
    grid-column: span 2;
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }
  .domain-card.centered {
    grid-column: span 1;
    max-width: 100%;
  }
}

.domain-card {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.domain-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.domain-card.has-bg {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.domain-card.has-bg:hover {
  border-color: #ffc2d1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.domain-card.has-bg .domain-label {
  color: #ffc2d1;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.domain-card.has-bg .domain-title {
  color: #FFFFFF;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
}

.domain-card.has-bg .domain-body {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  font-weight: 450;
}

.domain-card.has-bg .explore-text {
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.domain-card-one-health {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('one_health.png');
}
.domain-card-probiotics {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('probiotics.png');
}
.domain-card-plant-microbe {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('plant_microbe.png');
}
.domain-card-genomics {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('genomics.png');
}
.domain-card-ai-ml {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('ai_ml.png');
}
.domain-card-nano-bio {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('nano_bio.png');
}
.domain-card-cell-biology {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('cell_bio.png');
}
.domain-card-translational {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('translational.png');
}
.domain-card-innovation-training {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 100%), url('innovation_training.png');
}

.domain-icon-circle {
  display: none;
}

.domain-label {
  color: var(--color-primary);
  font-size: 11px;
}

.domain-title {
  margin-top: 6px;
  color: var(--color-ink);
}

.domain-body {
  margin-top: 10px;
  color: var(--color-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.domain-explore-link {
  margin-top: auto;
  padding-top: 16px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 200ms ease;
}

.domain-card:hover .domain-explore-link {
  opacity: 1;
  transform: translateY(0);
}

.explore-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Featured Research Section */
.featured-section {
  background-color: #F2EAF0;
}

.section-title-centered {
  text-align: center;
  margin-bottom: 56px;
}

.featured-large-card {
  display: grid;
  grid-template-columns: 4fr 6fr;
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.featured-large-img-container {
  position: relative;
  min-height: 320px;
}

.featured.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.leader-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  transition: all 240ms ease;
}

.leader-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.leader-img-box {
  width: 180px;
  height: 230px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.leader-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.leader-card:hover .leader-img-box img {
  transform: scale(1.04);
}

.leader-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.featured-large-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.featured-large-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.featured-large-title {
  line-height: 1.2;
}

.featured-large-body {
  color: var(--color-ink-muted);
}

.featured-meta-row {
  display: flex;
  gap: 12px;
  color: var(--color-ink-subtle);
}

.meta-divider {
  color: var(--color-border);
}

.featured-secondary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-compact-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-card-body {
  color: var(--color-ink-muted);
}

/* Section Header Row */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
}

/* Latest News Preview */
.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 240ms ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.news-img-box {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.news-card:hover .news-img-box img {
  transform: scale(1.04);
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  box-sizing: border-box;
}

.news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.news-card-date {
  color: var(--color-ink-subtle);
}

.news-card-excerpt {
  color: var(--color-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .link-row .arrow {
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .news-preview-grid,
  .news-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .news-card {
    height: 290px;
    min-height: 290px;
  }
}

@media (max-width: 640px) {
  .news-preview-grid,
  .news-masonry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    height: 280px;
    min-height: 280px;
    padding: 24px 20px;
  }
}

/* Asymmetric Gallery Preview (Visual Log) */
.gallery-preview-section {
  background-color: var(--color-ink);
}

.asymmetric-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}

.gallery-cell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 340px;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.gallery-cell:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.stack-cell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 340px;
  min-width: 0;
}

.sub-cell {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sub-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.sub-cell:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.video-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(122, 12, 46, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 240ms ease;
  pointer-events: none;
}

.gallery-cell:hover .video-play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--color-primary);
}

.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #FFFFFF;
  margin-left: 3px;
}

@media (max-width: 992px) {
  .asymmetric-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-cell,
  .stack-cell {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .asymmetric-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-cell,
  .stack-cell {
    height: 240px;
  }
}

/* Collaborators section */
.collaborators-section {
  background-color: var(--color-surface);
  padding: 80px 0 48px;
}

.collaborators-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.collaborators-sub {
  color: var(--color-ink-muted);
  margin-top: 8px;
}

/* Contact Preview */
.contact-preview-content {
  max-width: 720px;
  margin: 0 auto;
}

.contact-preview-desc {
  margin-top: 16px;
}

.contact-preview-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.contact-quick-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.contact-tile-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-tile-icon {
  font-size: 24px;
}

.contact-tile-label {
  color: var(--color-ink-muted);
}

.contact-tile-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink);
}

/* ==========================================================================
   2. ABOUT US PAGE
   ========================================================================== */
.about-hero {
  height: 480px;
  background-color: var(--color-primary);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}

.about-hero-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-hero-text {
  z-index: 2;
}

.about-hero-eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  display: block;
}

.breadcrumbs {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.hero-ghost-k {
  position: absolute;
  right: 0;
  font-family: var(--font-display);
  font-size: 320px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
}

/* Who we are */
.who-we-are-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
}

.section-title {
  margin-top: 8px;
  margin-bottom: 24px;
}

.affiliation-note {
  color: var(--color-ink-muted);
  font-style: italic;
  margin-top: var(--space-6);
}

.who-we-are-image-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tall-image-wrapper {
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tall-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-caption {
  font-size: 13px;
  color: var(--color-ink-muted);
  text-align: center;
}

/* Vision & Mission values */
.vision-mission {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vision-mission-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.card-top-line {
  width: 48px;
  height: 2px;
  background-color: #FFFFFF;
}

.card-label {
  color: rgba(255, 255, 255, 0.5);
}

.card-title {
  color: #FFFFFF !important;
  line-height: 1.25;
}

.card-body {
  color: rgba(255, 255, 255, 0.85);
}

/* Timeline */
.timeline-tree {
  position: relative;
  max-width: 900px;
  margin: 64px auto 0;
  padding: 20px 0;
}

.timeline-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  width: 50%;
  position: relative;
  margin-bottom: 48px;
}

.timeline-left {
  left: 0;
  padding-right: 60px;
  text-align: right;
}

.timeline-right {
  left: 50%;
  padding-left: 60px;
  text-align: left;
}

.timeline-dot-wrapper {
  position: absolute;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-left .timeline-dot-wrapper {
  right: -13px;
  flex-direction: row-reverse;
}

.timeline-right .timeline-dot-wrapper {
  left: -13px;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 4px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.timeline-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.timeline-left .timeline-card {
  margin-left: auto;
}

.timeline-card-badge {
  color: var(--color-primary);
}

/* Director's section */
.director-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 64px;
  align-items: flex-start;
}

.director-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-bg);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.director-portrait-container {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.director-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-title {
  color: var(--color-ink-muted);
  margin-top: 4px;
}

.director-affil {
  color: var(--color-ink-subtle);
  margin-top: 2px;
}

.director-message {
  position: relative;
  padding-left: var(--space-4);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 140px;
  color: var(--color-primary-ghost);
  position: absolute;
  top: -60px;
  left: -20px;
  line-height: 1;
  user-select: none;
  z-index: 1;
}

.director-message-body {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.director-message-body.text-body-lg {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-ink);
}

.signature-area {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.signature-svg {
  opacity: 0.85;
  margin-bottom: 8px;
}

/* Core Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 200ms ease;
}

.value-card:hover {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.value-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--color-primary-ghost);
  line-height: 0.9;
}

.value-card:hover .value-number {
  color: var(--color-primary-light);
  opacity: 0.2;
}

/* Impact Statistics */
.impact-stats-section {
  background-color: var(--color-primary);
  padding: 100px 0;
  color: #FFFFFF;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.impact-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.impact-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
}

.impact-label {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* ==========================================================================
   3. TEAM PAGE
   ========================================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.leader-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  transition: all 240ms ease;
}

.leader-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.leader-img-box {
  width: 180px;
  height: 230px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.leader-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.leader-card:hover .leader-img-box img {
  transform: scale(1.03);
}

.leader-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.leader-dept {
  color: var(--color-primary);
}

.leader-role {
  color: var(--color-ink-muted);
  font-weight: 500;
  margin-top: -8px;
}

.leader-bio {
  color: var(--color-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.leader-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.leader-socials, .staff-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink-subtle);
}

.leader-socials a, .staff-socials a, .modal-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  transition: all 180ms ease;
  text-decoration: none;
}

.leader-socials a:hover, .staff-socials a:hover, .modal-socials a:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(122, 12, 46, 0.25);
}

.view-profile-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 0;
  transition: color 150ms ease;
}

.view-profile-btn:hover {
  color: #551c2e;
}

/* Filter pills on Team & Announcements */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.filter-pill {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 150ms ease;
}

.filter-pill.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.staff-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 240ms ease;
}

.staff-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.staff-avatar-box {
  width: 180px;
  height: 230px;
  border-radius: var(--radius-xl);
  background-color: var(--color-primary-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.staff-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.staff-card:hover .staff-avatar-box img {
  transform: scale(1.03);
}

.staff-monogram {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: var(--color-primary);
}

.staff-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.staff-role {
  color: var(--color-ink-muted);
  font-weight: 500;
  margin-top: -4px;
}

.staff-desc {
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.staff-email-link {
  color: var(--color-primary-light);
  text-decoration: none;
}

.admin-monogram {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-email-anchor {
  color: var(--color-primary);
  text-decoration: none;
}

.admin-email-anchor:hover {
  text-decoration: underline;
}

.join-cta-box {
  max-width: 640px;
  margin: 0 auto;
}

.join-desc {
  margin-top: 16px;
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

/* ==========================================================================
   4. RESEARCH PAGE
   ========================================================================== */
.research-hero {
  height: 540px;
  background-color: #1A1A1A;
  display: flex;
}

.research-hero-left {
  width: 65%;
  display: flex;
  align-items: center;
  padding-left: var(--content-gutter);
  padding-right: 48px;
}

.hero-left-container {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.research-hero-right {
  width: 35%;
  position: relative;
  overflow: hidden;
}

.research-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vertical-rule {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--color-primary);
}

.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 48px;
  margin-bottom: 48px;
}

.overview-stat-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overview-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-primary);
}

.overview-stat-desc {
  color: var(--color-ink-muted);
  line-height: 1.5;
}

.editorial-overview {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Accordions */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.accordion-row {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms ease;
}

.accordion-row.open {
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-primary-ghost);
}

.accordion-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-chevron {
  font-size: 12px;
  color: var(--color-primary-light);
}

.project-badge {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.accordion-row.open .project-badge {
  background-color: #FFFFFF;
}

.accordion-body {
  padding: 0 24px 24px;
}

.accordion-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Focus Areas Cards and Grid */
.focus-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .focus-areas-grid {
    grid-template-columns: 1fr;
  }
  .focus-area-card {
    min-height: auto;
  }
}

.focus-area-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  min-height: 320px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.focus-area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.focus-area-card.has-bg {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  background-size: cover;
  background-position: center;
}

.focus-area-card.has-bg:hover {
  border-color: #ffc2d1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.focus-area-card.has-bg .focus-area-title {
  color: #FFFFFF;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
}

.focus-area-card.has-bg .focus-area-description {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  font-weight: 450;
}

.focus-area-card.centered {
  grid-column: span 2;
  justify-self: center;
  width: 100%;
  max-width: calc(50% - 12px);
}

@media (max-width: 768px) {
  .focus-area-card.centered {
    grid-column: span 1;
    max-width: 100%;
  }
}

.focus-area-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-ghost);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.focus-area-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.focus-area-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

/* Projects Registry list */
.project-filters {
  display: flex;
  gap: 16px;
}

.filter-select {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  font-family: var(--font-body);
  color: var(--color-ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.project-card-strip {
  height: 4px;
  width: 100%;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card-title {
  font-family: var(--font-display);
  line-height: 1.35;
}

.project-details {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.details-row {
  display: flex;
  justify-content: space-between;
}

.details-label {
  color: var(--color-ink-subtle);
  font-weight: 500;
}

.details-value {
  color: var(--color-ink);
  font-weight: 600;
}

/* Publications dynamic citation rows */
.pub-search-box {
  position: relative;
  width: 300px;
}

.pub-search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
  font-family: var(--font-body);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--color-ink-subtle);
  pointer-events: none;
}

.pub-filters-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.pub-filter-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pub-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-filter-btn {
  background-color: transparent;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--color-ink-muted);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 150ms ease;
}

.pub-filter-btn.active {
  background-color: var(--color-primary-ghost);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.publication-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 150ms ease, border-radius 150ms ease;
}

.publication-row:hover {
  background-color: var(--color-primary-ghost);
  border-radius: var(--radius-md);
}

.pub-citation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 80%;
}

.pub-tag {
  margin-bottom: 4px;
}

.pub-title {
  font-weight: 600;
}

.pub-doi-link {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 150ms ease;
}

.pub-doi-link:hover {
  color: var(--color-primary);
}

.pub-authors {
  color: var(--color-ink-muted);
}

.pub-meta {
  color: var(--color-ink-subtle);
}

.pub-actions {
  display: flex;
  gap: 8px;
}

.pub-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--color-surface);
  color: var(--color-primary);
  transition: all 150ms ease;
}

.pub-icon-btn:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.pub-action-text {
  font-size: 10px;
}

/* Innovation outcomes statistics */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.outcome-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.outcome-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.outcome-title {
  font-weight: 600;
}

.collab-cta-section {
  background-color: var(--color-primary);
}

/* Facilities Cards and Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

.facility-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.facility-card-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary-ghost);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.facility-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.facility-card-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   5. FACILITIES PAGE
   ========================================================================== */
.facilities-hero {
  height: 480px;
  background-color: var(--color-primary);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.facilities-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(80, 22, 45, 0.2) 0%, rgba(80, 22, 45, 0.8) 100%);
  z-index: 1;
}

.facilities-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.facilities-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.overview-stats-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facilities-stat-tile {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-tile-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-tile-emoji {
  font-size: 28px;
}

.stat-tile-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat-tile-desc {
  color: var(--color-ink-muted);
}

/* Tabs list */
.tabs-section {
  background-color: var(--color-bg);
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--color-ink-subtle);
  padding: 16px 28px;
  cursor: pointer;
  transition: all 150ms ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover, .tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active {
  border-bottom-color: var(--color-primary);
}

.tab-content-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Showcase layout rows */
.showcase-row {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 480px;
  align-items: stretch;
}

.row-b {
  grid-template-columns: 45fr 55fr;
  background-color: var(--color-bg);
}

.showcase-img-box {
  position: relative;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-content {
  padding: 64px var(--content-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.showcase-title {
  line-height: 1.25;
}

.showcase-desc {
  color: var(--color-ink-muted);
}

.capabilities-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.capabilities-list li {
  position: relative;
  padding-left: 20px;
}

.capabilities-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 10px;
  top: 3px;
}

.researcher-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.researcher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.researcher-info {
  display: flex;
  flex-direction: column;
}

.researcher-name {
  font-weight: 600;
  font-size: 14px;
}

.researcher-role {
  font-size: 11px;
  color: var(--color-ink-muted);
}

/* Equipment Gallery filtering */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filter-pill {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 150ms ease;
}

.gallery-filter-pill.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.equipment-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.equipment-tile {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.equipment-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.equipment-tile:hover .equipment-tile-img {
  transform: scale(1.04);
}

.equipment-tile-overlay {
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8) 60%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: bottom 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.equipment-tile:hover .equipment-tile-overlay {
  bottom: 0;
}

.eq-name {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
}

.eq-lab {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

/* Stats Counter panel */
.facilities-stats-panel {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 48px;
}

.fac-stats-row {
  display: flex;
  justify-content: space-around;
}

.fac-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fac-stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
}

.fac-stat-lbl {
  color: var(--color-ink-muted);
  margin-top: 4px;
}

.contact-facility-box {
  max-width: 720px;
  margin: 0 auto;
}

.contact-fac-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}

/* ==========================================================================
   6. NOTIFICATIONS PAGE
   ========================================================================== */
.sticky-filter-section {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 72px;
  z-index: 900;
  padding: 16px 0;
}

.filter-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.filter-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  background-color: var(--color-bg);
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-search-input ~ .search-icon {
  left: 16px;
  color: var(--color-ink-subtle);
}

.filter-right-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-dropdown {
  padding: 11px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-ink);
}

.reset-filter-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Featured Notification layout */
.featured-notif-section {
  background-color: var(--color-bg);
  padding-top: 48px;
}

.featured-notif-card {
  background-color: var(--color-primary-ghost);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.featured-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.featured-pill {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.featured-notif-title {
  line-height: 1.25;
}

.featured-notif-date {
  display: block;
  color: var(--color-primary-light);
  margin-top: 8px;
}

.featured-notif-summary {
  margin-top: 16px;
  line-height: 1.6;
}

.featured-notif-action {
  margin-top: 24px;
}

/* Row-by-row Notifications feed */
.notification-row {
  display: flex;
  align-items: center;
  padding: 24px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 150ms ease, border-radius 150ms ease;
}

.notification-row:hover {
  background-color: var(--color-primary-ghost);
  border-radius: var(--radius-md);
}

.notif-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 80px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  padding-right: 16px;
}

.notif-day {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.1;
}

.notif-month-year {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  text-transform: uppercase;
}

.notif-content-col {
  flex: 1;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-tag {
  margin-bottom: 4px;
}

.notif-title {
  font-weight: 600;
}

.notif-summary {
  color: var(--color-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-pdf-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--color-surface);
  color: var(--color-primary);
  transition: all 150ms ease;
}

.download-pdf-btn:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.pdf-icon {
  font-size: 16px;
}

.pdf-label {
  font-size: 8px;
  margin-top: -2px;
}

/* Pagination panel */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.pagination-arrow {
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 150ms ease;
}

.pagination-arrow:hover:not(:disabled) {
  background-color: var(--color-primary-ghost);
}

.pagination-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 150ms ease;
}

.pagination-number-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-number-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* Archive accordion row list */
.archive-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.archive-accordion {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.archive-accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.archive-chevron {
  font-size: 12px;
  color: var(--color-primary-light);
}

.archive-accordion-body {
  padding: 0 24px 24px;
  display: none;
  flex-direction: column;
}

.archive-accordion-body.open {
  display: flex;
}

.archive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.archive-row-date {
  color: var(--color-ink-subtle);
  width: 100px;
  flex-shrink: 0;
}

.archive-row-title {
  flex: 1;
}

/* ==========================================================================
   7. EVENTS PAGE
   ========================================================================== */
.time-filters, .view-toggles {
  display: flex;
  background-color: var(--color-primary-ghost);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.time-filter-btn, .view-toggle-btn {
  border: none;
  background: none;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 150ms ease;
}

.time-filter-btn.active, .view-toggle-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.category-pill-btn {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 150ms ease;
  font-family: var(--font-body);
}

.category-pill-btn:hover {
  border-color: var(--color-primary-light);
}

.category-pill-btn.active {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

/* Featured Event Layout */
.featured-event-card {
  display: grid;
  grid-template-columns: 40fr 60fr;
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.featured-event-img-box {
  position: relative;
}

.featured-event-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-event-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.featured-event-title {
  line-height: 1.25;
}

.online-pill {
  background-color: #E2F0D9;
  color: var(--color-success);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.upcoming-badge {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.featured-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink-muted);
}

.meta-icon {
  font-size: 16px;
}

.featured-speaker-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--color-border);
}

.speaker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 20px;
}

.speaker-info {
  display: flex;
  flex-direction: column;
}

.speaker-label {
  color: var(--color-primary-light);
  font-size: 9px;
}

.speaker-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}

.speaker-affil {
  color: var(--color-ink-muted);
}

.featured-event-desc {
  color: var(--color-ink-muted);
  line-height: 1.6;
}

.featured-event-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Event List Card details */
.events-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.event-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 240ms ease;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.event-card-img-box {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.event-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-surface);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 50px;
}

.badge-day {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.badge-month {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin-top: 2px;
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.event-card-title {
  line-height: 1.35;
  margin-top: 4px;
}

.event-card-meta {
  color: var(--color-ink-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.venue-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.event-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
}

.event-card-btn {
  width: 100%;
}

.past-badge {
  color: var(--color-ink-subtle);
  margin: 0 auto;
}

/* Monthly Calendar panel */
.calendar-container-layout {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  padding: 40px;
  position: relative;
  display: none;
}

.calendar-container-layout.active {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.calendar-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  cursor: pointer;
  font-size: 16px;
  color: var(--color-primary);
  transition: all 150ms ease;
}

.calendar-nav-btn:hover {
  background-color: var(--color-primary-ghost);
}

.calendar-title-label {
  font-family: var(--font-display);
  color: var(--color-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-week-header {
  text-align: center;
  font-weight: 600;
  color: var(--color-ink-muted);
  padding: 8px 0;
  border-bottom: 2px solid var(--color-border);
}

.calendar-day {
  height: 90px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  background-color: var(--color-surface);
  transition: all 150ms ease;
}

.calendar-day:hover:not(.empty-day) {
  background-color: var(--color-bg);
  border-color: var(--color-primary-light);
}

.calendar-day.has-events {
  background-color: var(--color-primary-ghost);
  border-color: var(--color-primary-light);
}

.empty-day {
  background-color: transparent;
  border: none;
  cursor: default;
}

.calendar-day-number {
  font-weight: 600;
  color: var(--color-ink);
  font-size: 14px;
}

.calendar-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.calendar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Calendar Date Details Popover */
.calendar-popover {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  padding: 24px;
  width: 90%;
  max-width: 400px;
  z-index: 10;
  display: none;
}

.calendar-popover.open {
  display: block;
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.close-popover-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-ink-muted);
}

.popover-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popover-event-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-border);
}

.popover-event-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popover-event-title {
  font-weight: 600;
}

.popover-event-meta {
  color: var(--color-ink-muted);
}

/* ==========================================================================
   8. NEWS PAGE
   ========================================================================== */
.featured-story-section {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.featured-story-layout {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 48px;
  align-items: center;
}

.featured-story-img-box {
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.featured-story-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease-in-out;
}

.featured-story-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 300ms ease-in-out;
}

.featured-story-fade-out {
  opacity: 0.15 !important;
}

.featured-story-title {
  line-height: 1.2;
}

.featured-byline {
  color: var(--color-ink-subtle);
}

.featured-story-excerpt {
  color: var(--color-ink-muted);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .featured-story-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured-story-img-box {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .featured-story-section {
    display: none;
  }
}

/* Category horizontal scrolls */
.category-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  justify-content: center;
}

.category-filter-btn {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
  font-family: var(--font-body);
}

.category-filter-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* News Card Grid Layout (Side-by-side on desktop, stacked on smartphones) */
.news-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 240ms ease;
  height: 100%;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

@media (max-width: 992px) {
  .news-masonry-grid,
  .news-preview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.news-card-inner {
  padding: 24px;
}

/* Image Card news variant */
.image-card-img-box {
  height: 200px;
  overflow: hidden;
}

.image-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.news-card:hover .image-card-img-box img {
  transform: scale(1.04);
}

.image-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-card-title {
  font-family: var(--font-display);
  line-height: 1.35;
}

.image-card-excerpt {
  color: var(--color-ink-muted);
  line-height: 1.6;
}

.image-card-meta {
  color: var(--color-ink-subtle);
}

/* Text Only Card news variant */
.text-only-card {
  background-color: var(--color-primary-ghost);
  border-left: 4px solid var(--color-primary);
}

.text-only-card-inner {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-only-title {
  font-family: var(--font-display);
  line-height: 1.25;
}

.text-only-excerpt {
  color: var(--color-ink-muted);
  line-height: 1.6;
}

.text-only-meta {
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Press Releases */
.press-release-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 150ms ease;
}

.press-release-row:hover {
  background-color: var(--color-primary-ghost);
  border-radius: var(--radius-md);
}

.press-date {
  color: var(--color-ink-subtle);
  width: 100px;
  flex-shrink: 0;
}

.press-title {
  flex: 1;
  font-weight: 500;
}

.press-actions {
  display: flex;
  gap: 16px;
}

.press-action-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Newsletter block */
.newsletter-section {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.newsletter-box {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.newsletter-form {
  display: flex;
  background-color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 4px;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 24px;
  font-family: var(--font-body);
  color: var(--color-ink);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-btn {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 24px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.newsletter-btn:hover {
  background-color: #551c2e;
}

.privacy-note {
  color: rgba(255, 255, 255, 0.6);
}

.subscribed-success {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.subscribed-success.active {
  display: flex;
}

.success-icon {
  font-size: 28px;
  color: #E2F0D9;
}

/* ==========================================================================
   9. GALLERY PAGE
   ========================================================================== */
.gallery-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.media-type-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  background-color: var(--color-bg);
}

.toggle-btn {
  border: none;
  background: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-ink-muted);
  transition: all 150ms ease;
}

.toggle-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.gallery-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 150ms ease;
}

.cat-pill.active {
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

.sort-dropdown {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-ink);
}

.featured-gallery-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.featured-gallery-img-box {
  height: 440px;
  width: 100%;
}

.featured-gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-gallery-caption {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
}

.featured-gallery-title {
  margin-top: 8px;
}

.featured-gallery-date {
  color: var(--color-ink-subtle);
}

/* Photo Masonry grid */
.gallery-masonry-grid {
  column-count: 4;
  column-gap: 12px;
}

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.masonry-img-wrapper {
  position: relative;
  width: 100%;
}

.masonry-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.gallery-masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
}

.masonry-overlay-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 16px;
  color: #FFFFFF;
}

/* Video Grid list */
.videos-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card-tile {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 240ms ease;
}

.video-card-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.video-thumb-box {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease;
}

.video-card-tile:hover .video-play-btn-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.video-play-btn-overlay::after {
  content: '';
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  position: absolute;
  z-index: 1;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #FFFFFF;
  margin-left: 6px;
  position: relative;
  z-index: 2;
}

.video-tile-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-tile-title {
  font-weight: 600;
  line-height: 1.35;
}

.video-tile-date {
  color: var(--color-ink-subtle);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-close-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  font-size: 40px;
  color: #FFFFFF;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 150ms ease;
  z-index: 3020;
}

.lightbox-close-btn:hover {
  opacity: 1;
}

.lightbox-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 64px;
  color: #FFFFFF;
  cursor: pointer;
  opacity: 0.5;
  padding: 20px;
  transition: opacity 150ms ease;
  z-index: 3020;
  user-select: none;
}

.lightbox-nav-arrow:hover {
  opacity: 1;
}

.prev-arrow { left: 32px; }
.next-arrow { right: 32px; }

.lightbox-content-box {
  width: 80%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-image-wrapper {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox-caption-bar {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.lightbox-caption-title {
  font-weight: 600;
}

.lightbox-caption-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* Gallery Page Responsive Alignments for Tablets & Smartphones */
@media (max-width: 992px) {
  .gallery-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .media-type-toggle {
    width: 100%;
    justify-content: center;
  }

  .gallery-category-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .cat-pill {
    white-space: nowrap;
  }

  .sort-dropdown {
    width: 100%;
  }

  .featured-gallery-img-box {
    height: 320px;
  }

  .gallery-masonry-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .videos-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .featured-gallery-img-box {
    height: 220px;
  }

  .featured-gallery-caption {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gallery-masonry-grid {
    column-count: 1;
    column-gap: 0;
  }

  .gallery-masonry-item {
    margin-bottom: 16px;
    width: 100%;
  }

  .videos-grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-thumb-box {
    height: 200px;
  }

  .video-tile-content {
    padding: 16px 18px;
  }

  .lightbox-content-box {
    width: 92%;
  }

  .lightbox-close-btn {
    top: 16px;
    right: 16px;
    font-size: 32px;
  }

  .lightbox-nav-arrow {
    font-size: 40px;
    padding: 8px;
  }

  .prev-arrow { left: 8px; }
  .next-arrow { right: 8px; }
}

/* ==========================================================================
   10. CONTACT PAGE
   ========================================================================== */
.contact-hero {
  height: 480px;
  background-color: var(--color-ink);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}

.contact-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.info-icon {
  font-size: 28px;
}

.info-label {
  color: var(--color-ink-muted);
}

.info-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-ink);
}

/* Campus desaturated Vector Map */
.map-card-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.desaturated-map-svg {
  display: block;
}

/* Form structure */
.form-layout-grid {
  display: grid;
  grid-template-columns: 6.5fr 3.5fr;
  gap: 64px;
}

.contact-form-layout {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-input-select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
}

.form-textarea {
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin-top: 3px;
}

.checkbox-label {
  color: var(--color-ink-muted);
  cursor: pointer;
}

.form-success-pane {
  background-color: var(--color-primary-ghost);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
}

.form-success-pane.active {
  display: flex;
}

.success-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-success);
  color: #FFFFFF;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.office-details-column {
  display: flex;
  align-items: flex-start;
}

.details-box-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.vertical-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 32px 0;
}

.table-email-anchor {
  color: var(--color-primary);
  text-decoration: none;
}

.table-email-anchor:hover {
  text-decoration: underline;
}

/* Visit us routes */
.visit-us-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.transport-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.transport-emoji {
  font-size: 24px;
}

.transport-type {
  color: var(--color-primary);
}

/* Social Grid tiles */
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.social-tile-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-ink-muted);
  transition: all 200ms ease;
  width: 170px;
  box-sizing: border-box;
}

.social-tile-card:hover {
  background-color: var(--platform-color);
  border-color: var(--platform-color);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-modal);
  transform: translateY(-4px);
}

.social-tile-icon {
  font-size: 22px;
  font-weight: 700;
}

/* Contact Page Responsive Alignments for Tablets & Smartphones */
@media (max-width: 992px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .form-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .visit-us-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card {
    padding: 24px 20px;
    align-items: center;
    text-align: center;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-layout .btn-primary {
    width: 100% !important;
    justify-content: center;
    margin-top: 16px !important;
  }

  .details-box-card {
    padding: 24px 20px;
  }

  .transport-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .transport-card {
    padding: 20px 18px;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .desaturated-map-svg {
    height: 240px !important;
  }
}

/* ==========================================================================
   Popup Leaders bio modal details
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 720px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalEntrance 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-ink-muted);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
}

.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-avatar-wrapper {
  width: 140px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
}

.modal-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-name {
  line-height: 1.1;
}

.modal-dept {
  color: var(--color-primary);
}

.modal-email {
  color: var(--color-primary-light);
  text-decoration: none;
  margin-top: 8px;
}


/* Centered Hero Layout Root Styles (moved) */
.hero-section-centered {
  position: relative;
  min-height: 650px;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  background-color: #1a1a1a;
  padding: 80px 20px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(26, 26, 26, 0.65), rgba(26, 26, 26, 0.85));
  z-index: 2;
  pointer-events: none;
}

.preloader-dna-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5; /* Subtle background particle overlay */
}

.dna-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5; /* Increased background overlay visibility */
}

.hero-center-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 5;
}

.hero-center-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-center-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 10px;
}

.hero-center-rule {
  width: 48px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 10px auto;
}

.hero-center-subheadline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.2vw, 19px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.hero-center-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.hero-center-cta {
  margin-top: 16px;
}

.hero-partner-card {
  position: absolute;
  bottom: 24px;
  right: var(--content-gutter);
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  z-index: 10;
}

.hero-partner-logo {
  height: 81px;
  width: auto;
  object-fit: contain;
}


/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --content-gutter: 40px;
    --section-spacing: 80px;
  }
  
  /* Navbar */
  .navbar-container-fluid {
    display: flex;
    justify-content: space-between;
  }
  .desktop-nav { display: none !important; }
  .hamburger-button { display: flex; }
  
  .navbar-header {
    height: 80px;
  }
  main {
    padding-top: 80px;
  }
  .logo-img-element {
    height: 67px;
    width: 67px;
  }
  .logo-title {
    font-size: 18px;
  }
  .logo-subtitle {
    font-size: 12px;
  }

  /* Home hero */
  .hero-section { height: auto; padding: 80px 0; }
  .hero-split { flex-direction: column; }
  .hero-left-content { width: 100%; padding: 0 var(--content-gutter); }
  .hero-right-image { display: none; }

  .about-intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-intro-visual { order: -1; }

  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-large-card { grid-template-columns: 1fr; }
  .featured-secondary-row { grid-template-columns: 1fr; }
  .news-preview-grid { grid-template-columns: repeat(2, 1fr); }
  
  .asymmetric-gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-cell { height: 240px; }
  .stack-cell { height: 240px; }

  /* About */
  .who-we-are-grid { grid-template-columns: 1fr; gap: 48px; }
  .tall-image-wrapper { height: 320px; }
  .vision-mission-grid { grid-template-columns: 1fr; }

  .timeline-spine { left: 20px; }
  .timeline-item { width: 100%; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; }
  .timeline-left .timeline-dot-wrapper { right: auto; left: 7px; flex-direction: row; }
  .timeline-right .timeline-dot-wrapper { left: 7px; }
  .timeline-left .timeline-card { margin-left: 0; }

  .director-grid { grid-template-columns: 1fr; gap: 48px; }
  .director-profile { max-width: 320px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Facilities */
  .showcase-row { grid-template-columns: 1fr; min-height: auto; }
  .showcase-img-box { height: 320px; }
  .row-b .showcase-img-box { order: -1; }
  .equipment-masonry { grid-template-columns: repeat(2, 1fr); }

  /* Form */
  .form-layout-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Visit us */
  .visit-us-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .contact-quick-tiles {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  :root {
    --content-gutter: 20px;
    --section-spacing: 56px;
  }

  .navbar-header {
    height: 72px;
  }
  main {
    padding-top: 72px;
  }
  .logo-img-element {
    height: 58px;
    width: 58px;
  }
  .logo-subtitle {
    display: none;
  }
  
  .hero-section-centered {
    min-height: 500px;
    height: auto;
    padding: 64px 16px;
    flex-direction: column;
    justify-content: center;
  }

  .hero-center-headline {
    text-align: center;
  }

  .hero-center-subheadline,
  .hero-center-location {
    text-align: justify;
    text-align-last: center;
  }
  
  .hero-partner-card {
    display: flex;
    position: static;
    margin: 24px auto 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-tile:not(:last-child) { border-right: none; padding-right: 0; }

  .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .impact-stat:not(:last-child)::after { display: none; }
  
  .values-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  
  .fac-stats-row { flex-direction: column; gap: 32px; align-items: center; }
  
  .notification-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .notif-date-col { flex-direction: row; gap: 12px; width: 100%; border-right: none; padding-right: 0; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
  .notif-content-col { padding: 0; }

  .asymmetric-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gallery-cell {
    height: 240px;
  }
  .stack-cell {
    height: auto;
  }
  .sub-cell {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }
  .domain-card.centered {
    grid-column: span 1;
    max-width: 100%;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-bar { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-stat-row { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; gap: 16px; align-items: stretch; }
  .stats-row { grid-template-columns: 1fr; }
  .contact-preview-buttons { flex-direction: column; gap: 16px; align-items: stretch; }
}

/* Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
}

/* Center Hero Layout matching Reference Screenshot */
@media (max-width: 600px) {
  .calendar-day {
    height: 56px;
    padding: 4px;
  }
  .calendar-day-number {
    font-size: 11px;
  }
  .calendar-dots {
    gap: 2px;
  }
  .calendar-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 768px) {
  .stacked-card-wrapper {
    width: 100%;
    height: 320px;
  }
  .floating-accent-card {
    left: 0;
    bottom: -16px;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 20px);
  }
}

/* ==========================================================================
   PRELOADER / LOADING SCREEN STYLES
   ========================================================================== */

html:has(body.preloader-active),
body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}


.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height support */
  background-color: var(--color-bg);
  z-index: 999999; /* Ensure it stays above everything, including navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms cubic-bezier(0.25, 1, 0.5, 1), 
              visibility 600ms cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  text-align: center;
  max-width: 90%;
  padding: var(--space-4);
}

.preloader-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.75);
  animation: preloaderFadeInScale 900ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 200ms;
}

.preloader-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.preloader-top {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0;
  opacity: 0;
  transform: translateY(15px);
  animation: preloaderFadeInUp 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 500ms;
}

.preloader-title {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin: 0;
  opacity: 0;
  transform: translateY(15px);
  animation: preloaderFadeInUp 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 800ms;
  margin-top: var(--space-1);
}

.preloader-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: preloaderFadeInUp 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 1100ms;
  margin-top: var(--space-1);
}

/* Animations */
@keyframes preloaderFadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness for Preloader */
@media (max-width: 768px) {
  .preloader-logo {
    width: 100px;
    height: 100px;
  }
  .preloader-top {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .preloader-title {
    font-size: 18px;
    letter-spacing: 0.04em;
  }
  .preloader-subtitle {
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}

/* Mahatma Gandhi University Advantage */
.mgu-advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.advantage-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 300ms cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-ghost);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
}

.advantage-card:hover .advantage-icon {
  background-color: var(--color-primary);
  color: var(--color-surface);
  transform: scale(1.05);
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
}

.advantage-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
}

.advantage-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* Responsiveness for Advantage Grid */
@media (max-width: 1024px) {
  .mgu-advantage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 640px) {
  .mgu-advantage-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Responsive overrides for Team Page layout */
@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   EVENTS PAGE STYLES & SMARTPHONE RESPONSIVENESS
   ========================================================================== */

/* Sticky Filters Bar */
.sticky-filter-section {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.time-filters, .view-toggles {
  display: flex;
  gap: 8px;
  align-items: center;
}

.time-filter-btn, .view-toggle-btn {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: var(--font-body);
}

.time-filter-btn.active, .view-toggle-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* Featured Event Card */
.featured-event-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  align-items: center;
}

.featured-event-img-box {
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.featured-event-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-event-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-event-title {
  line-height: 1.25;
}

.featured-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-speaker-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.speaker-avatar {
  font-size: 28px;
}

.speaker-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.speaker-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.speaker-name {
  font-weight: 600;
  font-size: 15px;
}

.speaker-affil {
  color: var(--color-ink-subtle);
}

.featured-event-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Category Pills */
.category-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill-btn {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 150ms ease;
  font-family: var(--font-body);
  font-size: 13px;
}

.category-pill-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* Events Grid Layout */
.events-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 240ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.event-card-img-box {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.event-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-day {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.badge-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink-muted);
  text-transform: uppercase;
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.event-card-title {
  line-height: 1.35;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-ink-muted);
}

.event-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.event-card-btn {
  width: 100%;
  text-align: center;
}

/* Smartphone & Tablet Responsive Rules for Events Page */
@media (max-width: 992px) {
  .featured-event-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-event-img-box {
    height: 260px;
    min-height: auto;
  }

  .featured-event-content {
    padding: 28px 24px;
  }

  .events-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  #events-filters .container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .time-filters, .view-toggles {
    justify-content: center;
    width: 100%;
  }

  .featured-event-img-box {
    height: 200px;
  }

  .featured-event-content {
    padding: 24px 20px;
  }

  .featured-event-actions {
    flex-direction: column;
    width: 100%;
  }

  .featured-event-actions a {
    width: 100%;
    text-align: center;
  }

  .events-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }

  .event-card-body {
    padding: 24px 20px;
  }

  .event-card-img-box {
    height: 180px;
  }
}
