html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* ══════════════════════════════════════════════════════════════
   BDRNK 2026 — Official Institutional & University Edition
   Inspired by WCU (wcu.edu.az) & AzTU (aztu.edu.az) Standards
   Palette: Pure White #FFFFFF · Academic Slate #F4F6F9
   Accents: Imperial University Navy #0A2240 · State Gold #B8934A
   Typography: Merriweather (Academic Serif) & Plus Jakarta Sans
   ══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-alpha: rgba(255, 255, 255, 0.96);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f6;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0a192f;
  --text-secondary: #1e3a5f;
  --text-dim: #475569;
  --accent: #0a2240;
  --accent-rgb: 10, 34, 64;
  --accent-h: #163a66;
  --accent-dark: #061529;
  --accent-glow: rgba(10, 34, 64, 0.06);
  --accent-glow-strong: rgba(10, 34, 64, 0.14);
  --gold: #b8934a;
  --gold-light: #cfa95e;
  --gold-glow: rgba(184, 147, 74, 0.14);
  --danger: #b91c1c;
  --success: #15803d;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --gap: 24px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Merriweather", "Playfair Display", Georgia, serif;
  --font-mono: "IBM Plex Mono", monospace;
  --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.15s ease;
  --airflow: 0.35s ease-in-out;
  --shadow-card: 0 2px 12px rgba(10, 34, 64, 0.05);
  --shadow-hover: 0 12px 28px rgba(10, 34, 64, 0.1);
  --shadow-glow: 0 0 40px rgba(10, 34, 64, 0.04);
  --shadow-soft: 0 1px 3px rgba(10, 34, 64, 0.04), 0 4px 10px rgba(10, 34, 64, 0.03);
  --max-w: 1280px;
  --header-h: 112px;

  /* Dynamic Background Blobs - Disabled for Official Institutional Look */
  --blob-1: transparent;
  --blob-2: transparent;
  --blob-3: transparent;
  --blob-4: transparent;
  --blob-5: transparent;
  /* ─── MARQUEE THEME (Official Bulletin Bar) ─── */
  --marquee-bg: #071930;
  --marquee-text: #f8fafc;
  --marquee-sep: #b8934a;
  --marquee-border: 1px solid rgba(184, 147, 74, 0.35);
  --marquee-overlay: linear-gradient(90deg, rgba(7, 25, 48, 0.95) 0%, transparent 8%, transparent 92%, rgba(7, 25, 48, 0.95) 100%);
}

/* ─── DARK MODE TOKENS (Official Slate Navy) ─── */
:root[data-theme="dark"],
html.dark-mode,
body.dark-mode {
  --bg: #081120;
  --bg-alt: #0c182c;
  --bg-alpha: rgba(8, 17, 32, 0.94);
  --surface: #112038;
  --surface-2: #162844;
  --surface-3: #1d3354;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(184, 147, 74, 0.4);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #c8a45d;
  --accent-rgb: 200, 164, 93;
  --accent-h: #dfc07f;
  --accent-dark: #9e7b36;
  --accent-glow: rgba(200, 164, 93, 0.12);
  --accent-glow-strong: rgba(200, 164, 93, 0.24);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.4);

  --blob-1: transparent;
  --blob-2: transparent;
  --blob-3: transparent;
  --blob-4: transparent;
  --blob-5: transparent;
  /* Dark Mode Marquee */
  --marquee-bg: #050c17;
  --marquee-text: #f1f5f9;
  --marquee-sep: #c8a45d;
  --marquee-border: 1px solid rgba(200, 164, 93, 0.25);
  --marquee-overlay: linear-gradient(90deg, rgba(5, 12, 23, 0.95) 0%, transparent 8%, transparent 92%, rgba(5, 12, 23, 0.95) 100%);
}



/* ─── RESET ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html.scroll-locked {
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ─── CUSTOM TEXT HIGHLIGHT ─── */
::selection {
  background: var(--gold-glow);
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

::-moz-selection {
  background: var(--gold-glow);
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

/* ─── CUSTOM CONTEXT MENU ─── */
#custom-context-menu {
  position: fixed;
  z-index: 999999;
  width: 220px;
  background: rgba(var(--bg-alpha), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  left: -1000px;
  top: -1000px;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transform-origin: top left;
  transition:
    opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#custom-context-menu.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#custom-context-menu .cm-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

#custom-context-menu .cm-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

#custom-context-menu .cm-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#custom-context-menu .cm-btn:hover svg {
  opacity: 1;
}

.cm-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

/* ══════════════════════════════════════════════════════════════════════
   PRELOADER — AURA PULSE & SEAMLESS MORPHING INTRO (IDEAS 1 + 4)
   ══════════════════════════════════════════════════════════════════════ */

.intro-aura-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #051326;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.75s;
}

.intro-aura-preloader.morph-fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Luxury Ambient Glow Background */
.aura-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(184, 147, 74, 0.15) 0%, rgba(7, 25, 48, 0.85) 45%, #030a16 100%);
  pointer-events: none;
}

/* Golden Concentric Sonar Pulse Rings (Idea 1) */
.aura-pulse-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.aura-pulse-wrapper.aura-hide {
  opacity: 0;
}

.aura-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 169, 78, 0.5);
  box-shadow: 0 0 20px rgba(184, 147, 74, 0.25), inset 0 0 15px rgba(184, 147, 74, 0.15);
  opacity: 0;
  transform: scale(0.7);
  animation: auraPulseExpand 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.aura-ring-1 {
  animation-delay: 0s;
}

.aura-ring-2 {
  animation-delay: 0.65s;
}

.aura-ring-3 {
  animation-delay: 1.3s;
}

@keyframes auraPulseExpand {
  0% {
    transform: scale(0.65);
    opacity: 0.85;
    border-color: rgba(217, 169, 78, 0.65);
  }

  50% {
    opacity: 0.45;
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
    border-color: rgba(217, 169, 78, 0);
  }
}

/* Floating Stage & Morphing Hub */
.aura-morph-hub {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* The Animated Flying Logo (Idea 4) */
.aura-morph-box {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 2.5px solid rgba(217, 169, 78, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 45px rgba(184, 147, 74, 0.35);
  will-change: transform, border-radius, box-shadow;
  transition:
    transform 0.82s cubic-bezier(0.72, 0, 0.22, 1),
    border-radius 0.82s ease,
    box-shadow 0.82s ease,
    border-color 0.82s ease;
  animation: logoEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.aura-morph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shimmer Light Glaze */
.aura-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -140%;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5) 50%, transparent);
  transform: skewX(-25deg);
  animation: shimmerPass 2.4s ease-in-out infinite 0.4s;
  pointer-events: none;
}

@keyframes shimmerPass {
  0% {
    left: -140%;
  }

  45%,
  100% {
    left: 140%;
  }
}

/* Telemetry & Caption Block */
.aura-caption {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  padding: 0 20px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: captionFadeIn 0.8s ease 0.25s both;
}

@keyframes captionFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aura-caption.aura-hide {
  opacity: 0;
  transform: translateY(10px);
}

.aura-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(184, 147, 74, 0.18);
  border: 1px solid rgba(184, 147, 74, 0.45);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aura-inst-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin: 4px 0 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.aura-tagline {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .aura-inst-name {
    font-size: 0.95rem;
  }

  .aura-morph-box {
    width: 96px;
    height: 96px;
  }

  .aura-pulse-wrapper {
    width: 110px;
    height: 110px;
  }
}

/* ─── SCENE TRANSITION OVERLAY ─── */
.scene-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-alpha);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}

.scene-transition.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.st-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scene-transition.active .st-content {
  transform: translateY(0);
  opacity: 1;
}

.st-logo {
  width: 80px;
  height: 80px;
  animation: st-pulse 2s infinite ease-in-out;
}

.st-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.st-progress {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.st-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: inherit;
  animation: st-loading 1.5s infinite ease-in-out;
}

@keyframes st-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes st-loading {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

/* ─── UTILITY CLASSES ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-h);
  border-color: var(--accent-h);
  box-shadow: 0 6px 20px rgba(10, 34, 64, 0.25);
}

.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(10, 34, 64, 0.06);
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ═══════════════════════════════════════
   HEADER — 2-Tier Institutional Standard (WCU & AzTU)
   ═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 16px rgba(10, 34, 64, 0.06);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(10, 34, 64, 0.12);
}

/* Top Utility Bar */
.top-utility-bar {
  background: #071930;
  color: rgba(255, 255, 255, 0.88);
  height: 36px;
  border-bottom: 1px solid rgba(184, 147, 74, 0.28);
  font-size: 0.76rem;
  font-weight: 500;
}

.top-utility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-utility-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.utility-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.utility-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
}

.top-utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.utility-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  background: rgba(184, 147, 74, 0.18);
  border: 1px solid rgba(184, 147, 74, 0.45);
  color: #f3d79b;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.utility-portal-link:hover {
  background: var(--gold);
  color: #071930;
}

/* Main Institutional Bar */
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  background: #ffffff;
}

.logo-icon svg,
.header-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--accent);
  line-height: 1.1;
}

.logo-subtitle {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 330px;
  line-height: 1.25;
  margin-top: 2px;
}

.logo-subtitle-entity,
.footer-entity,
.contact-entity {
  display: inline-block;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  position: relative;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ─── Institutional Header Dropdown (Struktur) ─── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  color: var(--gold);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: scaleX(1);
}

/* Invisible hover bridge so cursor never loses hover between link & menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
  pointer-events: none;
}

.nav-dropdown:hover::after,
.nav-dropdown:focus-within::after {
  pointer-events: auto;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 296px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(7, 25, 48, 0.16), 0 4px 12px rgba(7, 25, 48, 0.08);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scaleY(0.95);
  transform-origin: top center;
  transition:
    opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.28s;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  background: transparent;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-dropdown:hover .nav-dropdown-item,
.nav-dropdown:focus-within .nav-dropdown-item {
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-item:nth-child(1),
.nav-dropdown:focus-within .nav-dropdown-item:nth-child(1) {
  transition-delay: 0.03s;
}

.nav-dropdown:hover .nav-dropdown-item:nth-child(2),
.nav-dropdown:focus-within .nav-dropdown-item:nth-child(2) {
  transition-delay: 0.08s;
}

.nav-dropdown:hover .nav-dropdown-item:nth-child(3),
.nav-dropdown:focus-within .nav-dropdown-item:nth-child(3) {
  transition-delay: 0.13s;
}

.nav-dropdown:hover .nav-dropdown-item:nth-child(4),
.nav-dropdown:focus-within .nav-dropdown-item:nth-child(4) {
  transition-delay: 0.18s;
}

.nav-dropdown-item:hover {
  background: var(--bg-alt);
  border-left-color: var(--gold);
}

.nav-dd-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(10, 34, 64, 0.06);
  border: 1px solid rgba(184, 147, 74, 0.28);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

body.dark-mode .nav-dd-icon {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

.nav-dropdown-item:hover .nav-dd-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.nav-dd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-dd-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.nav-dropdown-item:hover .nav-dd-title {
  color: var(--accent);
}

.nav-dd-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.25;
}

.nav-dd-arrow {
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.nav-dropdown-item:hover .nav-dd-arrow {
  opacity: 1;
  color: var(--gold);
  transform: translateX(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Theme Toggle Button ─── */
.theme-toggle {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.sun-and-moon> :is(.moon, .sun, .sun-beams) {
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s ease;
}

body.dark-mode .sun-and-moon>.sun {
  transform: scale(1.75);
}

body.dark-mode .sun-and-moon>.sun-beams {
  opacity: 0;
}

body.dark-mode .sun-and-moon>.moon>circle {
  transform: translateX(-7px);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Majors Table Mode */
.staff-grid.table-mode {
  display: block;
}

/* Dynamic Tabs Styles */
.majors-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.major-tab {
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.major-tab:hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--accent);
}

.major-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(10, 34, 64, 0.18);
}

.majors-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ─── Language Switcher (Official Rectangular Pill) ─── */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.lang-btn {
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  letter-spacing: 0.05em;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.lang-btn:hover:not(.active) {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity var(--airflow);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 6px;
}

.mobile-nav-link {
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  color: var(--text);
  transition: all var(--transition);
}

.mobile-nav-link:hover {
  background: var(--bg-alt);
  border-left-color: var(--gold);
  color: var(--accent);
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
}

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
  margin-top: 2px;
  margin-bottom: 6px;
  border-left: 2px solid rgba(184, 147, 74, 0.35);
  margin-left: 20px;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(184, 147, 74, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.mobile-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-sub-bullet {
  font-size: 0.85rem;
  opacity: 0.85;
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.mobile-nav-sublink:hover,
.mobile-nav-sublink:active {
  background: var(--bg-alt);
  color: var(--gold);
}

.tree-majors-section.struct-highlight {
  box-shadow: 0 0 0 3px var(--gold), 0 16px 40px rgba(184, 147, 74, 0.35) !important;
  animation: majorsPulse 1.8s ease-in-out infinite;
}

@keyframes majorsPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--gold), 0 16px 40px rgba(184, 147, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px var(--gold), 0 22px 55px rgba(184, 147, 74, 0.6);
  }
}

/* ═══════════════════════════════════════
   HERO — GOLDEN HOUR CINEMATIC CAMPUS (CONCEPT 5)
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 104px;
  overflow: hidden;
  background-color: #061326;
  border-bottom: 3px solid var(--gold);
  perspective: 1200px;
  --mouse-x: 50%;
  --mouse-y: 40%;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

/* Interactive 3D Parallax Campus Facade Layer */
.hero-campus-bg {
  position: absolute;
  inset: -4%;
  background-image: url("Gemini_Generated_Image_ubal8cubal8cubal.jpeg");
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.05);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.08) contrast(1.04);
}

/* Warm Golden Hour Atmospheric Vignette & Depth Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%,
      rgba(255, 204, 102, 0.26) 0%,
      rgba(212, 175, 55, 0.08) 32%,
      transparent 62%),
    radial-gradient(ellipse at center, rgba(7, 25, 48, 0.22) 0%, rgba(5, 16, 32, 0.72) 100%),
    linear-gradient(180deg,
      rgba(6, 19, 38, 0.64) 0%,
      rgba(7, 25, 48, 0.28) 45%,
      rgba(5, 15, 30, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Volumetric Golden Hour Sunbeams & Warm Flare */
.hero-sunbeams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  mix-blend-mode: screen;
}

.sun-flare {
  position: absolute;
  top: -12%;
  left: 6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 223, 148, 0.36) 0%,
      rgba(212, 175, 55, 0.16) 38%,
      transparent 70%);
  filter: blur(18px);
  animation: sunPulse 9s ease-in-out infinite alternate;
}

.sunbeam {
  position: absolute;
  top: -30%;
  left: 10%;
  width: 240px;
  height: 165%;
  background: linear-gradient(180deg,
      rgba(255, 232, 175, 0.26) 0%,
      rgba(212, 175, 55, 0.1) 48%,
      transparent 90%);
  transform-origin: top center;
  filter: blur(22px);
  animation: sunbeamSweep 14s ease-in-out infinite alternate;
}

.sunbeam.ray-1 {
  transform: rotate(-32deg);
  width: 260px;
  animation-duration: 13s;
}

.sunbeam.ray-2 {
  left: 24%;
  transform: rotate(-24deg);
  width: 190px;
  opacity: 0.75;
  animation-duration: 17s;
  animation-delay: -4s;
}

.sunbeam.ray-3 {
  left: 38%;
  transform: rotate(-18deg);
  width: 150px;
  opacity: 0.55;
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes sunPulse {
  0% {
    transform: scale(0.95) translate(0, 0);
    opacity: 0.72;
  }

  100% {
    transform: scale(1.14) translate(18px, 12px);
    opacity: 1;
  }
}

@keyframes sunbeamSweep {
  0% {
    opacity: 0.45;
    transform: rotate(-30deg) translateX(-18px) scaleX(0.92);
  }

  100% {
    opacity: 0.85;
    transform: rotate(-25deg) translateX(28px) scaleX(1.12);
  }
}

/* Interactive Cursor Golden Spotlight */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(560px circle at var(--mouse-x) var(--mouse-y),
      rgba(243, 215, 155, 0.16),
      rgba(184, 147, 74, 0.05) 40%,
      transparent 70%);
  transition: opacity 0.3s ease;
}

/* Hide Informal Sci-Fi Shapes & Heavy Grain */
.hero-grain,
.glass-shape,
#flux-canvas,
.bg-blob {
  display: none !important;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.34;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1040px;
  width: 100%;
  background: linear-gradient(145deg,
      rgba(7, 25, 48, 0.56) 0%,
      rgba(10, 32, 60, 0.44) 55%,
      rgba(7, 25, 48, 0.62) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(243, 215, 155, 0.46);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 48px 48px 40px;
  box-shadow:
    0 28px 68px rgba(4, 12, 24, 0.55),
    0 0 42px rgba(212, 175, 55, 0.12);
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

/* Periodic Golden Hour Light Shimmer Across the Academic Glass Frame */
.hero-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 232, 175, 0.12) 48%,
      rgba(243, 215, 155, 0.22) 52%,
      transparent 80%);
  pointer-events: none;
  animation: goldenFrameShimmer 9s ease-in-out infinite;
}

@keyframes goldenFrameShimmer {

  0%,
  35% {
    left: -120%;
  }

  75%,
  100% {
    left: 160%;
  }
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffe8af, transparent);
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 22px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.4;
  border-radius: var(--radius-xs);
  background: rgba(7, 25, 48, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.65);
  color: #f3d79b;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease both;
}

.hero-badge::before,
.hero-badge::after {
  content: "✦";
  color: var(--gold-light);
  font-size: 0.7rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.05vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.65;
  margin-bottom: 22px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-desc {
  font-family: var(--font);
  font-size: 1.08rem;
  color: #e2e8f0;
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.75;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-cta .btn-outline {
  background: rgba(184, 147, 74, 0.2);
  border: 1.5px solid var(--gold-light);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.hero-cta .btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

/* Structured University Statistics Bar (AzTU / WCU Style) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 30px;
  margin-top: 8px;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 8px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.stat-label {
  font-family: var(--font);
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-stat {
  transform: none;
}

.main-stat .stat-number {
  font-size: 2.6rem;
  color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.main-stat .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ GOLDEN HOUR LIVE CAMPUS TICKER ═══ */
.hero-live-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 46px;
  display: flex;
  align-items: center;
  background: rgba(5, 16, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 175, 55, 0.42);
  overflow: hidden;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 22px;
  background: linear-gradient(90deg, #b8934a 0%, #d4af37 100%);
  color: #061326;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #061326;
  box-shadow: 0 0 0 0 rgba(6, 19, 38, 0.7);
  animation: tickerPulseDot 1.8s infinite;
}

@keyframes tickerPulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 19, 38, 0.65);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(6, 19, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(6, 19, 38, 0);
  }
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  padding-left: 28px;
  animation: heroTickerScroll 42s linear infinite;
}

.hero-live-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-item strong {
  color: #f3d79b;
  font-weight: 700;
}

.ticker-item:hover {
  color: #ffffff;
}

.ticker-dot {
  color: var(--gold-light);
  font-size: 0.75rem;
}

@keyframes heroTickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════
   VIDEO CAROUSEL
   ═══════════════════════════════════════ */
.video-carousel-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 0;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s linear;
}

.carousel-slide.active video {
  transform: scale(1);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.carousel-indicators .indicator {
  position: relative;
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .indicator.active {
  width: 60px;
  background: rgba(255, 255, 255, 0.2);
}

.carousel-indicators .indicator .progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════
   SECTIONS — OFFICIAL UNIVERSITY ARCHITECTURE
   ═══════════════════════════════════════ */
.section {
  padding: 96px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--gold);
}

.section-desc {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 660px;
  line-height: 1.75;
  margin-bottom: 44px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   ABOUT — FORMAL INSTITUTIONAL BLOCKS
   ═══════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--gap);
  margin-top: 28px;
}

.bento-cell {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 1;
}

.bento-cell.bento-large {
  border-top-color: var(--gold);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 20px;
  transition: all var(--transition);
  z-index: 2;
}

.bento-icon.outline {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 48px;
  height: 48px;
}

.bento-cell h3,
.bento-cell h4 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
  z-index: 2;
}

.bento-cell p {
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--text-dim);
  line-height: 1.75;
  z-index: 2;
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
  border-top-color: var(--gold);
}

.bento-cell:hover .bento-icon {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ═══════════════ NEWS SECTION — EDITORIAL UNIVERSITY STANDARD (WCU / AzTU) ═══════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.news-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--gold);
}

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

.news-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  padding: 5px 12px;
  background: #071930;
  border-left: 3px solid var(--gold);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.news-card-overlay {
  position: relative;
  inset: auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 24px;
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.news-card:hover .news-card-title {
  color: var(--accent);
}

.news-card-reveal {
  max-height: none;
  opacity: 1;
  overflow: visible;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.news-card-reveal p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: color var(--transition), gap var(--transition);
}

.news-card:hover .news-card-link {
  color: var(--gold);
  letter-spacing: 0.06em;
}

.news-footer {
  margin-top: 44px;
  text-align: center;
}

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

  .news-card {
    min-height: auto;
  }

  .news-card-title {
    font-size: 1.05rem;
  }
}

/* ═══════════════ ROADMAP — OFFICIAL ADMISSION TIMELINE ═══════════════ */
.roadmap-container {
  position: relative;
  max-width: 920px;
  margin: 56px auto 0;
  padding: 0 20px;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
  z-index: 1;
}

.roadmap-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
  transition: height 1s ease;
}

.roadmap-section.active .roadmap-line::after {
  height: 100%;
}

.roadmap-items {
  position: relative;
  z-index: 2;
}

.roadmap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  width: 100%;
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.6s ease;
}

.roadmap-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.roadmap-item:nth-child(even) {
  flex-direction: row-reverse;
}

.roadmap-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent);
  z-index: 3;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.roadmap-item.visible .roadmap-node {
  background: var(--accent);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateX(-50%);
}

.roadmap-content {
  width: 43%;
  padding: 24px 28px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.roadmap-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--border);
}

.roadmap-item:nth-child(odd) .roadmap-content::before {
  right: -24px;
}

.roadmap-item:nth-child(even) .roadmap-content::before {
  left: -24px;
}

.roadmap-item.visible .roadmap-content::before {
  background: var(--gold);
}

.roadmap-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.roadmap-content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.roadmap-content.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
}

.roadmap-item.visible .roadmap-content.glass {
  border-color: var(--border);
  border-left-color: var(--gold);
  background: var(--surface);
}

@media (max-width: 768px) {
  .roadmap-line {
    left: 28px;
    transform: none;
  }

  .roadmap-node {
    left: 28px;
    transform: translateX(-50%);
  }

  .roadmap-item {
    flex-direction: row !important;
    justify-content: flex-start;
    padding-left: 60px;
    margin-bottom: 36px;
  }

  .roadmap-content {
    width: 100%;
    padding: 20px;
  }

  .roadmap-content::before {
    display: none;
  }

  .roadmap-item.visible .roadmap-node {
    transform: translateX(-50%);
  }
}

/* ═══════════════ INSTITUTIONAL STRUCTURE (DUAL VIEW: TREE & CARDS) ═══════════════ */

/* Control Toolbar */
.struct-control-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.struct-search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
  min-width: 280px;
}

.struct-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.struct-search-wrap input {
  width: 100%;
  padding: 11px 36px 11px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.struct-search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(184, 147, 74, 0.2);
}

.struct-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  display: none;
  padding: 4px;
}

.struct-search-clear.visible {
  display: block;
}

.struct-view-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2, rgba(7, 25, 48, 0.5));
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}

.struct-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.struct-toggle-btn.active {
  background: var(--gold);
  color: #071930;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(184, 147, 74, 0.35);
}

.struct-view-pane {
  display: none;
}

.struct-view-pane.active {
  display: block;
  animation: structFadeIn 0.4s ease;
}

@keyframes structFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── FBK (SUBJECT COMMISSIONS) VIEW ─── */
.struct-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 147, 74, 0.25);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  margin-left: 6px;
  border: 1px solid rgba(184, 147, 74, 0.4);
  transition: all 0.25s ease;
}

.struct-toggle-btn.active .struct-badge-count {
  background: #071930;
  color: var(--gold);
  border-color: #071930;
}

.fbk-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.fbk-banner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 26px 32px;
  background: linear-gradient(180deg, rgba(14, 34, 61, 0.65) 0%, rgba(7, 25, 48, 0.82) 100%);
  border: 1px solid rgba(184, 147, 74, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.fbk-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.fbk-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(184, 147, 74, 0.15);
  border: 1px solid rgba(184, 147, 74, 0.45);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.fbk-banner-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.fbk-banner-desc {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

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

@media (max-width: 1100px) {
  .fbk-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

.fbk-card {
  position: relative;
  background: linear-gradient(155deg, rgba(14, 34, 61, 0.85) 0%, rgba(7, 25, 48, 0.96) 100%);
  border: 1px solid rgba(184, 147, 74, 0.22);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.fbk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
  transition: opacity 0.35s ease, height 0.35s ease;
}

.fbk-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 147, 74, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(184, 147, 74, 0.16);
}

.fbk-card:hover::before {
  opacity: 1;
  height: 4px;
}

.fbk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.fbk-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(184, 147, 74, 0.12);
  border: 1px solid rgba(184, 147, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.fbk-card:hover .fbk-icon-wrap {
  transform: scale(1.08) rotate(4deg);
  background: rgba(184, 147, 74, 0.22);
  border-color: var(--gold);
}

.fbk-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.fbk-meta-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.fbk-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(7, 25, 48, 0.85);
  border: 1px solid rgba(184, 147, 74, 0.32);
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.06em;
}

.fbk-status-pill {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.fbk-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.fbk-desc {
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.fbk-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.fbk-chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.fbk-card:hover .fbk-chip {
  background: rgba(184, 147, 74, 0.12);
  border-color: rgba(184, 147, 74, 0.3);
  color: #f1f5f9;
}

.fbk-chip.fbk-chip-has-doc {
  background: rgba(184, 147, 74, 0.22) !important;
  border-color: rgba(184, 147, 74, 0.55) !important;
  color: #fef08a !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 0 10px rgba(184, 147, 74, 0.22);
  transition: all 0.22s ease;
}

.fbk-chip.fbk-chip-has-doc:hover {
  background: var(--gold) !important;
  color: #0b1120 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184, 147, 74, 0.45);
}

.fbk-chip.fbk-chip-has-doc .fbk-chip-doc-badge {
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  color: #fef08a;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.fbk-chip.fbk-chip-has-doc:hover .fbk-chip-doc-badge {
  background: #0b1120;
  color: #ffffff;
}

.fbk-mat-download-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.fbk-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.fbk-dept-link {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fbk-card-action {
  font-size: 0.82rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.fbk-card:hover .fbk-card-action {
  transform: translateX(4px);
}

/* ─── TREE VIEW ─── */
.struct-tree-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 10px 0 40px;
  width: 100%;
}

/* Tier Block & Tag */
.tree-tier-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tree-tier-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tree-tier-tag span {
  background: rgba(14, 34, 61, 0.9);
  border: 1px solid rgba(184, 147, 74, 0.45);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Level 1: Director Apex Node */
.tree-card-director {
  background: linear-gradient(135deg, rgba(14, 34, 61, 0.95) 0%, rgba(7, 25, 48, 0.98) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 16px 40px rgba(7, 25, 48, 0.45), 0 0 25px rgba(184, 147, 74, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 520px;
  width: 100%;
}

.tree-card-director:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(7, 25, 48, 0.6), 0 0 35px rgba(184, 147, 74, 0.3);
}

.tree-director-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.tree-director-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tree-director-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tree-director-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 147, 74, 0.2);
  border: 1px solid rgba(184, 147, 74, 0.5);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  align-self: flex-start;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tree-director-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0;
}

.tree-director-role {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Connecting Stem Lines */
.tree-stem-vertical {
  width: 2px;
  height: 38px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(56, 189, 248, 0.8) 100%);
  position: relative;
  margin: 2px auto;
}

.tree-stem-vertical::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
}

/* Level 2: Directorate Deputies */
.tree-level-deputies {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 390px));
  justify-content: center;
  gap: 24px;
  position: relative;
  width: 100%;
  max-width: 840px;
}

.tree-card-deputy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition);
}

.tree-card-deputy:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.tree-deputy-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.tree-deputy-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tree-deputy-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tree-deputy-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.tree-deputy-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.tree-deputy-role {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Level 3: Saida Guliyeva (YAP & Monitoring) */
.tree-level-tier3 {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tree-card-tier3,
.tree-tier3-card {
  background: linear-gradient(135deg, rgba(14, 34, 61, 0.95) 0%, rgba(7, 25, 48, 0.98) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 16px 40px rgba(7, 25, 48, 0.45), 0 0 25px rgba(184, 147, 74, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.tree-card-tier3:hover,
.tree-tier3-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(7, 25, 48, 0.6), 0 0 35px rgba(184, 147, 74, 0.3);
}

.tree-tier3-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  background: #071930;
}

.tree-tier3-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  transition: transform 0.4s ease;
}

.tree-card-tier3:hover .tree-tier3-avatar img,
.tree-tier3-card:hover .tree-tier3-avatar img {
  transform: scale(1.06);
}

.tree-tier3-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.tree-tier3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 147, 74, 0.2);
  border: 1px solid rgba(184, 147, 74, 0.5);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  align-self: flex-start;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tree-tier3-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.badge-yap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 147, 74, 0.2);
  border: 1px solid rgba(184, 147, 74, 0.5);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dept {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.tree-tier3-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0;
}

.tree-tier3-role {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.tree-tier3-roles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier3-role-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier3-role-item .role-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Level 4: Department Wings Grid */
.tree-wings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1140px;
}

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

.tree-wing-header {
  padding: 14px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tree-wing-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tree-wing-titles {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.tree-wing-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.tree-wing-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-light);
  background: rgba(184, 147, 74, 0.15);
  border: 1px solid rgba(184, 147, 74, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.tree-wing-cards {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tree-dept-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.tree-dept-card:hover {
  background: var(--surface-hover, var(--bg-alt));
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.tree-dept-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.tree-dept-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Custom avatar framing for specific staff members */
.tree-dept-card[data-person-id="20"] .tree-dept-avatar img {
  object-position: center 25%;
  transform: scale(1.05);
}

.tree-dept-card[data-person-id="24"] .tree-dept-avatar img {
  object-position: center 25%;
  transform: scale(1.15);
}

.tree-dept-card[data-person-id="26"] .tree-dept-avatar img {
  object-position: center 15%;
  transform: scale(1.05);
}

.tree-dept-card[data-person-id="7"] .tree-dept-avatar img {
  object-position: 55% 20%;
  transform: scale(1.1);
}

.tree-dept-card[data-person-id="16"] .tree-dept-avatar img {
  object-position: 45% 15%;
  transform: scale(1.15);
}

.tree-dept-card[data-person-id="14"] .tree-dept-avatar img {
  object-position: 62% 20%;
  transform: scale(1.15);
}

.tree-dept-card[data-person-id="18"] .tree-dept-avatar img {
  object-position: 56% 28%;
  transform: scale(1.1);
}

.tree-dept-card[data-person-id="19"] .tree-dept-avatar img {
  object-position: center 15%;
  transform: scale(1.05);
}

.tree-dept-card[data-person-id="11"] .tree-dept-avatar img {
  object-position: center 15%;
  transform: scale(1.05);
}

.tree-dept-card[data-person-id="13"] .tree-dept-avatar img {
  object-position: center 15%;
  transform: scale(1.05);
}

.tree-dept-card[data-person-id="27"] .tree-dept-avatar img {
  object-position: center 15%;
  transform: scale(1.05);
}

.tree-dept-card[data-person-id="28"] .tree-dept-avatar img {
  object-position: center 15%;
  transform: scale(1.05);
}

.tree-dept-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.tree-dept-name {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-dept-role {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ TƏDRİS OLUNAN İXTİSASLAR VİTRİNİ ═══ */
/* ═══════════════════════════════════════════════════════════════════════
   AKADEMİK İXTİSASLAR KATALOQU (DÖVLƏT STANDARTLI TƏDRİS CƏDVƏLİ)
   ═══════════════════════════════════════════════════════════════════════ */
.tree-majors-section {
  width: 100%;
  max-width: 1140px;
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.majors-catalog-header {
  text-align: center;
  margin-bottom: 28px;
}

.majors-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(184, 147, 74, 0.12);
  border: 1px solid rgba(184, 147, 74, 0.35);
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.majors-catalog-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.majors-catalog-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Segmented Tabs */
.majors-catalog-tabs {
  display: inline-flex;
  background: var(--bg-alt);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid var(--border);
  gap: 8px;
  margin: 0 auto;
}

.majors-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.majors-tab-btn:hover {
  color: var(--text);
}

.majors-tab-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.majors-tab-btn .tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(184, 147, 74, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(184, 147, 74, 0.25);
}

.majors-tab-btn.active .tab-count {
  background: var(--gold);
  color: #071930;
  border-color: var(--gold);
}

.majors-pane {
  display: none;
  animation: fadeInTab 0.3s ease;
}

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

/* Modern Academic Table */
.majors-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 10px;
}

.majors-catalog-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.majors-catalog-table thead th {
  background: #071930;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 15px 18px;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}

.majors-catalog-table thead th.th-num {
  width: 48px;
  text-align: center;
}

.majors-catalog-table thead th.th-code {
  width: 120px;
}

.majors-catalog-table thead th.th-field {
  width: 160px;
}

.majors-catalog-table thead th.th-degree {
  width: 170px;
}

.majors-catalog-table tbody tr.major-row {
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  background: var(--surface);
}

.majors-catalog-table tbody tr.major-row:nth-child(even) {
  background: var(--bg-alt);
}

.majors-catalog-table tbody tr.major-row:hover {
  background: rgba(184, 147, 74, 0.07);
}

.majors-catalog-table tbody td {
  padding: 15px 18px;
  color: var(--text);
  font-size: 0.92rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.td-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
}

.major-code-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.09);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.dark-mode .major-code-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.major-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.major-row-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.major-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.major-row-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.major-row-sub {
  font-size: 0.73rem;
  color: var(--text-dim);
}

.major-field-chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  color: var(--text);
  white-space: nowrap;
}

.major-degree-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.degree-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
}

.degree-mode {
  font-size: 0.7rem;
  font-weight: 600;
}

.degree-mode.mode-eyani {
  color: #10b981;
}

.degree-mode.mode-qiyabi {
  color: #3b82f6;
}

/* Footer Banner */
.majors-catalog-footer {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.majors-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  flex: 1;
  min-width: 260px;
}

.majors-footer-info .footer-icon {
  font-size: 1.15rem;
}

.majors-calc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--gold);
  color: #071930;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.majors-calc-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 147, 74, 0.3);
}

@media (max-width: 860px) {
  .tree-wings-grid {
    grid-template-columns: 1fr;
  }

  .tree-level-deputies {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tree-majors-section {
    padding: 22px 14px;
    margin-top: 36px;
  }

  .majors-catalog-title {
    font-size: 1.35rem;
  }

  .majors-catalog-tabs {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .majors-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .majors-catalog-table,
  .majors-catalog-table thead,
  .majors-catalog-table tbody,
  .majors-catalog-table th,
  .majors-catalog-table td,
  .majors-catalog-table tr {
    display: block;
  }

  .majors-catalog-table thead {
    display: none;
  }

  .majors-catalog-table tbody tr.major-row {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .majors-catalog-table tbody td {
    border: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .majors-catalog-table tbody td.td-num {
    display: none;
  }

  .majors-catalog-table tbody td.td-name {
    display: block;
    padding: 8px 0 10px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 8px;
  }

  .majors-catalog-table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .majors-catalog-table tbody td.td-name::before {
    display: none;
  }
}

/* ─── CARDS & SUBTABS VIEW ─── */
.struct-subtabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.struct-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.struct-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.struct-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.struct-count-badge {
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

.struct-tab.active .struct-count-badge {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Search Highlights */
.struct-highlight {
  animation: structPulseHighlight 1.5s infinite;
  border-color: var(--gold) !important;
}

@keyframes structPulseHighlight {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(184, 147, 74, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(184, 147, 74, 0.85);
  }
}

@media (max-width: 800px) {
  .struct-control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .struct-search-wrap {
    max-width: 100%;
  }

  .struct-view-toggle {
    justify-content: center;
  }

  .tree-card-director,
  .tree-card-tier3,
  .tree-tier3-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .tree-director-badge,
  .tree-tier3-badge {
    align-self: center;
  }

  .tree-level-deputies {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .tree-level-deputies::before,
  .tree-level-deputies::after {
    display: none;
  }

  .tree-card-deputy {
    max-width: 100%;
    width: 100%;
  }
}

/* Fallback for legacy .hologram-grid if accessed */
.hologram-grid {
  display: none !important;
}

/* ═══════════════ ADMISSION CALCULATOR ═══════════════ */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  margin-top: 40px;
  border-radius: 24px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}

.input-group input,
.input-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
  outline: none;
}

.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-wrap {
  position: relative;
  width: 200px;
  margin-bottom: 20px;
}

.gauge-bg {
  stroke: var(--border);
}

.gauge-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-value {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.calc-msg {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  min-height: 3em;
}

@media (max-width: 768px) {
  .calc-container {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
}

/* ═══════════════════════════════════════
   MODAL — OFFICIAL UNIVERSITY DIRECTORY & REGISTRY
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 25, 48, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--airflow);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 1200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translate3d(0, 24px, 0) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
  box-shadow: 0 24px 64px rgba(7, 25, 48, 0.28);
}

.modal-overlay.active .modal-container {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: #071930;
  color: #ffffff;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.modal-body {
  padding: 32px 28px;
}

/* Staff Grid & Person Detail Modal */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
}

/* ═══ Executive Person Detail Modal ═══ */
.modal-container.is-person-detail {
  max-width: 680px;
  width: 90vw;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 28px 75px rgba(7, 25, 48, 0.65), 0 0 40px rgba(212, 175, 55, 0.25);
  background: var(--surface, #091c34);
  margin: auto;
}

.modal-container.is-person-detail.has-bio {
  max-width: 780px;
}

.modal-container.is-person-detail .modal-body {
  padding: 24px 26px;
}

.staff-grid.person-detail-active {
  display: block !important;
  width: 100%;
}

.person-detail-card,
.person-detail-sheet {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

.person-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.person-detail-photo-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3.2 / 4.1;
  min-height: unset;
  max-height: 310px;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
  background: linear-gradient(135deg, #071930 0%, #0d274c 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  margin: 0 auto;
}

.person-detail-photo-frame img,
.person-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.person-detail-photo-frame:hover img {
  transform: scale(1.05);
}

.person-photo-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 48, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.person-detail-photo-frame:hover .person-photo-zoom-overlay {
  opacity: 1;
}

.person-detail-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 25, 48, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold-light, #fde047);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 3;
}

.person-sidebar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(7, 25, 48, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim, #94a3b8);
}

.person-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.person-detail-header-card {
  padding: 18px 22px;
  background: rgba(7, 25, 48, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
}

.person-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.person-full-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.person-official-role {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.person-bio-card,
.person-highlights-card,
.person-milestones-card {
  padding: 16px 20px;
  background: rgba(7, 25, 48, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.person-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-bio-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin: 0;
}

.person-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.hl-check {
  color: #38bdf8;
  font-weight: bold;
  flex-shrink: 0;
}

.person-milestones-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.86rem;
}

.ms-year {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.ms-text {
  color: #cbd5e1;
}

.person-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.person-detail-zoom-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #071930;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.person-detail-zoom-action-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.person-detail-close-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.person-detail-close-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
  .modal-container.is-person-detail {
    max-width: 95vw;
    width: 95vw;
  }
  .modal-container.is-person-detail .modal-body {
    padding: 18px;
  }
  .person-detail-card,
  .person-detail-sheet {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .person-detail-photo-frame {
    max-width: 200px;
    max-height: 260px;
    margin: 0 auto;
  }
  .person-detail-body {
    padding: 6px 0 0;
    align-items: center;
    text-align: center;
  }
  .person-detail-actions {
    justify-content: center;
  }
}

/* Specific framing adjustments for staff members */
.person-detail-photo-frame.director-photo img {
  object-position: center 12%;
}

.person-detail-photo-frame.sahmurad-photo img {
  object-position: center 14%;
}

.person-detail-photo-frame.ismayil-photo img {
  object-position: center 12%;
}

.person-detail-photo-frame.babek-photo img {
  transform: scale(1.05);
  object-position: 55% 18%;
}

.person-detail-photo-frame.babek-photo:hover img {
  transform: scale(1.1);
}

.person-detail-photo-frame.sekine-photo img {
  object-position: center 15%;
}

.person-detail-photo-frame.vefa-photo img {
  transform: scale(1.15);
  object-position: 45% 15%;
}

.person-detail-photo-frame.vefa-photo:hover img {
  transform: scale(1.2);
}

.person-detail-photo-frame.resmiyye-photo img {
  transform: scale(1.1);
  object-position: 60% 18%;
}

.person-detail-photo-frame.resmiyye-photo:hover img {
  transform: scale(1.15);
}

.person-detail-photo-frame.munir-photo img {
  transform: scale(1.05);
  object-position: center 15%;
}

.person-detail-photo-frame.munir-photo:hover img {
  transform: scale(1.1);
}

.tree-dept-card[data-person-id="17"] .tree-dept-avatar img {
  object-position: center 15%;
}

.person-detail-photo-frame.gunay-photo img {
  transform: scale(1.05);
  object-position: 54% 22%;
}

.person-detail-photo-frame.gunay-photo:hover img {
  transform: scale(1.1);
}

.person-detail-photo-frame.fizuli-photo img,
.person-detail-photo-frame.xelil-photo img {
  object-position: center 12%;
}

.tree-dept-card[data-person-id="29"] .tree-dept-avatar img {
  object-position: center 12%;
}

.person-detail-photo-frame.xelil-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.yegane-photo img {
  object-position: center 12%;
}

.person-detail-photo-frame.yegane-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.sevda-photo img {
  object-position: center 15%;
}

.person-detail-photo-frame.sevda-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.seide-photo img {
  object-position: center 12%;
  transform: scale(1.02);
}

.person-detail-photo-frame.seide-photo:hover img {
  transform: scale(1.06);
}

.person-detail-photo-frame.selale-photo img {
  object-position: center 12%;
}

.person-detail-photo-frame.selale-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.leman-photo img {
  object-position: center 20%;
  transform: scale(1.0);
}

.person-detail-photo-frame.leman-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.natiq-photo img {
  object-position: center 22%;
  transform: scale(1.1);
}

.person-detail-photo-frame.natiq-photo:hover img {
  transform: scale(1.15);
}

.person-detail-photo-frame.azer-photo img {
  object-position: center 15%;
}

.person-detail-photo-frame.azer-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.ceyhun-photo img {
  object-position: center 15%;
}

.person-detail-photo-frame.ceyhun-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.aynur-photo img {
  object-position: center 14%;
}

.person-detail-photo-frame.aynur-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.aygun-photo img {
  object-position: center 15%;
}

.person-detail-photo-frame.aygun-photo:hover img {
  transform: scale(1.05);
}

.person-detail-photo-frame.sohle-photo img {
  object-position: center 15%;
}

.person-detail-photo-frame.sohle-photo:hover img {
  transform: scale(1.05);
}

/* Floating Zoom Badge on Photo */
.person-photo-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(7, 25, 48, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 147, 74, 0.55);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.person-detail-photo-frame:hover .person-photo-zoom-hint {
  background: var(--gold);
  color: #071930;
  border-color: #ffd700;
}

.person-detail-body {
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  min-width: 0;
}

.person-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184, 147, 74, 0.14);
  border: 1px solid rgba(184, 147, 74, 0.38);
  color: var(--gold-light, #e2b358);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
}

.person-detail-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 0;
  line-height: 1.35;
}

.person-detail-role {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.5;
}

.person-detail-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.modal-container.is-person-detail.has-bio {
  max-width: 780px;
}

.person-bio-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 6px 0;
}

.bio-highlight-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bio-highlight-item:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.bio-highlight-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.person-bio-card {
  background: rgba(184, 147, 74, 0.05);
  border: 1px solid rgba(184, 147, 74, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 4px 0;
}

.person-bio-heading {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-light, #e2b358);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-bio-text {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--text);
  margin: 0;
  text-align: justify;
}

.person-milestones {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 6px 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

.milestone-year {
  background: rgba(7, 25, 48, 0.7);
  border: 1px solid rgba(184, 147, 74, 0.4);
  color: var(--gold-light, #e2b358);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.milestone-desc {
  color: var(--text);
  font-size: 0.82rem;
}

.person-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.person-detail-meta .meta-org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
}

.person-detail-meta .meta-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.person-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.person-detail-zoom-action-btn,
.person-detail-close-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm, 10px);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition, 0.25s ease);
}

.person-detail-zoom-action-btn {
  background: linear-gradient(135deg, var(--gold) 0%, #a67c1e 100%);
  color: #071930;
  border: none;
  font-weight: 700;
}

.person-detail-zoom-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 147, 74, 0.4);
}

.person-detail-close-action-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.person-detail-close-action-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: cardReveal 0.35s ease forwards;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

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

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top !important;
  transition: transform 0.5s ease;
}

/* Fizuli's photo is landscape, needs special framing */
.fizuli-card .card-img-wrap img {
  object-fit: cover !important;
  object-position: center 5% !important;
}

/* Xelil's photo framing */
.xelil-card .card-img-wrap img {
  object-fit: cover !important;
  object-position: center 15% !important;
}

/* Babak's photo needs to be a bit closer */
.babek-card .card-img-wrap img {
  transform: scale(1.15);
  object-position: center 20%;
}

/* Vefa's photo needs to hide the mirror in background */
.vefa-card .card-img-wrap img {
  transform: scale(1.4);
  object-position: center 10%;
}

/* Gunay's photo needs a bit of zoom */
.gunay-card .card-img-wrap img {
  transform: scale(1.2);
  object-position: center 25%;
}

/* Saida Guliyeva framing */
.seide-card .card-img-wrap img {
  object-position: center 10%;
}

.tree-member-row[data-person-id="12"] .tree-member-avatar img {
  object-position: center 10%;
}

/* Yegana Aliyeva framing */
.yegane-card .card-img-wrap img {
  object-position: center 10%;
}

.tree-member-row[data-person-id="23"] .tree-member-avatar img {
  object-position: center 10%;
}

/* Sevda Bagizada framing */
.sevda-card .card-img-wrap img {
  object-position: center 15%;
}

.tree-member-row[data-person-id="25"] .tree-member-avatar img {
  object-position: center 15%;
}

.staff-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-img-wrap::after {
  display: none;
}

.card-info {
  padding: 18px 20px 22px;
  position: relative;
  background: var(--surface);
}

.card-name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--text);
}

.card-role {
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.5;
  display: block;
}

.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.staff-card:hover .card-accent-bar {
  opacity: 1;
}

/* ── Specialties Table (Official Academic Registry) ── */
.major-section {
  display: none;
  animation: slideUpFade 0.35s ease both;
}

.major-section.active {
  display: block;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.majors-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 10px;
}

.majors-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.majors-table th {
  background: #071930;
  color: #ffffff;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--gold);
}

.majors-table td {
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.majors-table tr {
  transition: background 0.2s ease;
  opacity: 0;
  animation: tableFadeIn 0.4s ease forwards;
}

@keyframes tableFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.majors-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.majors-table tbody tr:hover {
  background: var(--accent-glow);
}

.m-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.88rem;
}

.m-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.field-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
}

.dark-mode .majors-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

#grid.table-mode {
  display: block;
  padding: 4px;
}

@media (max-width: 768px) {

  .majors-table,
  .majors-table thead,
  .majors-table tbody,
  .majors-table th,
  .majors-table td,
  .majors-table tr {
    display: block;
  }

  .majors-table {
    min-width: auto;
  }

  .majors-table thead {
    display: none;
  }

  .majors-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--surface);
  }

  .majors-table td {
    border: none;
    padding: 8px 0;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .majors-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* ═══════════════════════════════════════
   PDF LIBRARY — ACADEMIC REPOSITORY (AzTU / WCU Style)
   ═══════════════════════════════════════ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.book-card {
  text-align: left;
  cursor: pointer;
  height: 100%;
}

.book-card-inner {
  height: 100%;
}

.book-cover {
  min-height: 290px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.book-card:hover .book-cover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
  border-left-color: var(--gold);
}

.book-emoji-wrap {
  width: 46px;
  height: 46px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 3;
  transition: all var(--transition);
}

.book-emoji {
  font-size: 1.35rem;
}

.book-card:hover .book-emoji-wrap {
  background: var(--accent);
  border-color: var(--accent);
}

.book-info {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.book-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.book-author {
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  display: block;
  margin-bottom: 18px;
  line-height: 1.45;
}

.book-btn {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  color: var(--accent);
  border: 1px solid var(--border);
  transition: all var(--transition);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.book-card:hover .book-btn {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Search/Filter bar for library */
.library-filter,
.lecture-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.library-search {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color var(--transition);
}

.library-search:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.library-search::placeholder {
  color: var(--text-dim);
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-badge:hover,
.filter-badge.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ═══════════════════════════════════════
   YOUTUBE LECTURES — ACADEMIC MEDIA STUDIO (WCU / AzTU OpenCourseWare)
   ═══════════════════════════════════════ */

/* 1. Subject Department Selector Cards */
.lecture-dept-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.lecture-dept-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lecture-dept-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  border-top-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.lecture-dept-card.active {
  background: linear-gradient(135deg, #071930 0%, #0d2b52 100%);
  border-color: var(--gold);
  border-top: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(7, 25, 48, 0.22);
}

.lecture-dept-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.lecture-dept-card:hover .lecture-dept-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.lecture-dept-card.active .lecture-dept-icon {
  background: rgba(184, 147, 74, 0.18);
  border-color: rgba(184, 147, 74, 0.5);
  color: var(--gold-light);
}

.lecture-dept-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.lecture-dept-name {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.lecture-dept-card.active .lecture-dept-name {
  color: #ffffff;
}

.lecture-dept-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lecture-dept-card.active .lecture-dept-meta {
  color: #cbd5e1;
}

.lecture-dept-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
}

.lecture-dept-card.active .lecture-dept-badge {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

/* 2. Interactive University Video Studio */
.lecture-studio {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  background: #071930;
  border: 1px solid rgba(184, 147, 74, 0.35);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px rgba(7, 25, 48, 0.22);
}

.lecture-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #040d1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lecture-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.stage-cover {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.stage-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.08);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.stage-cover:hover img {
  transform: scale(1.04);
  filter: brightness(0.65) contrast(1.1);
}

.stage-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 48, 0.35) 0%, rgba(7, 25, 48, 0.15) 45%, rgba(7, 25, 48, 0.92) 100%);
  pointer-events: none;
}

.stage-top-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.stage-cat-pill {
  padding: 6px 14px;
  background: rgba(7, 25, 48, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.stage-mod-pill {
  font-family: var(--font-mono);
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 4px;
}

.stage-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gold);
  color: #071930;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.stage-play-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  opacity: 0.65;
  animation: studioPulse 2.2s infinite ease-out;
}

@keyframes studioPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.stage-cover:hover .stage-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold-light);
}

.stage-play-btn svg {
  margin-left: 4px;
  width: 28px;
  height: 28px;
}

.stage-bottom-bar {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.stage-bottom-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stage-bottom-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-top: 4px;
  display: block;
}

/* Studio Right Sidebar */
.lecture-studio-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a2240;
  color: #f8fafc;
}

.studio-sidebar-header {
  padding: 14px 20px;
  background: rgba(7, 25, 48, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 147, 74, 0.25);
}

.studio-sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.studio-current-details {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-curr-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.studio-curr-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.38;
  margin-bottom: 12px;
}

.studio-curr-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.studio-ctrl-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

.studio-ctrl-btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

.studio-ctrl-btn.primary:hover {
  background: var(--gold-light);
}

.studio-playlist-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.studio-playlist-title {
  padding: 10px 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  background: rgba(7, 25, 48, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-playlist {
  max-height: 230px;
  overflow-y: auto;
  divide-y: 1px solid rgba(255, 255, 255, 0.05);
}

.studio-playlist::-webkit-scrollbar {
  width: 5px;
}

.studio-playlist::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}

.studio-pl-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-pl-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.studio-pl-item.active {
  background: rgba(184, 147, 74, 0.14);
  border-left-color: var(--gold);
  color: #ffffff;
}

.studio-pl-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 26px;
}

.studio-pl-name {
  font-size: 0.83rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-pl-dur {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

/* 3. Enriched Lecture Cards Grid */
.lectures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.lecture-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.lecture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
  border-top-color: var(--gold);
}

.lecture-card.active-playing {
  border-color: var(--gold);
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(184, 147, 74, 0.2);
}

.lecture-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071930;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.lecture-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 48, 0.75) 0%, transparent 50%, rgba(7, 25, 48, 0.35) 100%);
  pointer-events: none;
}

.lecture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lecture-card:hover .lecture-thumb img {
  transform: scale(1.06);
}

.lecture-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(7, 25, 48, 0.88);
  border: 1px solid rgba(184, 147, 74, 0.5);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lecture-mod-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
}

.lecture-dur-pill {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(7, 25, 48, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}

.lecture-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(7, 25, 48, 0.86);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: #ffffff;
}

.lecture-play svg {
  margin-left: 3px;
  width: 22px;
  height: 22px;
}

.lecture-card:hover .lecture-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--gold);
  color: #071930;
  box-shadow: 0 0 0 8px rgba(184, 147, 74, 0.22);
}

.lecture-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.lecture-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.42;
  color: var(--text);
}

.lecture-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.lecture-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lecture-card:hover .lecture-watch-btn,
.lecture-card.active-playing .lecture-watch-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.lecture-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lecture-ext-link:hover {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .lecture-dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lecture-studio {
    grid-template-columns: 1fr;
  }

  .lecture-studio-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 640px) {
  .lecture-dept-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stage-bottom-title {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════
   CONTACT HUB
   ═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  min-height: 400px;
  box-shadow: var(--shadow-card);
}

/* Real Google Map Container */
.real-map {
  position: relative;
  background: var(--surface-2);
  isolation: isolate;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  filter: grayscale(0.15) contrast(1.05);
  transition: filter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.real-map:hover .map-iframe {
  filter: grayscale(0) contrast(1);
}

.abstract-map-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  z-index: 4;
}

.map-coord {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.coord-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coord-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  font-size: 0.82rem;
  color: var(--success);
  text-align: center;
  margin-top: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}

.form-success.show {
  opacity: 1;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.contact-info-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   OFFICIAL BULLETIN MARQUEE BAR
   ═══════════════════════════════════════ */
.marquee-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--marquee-bg);
  border-top: var(--marquee-border);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--marquee-overlay);
  z-index: 10;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 40px;
  padding: 0 40px;
  animation: scrollMarquee 45s linear infinite;
}

.marquee-panel {
  display: flex;
  align-items: center;
  gap: 15px;
}

.marquee-panel span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--marquee-text);
  letter-spacing: 0.03em;
}

.marquee-sep {
  color: var(--marquee-sep) !important;
  font-size: 0.8rem;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════
   FOOTER — Institutional Imperial Navy (WCU / AzTU Style)
   ═══════════════════════════════════════ */
.site-footer {
  padding-bottom: 56px;
  /* space for marquee */
  background: #071930;
  color: #e2e8f0;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 44px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.75;
  max-width: 360px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.footer-links a,
.footer-links span {
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.dim-link {
  display: inline-block;
  padding: 9px 18px;
  background: var(--gold);
  color: #071930;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(184, 147, 74, 0.25);
}

.dim-link:hover {
  transform: translateY(-2px);
  background: var(--gold-light);
  color: #071930;
}

/* ═══════════════════════════════════════
   RESPONSIVE — INSTITUTIONAL ADAPTABILITY
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .top-utility-left .utility-divider:nth-of-type(2),
  .top-utility-left .utility-item:nth-of-type(3) {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dash-charts {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 96px;
  }

  .top-utility-bar {
    height: 32px;
    font-size: 0.68rem;
  }

  .top-utility-inner {
    padding: 0 16px;
  }

  .top-utility-left .utility-divider,
  .top-utility-left .utility-item:not(:first-child),
  .top-utility-right .utility-badge {
    display: none;
  }

  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  /* Hero Section Mobile Polish */
  .hero {
    padding: 120px 16px 60px;
    min-height: auto;
  }

  .hero-content {
    padding: 32px 20px 28px;
  }

  .hero-title {
    font-size: 1.35rem;
    line-height: 1.38;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  /* ══ Global Section Refinements ══ */
  .section {
    padding: 64px 0;
  }

  .section-title {
    padding: 18px 20px;
    gap: 14px;
  }

  .cat-icon {
    width: 44px;
    height: 44px;
  }

  .modal-overlay {
    padding: 16px;
  }

  .modal-body {
    padding: 16px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-wide,
  .bento-large {
    grid-column: span 2;
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .lectures-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-wide,
  .bento-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-large {
    min-height: 280px;
  }

  .hero-title {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switcher {
    gap: 1px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .staff-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .book-cover {
    padding: 16px 14px;
  }

  .book-emoji-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .book-emoji {
    font-size: 1.3rem;
  }

  .book-title {
    font-size: 0.85rem;
  }

  .book-author {
    font-size: 0.7rem;
    margin-bottom: 12px;
  }

  .book-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

/* ═══════════════════════════════════════
   ADAPTIVE THEME ENGINE (INSTITUTIONAL DARK MODE)
   ═══════════════════════════════════════ */

.dark-mode .site-header {
  background: rgba(8, 17, 32, 0.96);
  border-bottom: 1px solid var(--border);
}

.dark-mode .site-header.scrolled {
  background: rgba(8, 17, 32, 0.99);
}

.dark-mode .hero {
  background-color: #061326;
}

.dark-mode .hero-content {
  background: rgba(5, 16, 32, 0.66);
}

.dark-mode .feature-card,
.dark-mode .cat-trigger,
.dark-mode .staff-card,
.dark-mode .lecture-card,
.dark-mode .dash-stat-card,
.dark-mode .dash-chart-card,
.dark-mode .contact-form-card,
.dark-mode .modal-container {
  background: var(--surface);
}

.dark-mode .modal-overlay {
  background: rgba(5, 11, 22, 0.82);
}

.dark-mode .logo-title {
  color: #f8fafc;
}

.dark-mode .book-cover {
  background: var(--surface);
  border-color: var(--border);
}

/* Theme Toggle Animated Switch */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-dim);
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
  margin-right: 6px;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.sun-and-moon> :is(.moon, .sun, .sun-beams) {
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s ease;
}

.sun-and-moon>.sun {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sun-and-moon>.sun-beams {
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sun-and-moon>.moon>circle {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-mode .sun-and-moon>.sun {
  transform: scale(1.75);
}

.dark-mode .sun-and-moon>.sun-beams {
  opacity: 0;
  transform: rotateZ(-25deg);
}

.dark-mode .sun-and-moon>.moon>circle {
  transform: translateX(-7px);
}

@supports (cx: 1) {
  .dark-mode .sun-and-moon>.moon>circle {
    transform: translateX(0);
    cx: 17;
  }
}

/* ═══════════════════════════════════════
   THEME SWITCHER DROPDOWN
   ═══════════════════════════════════════ */
.theme-switcher-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1000;
  box-shadow: var(--shadow-hover);
}

.theme-switcher-wrap.active .theme-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-dropdown button {
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.theme-dropdown button:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.theme-dropdown button span {
  font-size: 1rem;
}

/* ═══════════════════════════════════════
   FAQ SECTION (ACCORDION)
   ═══════════════════════════════════════ */
.faq-container {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-title {
  font-size: 1.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text);
  letter-spacing: -0.015em;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.faq-item.active {
  border-color: var(--accent);
  border-left: 3px solid var(--gold);
  background: var(--surface);
}

.faq-question {
  width: 100%;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 26px 24px 26px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.94rem;
}

@media (max-width: 768px) {
  .faq-container {
    margin-top: 56px;
    padding-top: 40px;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer-content {
    padding: 0 20px 20px 20px;
  }
}

.stat-card-enhanced {
  padding: 20px;
}

.stat-number-wrap {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
}

.stat-plus {
  color: var(--gold);
}

.stat-label-enhanced {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .calendar-timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -37px;
  }

  .stat-number-wrap {
    font-size: 2.3rem;
  }
}

/* ═══════════════════════════════════════
   PREMIUM MOBILE RESPONSIVE REFINEMENTS
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .logo-group {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
  }

  .logo-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .logo-title {
    font-size: 1.1rem;
    line-height: 1.1;
    white-space: nowrap;
    max-width: 100%;
    font-weight: 900;
  }

  .logo-subtitle {
    font-size: 0.68rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    margin-top: 2px;
    display: block;
    overflow: visible;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .lang-btn {
    padding: 4px 6px;
    font-size: 0.62rem;
  }
}

/* ══════════════════════════════════════════
   GALLERY v3 — CINEMATIC ACCORDION PORTAL SHOWCASE (IDEAS 1 & 2)
   ══════════════════════════════════════════ */

.gal-cinema-accordion {
  display: flex;
  height: 480px;
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}

.gal-portal-item {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(184, 147, 74, 0.28);
  box-shadow: 0 10px 30px rgba(7, 25, 48, 0.25);
  transition: flex 0.65s cubic-bezier(0.25, 1, 0.3, 1), transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: flex;
}

.gal-portal-item.active {
  flex: 3.6;
  border-color: var(--gold);
  box-shadow: 0 18px 45px rgba(7, 25, 48, 0.45), 0 0 30px rgba(184, 147, 74, 0.22);
  cursor: default;
}

/* Photo Background with Ken Burns Parallax on Hover */
.gal-portal-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.3, 1), filter 0.5s ease;
  z-index: 0;
  filter: saturate(0.9) brightness(0.78);
}

.gal-portal-item.active .gal-portal-bg {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(0.95);
}

.gal-portal-item:hover .gal-portal-bg {
  transform: scale(1.12);
  filter: saturate(1.15) brightness(1);
}

@media (min-width: 901px) {
  .gal-cinema-accordion:hover .gal-portal-item:not(:hover) {
    flex: 0.9;
    filter: brightness(0.88);
  }

  .gal-cinema-accordion .gal-portal-item:hover {
    flex: 3.6 !important;
    border-color: var(--gold);
  }

  .gal-cinema-accordion .gal-portal-item:hover .gal-portal-bg {
    transform: scale(1.12) !important;
    filter: saturate(1.15) brightness(1) !important;
  }
}

/* Ambient glow & vignette */
.gal-portal-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(184, 147, 74, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.gal-portal-item.active .gal-portal-ambient {
  opacity: 1;
}

.gal-portal-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 48, 0.95) 0%, rgba(7, 25, 48, 0.5) 45%, rgba(7, 25, 48, 0.2) 100%);
  z-index: 2;
  transition: background 0.5s ease;
}

.gal-portal-item.active .gal-portal-vignette {
  background: linear-gradient(to top, rgba(7, 25, 48, 0.96) 0%, rgba(7, 25, 48, 0.4) 50%, rgba(7, 25, 48, 0.15) 100%);
}

.gal-portal-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  z-index: 4;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.gal-portal-item.active .gal-portal-accent {
  opacity: 1;
  height: 4px;
}

/* Collapsed State: Modern Vertical Lettering */
.gal-portal-collapsed {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 12px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gal-portal-item.active .gal-portal-collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.gal-collapsed-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.gal-collapsed-icon {
  font-size: 1.6rem;
}

.gal-collapsed-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Expanded State: Apple TV / Cinematic Stage Details */
.gal-portal-expanded {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.45s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gal-portal-item.active .gal-portal-expanded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.gal-portal-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gal-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(184, 147, 74, 0.25);
  border: 1px solid rgba(184, 147, 74, 0.5);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gal-portal-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.gal-portal-headline {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 680px;
}

.gal-portal-summary {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.gal-portal-action {
  margin-top: 10px;
}

.gal-portal-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gal-portal-open-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(184, 147, 74, 0.4);
}

/* ── Panel Overlay ── */
.gal-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  opacity: 1;
  clip-path: circle(0px at 50% 50%);
}

.gal-panel-overlay.active {
  pointer-events: all;
  clip-path: none !important;
}

.gal-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 48, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.gal-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(780px, 96vw);
  background: var(--bg, #fff);
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--gold);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.gal-panel-overlay.active .gal-panel {
  transform: translateX(0);
}

.gal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt, var(--surface));
  flex-shrink: 0;
}

.gal-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gal-panel-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.gal-panel-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.gal-panel-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}

.gal-panel-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gal-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  overscroll-behavior: contain;
}

.gal-panel-body::-webkit-scrollbar {
  width: 5px;
}

.gal-panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.gal-panel-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* Media Grid */
.gal-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gal-media-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  animation: galItemIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gal-media-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

@keyframes galItemIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gal-media-item img,
.gal-media-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gal-media-item:hover img {
  transform: scale(1.04);
}

.gal-video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 25, 48, 0.85);
  border: 1px solid rgba(184, 147, 74, 0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .06em;
}

/* Instagram Embed Styling */
.gal-media-embed {
  cursor: default !important;
  grid-row: span 2;
}

.instagram-embed-container {
  width: 100%;
  height: 540px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.instagram-embed-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

/* ── Tall Aesthetic YouTube Showcase Card (Matching Instagram Height) ── */
.gal-yt-tall-card,
.gal-video-tall-card {
  grid-row: span 2 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 540px !important;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(184, 147, 74, 0.28) !important;
  box-shadow: 0 12px 32px rgba(7, 25, 48, 0.35);
  background: #081a30;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gal-yt-tall-card:hover,
.gal-video-tall-card:hover {
  border-color: var(--gold) !important;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(7, 25, 48, 0.5), 0 0 24px rgba(184, 147, 74, 0.2);
}

.gal-video-tall-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.gal-video-tall-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.5s ease;
}

.gal-video-tall-card:hover .gal-video-tall-container video {
  transform: scale(1.03);
}

.gal-video-tall-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(184, 147, 74, 0.92);
  color: #071930;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.gal-video-tall-play-btn svg {
  margin-left: 3px;
}

.gal-video-tall-card:hover .gal-video-tall-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #ffffff;
  color: #071930;
}

.gal-video-tall-card.is-playing .gal-video-tall-play-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.gal-yt-tall-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
  min-height: 0;
}

.gal-yt-ambient-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.4) brightness(0.28);
  transform: scale(1.1);
  z-index: 0;
  pointer-events: none;
}

.gal-yt-backdrop-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 48, 0.6) 0%, rgba(7, 25, 48, 0.85) 60%, rgba(7, 25, 48, 0.98) 100%);
  z-index: 1;
  pointer-events: none;
}

.gal-yt-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.gal-yt-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ff6b6b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gal-yt-tag-group {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(184, 147, 74, 0.2);
  border: 1px solid rgba(184, 147, 74, 0.4);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.gal-yt-screen-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #000;
}

.gal-yt-screen-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

.gal-yt-details {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gal-yt-card-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.gal-yt-teacher-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
}

.gal-yt-teacher-name {
  color: var(--gold-light);
  font-weight: 600;
}

.gal-media-embed:hover {
  transform: none !important;
  box-shadow: var(--shadow-card) !important;
}

.gal-media-info {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gal-media-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gal-media-zoom {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt, var(--surface));
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gal-media-zoom:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Empty State */
.gal-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-dim);
}

.gal-panel-empty-icon {
  font-size: 3.5rem;
  opacity: .5;
}

.gal-panel-empty p {
  font-size: 1rem;
  font-weight: 500;
  opacity: .7;
  max-width: 280px;
  line-height: 1.6;
  margin: 0;
}

/* Responsive for Cinematic Accordion */
@media (max-width: 900px) {
  .gal-cinema-accordion {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .gal-portal-item {
    height: 120px;
    flex: none !important;
  }

  .gal-portal-item.active {
    height: 380px;
  }

  .gal-portal-collapsed {
    flex-direction: row;
    padding: 16px 20px;
  }

  .gal-collapsed-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.05rem;
  }

  .gal-portal-expanded {
    padding: 24px 20px;
  }

  .gal-portal-headline {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .gal-portal-item.active {
    height: 420px;
  }

  .gal-portal-headline {
    font-size: 1.15rem;
  }

  .gal-portal-summary {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gal-panel {
    border-radius: 16px 16px 0 0;
    top: auto;
    height: 92vh;
    width: 100vw;
  }

  .gal-media-grid {
    grid-template-columns: 1fr;
  }

  .gal-yt-tall-card,
  .gal-video-tall-card {
    height: auto !important;
    min-height: 490px;
  }
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.92);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-img,
.lightbox-video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
}

.lightbox-img.active,
.lightbox-video.active {
  display: block;
}

.lightbox-caption {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translate3d(-32px, 0, 0);
}

.reveal.reveal-right {
  transform: translate3d(32px, 0, 0);
}

.reveal.reveal-scale {
  transform: scale3d(0.95, 0.95, 1) translate3d(0, 20px, 0);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Stagger delays for children */
.reveal-stagger>* {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger.visible>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.04s;
}

.reveal-stagger.visible>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.10s;
}

.reveal-stagger.visible>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.16s;
}

.reveal-stagger.visible>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}

.reveal-stagger.visible>*:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

.reveal-stagger.visible>*:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 0.34s;
}

.reveal-stagger.visible>*:nth-child(7) {
  opacity: 1;
  transform: none;
  transition-delay: 0.40s;
}

.reveal-stagger.visible>*:nth-child(n+8) {
  opacity: 1;
  transform: none;
  transition-delay: 0.46s;
}

/* Disable animated film grain overlay for crisp institutional surfaces */
.noise-overlay {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   CONCEPT 3: DAXİLİ RƏSMİ XƏBƏR OXU PƏNCƏRƏSİ (NEWS ARTICLE READER)
   ═══════════════════════════════════════════════════════════════ */
.news-open-reader-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.news-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.news-reader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.news-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 28, 0.84);
  backdrop-filter: blur(8px);
}

.news-reader-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  height: 88vh;
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translate3d(0, 20px, 0) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

.news-reader-overlay.active .news-reader-dialog {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.news-reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #071930;
  color: #ffffff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.news-reader-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-press-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.24);
}

.news-press-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.news-reader-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nr-tool-btn:hover,
.nr-tts-btn.speaking {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

.nr-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.nr-tts-btn.speaking .nr-eq {
  display: inline-flex;
}

.nr-eq i {
  width: 2.5px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  animation: nrEqWave 0.6s ease-in-out infinite alternate;
}

.nr-eq i:nth-child(2) {
  animation-delay: 0.2s;
}

.nr-eq i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes nrEqWave {
  0% {
    height: 3px;
  }

  100% {
    height: 12px;
  }
}

.nr-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nr-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.news-reader-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 330px;
  min-height: 0;
}

.news-reader-article {
  padding: 32px 38px 40px;
  overflow-y: auto;
}

.nr-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.nr-tag-badge {
  padding: 4px 12px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nr-date-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}

.nr-read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nr-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  margin: 0 0 22px;
}

.nr-hero-media {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 26px;
  background: #0b2545;
}

.nr-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.nr-content-text {
  color: var(--text);
  line-height: 1.82;
  transition: font-size 0.2s ease;
}

.nr-lead-para {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.nr-body-para {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.nr-official-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  margin-bottom: 28px;
}

.nr-stamp-seal {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.dark-mode .nr-stamp-seal {
  color: var(--gold-light);
}

.nr-stamp-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nr-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.nr-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nr-nav-next {
  text-align: right;
}

.nr-nav-btn:hover {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nr-nav-dir {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nr-nav-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-reader-sidebar {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nr-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}

.nr-related-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.nr-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nr-related-card:hover {
  border-color: var(--gold);
  transform: translateX(3px);
}

.nr-related-card img {
  width: 62px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.nr-related-info {
  min-width: 0;
}

.nr-related-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 3px;
}

.nr-related-info h5 {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .news-reader-body {
    grid-template-columns: 1fr;
  }

  .news-reader-sidebar {
    display: none;
  }

  .news-reader-article {
    padding: 22px 20px;
  }

  .nr-article-nav {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   UPGRADE 4: RƏQƏMSAL KİTABXANA OXU ZALI & 3D ÜZ QABIĞI
   ═══════════════════════════════════════════════════════════════ */
.library-reading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 22px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, #0b2545 0%, #13355e 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  color: #ffffff;
}

.lib-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lib-live-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.lib-bar-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.lib-bar-sep {
  color: rgba(255, 255, 255, 0.35);
}

.lib-bar-count {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
}

.lib-bar-hint {
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* 3D Hardcover Book Spine & Top Bar */
.book-cover {
  position: relative;
  padding-left: 26px !important;
  cursor: pointer;
}

.book-3d-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  background: linear-gradient(90deg, #071930 0%, #163a66 55%, #0b2545 100%);
  border-right: 2px solid var(--gold);
}

.book-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.book-cat-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(11, 37, 69, 0.08);
  padding: 3px 8px;
  border-radius: 3px;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark-mode .book-cat-tag {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.14);
}

.book-format-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #7c5813;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(184, 147, 74, 0.45);
  padding: 2px 7px;
  border-radius: 3px;
}

.dark-mode .book-format-pill {
  color: #f3d79b;
}

.book-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.book-btn-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  background: var(--bg-2);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.book-btn-ext:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

/* Digital Reading Room Modal */
.book-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.book-reader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.book-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 28, 0.82);
  backdrop-filter: blur(8px);
}

.book-reader-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  height: 86vh;
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.book-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #071930;
  color: #ffffff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.book-reader-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.book-reader-icon {
  font-size: 1.7rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.book-reader-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.book-reader-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-reader-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-reader-ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  background: var(--gold);
  color: #071930;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-reader-ext:hover {
  background: var(--gold-light);
}

.book-reader-close {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-reader-close:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.book-reader-body {
  flex: 1;
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 0;
}

.book-reader-sidebar {
  padding: 24px 20px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.reader-cover-3d {
  position: relative;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(7, 25, 48, 0.24);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.reader-cover-spine {
  width: 16px;
  background: linear-gradient(90deg, #040d1a 0%, #102a4c 60%, #071930 100%);
  border-right: 2px solid var(--gold);
  flex-shrink: 0;
}

.reader-cover-front {
  flex: 1;
  padding: 24px 18px;
  background: linear-gradient(155deg, #0b2545 0%, #071930 100%);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.reader-cover-seal {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 4px;
}

.reader-cover-emoji {
  font-size: 2.5rem;
  margin: 6px 0;
}

.reader-cover-name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.reader-cover-author {
  font-size: 0.74rem;
  color: #cbd5e1;
}

.reader-meta-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.reader-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.reader-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reader-meta-lbl {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.reader-meta-val {
  color: var(--text);
  font-weight: 700;
}

.reader-status-ok {
  color: #16a34a;
}

.book-reader-viewport {
  width: 100%;
  height: 100%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-reader-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

.reader-doc-fallback {
  max-width: 460px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.reader-doc-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.reader-doc-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.reader-doc-fallback h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 6px;
}

.reader-doc-fallback p {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.reader-doc-note {
  line-height: 1.6;
  margin-bottom: 22px !important;
}

.reader-doc-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   UPGRADE 6: QALEREYA KİNOTEATR (LIGHTBOX) & SLAYD-ŞOU REJİMİ
   ═══════════════════════════════════════════════════════════════ */
.lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  padding: 0 28px;
  background: rgba(5, 13, 26, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-counter {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 12px;
  border-radius: 4px;
}

.lightbox-cat-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.04em;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-tool-btn:hover,
.lb-tool-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #071930;
}

.lb-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(7, 25, 48, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: #071930;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Cinema Lightbox Stage Frame */
.lightbox-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lightbox-stage-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 90vw;
  height: 80vh;
  max-height: 80vh;
  border-radius: var(--radius-md, 14px);
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.75), 0 0 35px rgba(212, 175, 55, 0.2);
  background: radial-gradient(circle at center, rgba(14, 34, 61, 0.95) 0%, rgba(5, 12, 24, 0.98) 100%);
  overflow: hidden;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: zoom-in;
}

.lightbox-img.active {
  display: block;
}

.lightbox-img.zoomed {
  transform: scale(1.65);
  cursor: zoom-out;
  object-fit: cover;
}

.lightbox-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 10px 24px;
  background: rgba(5, 13, 26, 0.9);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  z-index: 10;
}

.lb-thumb {
  width: 68px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0f172a;
  padding: 0;
  cursor: pointer;
  opacity: 0.52;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lb-thumb-vid {
  color: var(--gold-light);
  font-size: 1rem;
}

.lb-thumb:hover,
.lb-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════
   FLAWLESS DESKTOP, TABLET & MOBILE ADAPTATION ENGINE
   ═══════════════════════════════════════════════════════════════════ */

/* 1. Global Viewport & Scroll-Anchor Precision (Desktop + Mobile) */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* 2. Large Desktop & Wide Monitors (1440px+) */
@media (min-width: 1440px) {
  .hero-content {
    max-width: 1100px;
    padding: 54px 56px 46px;
  }

  .books-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

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

/* 3. Touch Devices (Phones & Tablets) — No Hover Required */
@media (hover: none),
(pointer: coarse) {
  .hero-content {
    transform: none !important;
  }

  .hero-spotlight {
    display: none;
  }

  .news-card .news-card-reveal {
    max-height: 220px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin-top: 10px !important;
  }
}

/* 4. Tablet & Compact Laptop Adaptation (<= 1024px) */
@media (max-width: 1024px) {
  .mobile-nav-overlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-inner {
    padding: 20px 20px 44px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  /* News Reader Modal: Stack Article + Related News cleanly instead of hiding */
  .news-reader-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .news-reader-article {
    overflow-y: visible;
    padding: 24px 24px 28px;
    flex-shrink: 0;
  }

  .news-reader-sidebar {
    display: flex !important;
    border-left: none;
    border-top: 2px solid var(--gold);
    padding: 22px 24px 28px;
    flex-shrink: 0;
  }

  .nr-related-list {
    overflow-y: visible;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Book Reader Modal on Tablet */
  .book-reader-body {
    grid-template-columns: 1fr;
  }

  .book-reader-sidebar {
    display: none;
  }

  /* Lecture Studio on Tablet */
  .lecture-studio {
    grid-template-columns: 1fr;
  }

  .lecture-dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 5. Mobile Phone Adaptation (<= 768px) */
@media (max-width: 768px) {

  /* Header & Logo Precision */
  .header-logo {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .logo-img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .logo-title {
    font-size: 0.72rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  /* Hero Section on Phone */
  .hero {
    min-height: auto;
    padding: 114px 14px 66px;
  }

  .hero-content {
    padding: 26px 16px 22px;
    border-radius: var(--radius-sm);
  }

  .hero-badge {
    font-size: 0.66rem;
    padding: 5px 14px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(0.95rem, 3.8vw, 1.24rem);
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-cta {
    margin-bottom: 22px;
  }

  /* Keep 3 Stats Side-by-Side in a Sleek Bar on Mobile */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    padding-top: 18px;
    gap: 4px;
  }

  .stat-item {
    padding: 4px 6px !important;
    border-bottom: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  }

  .stat-item:last-child {
    border-right: none !important;
  }

  .stat-number,
  .main-stat .stat-number {
    font-size: 1.38rem !important;
    margin-bottom: 3px;
  }

  .stat-label,
  .main-stat .stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0.04em;
  }

  /* Live Ticker on Phone */
  .hero-live-ticker {
    height: 38px;
  }

  .ticker-badge {
    padding: 0 12px;
    font-size: 0.64rem;
    gap: 6px;
  }

  .ticker-item {
    font-size: 0.75rem;
  }

  /* News Cards & Reader Modal on Phone */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .news-card .news-card-reveal {
    max-height: 220px !important;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 8px !important;
  }

  .news-reader-overlay,
  .book-reader-overlay {
    padding: 10px;
  }

  .news-reader-dialog,
  .book-reader-dialog {
    height: 92dvh;
    max-height: 92dvh;
    border-radius: var(--radius-sm);
  }

  .news-reader-topbar,
  .book-reader-header {
    padding: 10px 14px;
    gap: 8px;
  }

  .news-press-label {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .nr-tool-btn {
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .news-reader-article {
    padding: 18px 16px 24px;
  }

  .nr-headline {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .nr-article-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-reader-sidebar {
    padding: 18px 16px 24px;
  }

  .nr-related-list {
    grid-template-columns: 1fr;
  }

  /* Library Filter — Smooth Horizontal Swipe Strip on Mobile */
  .library-reading-bar {
    padding: 12px 14px;
    gap: 8px;
  }

  .lib-bar-hint {
    font-size: 0.74rem;
    width: 100%;
  }

  .library-filter,
  .lecture-filter {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .library-filter::-webkit-scrollbar,
  .lecture-filter::-webkit-scrollbar {
    display: none;
  }

  .library-filter .library-search,
  .lecture-filter .library-search {
    min-width: 175px;
    flex-shrink: 0;
  }

  .library-filter .filter-badge,
  .lecture-filter .filter-badge {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .btn-reader-ext span {
    display: none;
  }

  .btn-reader-ext {
    padding: 8px 10px;
  }

  /* Videodərslər Department Cards — Swipeable Horizontal Strip on Mobile */
  .lecture-dept-grid {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .lecture-dept-grid::-webkit-scrollbar {
    display: none;
  }

  .lecture-dept-card {
    min-width: 225px;
    flex-shrink: 0;
  }

  /* Gallery & Cinema Lightbox on Mobile */
  .gal-cards {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }

  .lightbox-topbar {
    height: 54px;
    padding: 0 12px;
  }

  .lightbox-cat-pill {
    display: none;
  }

  .lb-tool-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .lightbox-stage-frame {
    max-height: calc(100dvh - 154px);
    max-width: 94vw;
  }

  .lightbox-img,
  .lightbox-video {
    max-height: calc(100dvh - 160px);
  }

  .lightbox-caption {
    font-size: 0.86rem;
    padding: 0 14px;
  }

  .lightbox-thumbs {
    height: 64px;
    padding: 8px 12px;
    justify-content: flex-start;
  }

  .lb-thumb {
    width: 56px;
    height: 42px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* 6. Compact Smartphones (<= 480px) */
@media (max-width: 480px) {
  .top-utility-bar {
    height: 28px;
    font-size: 0.62rem;
  }

  .header-inner {
    padding: 0 12px;
  }

  .logo-title {
    font-size: 0.65rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    margin-right: 2px;
  }

  .lang-btn {
    padding: 4px 6px;
    font-size: 0.64rem;
  }

  /* Books Grid on Phone: Crisp 2-Column Layout */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .book-cover {
    padding: 14px 10px 14px 18px !important;
  }

  .book-3d-spine {
    width: 8px;
  }

  .book-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .book-cat-tag {
    max-width: 100%;
    font-size: 0.58rem;
  }

  .book-format-pill {
    font-size: 0.56rem;
  }

  .book-title {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .book-author {
    font-size: 0.66rem;
    margin-bottom: 10px;
  }

  .book-actions {
    gap: 5px;
  }

  .book-btn {
    padding: 6px 8px;
    font-size: 0.66rem;
    flex: 1;
  }

  .book-btn-ext {
    width: 28px;
    height: 28px;
  }

  /* Gallery Cards on Small Phones */
  .gal-cards {
    grid-template-columns: 1fr !important;
  }

  .news-press-label {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 7. Ultra-Compact Phones (<= 360px) */
@media (max-width: 360px) {

  .books-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ABOUT SECTION — PRESTIGE ACADEMIC SHOWCASE (ALL 5 CONCEPTS)
   ══════════════════════════════════════════════════════════════════════════════ */

/* 1. Official Heritage Showcase & Director's Welcome Card */
.about-hero-card {
  display: grid;
  grid-template-columns: 44% 56%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-top: 4px solid #c59b27;
  box-shadow: 0 20px 55px rgba(7, 25, 48, 0.08);
  overflow: hidden;
  margin-top: 28px;
  margin-bottom: 26px;
}

.about-hero-visual {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: #071930;
}

.about-campus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-hero-card:hover .about-campus-img {
  transform: scale(1.04);
}

.about-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(7, 25, 48, 0.25) 0%,
      rgba(7, 25, 48, 0.15) 45%,
      rgba(7, 25, 48, 0.85) 100%);
  pointer-events: none;
}

.about-heritage-seal {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(7, 25, 48, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 155, 39, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.seal-year {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #f3c64d;
  padding-right: 14px;
  border-right: 2px solid rgba(197, 155, 39, 0.45);
  line-height: 1;
}

.seal-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seal-text strong {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.seal-text span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.about-status-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(7, 25, 48, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 155, 39, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.about-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f3c64d;
  box-shadow: 0 0 8px #f3c64d;
}

.about-hero-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b08518;
  margin-bottom: 10px;
}

.about-lead-heading {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2vw, 1.68rem);
  font-weight: 800;
  color: #071930;
  line-height: 1.3;
  margin: 0 0 14px;
}

.about-lead-text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 22px;
}

.about-director-quote {
  margin: 0;
  padding: 20px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid #c59b27;
  border-top: 1px solid rgba(11, 37, 69, 0.07);
  border-right: 1px solid rgba(11, 37, 69, 0.07);
  border-bottom: 1px solid rgba(11, 37, 69, 0.07);
  position: relative;
}

.about-director-quote .quote-mark {
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(197, 155, 39, 0.22);
  pointer-events: none;
}

.about-director-quote p {
  font-size: 0.91rem;
  font-style: italic;
  line-height: 1.65;
  color: #1e293b;
  margin: 0 0 14px;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(11, 37, 69, 0.14);
}

.quote-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-author-info strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #071930;
}

.quote-author-info span {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.quote-struct-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0b2545;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.35);
  transition: all 0.2s ease;
}

.quote-struct-link:hover {
  background: #0b2545;
  color: #ffffff;
  border-color: #0b2545;
}

/* 2. Live "BDRNK in Numbers" Ribbon */
.about-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.about-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #071930 0%, #0b2545 100%);
  border: 1px solid rgba(197, 155, 39, 0.32);
  box-shadow: 0 12px 28px rgba(7, 25, 48, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-metric-card:hover {
  transform: translateY(-4px);
  border-color: #f3c64d;
}

.about-metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(197, 155, 39, 0.16);
  border: 1px solid rgba(197, 155, 39, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about-metric-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #f3c64d;
  line-height: 1.1;
}

.about-metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  margin-top: 4px;
}

/* 3. Interactive Mission · Vision · Values Tabs */
.about-mvv-wrapper {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  box-shadow: 0 14px 36px rgba(7, 25, 48, 0.06);
  overflow: hidden;
  margin-bottom: 28px;
}

.about-mvv-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid rgba(11, 37, 69, 0.1);
}

.about-mvv-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
}

.about-mvv-tab:hover {
  color: #071930;
  background: rgba(11, 37, 69, 0.03);
}

.about-mvv-tab.active {
  color: #071930;
  background: #ffffff;
  border-bottom-color: #c59b27;
}

.mvv-tab-icon {
  font-size: 1.15rem;
}

.about-mvv-panel {
  display: none;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding: 32px 36px;
  align-items: center;
}

.about-mvv-panel.active {
  display: grid;
  animation: aboutFadeIn 0.35s ease;
}

@keyframes aboutFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mvv-panel-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 5px;
  background: rgba(197, 155, 39, 0.16);
  color: #9a7310;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.mvv-panel-main h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  color: #071930;
  margin: 0 0 12px;
  line-height: 1.32;
}

.mvv-panel-main p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
  margin: 0;
}

.mvv-pillars-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mvv-pillars-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(11, 37, 69, 0.08);
}

.pillar-check {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #0b2545;
  color: #f3c64d;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mvv-pillars-list li strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #071930;
  margin-bottom: 3px;
}

.mvv-pillars-list li span {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

/* 4. Interactive Historical Timeline (1931 -> Today) */
.about-timeline-box {
  background: linear-gradient(145deg, #071930 0%, #0b2545 100%);
  border-radius: 18px;
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 32px 36px;
  color: #ffffff;
  margin-bottom: 28px;
  box-shadow: 0 20px 50px rgba(7, 25, 48, 0.16);
}

.about-timeline-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.timeline-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f3c64d;
  margin-bottom: 6px;
}

.about-timeline-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.timeline-hint {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.about-timeline-track::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(197, 155, 39, 0.35);
  z-index: 0;
}

.timeline-node {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.timeline-node:hover {
  background: rgba(197, 155, 39, 0.14);
  border-color: rgba(197, 155, 39, 0.5);
  color: #ffffff;
}

.timeline-node.active {
  background: rgba(197, 155, 39, 0.22);
  border-color: #f3c64d;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.node-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3c64d;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b2545;
  border: 2px solid #c59b27;
  transition: transform 0.25s ease, background 0.25s ease;
}

.timeline-node.active .node-dot {
  background: #f3c64d;
  transform: scale(1.3);
  box-shadow: 0 0 12px #f3c64d;
}

.node-caption {
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.about-timeline-stage {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 155, 39, 0.32);
}

.about-timeline-stage.stage-anim {
  animation: aboutFadeIn 0.35s ease;
}

.timeline-stage-year {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #f3c64d;
  line-height: 1;
  padding-right: 24px;
  border-right: 2px solid rgba(197, 155, 39, 0.35);
  flex-shrink: 0;
  min-width: 125px;
  text-align: center;
}

.timeline-stage-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f3c64d;
  margin-bottom: 6px;
}

.timeline-stage-body h4 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.timeline-stage-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0;
}

/* 5. "Why BDRNK?" Interactive Advantage Cards */
.about-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-why-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(11, 37, 69, 0.11);
  border-top: 3px solid #0b2545;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(7, 25, 48, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-why-card:hover {
  transform: translateY(-5px);
  border-top-color: #c59b27;
  box-shadow: 0 18px 38px rgba(7, 25, 48, 0.11);
}

.why-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 37, 69, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.why-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.15);
  color: #0b2545;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.about-why-card:hover .why-arrow {
  background: #c59b27;
  color: #071930;
  transform: translate(2px, -2px);
}

.about-why-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #071930;
  margin: 0 0 8px;
  line-height: 1.32;
}

.about-why-card p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px;
  flex: 1;
}

.why-card-cta {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0b2545;
  transition: color 0.2s ease;
}

.about-why-card:hover .why-card-cta {
  color: #b08518;
}

/* Responsive Breakpoints for About Showcase & Complete Mobile Perfection */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site-header,
.top-utility-bar,
.header-inner,
.section,
.section-inner {
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  .logo-group {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
  }

  .logo-text-wrap {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  .logo-subtitle {
    max-width: 100% !important;
  }

  .about-hero-card {
    grid-template-columns: 1fr;
  }

  .about-hero-visual {
    min-height: 280px;
    max-height: 320px;
  }

  .about-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-mvv-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 24px;
  }

  .about-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 90px;
  }

  .top-utility-bar {
    height: 30px !important;
    font-size: 0.65rem !important;
  }

  .top-utility-inner {
    padding: 0 10px !important;
    gap: 8px !important;
  }

  .top-utility-left {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
  }

  .utility-portal-link {
    padding: 2px 8px !important;
    font-size: 0.62rem !important;
    white-space: nowrap;
  }

  .header-inner {
    height: 60px !important;
    padding: 0 10px !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .logo-group {
    gap: 8px !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .logo-icon {
    width: 34px !important;
    height: 34px !important;
    padding: 2px !important;
    flex-shrink: 0 !important;
  }

  .header-logo-img,
  .logo-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .logo-text-wrap {
    padding-left: 8px !important;
    min-width: 0 !important;
    flex: 1 1 0% !important;
  }

  .logo-title {
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .logo-subtitle {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
    max-width: 100% !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .logo-subtitle-entity {
    display: block !important;
    font-size: 0.92em !important;
    color: var(--gold-light) !important;
    font-weight: 700 !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .theme-toggle {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .theme-toggle svg {
    width: 16px !important;
    height: 16px !important;
  }

  .lang-switcher {
    padding: 2px !important;
    gap: 1px !important;
    flex-shrink: 0 !important;
  }

  .lang-btn {
    padding: 4px 5px !important;
    font-size: 0.58rem !important;
    line-height: 1 !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    width: 34px !important;
    height: 34px !important;
    padding: 6px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    background: var(--surface-2);
    border: 1px solid var(--border);
  }

  .mobile-menu-toggle span {
    width: 16px !important;
    height: 2px !important;
  }

  .mobile-nav-overlay {
    top: 90px !important;
    height: calc(100dvh - 90px) !important;
    overflow-y: auto !important;
  }

  .mobile-nav-inner {
    padding: 16px 14px 36px !important;
  }

  /* About Section Mobile Refinements */
  .about-hero-visual {
    min-height: 230px;
    max-height: 260px;
  }

  .about-status-pill {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    width: fit-content;
    font-size: 0.58rem;
    padding: 5px 10px;
    line-height: 1.25;
  }

  .about-hero-body {
    padding: 20px 16px;
  }

  .about-lead-heading {
    font-size: 1.18rem;
  }

  .about-lead-text {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .about-director-quote {
    padding: 16px;
  }

  .about-director-quote p {
    font-size: 0.84rem;
  }

  .about-metrics-ribbon {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .about-metric-card {
    padding: 14px 12px;
    gap: 10px;
  }

  .about-metric-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .about-metric-num-wrap {
    font-size: 1.4rem;
  }

  .about-metric-label {
    font-size: 0.7rem;
  }

  .about-mvv-tabs {
    grid-template-columns: 1fr;
  }

  .about-mvv-tab {
    padding: 13px 16px;
    justify-content: flex-start;
    font-size: 0.88rem;
  }

  .about-mvv-panel {
    padding: 20px 16px;
    gap: 18px;
  }

  .mvv-panel-main h3 {
    font-size: 1.15rem;
  }

  .mvv-panel-main p {
    font-size: 0.88rem;
  }

  .about-timeline-box {
    padding: 20px 14px;
    max-width: 100%;
    overflow: hidden;
  }

  .about-timeline-header h3 {
    font-size: 1.18rem;
  }

  .about-timeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow: visible;
  }

  .about-timeline-track .timeline-node:last-child {
    grid-column: 1 / -1;
  }

  .about-timeline-track::before {
    display: none;
  }

  .about-timeline-stage {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .timeline-stage-year {
    border-right: none;
    border-bottom: 2px solid rgba(197, 155, 39, 0.35);
    padding-right: 0;
    padding-bottom: 8px;
    min-width: 0;
    text-align: left;
    font-size: 1.85rem;
  }

  .timeline-stage-body h4 {
    font-size: 1.06rem;
  }

  .timeline-stage-body p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 8px !important;
    gap: 6px !important;
  }

  .logo-group {
    gap: 6px !important;
  }

  .logo-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .header-logo-img,
  .logo-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .logo-text-wrap {
    padding-left: 6px !important;
  }

  .logo-title {
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .logo-subtitle {
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .logo-subtitle-entity {
    display: block !important;
    font-size: 0.9em !important;
    color: var(--gold-light) !important;
    font-weight: 700 !important;
  }

  .header-actions {
    gap: 4px !important;
  }

  .theme-toggle {
    width: 28px !important;
    height: 28px !important;
  }

  .lang-btn {
    padding: 3px 4px !important;
    font-size: 0.55rem !important;
  }

  .mobile-menu-toggle {
    width: 32px !important;
    height: 32px !important;
    padding: 5px !important;
  }

  .about-metrics-ribbon,
  .about-why-grid {
    grid-template-columns: 1fr;
  }

  .about-heritage-seal {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 10px;
    gap: 8px;
  }

  .seal-year {
    font-size: 1.15rem;
    padding-right: 8px;
  }

  .seal-text strong {
    font-size: 0.72rem;
  }

  .seal-text span {
    font-size: 0.62rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT HUB REDESIGN — CONCEPTS 1, 3 & 5 (INSTITUTIONAL EXCELLENCE)
   ══════════════════════════════════════════════════════════════════ */

.contact-section-desc {
  max-width: 760px;
  margin-bottom: 32px;
}

/* 1. 4-Card Quick-Action & Live Status Ribbon */
.contact-quick-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.contact-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.contact-action-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.cac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cac-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cac-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(184, 147, 74, 0.14);
  color: var(--gold);
  border: 1px solid rgba(184, 147, 74, 0.32);
}

.cac-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cac-live-pill.closed {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.32);
}

.cac-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: statusPulse 1.8s infinite ease-in-out;
}

.cac-live-pill.closed .cac-live-dot {
  background: #ef4444;
  box-shadow: none;
  animation: none;
}

@keyframes statusPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.65;
  }
}

.cac-title {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.cac-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  flex: 1;
}

.cac-val-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.cac-val-link:hover {
  color: var(--gold);
}

.cac-val-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.cac-sub-note {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.cac-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: all 0.2s ease;
  flex: 1;
  white-space: nowrap;
}

.cac-btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.cac-btn-primary:hover {
  background: #071930;
  border-color: var(--gold);
  color: #f3d79b;
}

.cac-btn-gold {
  background: rgba(184, 147, 74, 0.16);
  color: var(--accent);
  border-color: rgba(184, 147, 74, 0.45);
}

.dark-mode .cac-btn-gold {
  color: #f3d79b;
}

.cac-btn-gold:hover {
  background: var(--gold);
  color: #071930;
}

.cac-copy-btn:hover {
  border-color: var(--gold);
  color: var(--accent);
}

.cac-copy-btn.copied {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Left Column: Enhanced Map + Channels Showcase */
.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.contact-left-col .contact-map-wrap {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.map-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #071930;
  color: #ffffff;
  border-bottom: 1px solid rgba(184, 147, 74, 0.35);
}

.map-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.map-pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f3c64d;
  box-shadow: 0 0 8px #f3c64d;
}

.map-open-ext {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f3c64d;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 198, 77, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.map-open-ext:hover {
  background: #f3c64d;
  color: #071930;
}

.contact-left-col .map-iframe {
  min-height: 270px;
  flex: 1;
}

/* 5. Official Social Media & Portals Showcase */
.contact-channels-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.channels-header {
  margin-bottom: 14px;
}

.channels-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

.channels-header h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

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

.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.channel-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.channel-ig .channel-icon-wrap {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.channel-fb .channel-icon-wrap {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bd9 100%);
}

.channel-web .channel-icon-wrap {
  background: linear-gradient(135deg, #0b2545 0%, #1b4f72 100%);
}

.channel-dim .channel-icon-wrap {
  background: linear-gradient(135deg, #b8934a 0%, #8f6b24 100%);
}

.channel-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.channel-name {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.channel-handle {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-arrow {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.channel-card:hover .channel-arrow {
  transform: translate(2px, -2px);
}

/* 3. Smart Institutional Application Form */
.cf-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cf-header-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(184, 147, 74, 0.16);
  color: var(--gold);
  margin-bottom: 8px;
}

.cf-header-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.cf-header-desc {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.cf-role-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cf-role-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cf-role-pill:hover {
  border-color: var(--gold);
}

.cf-role-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}

.cf-select {
  cursor: pointer;
  appearance: auto;
  font-weight: 600;
}

.cf-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cf-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cf-msg-header label {
  margin-bottom: 0 !important;
}

.cf-quick-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.cf-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cf-topic-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cf-topic-chip:hover,
.cf-topic-chip.active {
  background: rgba(184, 147, 74, 0.18);
  border-color: var(--gold);
  color: var(--accent);
}

.dark-mode .cf-topic-chip:hover,
.dark-mode .cf-topic-chip.active {
  color: #f3d79b;
}

.cf-guarantee-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Responsive Breakpoints for Contact Hub */
@media (max-width: 1024px) {
  .contact-quick-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-quick-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-action-card {
    padding: 16px 14px;
  }

  .cac-title {
    font-size: 0.94rem;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  .cf-role-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .cf-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .contact-quick-ribbon {
    grid-template-columns: 1fr;
  }
}




/* ═══════════════ GRADUATION DAY — HERO TEASER CARD ═══════════════ */
.hero-grad-card {
  position: absolute;
  right: 32px;
  bottom: 74px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 999px;
  background: rgba(6, 19, 38, 0.55);
  border: 1px solid rgba(207, 169, 94, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(207, 169, 94, 0.5);
  animation: gradCardIn 0.9s 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, gradPulse 2.8s 2s ease-out infinite;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-grad-card:hover {
  transform: translateY(-3px);
  background: rgba(6, 19, 38, 0.8);
}

.hero-grad-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cfa95e, #8a6a2c);
}

.hero-grad-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero-grad-text small {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfa95e;
  font-weight: 700;
}

.hero-grad-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.hero-grad-play {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #061326;
  margin-left: 4px;
}

@keyframes gradCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gradPulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(207, 169, 94, .55);
  }

  70% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 14px rgba(207, 169, 94, 0);
  }

  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(207, 169, 94, 0);
  }
}

/* ═══════════════ QARABAĞ ZƏFƏRİ — HERO VIDEO CARD & CTA ═══════════════ */
.hero-qarabag-card {
  position: absolute;
  right: 32px;
  bottom: 142px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgba(7, 25, 48, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.25);
  animation: qarabagCardIn 0.9s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, qarabagGlow 3s infinite ease-in-out;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-qarabag-card:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(7, 25, 48, 0.92);
  border-color: #ffd700;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.45);
}

.hero-qarabag-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.8s infinite;
}

.hero-qarabag-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(7, 25, 48, 0.85));
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.hero-qarabag-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.hero-qarabag-text small {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--gold-light, #ffd700);
  text-transform: uppercase;
  font-weight: 700;
}

.hero-qarabag-text strong {
  font-family: var(--font-display, inherit);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-qarabag-play {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold, #d4af37);
  color: #071930;
  margin-left: 4px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-qarabag-card:hover .hero-qarabag-play {
  transform: scale(1.12);
  background: #ffd700;
}

/* Hero CTA Button */
.btn-qarabag-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--radius-sm, 8px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(7, 25, 48, 0.85));
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: all var(--transition, 0.25s ease);
}

.btn-qarabag-hero:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(14, 34, 61, 0.95));
  border-color: #ffd700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 25px rgba(212, 175, 55, 0.4);
}

.btn-qarabag-hero .btn-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-qarabag-hero .btn-play-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gold, #d4af37);
}

@keyframes qarabagCardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qarabagGlow {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 175, 55, 0.25);
  }

  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 28px rgba(212, 175, 55, 0.55);
  }
}

@media (max-width: 860px) {
  .hero-qarabag-card {
    right: 16px;
    bottom: 130px;
    padding: 8px 12px 8px 8px;
  }
}

@media (max-width: 520px) {
  .hero-qarabag-card {
    display: none;
  }
}

/* ═══════════════ GRADUATION DAY — PRIDE SHOWCASE SECTION ═══════════════ */
.grad-showcase {
  position: relative;
  overflow: hidden;
  padding: 85px 24px 40px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(207, 169, 94, 0.18), transparent 55%),
    linear-gradient(160deg, #061326 0%, #0a2240 55%, #071930 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  color: #f8fafc;
  scroll-margin-top: var(--header-h);
}

.grad-bg-glow {
  position: absolute;
  right: -200px;
  top: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 169, 94, 0.16), transparent 70%);
  pointer-events: none;
}

.grad-confetti span {
  position: absolute;
  top: -20px;
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: #cfa95e;
  opacity: 0.6;
  animation: gradFall 12s linear infinite;
  pointer-events: none;
}

.grad-confetti span:nth-child(1) {
  left: 8%;
  animation-delay: 0s;
}

.grad-confetti span:nth-child(2) {
  left: 22%;
  animation-delay: 3s;
  background: #fff;
  width: 4px;
}

.grad-confetti span:nth-child(3) {
  left: 38%;
  animation-delay: 6s;
}

.grad-confetti span:nth-child(4) {
  left: 52%;
  animation-delay: 1.5s;
  background: #fff;
  width: 4px;
}

.grad-confetti span:nth-child(5) {
  left: 66%;
  animation-delay: 4.5s;
}

.grad-confetti span:nth-child(6) {
  left: 78%;
  animation-delay: 8s;
  background: #fff;
  width: 4px;
}

.grad-confetti span:nth-child(7) {
  left: 88%;
  animation-delay: 2s;
}

.grad-confetti span:nth-child(8) {
  left: 95%;
  animation-delay: 9.5s;
  background: #fff;
  width: 4px;
}

@keyframes gradFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(900px) rotate(540deg);
    opacity: 0;
  }
}

.grad-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 72px;
  align-items: center;
}

.grad-video-wrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.grad-video-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(207, 169, 94, 0.45);
  border-radius: 28px;
  transform: rotate(-3deg);
  pointer-events: none;
}

.grad-video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 2px solid #cfa95e;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(207, 169, 94, 0.2);
}

.grad-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.grad-video-ribbon {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfa95e, #b8934a);
  color: #061326;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.grad-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cfa95e;
  margin-bottom: 18px;
}

.grad-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.grad-title em {
  font-style: italic;
  background: linear-gradient(90deg, #f3d792, #cfa95e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: #cfa95e;
  max-width: 220px;
}

.grad-divider::before,
.grad-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfa95e, transparent);
}

.grad-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.82);
  max-width: 560px;
  margin: 0 0 32px;
}

.grad-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.grad-stat {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid #cfa95e;
}

.grad-stat strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.1;
}

.grad-stat span {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.65);
}

.grad-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid #cfa95e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.grad-cta:hover {
  background: #cfa95e;
  color: #061326;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .grad-showcase {
    padding: 80px 20px;
  }

  .grad-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .grad-video-wrap {
    max-width: 300px;
  }

  .grad-divider {
    margin: 22px auto;
  }

  .grad-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .grad-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-grad-card {
    position: relative;
    right: auto;
    bottom: auto;
    transform: none;
    margin-top: 28px;
    align-self: center;
    padding: 6px 10px 6px 6px;
    animation: gradPulse 2.8s 2s ease-out infinite;
  }

  .hero-grad-card:hover {
    transform: translateY(-2px);
  }

  .hero-grad-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .hero-grad-text strong {
    font-size: 13px;
  }

  .grad-stats {
    gap: 22px;
  }
}


/* ═══════════════ MEMORIAL — ANIM GUŞƏSİ ═══════════════ */
.memorial {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 100px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(207, 169, 94, 0.16), transparent 50%),
    linear-gradient(180deg, #05070d 0%, #0b1220 60%, #05070d 100%);
  color: #e8e6e1;
  text-align: center;
  border-top: 1px solid rgba(207, 169, 94, 0.35);
  border-bottom: 1px solid rgba(207, 169, 94, 0.35);
  scroll-margin-top: var(--header-h);
}

.memorial-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.5px 1.5px at 46% 14%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 63% 80%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 90% 62%, rgba(255, 255, 255, .35), transparent);
  animation: memTwinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes memTwinkle {
  from {
    opacity: .5;
  }

  to {
    opacity: 1;
  }
}

.memorial-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

/* Eternal flame */
.memorial-flame {
  position: relative;
  width: 70px;
  height: 110px;
  margin: 0 auto 30px;
}

.flame-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 60, 0.35), transparent 65%);
  animation: flameGlow 3s ease-in-out infinite alternate;
}

.flame {
  position: absolute;
  left: 50%;
  bottom: 22px;
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  transform-origin: 50% 100%;
}

.flame-outer {
  width: 40px;
  height: 78px;
  margin-left: -20px;
  background: linear-gradient(to top, #ff6a00 0%, #ffb347 55%, rgba(255, 220, 130, 0.2) 100%);
  filter: blur(1px);
  animation: flameFlicker 1.6s ease-in-out infinite alternate;
}

.flame-inner {
  width: 18px;
  height: 42px;
  margin-left: -9px;
  background: linear-gradient(to top, #fff6d5, #ffe08a);
  animation: flameFlicker 1.1s ease-in-out infinite alternate-reverse;
}

.flame-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70px;
  height: 22px;
  margin-left: -35px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #cfa95e, #6e5323);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

@keyframes flameFlicker {
  0% {
    transform: scale(1, 1) rotate(-2deg);
  }

  50% {
    transform: scale(0.94, 1.06) rotate(2deg);
  }

  100% {
    transform: scale(1.04, 0.95) rotate(-1deg);
  }
}

@keyframes flameGlow {
  from {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.memorial-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #cfa95e;
  margin-bottom: 16px;
}

.memorial-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.memorial-title em {
  font-style: italic;
  background: linear-gradient(90deg, #f3d792, #cfa95e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.memorial-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
  margin: 26px auto;
  font-size: 20px;
}

.memorial-divider::before,
.memorial-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfa95e, transparent);
}

.memorial-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(232, 230, 225, 0.8);
  max-width: 680px;
  margin: 0 auto 48px;
}

.memorial-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.mem-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(207, 169, 94, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.mem-date:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 169, 94, 0.6);
  background: rgba(207, 169, 94, 0.06);
}

.mem-date strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.mem-date span {
  font-size: 0.9rem;
  color: rgba(232, 230, 225, 0.75);
}

.mem-date small {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #cfa95e;
  font-weight: 700;
}

.mem-date-victory {
  border-color: rgba(207, 169, 94, 0.55);
  background: linear-gradient(160deg, rgba(207, 169, 94, 0.12), rgba(255, 255, 255, 0.02));
}

.memorial-candle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid #cfa95e;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.memorial-candle-btn:hover {
  background: rgba(207, 169, 94, 0.12);
  transform: translateY(-2px);
}

.memorial-candle-btn .candle-icon {
  font-size: 20px;
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.6s ease;
}

.memorial-candle-btn.lit {
  background: #cfa95e;
  color: #05070d;
  box-shadow: 0 0 40px rgba(255, 170, 60, 0.45);
  cursor: default;
}

.memorial-candle-btn.lit .candle-icon {
  filter: none;
  animation: flameFlicker 1.2s ease-in-out infinite alternate;
}

.memorial-candle-msg {
  margin: 18px 0 0;
  font-style: italic;
  color: #cfa95e;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.memorial-candle-msg.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .memorial {
    padding: 80px 18px 72px;
  }

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

  .mem-date {
    padding: 18px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .flame,
  .flame-glow,
  .memorial-stars,
  .memorial-candle-btn.lit .candle-icon {
    animation: none;
  }
}


/* ═══════════════ GALLERY FEATURED SPOTLIGHT BANNER ═══════════════ */
.gal-spotlight-feature {
  position: relative;
  margin-top: 36px;
  margin-bottom: 24px;
  padding: 44px 40px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(207, 169, 94, 0.14), transparent 55%),
    linear-gradient(135deg, #061326 0%, #0b1c36 50%, #071930 100%);
  border: 1px solid rgba(207, 169, 94, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 40px rgba(207, 169, 94, 0.12);
  color: #f8fafc;
  overflow: hidden;
}

.gal-spotlight-ambient {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 169, 94, 0.15), transparent 70%);
  pointer-events: none;
}

.gal-spotlight-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 330px) 1fr;
  gap: 52px;
  align-items: center;
}

/* Video Frame on Left */
.gal-spotlight-media {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.gal-spotlight-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 2px solid #cfa95e;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 35px rgba(207, 169, 94, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gal-spotlight-media:hover .gal-spotlight-frame {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 50px rgba(207, 169, 94, 0.4);
}

.gal-spotlight-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gal-spotlight-tag {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfa95e, #b8934a);
  color: #061326;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.spotlight-tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #061326;
  animation: spotlightPulse 1.8s ease-in-out infinite alternate;
}

@keyframes spotlightPulse {
  from {
    opacity: 0.5;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Storytelling Content on Right */
.gal-spotlight-content {
  display: flex;
  flex-direction: column;
}

.gal-spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.gal-spotlight-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfa95e;
}

.gal-spotlight-format {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.85);
}

.gal-spotlight-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.22;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.gal-spotlight-headline em {
  font-style: italic;
  background: linear-gradient(90deg, #f6e3ab, #cfa95e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gal-spotlight-quote {
  position: relative;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.84);
  font-style: italic;
  padding-left: 18px;
  border-left: 2px solid #cfa95e;
  margin: 0 0 28px;
  max-width: 650px;
}

/* 3 Meta Cards */
.gal-spotlight-meta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.spotlight-meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(207, 169, 94, 0.24);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.spotlight-meta-card:hover {
  transform: translateY(-2px);
  border-color: rgba(207, 169, 94, 0.55);
  background: rgba(207, 169, 94, 0.08);
}

.meta-card-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.meta-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.meta-card-text strong {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfa95e;
}

.meta-card-text span {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

/* Action Button */
.gal-spotlight-action {
  margin-top: 4px;
}

.btn-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfa95e, #b8934a);
  color: #061326;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(207, 169, 94, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(207, 169, 94, 0.45);
  filter: brightness(1.05);
  color: #061326;
}

@media (max-width: 900px) {
  .gal-spotlight-feature {
    padding: 36px 24px;
  }

  .gal-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .gal-spotlight-badge-row {
    justify-content: center;
  }

  .gal-spotlight-quote {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid #cfa95e;
    padding-top: 14px;
    margin-left: auto;
    margin-right: auto;
  }

  .gal-spotlight-meta-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }

  .gal-spotlight-action {
    display: flex;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ELITE TRANSITIONS & MICRO-INTERACTIONS ENGINE (AzTU / Top Uni Standard)
   ═══════════════════════════════════════════════════════════════ */

/* 1. Global Smooth Scroll & Scroll Padding */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* 2. Universal Shimmer Sheen on Interactive Cards */
.news-card,
.about-card,
.why-card,
.team-card,
.contact-card,
.lib-book,
.spotlight-meta-card,
.stat-item,
.mem-date,
.grad-stat {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background 0.3s ease;
  will-change: transform, box-shadow;
}

.news-card::after,
.about-card::after,
.why-card::after,
.team-card::after,
.contact-card::after,
.lib-book::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.08) 40%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 60%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.news-card:hover::after,
.about-card:hover::after,
.why-card:hover::after,
.team-card:hover::after,
.contact-card:hover::after,
.lib-book:hover::after {
  left: 200%;
}

/* 3. Luxury Hover Lift & Ambient Halo */
.news-card:hover,
.about-card:hover,
.why-card:hover,
.team-card:hover,
.contact-card:hover,
.lib-book:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 16px 36px rgba(10, 34, 64, 0.12), 0 0 24px rgba(184, 147, 74, 0.16);
}

/* 4. Elastic Nav Underline Transitions */
.nav-link::after {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
  transform-origin: center center;
}

.nav-link:hover::after,
.nav-link.active::after {
  box-shadow: 0 0 10px rgba(184, 147, 74, 0.65);
}

/* 5. Interactive Ripple Physics on Click */
.btn,
.btn-primary,
.btn-outline,
.btn-spotlight,
.filter-badge,
.library-tab-btn,
.gal-portal-open-btn,
.memorial-candle-btn,
.news-open-reader-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.btn:active,
.btn-primary:active,
.btn-outline:active,
.btn-spotlight:active,
.filter-badge:active {
  transform: translateY(1px) scale(0.98);
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transform: scale(0);
  animation: rippleSpread 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleSpread {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }

  100% {
    transform: scale(3.8);
    opacity: 0;
  }
}

/* 6. Micro-Interactions on Icons & Badges */
.card-icon,
.stat-icon,
.why-card-icon,
.meta-card-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover .why-card-icon,
.about-card:hover .card-icon,
.spotlight-meta-card:hover .meta-card-icon {
  transform: scale(1.18) rotate(4deg);
}

/* Reduced motion accessibility */
@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ═════════════════════════════════════════════════════════════
   QARABAĞ ZƏFƏRİ — PRESTIGE SHOWCASE SECTION
═════════════════════════════════════════════════════════════ */
.qarabag-showcase {
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(0, 181, 226, 0.12), transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(80, 158, 47, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(207, 169, 94, 0.08), transparent 65%),
    linear-gradient(160deg, #040d1a 0%, #07172c 50%, #040d1a 100%);
  border-top: 2px solid rgba(207, 169, 94, 0.55);
  border-bottom: 2px solid rgba(207, 169, 94, 0.55);
  color: #f1f5f9;
  scroll-margin-top: var(--header-h);
}

.qarabag-bg-ambient {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(207, 169, 94, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

.qarabag-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 48px;
  align-items: center;
}

/* Video Frame on the left */
.qarabag-video-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.qarabag-video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(8, 24, 46, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(207, 169, 94, 0.35);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.qarabag-video-card:hover {
  border-color: rgba(207, 169, 94, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(207, 169, 94, 0.2);
}

.qarabag-video-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 4px 4px;
}

.qarabag-video-tag-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cfa95e, #9a7329);
  color: #061326;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.qarabag-video-tag-title {
  color: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qarabag-video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1.5px rgba(207, 169, 94, 0.5),
    0 0 35px rgba(207, 169, 94, 0.2);
  background: #000;
}

.qarabag-video-frame-vertical {
  aspect-ratio: 9 / 16;
  max-height: 440px;
}

.qarabag-video-frame-landscape {
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.qarabag-video-elem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qarabag-video-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 19, 38, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(207, 169, 94, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.qarabag-video-ribbon strong {
  color: #cfa95e;
  font-weight: 700;
}

.qarabag-cinema-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(207, 169, 94, 0.18), rgba(6, 19, 38, 0.7));
  border: 1.5px solid var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  width: 100%;
}

.qarabag-cinema-btn:hover {
  background: var(--gold);
  color: #061326;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(207, 169, 94, 0.4);
}

/* Right Column: Text Card */
.qarabag-text-card {
  background: rgba(8, 24, 46, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(207, 169, 94, 0.35);
  border-radius: 24px;
  padding: 40px 42px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.qarabag-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(207, 169, 94, 0.25);
  padding-bottom: 20px;
}

.qarabag-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.qarabag-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #e2d3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qarabag-route-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qarabag-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(207, 169, 94, 0.15);
  border: 1px solid rgba(207, 169, 94, 0.45);
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
}

.qarabag-pill-arrow {
  color: var(--gold);
  font-weight: bold;
}

.qarabag-article-scroll {
  max-height: 720px;
  overflow-y: auto;
  padding-right: 18px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Custom golden scrollbar */
.qarabag-article-scroll::-webkit-scrollbar {
  width: 6px;
}
.qarabag-article-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.qarabag-article-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.qarabag-lead {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.85;
}

.qarabag-quote {
  margin: 12px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(207, 169, 94, 0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #f1f5f9;
  font-size: 0.96rem;
  line-height: 1.75;
}

.qarabag-credo {
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(207, 169, 94, 0.16), rgba(6, 19, 38, 0.75));
  border: 1px solid rgba(207, 169, 94, 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.qarabag-credo-title {
  color: #cfa95e;
  font-size: 1rem;
  font-weight: 700;
}

.qarabag-credo-sub {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .qarabag-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .qarabag-video-wrap {
    max-width: 320px;
  }
  .qarabag-text-card {
    padding: 28px 22px;
  }
  .qarabag-heading {
    font-size: 1.45rem;
  }
  .qarabag-article-scroll {
    max-height: 380px;
    padding-right: 10px;
  }
}

/* ═══ Universal Image Fullscreen Cinema Zoom Enhancements ═══ */
.news-card-media {
  position: relative;
}

.news-card-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 25, 48, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-zoom-btn,
.news-card:focus-within .news-card-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.news-card-zoom-btn:hover {
  background: var(--gold);
  color: #071930;
  border-color: var(--gold);
  transform: scale(1.08);
}

.nr-hero-media {
  position: relative;
}

.nr-img-zoom-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 20px;
  background: rgba(7, 25, 48, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 6;
  transition: all 0.25s ease;
}

.nr-img-zoom-btn:hover {
  background: var(--gold);
  color: #071930;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}


/* ═══════════════════════════════════════════════════════════════════════
   FƏXRİ TƏLƏBƏLƏR & ŞƏRƏF LÖVHƏSİ (HALL OF FAME) — ULTRA-PREMIUM ARCHITECTURE
   ═══════════════════════════════════════════════════════════════════════ */
.honor-students-section,
.grad-honors-wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  scroll-margin-top: calc(var(--header-h, 80px) + 20px);
}

.honor-ambient-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 960px);
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 169, 94, 0.12) 0%, rgba(0, 210, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 1;
}

[data-theme="light"] .honor-ambient-bg,
body:not(.dark-mode) .honor-ambient-bg {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10, 34, 64, 0.03) 60%, transparent 75%);
}

.honor-section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.grad-honors-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 10px;
}

.grad-honors-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.grad-honors-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(207, 169, 94, 0.15);
  border: 1px solid rgba(207, 169, 94, 0.45);
  color: #f3d792;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .grad-honors-kicker,
body:not(.dark-mode) .grad-honors-kicker {
  background: rgba(207, 169, 94, 0.16);
  border-color: rgba(184, 147, 74, 0.5);
  color: #8c671a;
  box-shadow: 0 2px 8px rgba(10, 34, 64, 0.05);
}

.grad-honors-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #7fe4ff;
  font-size: 0.8rem;
  font-weight: 700;
}

[data-theme="light"] .grad-honors-sub-badge,
body:not(.dark-mode) .grad-honors-sub-badge {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0369a1;
}

.sub-badge-star {
  color: #00d2ff;
  animation: honorPulse 2s infinite ease-in-out;
}

[data-theme="light"] .sub-badge-star,
body:not(.dark-mode) .sub-badge-star {
  color: #0284c7;
}

@keyframes honorPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

.grad-honors-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.25;
}

[data-theme="light"] .grad-honors-title,
body:not(.dark-mode) .grad-honors-title {
  color: #0a2240;
}

.grad-honors-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.82);
  margin: 0 auto 16px;
}

[data-theme="light"] .grad-honors-desc,
body:not(.dark-mode) .grad-honors-desc {
  color: #475569;
}

/* Category Filter Tabs */
.grad-honors-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 19, 38, 0.85);
  padding: 4px 6px;
  border-radius: 16px;
  border: 1px solid rgba(207, 169, 94, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

[data-theme="light"] .grad-honors-tabs,
body:not(.dark-mode) .grad-honors-tabs {
  background: #ffffff;
  border-color: rgba(184, 147, 74, 0.32);
  box-shadow: 0 4px 16px rgba(10, 34, 64, 0.05);
}

.honor-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(248, 250, 252, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

[data-theme="light"] .honor-tab-btn,
body:not(.dark-mode) .honor-tab-btn {
  color: #475569;
}

.honor-tab-btn:hover {
  color: #ffffff;
  background: rgba(207, 169, 94, 0.15);
}

[data-theme="light"] .honor-tab-btn:hover,
body:not(.dark-mode) .honor-tab-btn:hover {
  color: #0a2240;
  background: rgba(207, 169, 94, 0.14);
}

.honor-tab-btn.active {
  background: linear-gradient(135deg, #cfa95e, #b8934a);
  color: #061326 !important;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(207, 169, 94, 0.35);
}

.honor-tab-count {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.honor-tab-btn.active .honor-tab-count {
  background: #061326;
  color: #cfa95e;
}

/* ═══════════════ MAIN HONOR STUDENT CARD ═══════════════ */
.grad-honors-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
}

.honor-student-card {
  position: relative;
  background: linear-gradient(150deg, rgba(11, 32, 60, 0.94) 0%, rgba(6, 19, 38, 0.98) 100%);
  border: 1.5px solid rgba(207, 169, 94, 0.45);
  border-radius: 24px;
  padding: 14px 28px 20px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.55), 0 0 50px rgba(207, 169, 94, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

[data-theme="light"] .honor-student-card,
body:not(.dark-mode) .honor-student-card {
  background: linear-gradient(150deg, #ffffff 0%, #fbfcfe 100%);
  border-color: rgba(184, 147, 74, 0.38);
  box-shadow: 0 18px 45px rgba(10, 34, 64, 0.08), 0 2px 10px rgba(10, 34, 64, 0.03);
}

.honor-student-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 65px rgba(207, 169, 94, 0.22);
  border-color: rgba(207, 169, 94, 0.75);
}

[data-theme="light"] .honor-student-card:hover,
body:not(.dark-mode) .honor-student-card:hover {
  box-shadow: 0 24px 60px rgba(10, 34, 64, 0.12), 0 4px 16px rgba(184, 147, 74, 0.15);
  border-color: rgba(184, 147, 74, 0.7);
}

.honor-card-ambient {
  position: absolute !important;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 169, 94, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0 !important;
}

[data-theme="light"] .honor-card-ambient,
body:not(.dark-mode) .honor-card-ambient {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
}

/* ── 1. Top Badges Row ── */
.honor-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(207, 169, 94, 0.2);
}

[data-theme="light"] .honor-card-topbar,
body:not(.dark-mode) .honor-card-topbar {
  border-bottom-color: rgba(184, 147, 74, 0.2);
}

.honor-topbar-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.honor-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfa95e, #b8934a);
  color: #061326 !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(207, 169, 94, 0.35);
}

.honor-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 700;
}

[data-theme="light"] .honor-status-pill,
body:not(.dark-mode) .honor-status-pill {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #047857;
}

.honor-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: honorPulse 2s infinite ease-in-out;
}

.honor-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #7fe4ff;
  font-size: 0.82rem;
  font-weight: 700;
}

[data-theme="light"] .honor-kicker-tag,
body:not(.dark-mode) .honor-kicker-tag {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

.honor-badge-shimmer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(207, 169, 94, 0.22), rgba(207, 169, 94, 0.08));
  border: 1.5px solid #cfa95e;
  color: #fbe3a1;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(207, 169, 94, 0.25);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .honor-badge-shimmer,
body:not(.dark-mode) .honor-badge-shimmer {
  background: linear-gradient(135deg, rgba(207, 169, 94, 0.18), rgba(207, 169, 94, 0.06));
  border-color: #b8934a;
  color: #8c671a;
  box-shadow: 0 2px 10px rgba(184, 147, 74, 0.15);
}

.honor-badge-shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: honorShine 3.5s infinite;
}

@keyframes honorShine {
  0% { left: -100%; }
  30%, 100% { left: 180%; }
}

/* ── 2. Card Body Grid ── */
.honor-card-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Aside: Portrait, Flags & Mini Teaser */
.honor-card-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.honor-avatar-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #cfa95e;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 30px rgba(207, 169, 94, 0.2);
  background: #061326;
}

[data-theme="light"] .honor-avatar-wrap,
body:not(.dark-mode) .honor-avatar-wrap {
  border-color: #b8934a;
  box-shadow: 0 12px 30px rgba(10, 34, 64, 0.12), 0 0 20px rgba(184, 147, 74, 0.12);
  background: #f1f5f9;
}

.honor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.honor-avatar-wrap:hover .honor-avatar-img {
  transform: scale(1.05);
}

.honor-avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(6, 19, 38, 0.95) 0%, rgba(6, 19, 38, 0.6) 65%, transparent 100%);
  display: flex;
  justify-content: center;
}

[data-theme="light"] .honor-avatar-overlay,
body:not(.dark-mode) .honor-avatar-overlay {
  background: linear-gradient(0deg, rgba(10, 34, 64, 0.85) 0%, transparent 100%);
}

.honor-avatar-award-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f3d792;
  letter-spacing: 0.06em;
}

/* Countries flags box */
.honor-flags-box {
  background: rgba(6, 19, 38, 0.65);
  border: 1px solid rgba(207, 169, 94, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
}

[data-theme="light"] .honor-flags-box,
body:not(.dark-mode) .honor-flags-box {
  background: #f8fafc;
  border-color: rgba(184, 147, 74, 0.25);
}

.honor-flags-heading {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #cfa95e;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme="light"] .honor-flags-heading,
body:not(.dark-mode) .honor-flags-heading {
  color: #8c671a;
}

.honor-flags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.honor-flag-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f8fafc;
  transition: all 0.2s ease;
}

[data-theme="light"] .honor-flag-tag,
body:not(.dark-mode) .honor-flag-tag {
  background: #ffffff;
  border-color: rgba(10, 34, 64, 0.12);
  color: #1e293b;
}

.honor-flag-tag:hover {
  background: rgba(207, 169, 94, 0.2);
  border-color: rgba(207, 169, 94, 0.5);
  transform: translateY(-1px);
}

/* Teaser Mini-Gallery Box */
.honor-teaser-box {
  background: rgba(6, 19, 38, 0.65);
  border: 1px solid rgba(207, 169, 94, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
}

[data-theme="light"] .honor-teaser-box,
body:not(.dark-mode) .honor-teaser-box {
  background: #f8fafc;
  border-color: rgba(184, 147, 74, 0.25);
}

.honor-teaser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.honor-teaser-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #cfa95e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="light"] .honor-teaser-title,
body:not(.dark-mode) .honor-teaser-title {
  color: #8c671a;
}

.honor-teaser-link {
  background: none;
  border: none;
  color: #7fe4ff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

[data-theme="light"] .honor-teaser-link,
body:not(.dark-mode) .honor-teaser-link {
  color: #0284c7;
}

.honor-teaser-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

[data-theme="light"] .honor-teaser-link:hover,
body:not(.dark-mode) .honor-teaser-link:hover {
  color: #0369a1;
}

.honor-gallery-preview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.honor-teaser-thumb-btn {
  background: transparent;
  border: 1px solid rgba(207, 169, 94, 0.35);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.honor-teaser-thumb-btn:hover {
  transform: scale(1.08);
  border-color: #cfa95e;
  box-shadow: 0 4px 12px rgba(207, 169, 94, 0.3);
}

.honor-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Main Column */
.honor-card-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.honor-profile-header {
  margin-bottom: 2px;
}

.honor-student-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.2;
}

[data-theme="light"] .honor-student-name,
body:not(.dark-mode) .honor-student-name {
  color: #0a2240;
}

.honor-student-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #cfa95e;
  line-height: 1.5;
}

[data-theme="light"] .honor-student-role,
body:not(.dark-mode) .honor-student-role {
  color: #926e22;
}

/* 4 Metrics Grid (Symmetrical & Clean) */
.honor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.honor-stat-card {
  background: rgba(6, 19, 38, 0.7);
  border: 1px solid rgba(207, 169, 94, 0.28);
  border-radius: 16px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s ease;
}

[data-theme="light"] .honor-stat-card,
body:not(.dark-mode) .honor-stat-card {
  background: #f8fafc;
  border-color: rgba(184, 147, 74, 0.25);
}

.honor-stat-card:hover {
  background: rgba(10, 32, 60, 0.9);
  border-color: rgba(207, 169, 94, 0.6);
  transform: translateY(-2px);
}

[data-theme="light"] .honor-stat-card:hover,
body:not(.dark-mode) .honor-stat-card:hover {
  background: #ffffff;
  border-color: rgba(184, 147, 74, 0.55);
  box-shadow: 0 6px 18px rgba(10, 34, 64, 0.07);
}

.honor-stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.honor-stat-icon {
  font-size: 1.25rem;
}

.honor-stat-val {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

[data-theme="light"] .honor-stat-val,
body:not(.dark-mode) .honor-stat-val {
  color: #0a2240;
}

.honor-stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cfa95e;
  line-height: 1.35;
}

[data-theme="light"] .honor-stat-label,
body:not(.dark-mode) .honor-stat-label {
  color: #8c671a;
}

.honor-stat-sub {
  font-size: 0.74rem;
  color: rgba(248, 250, 252, 0.65);
  margin-top: 3px;
  line-height: 1.35;
}

[data-theme="light"] .honor-stat-sub,
body:not(.dark-mode) .honor-stat-sub {
  color: #64748b;
}

/* Highlights Box (Key Milestones) */
.honor-highlights-box {
  background: linear-gradient(135deg, rgba(207, 169, 94, 0.1), rgba(6, 19, 38, 0.75));
  border: 1px solid rgba(207, 169, 94, 0.35);
  border-left: 4px solid #cfa95e;
  border-radius: 18px;
  padding: 18px 22px;
}

[data-theme="light"] .honor-highlights-box,
body:not(.dark-mode) .honor-highlights-box {
  background: linear-gradient(135deg, rgba(207, 169, 94, 0.1), #f8fafc);
  border-color: rgba(184, 147, 74, 0.3);
  border-left-color: #b8934a;
}

.honor-highlights-heading {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f3d792;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .honor-highlights-heading,
body:not(.dark-mode) .honor-highlights-heading {
  color: #8c671a;
}

.honor-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.honor-highlight-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] .honor-highlight-row,
body:not(.dark-mode) .honor-highlight-row {
  color: #334155;
}

.honor-highlight-bullet {
  color: #cfa95e;
  font-size: 0.9rem;
}

.honor-highlight-row strong {
  color: #ffffff;
  font-weight: 700;
}

[data-theme="light"] .honor-highlight-row strong,
body:not(.dark-mode) .honor-highlight-row strong {
  color: #0a2240;
}

/* Quote Box */
.honor-quote-box {
  position: relative;
  background: rgba(6, 19, 38, 0.55);
  border-radius: 16px;
  padding: 16px 20px 16px 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .honor-quote-box,
body:not(.dark-mode) .honor-quote-box {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(10, 34, 64, 0.08);
}

.honor-quote-icon {
  position: absolute;
  top: 10px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: #cfa95e;
  opacity: 0.6;
}

[data-theme="light"] .honor-quote-icon,
body:not(.dark-mode) .honor-quote-icon {
  color: #b8934a;
}

.honor-quote-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.82);
  font-style: italic;
  margin: 0;
}

[data-theme="light"] .honor-quote-text,
body:not(.dark-mode) .honor-quote-text {
  color: #334155;
}

/* Tags */
.honor-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.honor-tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

[data-theme="light"] .honor-tag-pill,
body:not(.dark-mode) .honor-tag-pill {
  background: #f1f5f9;
  border-color: rgba(10, 34, 64, 0.1);
  color: #1e293b;
}

.honor-tag-pill:hover {
  background: rgba(207, 169, 94, 0.2);
  border-color: rgba(207, 169, 94, 0.5);
  color: #ffffff;
}

[data-theme="light"] .honor-tag-pill:hover,
body:not(.dark-mode) .honor-tag-pill:hover {
  background: rgba(207, 169, 94, 0.16);
  border-color: #b8934a;
  color: #0a2240;
}

/* ── 3. Bottom Action Bar (Command Center) ── */
.honor-card-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(207, 169, 94, 0.2);
}

[data-theme="light"] .honor-card-actions-bar,
body:not(.dark-mode) .honor-card-actions-bar {
  border-top-color: rgba(184, 147, 74, 0.2);
}

.honor-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s ease;
  text-decoration: none;
  border: none;
  width: 100%;
}

.honor-btn-primary {
  background: linear-gradient(135deg, #f3d792, #cfa95e, #b8934a);
  color: #061326 !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(207, 169, 94, 0.35);
}

.honor-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(207, 169, 94, 0.5);
  filter: brightness(1.08);
}

.honor-btn-secondary {
  background: rgba(207, 169, 94, 0.08);
  border: 1.5px solid rgba(207, 169, 94, 0.4);
  color: #f3d792;
}

[data-theme="light"] .honor-btn-secondary,
body:not(.dark-mode) .honor-btn-secondary {
  background: #ffffff;
  border-color: rgba(184, 147, 74, 0.45);
  color: #8c671a;
}

.honor-btn-secondary:hover {
  background: rgba(207, 169, 94, 0.2);
  border-color: rgba(207, 169, 94, 0.7);
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="light"] .honor-btn-secondary:hover,
body:not(.dark-mode) .honor-btn-secondary:hover {
  background: rgba(207, 169, 94, 0.12);
  color: #0a2240;
}

.honor-btn-gallery {
  background: rgba(0, 210, 255, 0.08);
  border: 1.5px solid rgba(0, 210, 255, 0.38);
  color: #7fe4ff;
}

[data-theme="light"] .honor-btn-gallery,
body:not(.dark-mode) .honor-btn-gallery {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.35);
  color: #0284c7;
}

.honor-btn-gallery:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: rgba(0, 210, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="light"] .honor-btn-gallery:hover,
body:not(.dark-mode) .honor-btn-gallery:hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
}

/* ═══════════════ RESPONSIVE BEHAVIOR ═══════════════ */
@media (max-width: 960px) {
  .honor-student-card {
    padding: 14px 20px 20px;
    gap: 18px;
  }

  .honor-card-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .honor-card-aside {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .honor-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .honor-card-actions-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .honor-students-section,
  .grad-honors-wrap {
    padding: 14px 12px 18px;
  }

  .honor-student-card {
    padding: 12px 14px 16px;
    border-radius: 18px;
    gap: 14px;
  }

  .honor-card-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .honor-student-name {
    font-size: 1.45rem;
  }

  .honor-student-role {
    font-size: 0.95rem;
  }

  .honor-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .honor-stat-card {
    padding: 10px 12px;
  }

  .honor-stat-val {
    font-size: 1.1rem;
  }

  .honor-highlights-box {
    padding: 14px 16px;
  }

  .honor-quote-box {
    padding: 14px 16px 14px 36px;
  }
}

/* ═══════════════ HONOR STUDENT MODAL ═══════════════ */
.honor-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 10, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.honor-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.honor-modal-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: linear-gradient(150deg, #091f38 0%, #051427 100%);
  border: 1.5px solid rgba(207, 169, 94, 0.5);
  border-radius: 26px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(207, 169, 94, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: honorModalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.honor-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 19, 38, 0.8);
  border: 1px solid rgba(207, 169, 94, 0.4);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.honor-modal-close:hover {
  background: #cfa95e;
  color: #061326;
  border-color: #cfa95e;
  transform: rotate(90deg);
}

.honor-modal-body {
  overflow-y: auto;
  padding: 36px 40px;
  max-height: calc(90vh - 20px);
}

.honor-modal-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 26px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(207, 169, 94, 0.25);
  margin-bottom: 24px;
}

.honor-modal-avatar {
  width: 140px;
  height: 170px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid #cfa95e;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.honor-modal-hero-info h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.honor-modal-hero-info p {
  color: #cfa95e;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 12px;
}

.honor-modal-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.honor-modal-tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(6, 19, 38, 0.7);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(207, 169, 94, 0.2);
}

.honor-modal-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.75);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.honor-modal-tab:hover {
  color: #ffffff;
  background: rgba(207, 169, 94, 0.12);
}

.honor-modal-tab.active {
  background: #cfa95e;
  color: #061326;
  box-shadow: 0 4px 14px rgba(207, 169, 94, 0.3);
}

.honor-modal-tab-pane {
  display: none;
}

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

/* Modal Bio Tab */
.honor-modal-bio-p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.88);
  margin-bottom: 16px;
}

/* Modal Timeline Tab */
.honor-modal-timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.honor-modal-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 2px;
  background: linear-gradient(180deg, #cfa95e, rgba(207, 169, 94, 0.2));
}

.honor-timeline-node {
  position: relative;
}

.honor-timeline-marker {
  position: absolute;
  top: 4px;
  left: -32px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #061326;
  border: 2px solid #cfa95e;
  box-shadow: 0 0 10px rgba(207, 169, 94, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #f3d792;
}

.honor-timeline-content {
  background: rgba(6, 19, 38, 0.6);
  border: 1px solid rgba(207, 169, 94, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
}

.honor-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.honor-timeline-year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f3d792;
}

.honor-timeline-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #7fe4ff;
}

.honor-timeline-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.honor-timeline-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.8);
  margin: 0;
}

/* Modal Certificates Tab */
.honor-certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.honor-cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(6, 19, 38, 0.65);
  border: 1px solid rgba(207, 169, 94, 0.28);
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

.honor-cert-item:hover {
  background: rgba(10, 32, 60, 0.85);
  border-color: rgba(207, 169, 94, 0.6);
  transform: translateY(-2px);
}

.honor-cert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.honor-cert-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.honor-cert-org {
  font-size: 0.82rem;
  color: #cfa95e;
  margin: 0;
}

/* Modal Light Mode Theming */
[data-theme="light"] .honor-modal-container,
body:not(.dark-mode) .honor-modal-container {
  background: #ffffff;
  border-color: rgba(184, 147, 74, 0.45);
  box-shadow: 0 30px 75px rgba(10, 34, 64, 0.22);
}

[data-theme="light"] .honor-modal-close,
body:not(.dark-mode) .honor-modal-close {
  background: #f1f5f9;
  border-color: rgba(184, 147, 74, 0.35);
  color: #0a2240;
}

[data-theme="light"] .honor-modal-hero-info h3,
body:not(.dark-mode) .honor-modal-hero-info h3 {
  color: #0a2240;
}

[data-theme="light"] .honor-modal-hero-info p,
body:not(.dark-mode) .honor-modal-hero-info p {
  color: #8c671a;
}

[data-theme="light"] .honor-modal-tab-nav,
body:not(.dark-mode) .honor-modal-tab-nav {
  background: #f1f5f9;
  border-color: rgba(184, 147, 74, 0.25);
}

[data-theme="light"] .honor-modal-tab,
body:not(.dark-mode) .honor-modal-tab {
  color: #475569;
}

[data-theme="light"] .honor-modal-tab.active,
body:not(.dark-mode) .honor-modal-tab.active {
  background: #b8934a;
  color: #ffffff !important;
}

[data-theme="light"] .honor-modal-bio-p,
body:not(.dark-mode) .honor-modal-bio-p {
  color: #334155;
}

[data-theme="light"] .honor-timeline-content,
body:not(.dark-mode) .honor-timeline-content {
  background: #f8fafc;
  border-color: rgba(184, 147, 74, 0.25);
}

[data-theme="light"] .honor-timeline-year,
body:not(.dark-mode) .honor-timeline-year {
  color: #8c671a;
}

[data-theme="light"] .honor-timeline-title,
body:not(.dark-mode) .honor-timeline-title {
  color: #0a2240;
}

[data-theme="light"] .honor-timeline-desc,
body:not(.dark-mode) .honor-timeline-desc {
  color: #475569;
}

[data-theme="light"] .honor-cert-item,
body:not(.dark-mode) .honor-cert-item {
  background: #f8fafc;
  border-color: rgba(184, 147, 74, 0.25);
}

[data-theme="light"] .honor-cert-name,
body:not(.dark-mode) .honor-cert-name {
  color: #0a2240;
}

[data-theme="light"] .honor-cert-org,
body:not(.dark-mode) .honor-cert-org {
  color: #8c671a;
}

/* Modal Responsive adjustments */
@media (max-width: 960px) {
  .honor-modal-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .honor-modal-avatar {
    margin: 0 auto;
  }

  .honor-modal-hero-badges {
    justify-content: center;
  }

  .honor-certs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .honor-modal-body {
    padding: 24px 18px;
  }

  .honor-modal-tab-nav {
    flex-direction: column;
  }
}


/* Honor Student Media Gallery */
.honor-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.honor-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(207, 169, 94, 0.35);
  background: #061326;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: all 0.28s ease;
}

.honor-gallery-item:hover {
  transform: translateY(-3px);
  border-color: #cfa95e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(207, 169, 94, 0.3);
}

.honor-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.honor-gallery-item:hover .honor-gallery-img {
  transform: scale(1.06);
}

.honor-gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.honor-gallery-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.honor-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(6, 19, 38, 0.95) 0%, rgba(6, 19, 38, 0.7) 60%, transparent 100%);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  z-index: 2;
}

/* Preview strip styles handled above */

@media (max-width: 768px) {
  .honor-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .honor-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   VIDEODƏRSLƏR FƏNN KARUSELİ VƏ SÜRÜŞDÜRÜLƏ BİLƏN XRONOLOJİ ZOLAĞI
   ═══════════════════════════════════════════════════════════════════════ */
.lecture-dept-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.lecture-dept-grid {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 10px 4px 18px !important;
  margin-bottom: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(6, 19, 38, 0.4);
  flex: 1;
}

.lecture-dept-grid::-webkit-scrollbar {
  height: 6px;
}

.lecture-dept-grid::-webkit-scrollbar-track {
  background: rgba(6, 19, 38, 0.6);
  border-radius: 999px;
}

.lecture-dept-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--gold), #b8934a);
  border-radius: 999px;
}

/* ═══════════════ LECTURE DEPARTMENT CARDS — BASE & MODE-AWARE ═══════════════ */
.lecture-dept-card {
  min-width: 255px !important;
  max-width: 280px !important;
  flex: 0 0 auto !important;
  cursor: pointer;
  border-radius: 18px !important;
  user-select: none;
  padding: 16px 18px !important;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* DAYTIME (LIGHT MODE) — Crisp, High-Contrast Academic Styling */
body:not(.dark-mode) .lecture-dept-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-top: 3.5px solid #0b2545 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}

body:not(.dark-mode) .lecture-dept-card:hover {
  background: #ffffff !important;
  border-color: #c59b27 !important;
  border-top-color: #c59b27 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
  transform: translateY(-4px) !important;
}

body:not(.dark-mode) .lecture-dept-card .lecture-dept-icon {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0b2545 !important;
}

body:not(.dark-mode) .lecture-dept-card:hover .lecture-dept-icon {
  background: #0b2545 !important;
  border-color: #0b2545 !important;
  color: #ffd700 !important;
}

body:not(.dark-mode) .lecture-dept-card .lecture-dept-name {
  color: #0b2545 !important;
  font-weight: 800 !important;
  font-size: 0.96rem !important;
  letter-spacing: -0.01em !important;
}

body:not(.dark-mode) .lecture-dept-card .lecture-dept-meta {
  color: #334155 !important;
  font-weight: 600 !important;
}

body:not(.dark-mode) .lecture-dept-card .lecture-dept-badge {
  background: #f1f5f9 !important;
  color: #0b2545 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 800 !important;
}

/* Active Subject Card in Daytime Mode */
body:not(.dark-mode) .lecture-dept-card.active {
  background: linear-gradient(135deg, #071930 0%, #0d2b52 100%) !important;
  border: 1.5px solid #c59b27 !important;
  border-top: 3.5px solid #c59b27 !important;
  box-shadow: 0 12px 30px rgba(7, 25, 48, 0.25) !important;
}

body:not(.dark-mode) .lecture-dept-card.active .lecture-dept-icon {
  background: rgba(197, 155, 39, 0.2) !important;
  border-color: rgba(197, 155, 39, 0.5) !important;
  color: #ffd700 !important;
}

body:not(.dark-mode) .lecture-dept-card.active .lecture-dept-name {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .lecture-dept-card.active .lecture-dept-meta {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}

body:not(.dark-mode) .lecture-dept-card.active .lecture-dept-badge {
  background: #c59b27 !important;
  border-color: #c59b27 !important;
  color: #071930 !important;
  font-weight: 900 !important;
}

body:not(.dark-mode) .lecture-dept-nav-btn {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0b2545 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}

body:not(.dark-mode) .lecture-dept-nav-btn:hover {
  background: #0b2545 !important;
  border-color: #0b2545 !important;
  color: #ffd700 !important;
  box-shadow: 0 8px 22px rgba(11, 37, 69, 0.25) !important;
}

/* NIGHTTIME (DARK MODE) — Glowing Glass Aesthetics */
body.dark-mode .lecture-dept-card {
  background: linear-gradient(145deg, rgba(10, 32, 60, 0.95), rgba(6, 19, 38, 0.98)) !important;
  border: 1.5px solid rgba(207, 169, 94, 0.35) !important;
  border-top: 3.5px solid rgba(207, 169, 94, 0.6) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .lecture-dept-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(207, 169, 94, 0.25) !important;
}

body.dark-mode .lecture-dept-card .lecture-dept-icon {
  background: rgba(15, 34, 64, 0.8) !important;
  border: 1px solid rgba(207, 169, 94, 0.3) !important;
  color: var(--gold-light) !important;
}

body.dark-mode .lecture-dept-card .lecture-dept-name {
  color: #f8fafc !important;
  font-weight: 800 !important;
}

body.dark-mode .lecture-dept-card .lecture-dept-meta {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

body.dark-mode .lecture-dept-card .lecture-dept-badge {
  background: rgba(15, 34, 64, 0.8) !important;
  border: 1px solid rgba(207, 169, 94, 0.3) !important;
  color: var(--gold-light) !important;
}

body.dark-mode .lecture-dept-card.active {
  background: linear-gradient(145deg, rgba(207, 169, 94, 0.25), rgba(6, 19, 38, 0.98)) !important;
  border-color: var(--gold) !important;
  border-top-color: var(--gold) !important;
  box-shadow: 0 10px 30px rgba(207, 169, 94, 0.35) !important;
}

body.dark-mode .lecture-dept-card.active .lecture-dept-icon {
  background: rgba(207, 169, 94, 0.25) !important;
  border-color: var(--gold) !important;
  color: #ffd700 !important;
}

body.dark-mode .lecture-dept-card.active .lecture-dept-name {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.dark-mode .lecture-dept-card.active .lecture-dept-meta {
  color: #cbd5e1 !important;
}

body.dark-mode .lecture-dept-card.active .lecture-dept-badge {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #061326 !important;
  font-weight: 900 !important;
}

body.dark-mode .lecture-dept-nav-btn {
  background: rgba(10, 34, 64, 0.95) !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
}

body.dark-mode .lecture-dept-nav-btn:hover {
  background: var(--gold) !important;
  color: #061326 !important;
}

.lecture-filter {
  display: flex !important;
  align-items: center;
  gap: 10px;
  overflow-x: auto !important;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  margin-bottom: 24px;
  white-space: nowrap;
}

.lecture-filter::-webkit-scrollbar {
  display: none;
}

.lecture-filter .filter-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   BDRNK 2026 — OFFICIAL CERTIFICATES & DIPLOMAS SHOWCASE
   Ultra-aesthetic, Trophy & Accolades Section
   ══════════════════════════════════════════════════════════════ */

.cert-section {
  position: relative;
  background: var(--bg);
  padding: 90px 0 110px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cert-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

.cert-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, #b8934a, transparent 70%);
}

.cert-glow-2 {
  width: 450px;
  height: 450px;
  bottom: -50px;
  left: -80px;
  background: radial-gradient(circle, #0a2240, transparent 70%);
}

.cert-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(184, 147, 74, 0.12), rgba(10, 34, 64, 0.08));
  border: 1px solid rgba(184, 147, 74, 0.35);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(184, 147, 74, 0.08);
}

.cert-gold-star {
  color: var(--gold);
  font-size: 0.9rem;
}

.cert-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.cert-main-desc {
  max-width: 780px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── Trophies & Stats Bar ─── */
.cert-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 40px;
}

.cert-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(10, 34, 64, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.cert-stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.85;
}

.cert-stat-gold::after {
  background: linear-gradient(90deg, #d4af37, #ffd700);
}

.cert-stat-silver::after {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.cert-stat-bronze::after {
  background: linear-gradient(90deg, #b45309, #d97706);
}

.cert-stat-total::after {
  background: linear-gradient(90deg, #0a2240, #b8934a);
}

.cert-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10, 34, 64, 0.08);
  border-color: var(--gold-light);
}

.cert-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.cert-stat-info {
  text-align: left;
}

.cert-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.cert-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 2px;
}

/* ─── Controls & Filters Panel ─── */
.cert-controls-panel {
  max-width: 1100px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-filters-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(10, 34, 64, 0.02);
}

.cert-filter-btn:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-1px);
}

.cert-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.25);
}

.cert-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(184, 147, 74, 0.18);
  color: var(--gold);
}

.cert-filter-btn.active .cert-btn-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.cert-secondary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cert-year-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cert-year-chip {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-year-chip:hover {
  color: var(--text);
  background: var(--surface);
}

.cert-year-chip.active {
  background: var(--surface);
  color: var(--gold);
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(10, 34, 64, 0.04);
}

.cert-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  min-width: 240px;
  flex: 1;
  max-width: 320px;
  transition: all 0.2s ease;
}

.cert-search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 74, 0.15);
}

.cert-search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.84rem;
  color: var(--text);
}

.cert-download-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(184, 147, 74, 0.12), rgba(184, 147, 74, 0.05));
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cert-download-pdf-btn:hover {
  background: var(--gold);
  color: #061326;
  box-shadow: 0 4px 16px rgba(184, 147, 74, 0.35);
  transform: translateY(-2px);
}

/* ─── Certificates Grid ─── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(10, 34, 64, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  position: relative;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(10, 34, 64, 0.12);
  border-color: var(--gold-light);
}

.cert-card-media {
  position: relative;
  width: 100%;
  height: 230px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cert-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.4s ease;
}

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

/* Ribbon Badges */
.cert-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cert-ribbon-gold {
  background: linear-gradient(135deg, #ffd700, #b8934a);
  color: #061529;
}

.cert-ribbon-silver {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  color: #0f172a;
}

.cert-ribbon-bronze {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  color: #ffffff;
}

.cert-ribbon-honor {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #ffffff;
}

/* Hover Quick Preview Action */
.cert-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 34, 64, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.cert-card:hover .cert-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cert-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #0a2240;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.cert-card:hover .cert-overlay-btn {
  transform: translateY(0);
}

.cert-overlay-btn:hover {
  background: var(--gold);
  color: #061326;
}

/* Card Body */
.cert-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.cert-card-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cert-tag-sport {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.cert-tag-year {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(184, 147, 74, 0.12);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.cert-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}

.cert-card-sub {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.cert-card-org {
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cert-card-org-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cert-view-link {
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.78rem;
}

.cert-view-link:hover {
  text-decoration: underline;
}

/* Empty State */
.cert-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.cert-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cert-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.cert-empty-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ═══════════════ LIGHTBOX / MODAL ═══════════════ */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 19, 38, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(184, 147, 74, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cert-modal-backdrop.active .cert-modal-dialog {
  transform: scale(1);
}

.cert-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.cert-modal-close:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
  transform: rotate(90deg);
}

.cert-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: #0a2240;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.cert-nav-prev {
  left: 18px;
}

.cert-nav-next {
  right: 18px;
}

.cert-modal-nav:hover {
  background: var(--gold);
  color: #061326;
  transform: translateY(-50%) scale(1.1);
}

.cert-modal-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  max-height: 90vh;
  overflow: hidden;
}

.cert-modal-viewport {
  position: relative;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 440px;
}

.cert-modal-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.cert-zoom-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-zoom-btn:hover {
  background: var(--gold);
  color: #061326;
}

.cert-modal-counter {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-weight: 600;
}

.cert-zoom-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  cursor: grab;
}

.cert-zoom-stage:active {
  cursor: grabbing;
}

#cert-modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  user-select: none;
}

.cert-modal-sidebar {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  text-align: left;
  background: var(--surface);
}

.cert-modal-place-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.cert-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 20px;
}

.cert-modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cert-modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cert-meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.cert-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.cert-modal-dl-btn,
.cert-modal-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cert-modal-dl-btn {
  background: var(--accent);
  color: #ffffff;
}

.cert-modal-dl-btn:hover {
  background: var(--gold);
  color: #061326;
  box-shadow: 0 4px 16px rgba(184, 147, 74, 0.35);
}

.cert-modal-pdf-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cert-modal-pdf-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--surface-2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .cert-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-modal-body {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .cert-modal-viewport {
    min-height: 320px;
  }

  .cert-nav-prev {
    left: 8px;
  }

  .cert-nav-next {
    right: 8px;
  }
}

@media (max-width: 640px) {
  .cert-stats-row {
    grid-template-columns: 1fr;
  }

  .cert-secondary-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cert-search-box {
    max-width: 100%;
  }

  .cert-download-pdf-btn {
    justify-content: center;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   DIGITAL TROPHY CABINET & SPORTS HALL OF FAME
   Interactive 3D Pedestal & Accolades Showcase
   ══════════════════════════════════════════════════════════════ */

.sports-trophy-cabinet {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(184, 147, 74, 0.35);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 1100px;
  margin: 0 auto 46px;
  box-shadow: 0 16px 40px rgba(10, 34, 64, 0.08), 0 0 50px rgba(184, 147, 74, 0.06);
  position: relative;
  overflow: hidden;
}

.sports-trophy-cabinet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b8934a, #ffd700, #0a2240, #b8934a);
}

.trophy-cabinet-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.trophy-cabinet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(184, 147, 74, 0.12);
  border: 1px solid rgba(184, 147, 74, 0.3);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.trophy-cabinet-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.trophy-cabinet-desc {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─── Navigation Tabs ─── */
.trophy-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.trophy-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 34, 64, 0.03);
}

.trophy-tab-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--text);
}

.trophy-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(10, 34, 64, 0.25);
}

.trophy-tab-medal {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.medal-gold {
  background: linear-gradient(135deg, #ffd700, #b8934a);
  color: #061529;
}

.medal-silver {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  color: #0f172a;
}

.medal-bronze {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  color: #ffffff;
}

/* ─── Stage Display ─── */
.trophy-showcase-stage {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 34, 64, 0.04);
}

/* Left Pedestal Column */
.trophy-pedestal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at center, rgba(184, 147, 74, 0.15), transparent 70%);
  border-radius: 14px;
  position: relative;
}

.trophy-spotlight-beam {
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.18), transparent);
  filter: blur(12px);
  pointer-events: none;
}

.trophy-floating-icon {
  font-size: 5.2rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  animation: floatTrophy 3.5s ease-in-out infinite;
  margin-bottom: 14px;
}

@keyframes floatTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.trophy-pedestal-base {
  width: 170px;
  height: 20px;
  background: linear-gradient(90deg, #64748b, #94a3b8, #64748b);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.trophy-year-pillar {
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(184, 147, 74, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Right Content Column */
.trophy-content-side {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trophy-tier-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trophy-spotlight-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.trophy-spotlight-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.trophy-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 12px;
}

.trophy-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trophy-meta-pill strong {
  color: var(--text);
  font-weight: 700;
}

.trophy-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.trophy-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.trophy-btn-primary:hover {
  background: var(--gold);
  color: #061326;
  box-shadow: 0 4px 16px rgba(184, 147, 74, 0.35);
  transform: translateY(-2px);
}

.trophy-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.trophy-btn-secondary:hover {
  background: rgba(184, 147, 74, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .trophy-showcase-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trophy-content-side {
    text-align: center;
    align-items: center;
  }
  .trophy-tier-ribbon {
    align-self: center;
  }
  .trophy-meta-pills {
    justify-content: center;
  }
  .trophy-cta-actions {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   BDRNK 2026 — SCIENCE & FACULTY PUBLICATIONS PORTAL
   Official Institutional & International Research Showcase
   ══════════════════════════════════════════════════════════════ */

.science-section {
  position: relative;
  background: var(--bg-alt);
  padding: 95px 0 115px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.science-ambient-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

.science-glow-1 {
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, #0a2240, transparent 70%);
}

.science-glow-2 {
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, #b8934a, transparent 70%);
}

.science-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 34, 64, 0.08), rgba(184, 147, 74, 0.12));
  border: 1px solid rgba(184, 147, 74, 0.35);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.science-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.science-main-desc {
  max-width: 820px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── Ceremony Hero Spotlight Banner ─── */
.science-ceremony-banner {
  max-width: 1140px;
  margin: 0 auto 44px;
  background: var(--surface);
  border: 1px solid rgba(184, 147, 74, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 34, 64, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}

.science-ceremony-media {
  position: relative;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  background: #0f172a;
}

.science-ceremony-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.science-ceremony-banner:hover .science-ceremony-img {
  transform: scale(1.03);
}

.science-ceremony-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 34, 64, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 147, 74, 0.5);
  color: #ffd700;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.science-ceremony-content {
  padding: 36px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.science-ceremony-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.science-ceremony-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}

.science-ceremony-text {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.science-ceremony-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.science-btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.science-btn-doc:hover {
  background: var(--gold);
  color: #061326;
  box-shadow: 0 4px 16px rgba(184, 147, 74, 0.35);
  transform: translateY(-2px);
}

/* ─── Academic KPI Metrics ─── */
.science-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto 40px;
}

.science-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(10, 34, 64, 0.04);
  transition: all 0.3s ease;
  text-align: left;
}

.science-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(10, 34, 64, 0.08);
}

.science-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.science-stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.science-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 2px;
}

/* ─── Controls: Filter Tabs & Search ─── */
.science-controls {
  max-width: 1140px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.science-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.science-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.science-tab-btn:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-1px);
}

.science-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.25);
}

.science-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(184, 147, 74, 0.18);
  color: var(--gold);
}

.science-tab-btn.active .science-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.science-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.science-dept-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.science-dept-chip {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.science-dept-chip:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.science-dept-chip.active {
  background: rgba(184, 147, 74, 0.12);
  color: var(--gold);
  border-color: var(--gold);
}

.science-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  flex: 1;
  max-width: 340px;
  min-width: 240px;
}

.science-search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 74, 0.15);
}

.science-search-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.84rem;
  color: var(--text);
}

/* ─── Faculty Authors Grid ─── */
.science-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.science-author-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 4px 18px rgba(10, 34, 64, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.science-author-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 34, 64, 0.12);
  border-color: var(--gold-light);
}

.science-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.science-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.science-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #163a66);
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
  border: 2px solid rgba(184, 147, 74, 0.35);
  flex-shrink: 0;
}

.science-author-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.science-author-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.science-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Badges Row */
.science-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.science-badge-index {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-copernicus {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-erih {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-articles-count {
  background: rgba(184, 147, 74, 0.12);
  color: var(--gold);
  border: 1px solid rgba(184, 147, 74, 0.3);
}

/* Articles List */
.science-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  flex: 1;
}

.science-article-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.science-article-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.science-article-journal {
  font-size: 0.76rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.science-article-journal svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Card Footer with ORCID */
.science-card-footer {
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.science-orcid-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(166, 206, 57, 0.15);
  border: 1px solid #a6ce39;
  color: #4b660a;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.science-orcid-btn:hover {
  background: #a6ce39;
  color: #ffffff;
  transform: translateY(-1px);
}

.science-year-pill {
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .science-ceremony-banner {
    grid-template-columns: 1fr;
  }
  .science-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .science-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .science-search-input-wrap {
    max-width: 100%;
  }
  .science-authors-grid {
    grid-template-columns: 1fr;
  }
  .science-author-card {
    padding: 18px 16px;
  }
  .science-card-header {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .science-author-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
  .science-author-name {
    font-size: 0.98rem;
    line-height: 1.3;
  }
  .science-author-dept,
  .science-author-role {
    font-size: 0.76rem;
  }
  .science-badges-strip {
    gap: 5px;
    margin-top: 5px;
  }
  .science-badge-copernicus,
  .science-badge-erih,
  .science-badge-scope {
    font-size: 0.64rem;
    padding: 2px 6px;
  }
}

/* ═══════════════ SCIENCE OFFICIAL TABLE & VIEW SWITCHER ═══════════════ */
.science-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.science-view-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.science-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.science-view-btn:hover {
  color: var(--text);
  background: rgba(184, 147, 74, 0.08);
}

.science-view-btn.active {
  background: linear-gradient(135deg, var(--gold), #96742e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(184, 147, 74, 0.35);
}

/* Official Ministry Table */
.science-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
  -webkit-overflow-scrolling: touch;
}

.science-official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
  min-width: 1100px;
}

.science-official-table thead {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.science-official-table th {
  padding: 14px 12px;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}

.science-official-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  line-height: 1.5;
}

.science-official-table tbody tr {
  transition: background 0.18s ease;
}

.science-official-table tbody tr:hover {
  background: rgba(184, 147, 74, 0.05);
}

.science-td-no {
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  font-family: var(--font-mono);
  width: 45px;
}

.science-td-author {
  font-weight: 700;
  color: var(--text);
  min-width: 160px;
}

.science-td-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  min-width: 150px;
}

.science-td-works {
  min-width: 280px;
}

.science-td-journals {
  min-width: 220px;
}

.science-table-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: decimal;
}

.science-table-list li {
  margin-bottom: 8px;
}

.science-table-list li:last-child {
  margin-bottom: 0;
}

.science-td-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  text-align: center;
}

.science-td-scope {
  white-space: nowrap;
  text-align: center;
}

.science-scope-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.science-scope-badge.yerli {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.science-scope-badge.xarici {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.science-scope-badge.both {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.science-td-orcid {
  white-space: nowrap;
  text-align: center;
}

.science-table-orcid-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a6ce39;
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(166, 206, 57, 0.12);
  border: 1px solid rgba(166, 206, 57, 0.4);
  transition: all 0.2s ease;
}

.science-table-orcid-link:hover {
  background: #a6ce39;
  color: #ffffff;
}

.science-td-check {
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  width: 70px;
}

.science-check-yes {
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.science-check-no {
  color: var(--text-dim);
  opacity: 0.5;
}

/* Card Number Pill */
.science-card-no-pill {
  position: static !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
  margin-left: auto !important;
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: var(--gold) !important;
  background: rgba(184, 147, 74, 0.12) !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(184, 147, 74, 0.28) !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.science-card-work-block {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(184, 147, 74, 0.04);
  border-left: 3px solid var(--gold);
  transition: background 0.2s ease;
}

.science-card-work-block:hover {
  background: rgba(184, 147, 74, 0.08);
}

.science-work-num {
  font-weight: 800;
  color: var(--gold);
  margin-right: 4px;
}

.science-work-journal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-dim);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ═══════════════ SCIENCE CARD COMPONENT POLISH ═══════════════ */
.science-card-header,
.science-card-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--border) !important;
}

.science-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.science-author-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.science-author-avatar-wrap .science-country-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.85rem;
  background: var(--surface);
  border-radius: 50%;
  padding: 1px 3px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  line-height: 1;
}

.science-badges-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 0;
}

.science-badge-copernicus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.science-badge-erih {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.science-badge-scope {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

.science-badge-scope.local {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.science-badge-scope.foreign {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.science-author-dept,
.science-author-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
  font-weight: 500;
}

.science-articles-body {
  flex: 1;
  margin-bottom: 14px;
}

.science-articles-counter {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.science-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   HIGH-CONTRAST LIGHT MODE (DAYTIME) & THEME ADAPTATION
   Fixes unreadable/washed-out text in daytime mode
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Science Portal Daytime Contrast Enhancements ── */
.science-chip,
.science-dept-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #1e3a5f;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.science-chip:hover,
.science-dept-chip:hover {
  color: #0a2240;
  background: #ffffff;
  border-color: #cbd5e1;
}

.science-chip.active,
.science-dept-chip.active {
  background: #0a2240;
  color: #ffffff;
  border-color: #0a2240;
  box-shadow: 0 3px 10px rgba(10, 34, 64, 0.22);
}

.science-results-info {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.science-card-no-pill {
  color: #0a2240;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-weight: 800;
}

.science-author-name {
  color: #0a2240;
  font-weight: 800;
}

.science-author-dept,
.science-author-role {
  color: #334155;
  font-weight: 600;
}

.science-articles-counter {
  color: #8c6819;
  font-weight: 800;
}

.science-card-work-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #b8934a;
}

.science-article-title {
  color: #0f172a;
  font-weight: 700;
}

.science-work-num {
  color: #8c6819;
  font-weight: 800;
}

.science-work-journal-tag {
  color: #1e3a5f;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.science-year-pill {
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
}

.science-orcid-btn {
  background: rgba(166, 206, 57, 0.18);
  border: 1.5px solid #65a30d;
  color: #1a4d04;
  font-weight: 800;
}

.science-table-orcid-link {
  color: #1a4d04;
  background: rgba(166, 206, 57, 0.18);
  border: 1.5px solid #65a30d;
  font-weight: 800;
}

.science-scope-badge.local {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
  font-weight: 700;
}

.science-scope-badge.foreign {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  font-weight: 700;
}

.science-scope-badge.both {
  background: #f3e8ff;
  color: #581c87;
  border: 1px solid #d8b4fe;
  font-weight: 700;
}

.science-badge-copernicus {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
  font-weight: 800;
}

.science-badge-erih {
  background: #f3e8ff;
  color: #581c87;
  border: 1px solid #d8b4fe;
  font-weight: 800;
}

.science-official-table thead {
  background: linear-gradient(135deg, #0a2240, #163a66);
  color: #ffffff;
}

.science-official-table th {
  color: #ffffff;
  border-bottom: 2px solid #b8934a;
}

.science-official-table td {
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

.science-official-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.science-official-table tbody tr:hover {
  background: rgba(184, 147, 74, 0.08);
}

.science-td-no {
  color: #0a2240;
  font-weight: 800;
}

.science-td-author {
  color: #0a2240;
  font-weight: 800;
}

.science-td-role {
  color: #334155;
  font-weight: 600;
}

.science-td-journals {
  color: #1e3a5f;
  font-weight: 600;
}

.science-td-year {
  color: #0f172a;
  font-weight: 700;
}

.science-check-yes {
  color: #15803d;
  background: #dcfce7;
  border: 1.5px solid #22c55e;
  font-weight: 900;
}

.science-check-no {
  color: #64748b;
  font-weight: 600;
  opacity: 1;
}

.science-ceremony-kicker {
  color: #8c6819;
  font-weight: 800;
}

.science-ceremony-text {
  color: #334155;
}

.science-stat-label {
  color: #334155;
  font-weight: 700;
}

/* ── 2. Certificates & General Daytime Contrast ── */
.cert-card-sub {
  color: #334155;
}

.cert-card-org {
  color: #1e293b;
}

.cert-tag-year {
  color: #785310;
  background: rgba(184, 147, 74, 0.16);
  border: 1px solid rgba(184, 147, 74, 0.35);
}

.cert-view-link {
  color: #785310;
  font-weight: 800;
}

.cert-stat-label {
  color: #334155;
  font-weight: 700;
}

/* ── 3. Dark Mode Overrides (Preserves Dark Mode Beauty) ── */
body.dark-mode .science-chip,
body.dark-mode .science-dept-chip {
  background: var(--surface-2);
  color: var(--text-dim);
  border-color: transparent;
}

body.dark-mode .science-chip.active,
body.dark-mode .science-dept-chip.active {
  background: rgba(184, 147, 74, 0.2);
  color: #ffd700;
  border-color: var(--gold);
}

body.dark-mode .science-results-info {
  color: var(--text-secondary);
}

body.dark-mode .science-card-no-pill {
  color: #ffd700;
  background: rgba(184, 147, 74, 0.18);
  border-color: rgba(184, 147, 74, 0.35);
}

body.dark-mode .science-author-name {
  color: #f1f5f9;
}

body.dark-mode .science-author-dept,
body.dark-mode .science-author-role {
  color: #94a3b8;
}

body.dark-mode .science-articles-counter {
  color: #ffd700;
}

body.dark-mode .science-card-work-block {
  background: rgba(184, 147, 74, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold);
}

body.dark-mode .science-article-title {
  color: #f8fafc;
}

body.dark-mode .science-work-num {
  color: #ffd700;
}

body.dark-mode .science-work-journal-tag {
  background: #112038;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .science-year-pill {
  color: #cbd5e1;
  background: #162844;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .science-official-table thead {
  background: linear-gradient(135deg, #0a192f, #112240);
  color: #ffffff;
}

body.dark-mode .science-official-table td {
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .science-official-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

body.dark-mode .science-td-no {
  color: #ffd700;
}

body.dark-mode .science-td-author {
  color: #ffffff;
}

body.dark-mode .science-td-role {
  color: #94a3b8;
}

body.dark-mode .science-td-journals {
  color: #cbd5e1;
}

body.dark-mode .science-td-year {
  color: #e2e8f0;
}

body.dark-mode .science-ceremony-kicker {
  color: var(--gold);
}

body.dark-mode .science-ceremony-text {
  color: var(--text-dim);
}

body.dark-mode .science-stat-label {
  color: var(--text-dim);
}

body.dark-mode .cert-card-sub {
  color: var(--text-dim);
}

body.dark-mode .cert-card-org {
  color: var(--text-secondary);
}

body.dark-mode .cert-tag-year {
  color: var(--gold);
  background: rgba(184, 147, 74, 0.12);
}

body.dark-mode .cert-view-link {
  color: var(--gold);
}

body.dark-mode .cert-stat-label {
  color: var(--text-dim);
}



/* ══════════════════════════════════════════════════════════════
   DIRECTOR SƏBUHİ QURBANOV — AESTHETIC BIOGRAPHY READING ROOM
   ══════════════════════════════════════════════════════════════ */

/* Trigger Buttons */
.quote-bio-btn,
.tree-director-bio-pill-btn,
.person-director-bio-btn,
.science-btn-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a2240, #163a66);
  border: 1px solid rgba(184, 147, 74, 0.45);
  color: #ffd700;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(10, 34, 64, 0.18), 0 0 12px rgba(184, 147, 74, 0.2);
  transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quote-bio-btn:hover,
.tree-director-bio-pill-btn:hover,
.person-director-bio-btn:hover,
.science-btn-bio:hover {
  background: linear-gradient(135deg, var(--gold), #96742e);
  color: #061326;
  border-color: #ffd700;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(184, 147, 74, 0.4);
}

.tree-director-bio-pill-btn {
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 0.74rem;
}

.person-director-bio-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  margin: 14px 0 6px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.quote-actions-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Modal Backdrop */
.bio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(6, 17, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Reading Progress Bar */
.bio-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #ffd700, #ffb703);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  z-index: 1000000;
  transition: width 0.15s ease-out;
}

/* Dialog Container */
.bio-modal-dialog {
  width: 100%;
  max-width: 980px;
  height: 92vh;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(184, 147, 74, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(184, 147, 74, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bio-modal-backdrop.active .bio-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Topbar */
.bio-modal-topbar {
  padding: 14px 24px;
  background: linear-gradient(135deg, #0a192f, #112240);
  border-bottom: 1px solid rgba(184, 147, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.bio-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bio-brand-seal {
  font-size: 1.4rem;
}

.bio-brand-text {
  display: flex;
  flex-direction: column;
}

.bio-brand-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bio-brand-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
}

.bio-topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-tool-btn,
.bio-theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bio-tool-btn:hover,
.bio-theme-btn:hover {
  background: rgba(184, 147, 74, 0.3);
  border-color: #ffd700;
  color: #ffd700;
}

.bio-theme-btn.active {
  background: var(--gold);
  color: #061326;
  border-color: #ffd700;
}

.bio-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.bio-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Modal Body */
.bio-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--surface);
}

/* Hero Card */
.bio-hero-card {
  position: relative;
  padding: 40px 36px;
  background: linear-gradient(135deg, #091a32 0%, #0e274a 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}

.bio-hero-ambient {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 147, 74, 0.25) 0%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

.bio-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 1;
}

.bio-hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.bio-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #ffd700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(184, 147, 74, 0.4);
}

.bio-avatar-medal {
  position: absolute;
  bottom: 0;
  right: -2px;
  font-size: 1.6rem;
  background: #0f172a;
  border-radius: 50%;
  border: 2px solid #ffd700;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bio-hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.bio-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bio-pill-medal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b8934a, #8c6819);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(184, 147, 74, 0.35);
}

.bio-pill-entity {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.bio-hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.bio-hero-title {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 650px;
  margin: 0;
}

.bio-quick-facts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bio-fact-item {
  font-size: 0.76rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Chapter Nav Strip */
.bio-chapter-strip {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.bio-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bio-nav-chip:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-1px);
}

.bio-nav-chip.highlight {
  background: rgba(184, 147, 74, 0.14);
  color: #8c6819;
  border-color: rgba(184, 147, 74, 0.4);
}

/* Content Stream */
.bio-content-stream {
  padding: 36px 36px 60px;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
}

.bio-section-card {
  padding: 28px 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(10, 34, 64, 0.04);
  transition: all 0.3s ease;
}

.bio-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bio-card-label.gold-label {
  color: #8c6819;
}

.bio-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.35;
}

.bio-p {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

.bio-p:last-child {
  margin-bottom: 0;
}

.bio-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

/* Timeline */
.bio-timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 28px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bio-timeline-item {
  position: relative;
}

.bio-tl-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
}

.bio-tl-dot.gold-pulse {
  background: #ffd700;
  border-color: #ffd700;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.bio-tl-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: #8c6819;
  margin-bottom: 3px;
}

.bio-tl-year.gold {
  color: #b8934a;
  font-size: 0.84rem;
}

.bio-tl-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.bio-tl-title.gold {
  color: var(--accent);
}

.bio-tl-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* Books Grid */
.bio-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bio-book-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.bio-book-card.featured {
  background: rgba(184, 147, 74, 0.08);
  border-color: rgba(184, 147, 74, 0.4);
}

.bio-book-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.bio-book-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.bio-book-year.gold {
  color: #8c6819;
}

.bio-book-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.bio-book-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Features List */
.bio-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.bio-feature-item {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.bio-feat-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: #8c6819;
  margin-bottom: 4px;
}

.bio-feat-content strong {
  font-size: 0.94rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.bio-feat-content p {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* Awards Grid */
.bio-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bio-award-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-award-card.presidential {
  background: linear-gradient(135deg, rgba(184, 147, 74, 0.14), rgba(184, 147, 74, 0.05));
  border: 1.5px solid rgba(184, 147, 74, 0.5);
  box-shadow: 0 4px 16px rgba(184, 147, 74, 0.15);
}

.bio-award-medal {
  font-size: 2rem;
}

.bio-award-type {
  font-size: 0.7rem;
  font-weight: 800;
  color: #8c6819;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bio-award-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.bio-award-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Essay Box: Reflections */
.bio-reflections-wrapper {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1.5px solid rgba(184, 147, 74, 0.45);
  box-shadow: 0 10px 30px rgba(184, 147, 74, 0.08);
}

.reflections-title {
  color: var(--text);
}

.bio-reflections-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #8c6819;
  display: block;
  margin-bottom: 20px;
}

.bio-essay-box {
  position: relative;
  padding: 24px 28px 24px 34px;
  border-left: 4px solid var(--gold);
  background: rgba(184, 147, 74, 0.04);
  border-radius: 0 14px 14px 0;
}

.bio-essay-quote-mark {
  position: absolute;
  top: -16px;
  left: 10px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(184, 147, 74, 0.25);
  line-height: 1;
  pointer-events: none;
}

.bio-essay-p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: justify;
}

.bio-essay-p.highlight-conclusion {
  font-weight: 700;
  color: var(--accent);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.bio-signature-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.bio-sig-info {
  display: flex;
  flex-direction: column;
}

.bio-sig-info strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.bio-sig-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.bio-sig-seal {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  color: #8c6819;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  transform: rotate(-10deg);
}

/* Reading Themes inside Modal */
/* 1. Sepia Theme */
[data-bio-theme="sepia"] .bio-modal-dialog {
  background: #fbf0d9 !important;
  color: #2c2214 !important;
}
[data-bio-theme="sepia"] .bio-modal-body,
[data-bio-theme="sepia"] .bio-section-card {
  background: #f7ebd0 !important;
  color: #2c2214 !important;
  border-color: #e2ceaa !important;
}
[data-bio-theme="sepia"] .bio-p,
[data-bio-theme="sepia"] .bio-essay-p,
[data-bio-theme="sepia"] .bio-card-title,
[data-bio-theme="sepia"] .bio-tl-title,
[data-bio-theme="sepia"] .bio-book-title,
[data-bio-theme="sepia"] .bio-award-name {
  color: #2c2214 !important;
}
[data-bio-theme="sepia"] .bio-tl-desc,
[data-bio-theme="sepia"] .bio-book-desc,
[data-bio-theme="sepia"] .bio-award-desc {
  color: #5d4a32 !important;
}

/* 2. Night Theme */
[data-bio-theme="night"] .bio-modal-dialog {
  background: #060d17 !important;
  color: #f1f5f9 !important;
  border-color: rgba(184, 147, 74, 0.3) !important;
}
[data-bio-theme="night"] .bio-modal-body,
[data-bio-theme="night"] .bio-section-card {
  background: #0b1524 !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bio-theme="night"] .bio-p,
[data-bio-theme="night"] .bio-essay-p,
[data-bio-theme="night"] .bio-card-title,
[data-bio-theme="night"] .bio-tl-title,
[data-bio-theme="night"] .bio-book-title,
[data-bio-theme="night"] .bio-award-name {
  color: #f8fafc !important;
}
[data-bio-theme="night"] .bio-tl-desc,
[data-bio-theme="night"] .bio-book-desc,
[data-bio-theme="night"] .bio-award-desc {
  color: #94a3b8 !important;
}

@media (max-width: 768px) {
  .bio-hero-content {
    flex-direction: column;
    text-align: center;
  }
  .bio-hero-info {
    text-align: center;
    align-items: center;
  }
  .bio-content-stream {
    padding: 20px 16px 40px;
  }
  .bio-section-card {
    padding: 20px 18px;
  }
  .bio-essay-box {
    padding: 18px 16px;
  }
}



/* ══════════════════════════════════════════════════════════════
   LIBRARY FUND & HISTORY MODAL (kitabxana.docx)
   ══════════════════════════════════════════════════════════════ */

.lib-fund-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a2240, #163a66);
  border: 1px solid rgba(184, 147, 74, 0.45);
  color: #ffd700;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.15), 0 0 10px rgba(184, 147, 74, 0.2);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.lib-fund-about-btn:hover {
  background: linear-gradient(135deg, var(--gold), #96742e);
  color: #061326;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 147, 74, 0.35);
}

.lib-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Modal Backdrop */
.lib-fund-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(6, 17, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lib-fund-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lib-fund-dialog {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(184, 147, 74, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(184, 147, 74, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.lib-fund-backdrop.active .lib-fund-dialog {
  transform: translateY(0) scale(1);
}

.lib-fund-topbar {
  padding: 18px 26px;
  background: linear-gradient(135deg, #0a192f, #112240);
  border-bottom: 1px solid rgba(184, 147, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lib-fund-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lib-fund-seal {
  font-size: 1.6rem;
}

.lib-fund-titles {
  display: flex;
  flex-direction: column;
}

.lib-fund-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lib-fund-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.lib-fund-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
}

.lib-fund-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.lib-fund-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

/* Stats Row */
.lib-fund-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lib-fund-stat-card {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(10, 34, 64, 0.04);
}

.lib-fund-stat-icon {
  font-size: 1.8rem;
}

.lib-fund-stat-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.lib-fund-stat-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Article Card */
.lib-fund-card {
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(10, 34, 64, 0.05);
}

.lib-fund-card.presidential-decree {
  background: linear-gradient(135deg, rgba(184, 147, 74, 0.08) 0%, rgba(10, 34, 64, 0.04) 100%);
  border: 1.5px solid rgba(184, 147, 74, 0.45);
}

.lib-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(184, 147, 74, 0.15);
  color: #8c6819;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lib-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.35;
}

.lib-card-p {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.lib-card-p:last-child {
  margin-bottom: 0;
}

.lib-card-p strong {
  color: var(--accent);
}

/* Featured 2026 Grid */
.lib-books-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.lib-book-badge-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lib-book-badge-icon {
  font-size: 1.6rem;
}

.lib-book-badge-info strong {
  font-size: 0.88rem;
  color: var(--text);
  display: block;
}

.lib-book-badge-info span {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Location banner */
.lib-location-callout {
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a2240, #163a66);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lib-location-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lib-location-text strong {
  font-size: 0.95rem;
  color: #ffd700;
  display: block;
}

.lib-location-text span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.lib-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #061326;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lib-jump-btn:hover {
  background: #ffd700;
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .lib-fund-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .lib-fund-body {
    padding: 20px 18px 30px;
  }
}

@media (max-width: 500px) {
  .lib-fund-stats {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   CAMPUS & ROOM NAVIGATOR (OTAQLAR.docx) STYLES
   ═══════════════════════════════════════════════════════════ */

.campus-navigator-section {
  position: relative;
  padding: 90px 0 110px;
  background: radial-gradient(circle at 50% 15%, rgba(10, 34, 64, 0.05) 0%, transparent 70%);
}

.dark-mode .campus-navigator-section {
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
}

.campus-header-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 4-Item Quick Stats Bar */
.campus-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.campus-stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.campus-stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.campus-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(10, 34, 64, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dark-mode .campus-stat-icon {
  background: rgba(200, 164, 93, 0.12);
}

.campus-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  display: block;
  line-height: 1.2;
}

.campus-stat-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

/* Floor Switcher Navigation */
.campus-floors-wrapper {
  margin-bottom: 24px;
}

.campus-floors-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: var(--surface-2);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.campus-floor-btn {
  border: none;
  background: transparent;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  color: var(--text-secondary);
}

.campus-floor-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.campus-floor-btn.active {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(10, 34, 64, 0.22);
}

.dark-mode .campus-floor-btn.active {
  background: linear-gradient(135deg, #b8934a, #d4af37);
  color: #061326 !important;
  box-shadow: 0 6px 20px rgba(184, 147, 74, 0.3);
}

.floor-num-badge {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: block;
}

.floor-title-text {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
}

.floor-meta-count {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 600;
  display: block;
}

/* Floor Architectural Summary Banner */
.campus-floor-banner {
  background: linear-gradient(135deg, rgba(10, 34, 64, 0.05), rgba(184, 147, 74, 0.07));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dark-mode .campus-floor-banner {
  background: linear-gradient(135deg, rgba(17, 32, 56, 0.85), rgba(22, 40, 68, 0.75));
  border-color: rgba(200, 164, 93, 0.25);
}

.cfb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cfb-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cfb-floor-icon {
  font-size: 1.8rem;
}

.cfb-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  margin: 0;
}

.cfb-badge-count {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}

.dark-mode .cfb-badge-count {
  color: #ffd700;
  border-color: rgba(200, 164, 93, 0.35);
}

.cfb-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.cfb-wings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cfb-wing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cfb-wing-chip strong {
  color: var(--text);
}

/* Controls Bar (Search + Category Filter Chips) */
.campus-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.campus-search-box {
  position: relative;
  width: 100%;
}

.campus-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

#campus-search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

#campus-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-strong);
}

.campus-search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.campus-search-clear-btn:hover {
  color: var(--danger);
  background: rgba(185, 28, 28, 0.08);
}

.campus-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.campus-chip {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.campus-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.campus-chip.active {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.2);
}

.dark-mode .campus-chip.active {
  background: linear-gradient(135deg, #b8934a, #d4af37);
  color: #061326 !important;
  border-color: #ffd700;
}

/* Filter Status Row */
.campus-filter-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0 4px;
}

.campus-filter-status strong {
  color: var(--text);
  font-weight: 800;
}

/* Rooms Grid */
.campus-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Room Card */
.campus-room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.campus-room-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.dark-mode .campus-room-card:hover {
  border-color: rgba(200, 164, 93, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.room-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.room-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-num-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font);
  background: rgba(10, 34, 64, 0.08);
  color: var(--accent);
  border: 1px solid rgba(10, 34, 64, 0.15);
  letter-spacing: 0.3px;
}

.dark-mode .room-num-pill {
  background: rgba(200, 164, 93, 0.15);
  color: #ffd700;
  border-color: rgba(200, 164, 93, 0.35);
}

.room-floor-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.room-cat-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.room-cat-tag.cat-lab {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.room-cat-tag.cat-it {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.room-cat-tag.cat-admin {
  background: rgba(184, 147, 74, 0.15);
  color: #b8934a;
}

.room-cat-tag.cat-library {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.room-cat-tag.cat-sport {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.room-cat-tag.cat-classroom {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.room-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.room-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.room-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 4px 0;
}

.room-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.room-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.room-feature-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
}

.room-aud-pills-wrap {
  margin-top: 4px;
}

.room-aud-pills-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.room-aud-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.room-aud-num {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.room-aud-num:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.room-wing-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: auto;
}

.room-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.room-card-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.room-card-btn-primary {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.room-card-btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.room-card-btn-action {
  background: linear-gradient(135deg, #b8934a, #d4af37);
  color: #061326;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(184, 147, 74, 0.25);
}

.room-card-btn-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Campus Room Detail Modal */
.campus-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.campus-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.campus-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.campus-modal-backdrop.active .campus-modal-card {
  transform: scale(1);
}

.campus-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.campus-modal-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.campus-modal-floor-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.campus-modal-room-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(10, 34, 64, 0.1);
  color: var(--accent);
  border: 1px solid rgba(10, 34, 64, 0.2);
}

.dark-mode .campus-modal-room-badge {
  background: rgba(200, 164, 93, 0.2);
  color: #ffd700;
  border-color: rgba(200, 164, 93, 0.4);
}

.campus-modal-cat-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}

.campus-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.campus-modal-close:hover {
  color: var(--danger);
  background: rgba(185, 28, 28, 0.1);
}

.campus-modal-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.campus-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.campus-modal-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.campus-modal-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px 0;
}

.campus-modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.campus-modal-navguide {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.campus-navguide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cng-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cng-text {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.cng-text strong {
  color: var(--text);
}

.campus-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Daytime Mode High-Contrast Overrides */
body:not(.dark-mode) .campus-stat-item {
  background: #ffffff;
  border-color: #cbd5e1;
}

body:not(.dark-mode) .campus-stat-val {
  color: #0f172a;
}

body:not(.dark-mode) .campus-stat-label {
  color: #334155;
}

body:not(.dark-mode) .campus-floor-btn {
  color: #1e293b;
}

body:not(.dark-mode) .campus-floor-btn.active {
  background: #0a2240;
  color: #ffffff !important;
}

body:not(.dark-mode) .campus-floor-banner {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body:not(.dark-mode) .cfb-title {
  color: #0f172a;
}

body:not(.dark-mode) .cfb-desc {
  color: #334155;
}

body:not(.dark-mode) .cfb-wing-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body:not(.dark-mode) #campus-search-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body:not(.dark-mode) .campus-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

body:not(.dark-mode) .campus-chip.active {
  background: #0a2240;
  color: #ffffff !important;
}

body:not(.dark-mode) .campus-room-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body:not(.dark-mode) .room-title {
  color: #0f172a;
}

body:not(.dark-mode) .room-desc {
  color: #334155;
}

body:not(.dark-mode) .room-num-pill {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

body:not(.dark-mode) .room-feature-tag {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #e2e8f0;
}

body:not(.dark-mode) .campus-modal-card {
  background: #ffffff;
  border-color: #cbd5e1;
}

body:not(.dark-mode) .campus-modal-title {
  color: #0f172a;
}

body:not(.dark-mode) .campus-modal-desc {
  color: #334155;
}

/* ── Additional Comprehensive Contrast & Legibility Overrides (Daytime & Dark Mode) ── */
/* 1. Structure / FBK */
.fbk-desc {
  color: #cbd5e1 !important;
}

.fbk-status-pill {
  color: #94a3b8 !important;
}

/* 2. Video Lessons Grid & Cards */
body:not(.dark-mode) .lecture-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-top: 3.5px solid #0b2545 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}

body:not(.dark-mode) .lecture-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .lecture-watch-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0b2545 !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .lecture-watch-btn:hover {
  background: #0b2545 !important;
  border-color: #0b2545 !important;
  color: #ffffff !important;
}

body:not(.dark-mode) .lecture-ext-link {
  color: #0b2545 !important;
  font-weight: 700 !important;
}

body.dark-mode .lecture-card {
  background: var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-top-color: var(--gold) !important;
}

body.dark-mode .lecture-title {
  color: #f8fafc !important;
}

body.dark-mode .lecture-watch-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #e2e8f0 !important;
}

body.dark-mode .lecture-ext-link {
  color: var(--gold-light) !important;
}

/* 3. Library Book Covers & Details */
body:not(.dark-mode) .book-cover {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-left: 5px solid #0b2545 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
}

body:not(.dark-mode) .book-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .book-author {
  color: #334155 !important;
  font-weight: 600 !important;
}

body:not(.dark-mode) .book-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0b2545 !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .book-btn:hover {
  background: #0b2545 !important;
  border-color: #0b2545 !important;
  color: #ffffff !important;
}

body.dark-mode .book-cover {
  background: var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-left-color: var(--gold) !important;
}

body.dark-mode .book-title {
  color: #f8fafc !important;
}

body.dark-mode .book-author {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

body.dark-mode .book-btn {
  background: rgba(184, 147, 74, 0.2) !important;
  border-color: rgba(184, 147, 74, 0.45) !important;
  color: #ffd700 !important;
  font-weight: 800 !important;
}

/* 4. Section Badges & Section Descs Across Site */
body:not(.dark-mode) .section-desc {
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.dark-mode .section-desc {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}

body:not(.dark-mode) .section-badge {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 3.5px solid #0b2545 !important;
  color: #0b2545 !important;
  font-weight: 800 !important;
}

body.dark-mode .section-badge {
  background: rgba(184, 147, 74, 0.15) !important;
  border-color: rgba(184, 147, 74, 0.45) !important;
  color: #ffd700 !important;
}

/* 5. Haqqımızda / About Section High-Contrast (Day & Night) */
body.dark-mode .about-hero-card {
  background: #071930 !important;
  border-color: rgba(197, 155, 39, 0.35) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45) !important;
}

body.dark-mode .about-lead-heading {
  color: #ffffff !important;
}

body.dark-mode .about-lead-text {
  color: #cbd5e1 !important;
}

body.dark-mode .about-director-quote {
  background: rgba(10, 34, 64, 0.7) !important;
  border-left: 4px solid #c59b27 !important;
  border-color: rgba(197, 155, 39, 0.3) !important;
}

body.dark-mode .about-director-quote p {
  color: #f8fafc !important;
}

body.dark-mode .quote-author-info strong {
  color: #ffffff !important;
}

body.dark-mode .quote-author-info span {
  color: #cbd5e1 !important;
}

body.dark-mode .quote-struct-link {
  background: rgba(197, 155, 39, 0.22) !important;
  color: #ffd700 !important;
  border-color: rgba(197, 155, 39, 0.45) !important;
}

body.dark-mode .about-why-card {
  background: #0a2240 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-top: 3px solid #c59b27 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .about-why-card h4 {
  color: #ffffff !important;
}

body.dark-mode .about-why-card p {
  color: #cbd5e1 !important;
}

body.dark-mode .why-card-cta {
  color: #f3c64d !important;
}

body.dark-mode .about-mvv-wrapper {
  background: #071930 !important;
  border-color: rgba(197, 155, 39, 0.35) !important;
}

body.dark-mode .about-mvv-tabs {
  background: #051427 !important;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25) !important;
}

body.dark-mode .about-mvv-tab {
  color: #cbd5e1 !important;
}

body.dark-mode .about-mvv-tab.active {
  background: #071930 !important;
  color: #ffffff !important;
  border-bottom-color: #c59b27 !important;
}

body.dark-mode .mvv-panel-main h3 {
  color: #ffffff !important;
}

body.dark-mode .mvv-panel-main p {
  color: #cbd5e1 !important;
}

body.dark-mode .mvv-pillars-list li {
  background: rgba(10, 34, 64, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .mvv-pillars-list li strong {
  color: #ffffff !important;
}

body.dark-mode .mvv-pillars-list li span {
  color: #cbd5e1 !important;
}

/* Daytime Mode High Contrast for About */
body:not(.dark-mode) .about-lead-text {
  color: #1e293b !important;
}

body:not(.dark-mode) .about-director-quote p {
  color: #0f172a !important;
}

body:not(.dark-mode) .quote-author-info span {
  color: #334155 !important;
  font-weight: 600 !important;
}

body:not(.dark-mode) .about-why-card p {
  color: #1e293b !important;
}

body:not(.dark-mode) .about-mvv-tab {
  color: #1e293b !important;
  font-weight: 700 !important;
}

body:not(.dark-mode) .mvv-panel-main p {
  color: #1e293b !important;
}

body:not(.dark-mode) .mvv-pillars-list li span {
  color: #1e293b !important;
}

/* 6. Campus & Room Navigator Dark & Light Modes */
body.dark-mode .campus-stat-val {
  color: #f8fafc !important;
}

body.dark-mode .campus-stat-label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

body.dark-mode .campus-floor-btn {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

body.dark-mode .floor-title-text {
  color: #f8fafc !important;
}

body.dark-mode .floor-meta-count {
  color: #cbd5e1 !important;
}

body.dark-mode .cfb-title {
  color: #f8fafc !important;
}

body.dark-mode .cfb-desc {
  color: #cbd5e1 !important;
}

body.dark-mode .cfb-wing-chip {
  background: #112038 !important;
  border-color: rgba(200, 164, 93, 0.3) !important;
  color: #e2e8f0 !important;
}

body.dark-mode .campus-chip {
  background: #112038 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
  font-weight: 700 !important;
}

body.dark-mode .campus-room-card {
  background: #112038 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .room-title {
  color: #f8fafc !important;
  font-weight: 800 !important;
}

body.dark-mode .room-desc {
  color: #cbd5e1 !important;
}

body.dark-mode .room-floor-tag {
  color: #cbd5e1 !important;
}

body.dark-mode .room-wing-hint {
  color: #cbd5e1 !important;
}

body.dark-mode .campus-filter-status {
  color: #cbd5e1 !important;
}

body:not(.dark-mode) .campus-stat-val {
  color: #0a2240 !important;
  font-weight: 900 !important;
}

body:not(.dark-mode) .campus-stat-label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

body:not(.dark-mode) .campus-floor-btn {
  color: #0a2240 !important;
  font-weight: 700 !important;
}

body:not(.dark-mode) .floor-title-text {
  color: #0a2240 !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .floor-meta-count {
  color: #334155 !important;
  font-weight: 600 !important;
}

body:not(.dark-mode) .cfb-title {
  color: #0a2240 !important;
}

body:not(.dark-mode) .cfb-desc {
  color: #1e293b !important;
  font-weight: 500 !important;
}

body:not(.dark-mode) .cfb-wing-chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0a2240 !important;
  font-weight: 700 !important;
}

body:not(.dark-mode) .campus-chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0a2240 !important;
  font-weight: 700 !important;
}

body:not(.dark-mode) .room-title {
  color: #0a2240 !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .room-desc {
  color: #1e293b !important;
  font-weight: 500 !important;
}

body:not(.dark-mode) .room-floor-tag {
  color: #334155 !important;
  font-weight: 700 !important;
}

body:not(.dark-mode) .room-wing-hint {
  color: #334155 !important;
  font-weight: 600 !important;
}

body:not(.dark-mode) .campus-filter-status {
  color: #1e293b !important;
  font-weight: 600 !important;
}

/* 7. Science Section Overrides */
body.dark-mode .science-author-dept,
body.dark-mode .science-author-role {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

body.dark-mode .science-ceremony-text {
  color: #cbd5e1 !important;
}

body.dark-mode .science-stat-label {
  color: #cbd5e1 !important;
}

body.dark-mode .cert-card-sub {
  color: #cbd5e1 !important;
}

body.dark-mode .cert-card-org {
  color: #f1f5f9 !important;
}

body.dark-mode .science-work-journal-tag {
  color: #cbd5e1 !important;
}

body.dark-mode .science-td-role {
  color: #cbd5e1 !important;
}

body:not(.dark-mode) .science-author-name {
  color: #0a2240 !important;
  font-weight: 800 !important;
}

body:not(.dark-mode) .science-author-dept,
body:not(.dark-mode) .science-author-role {
  color: #1e293b !important;
  font-weight: 600 !important;
}

body:not(.dark-mode) .science-results-info {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* 8. News & Footer Legibility */
body:not(.dark-mode) .news-card-reveal p {
  color: #1e293b !important;
}

body.dark-mode .news-card-reveal p {
  color: #cbd5e1 !important;
}

.footer-brand-desc {
  color: #cbd5e1 !important;
}

.footer-bottom p {
  color: #cbd5e1 !important;
}

body:not(.dark-mode) .majors-catalog-desc {
  color: #1e293b !important;
}

body.dark-mode .majors-catalog-desc {
  color: #cbd5e1 !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .campus-floors-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .campus-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .campus-floors-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .campus-stats-bar {
    grid-template-columns: 1fr;
  }
  .campus-rooms-grid {
    grid-template-columns: 1fr;
  }
  .cfb-header {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ══════════════════════════════════════════════════════════════
   BDRNK 2026 — UI/UX REFACTORING & MODERN ENHANCEMENTS
   - Whitespace & Premium Rounded Cards
   - Simplified Breathable Hero with Slogan & Prominent CTAs
   - Balanced Mega Menus
   - Modern Tab Systems (Kampus Floors & Structure)
   - Single-Click Dark/Light Mode Switcher
   - Smart Live Search Modal (Ağıllı Canlı Axtarış)
   - Mobile Nav Accordion & Quick Utilities
   ══════════════════════════════════════════════════════════════ */

/* ─── 1. GLOBAL WHITESPACE & PREMIUM CARDS ─── */
.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Card Modernization */
.why-card,
.grad-stat-card,
.stat-item,
.fbk-card,
.campus-room-card,
.lib-fund-card,
.lib-book-badge-card,
.science-card,
.cert-card {
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-card:hover,
.fbk-card:hover,
.campus-room-card:hover,
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(10, 34, 64, 0.1);
}

body.dark-mode .why-card:hover,
body.dark-mode .fbk-card:hover,
body.dark-mode .campus-room-card:hover,
body.dark-mode .cert-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* ─── 2. HEADER ACTIONS & THEME TOGGLE ─── */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-search-btn:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(10, 34, 64, 0.08);
}

.nav-search-kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
}

body.dark-mode .nav-search-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

body.dark-mode .nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: #ffffff;
}

body.dark-mode .nav-search-kbd {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
}

/* ─── LUXURY SLIDING CAPSULE THEME SWITCHER (Rejim Düyməsi) ─── */
.theme-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-mode-toggle:hover {
  transform: scale(1.05);
}

.theme-mode-toggle:active {
  transform: scale(0.93);
}

.theme-switch-track {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #eef2f6 0%, #e2e8f0 100%);
  border: 1px solid rgba(10, 34, 64, 0.16);
  box-shadow:
    inset 0 2px 4px rgba(10, 34, 64, 0.08),
    0 1px 2px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.theme-switch-icon {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.theme-switch-icon.icon-sun {
  color: #d97706;
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(217, 119, 6, 0.4));
}

.theme-switch-icon.icon-moon {
  color: #94a3b8;
  opacity: 0.55;
}

/* Sliding Floating Thumb */
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(10, 34, 64, 0.08);
  box-shadow:
    0 2px 6px rgba(10, 34, 64, 0.2),
    0 1px 2px rgba(10, 34, 64, 0.12);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1;
}

/* Hover effect on track */
.theme-mode-toggle:hover .theme-switch-track {
  border-color: rgba(184, 147, 74, 0.65);
  box-shadow:
    inset 0 2px 4px rgba(10, 34, 64, 0.06),
    0 0 14px rgba(184, 147, 74, 0.22);
}

/* ─── DARK MODE STATE (Capsule Active) ─── */
body.dark-mode .theme-switch-track,
:root[data-theme="dark"] .theme-switch-track {
  background: linear-gradient(135deg, #091322 0%, #0f1e33 100%);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(212, 175, 55, 0.15);
}

body.dark-mode .theme-switch-icon.icon-sun,
:root[data-theme="dark"] .theme-switch-icon.icon-sun {
  color: #64748b;
  opacity: 0.45;
  transform: scale(0.85);
  filter: none;
}

body.dark-mode .theme-switch-icon.icon-moon,
:root[data-theme="dark"] .theme-switch-icon.icon-moon {
  color: #fbbf24;
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.75));
}

body.dark-mode .theme-switch-thumb,
:root[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(26px);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.65),
    0 0 10px rgba(245, 158, 11, 0.4);
}

body.dark-mode .theme-mode-toggle:hover .theme-switch-track,
:root[data-theme="dark"] .theme-mode-toggle:hover .theme-switch-track {
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(245, 158, 11, 0.32);
}

/* ─── 3. SIMPLIFIED, BREATHABLE HERO SECTION ─── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 130px 24px 60px;
}

.hero-content {
  max-width: 960px;
  padding: 44px 44px 40px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(150deg,
    rgba(7, 25, 48, 0.72) 0%,
    rgba(10, 32, 60, 0.6) 55%,
    rgba(7, 25, 48, 0.78) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow:
    0 24px 60px rgba(4, 12, 24, 0.5),
    0 0 36px rgba(212, 175, 55, 0.1);
}

/* Institutional Overline Badge */
.hero-institution-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  max-width: 100%;
  width: auto;
  box-sizing: border-box;
  padding: 10px 28px;
  background: rgba(10, 34, 64, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 32px;
  font-family: var(--font);
  font-size: clamp(0.72rem, 1.05vw, 0.78rem);
  font-weight: 600;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0 auto 20px auto;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 4px 20px rgba(4, 12, 24, 0.4), 0 0 18px rgba(212, 175, 55, 0.12);
  transition: all 0.3s ease;
}

.hero-institution-badge .inst-line-pill {
  display: inline-block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-institution-badge .inst-line-sep {
  color: var(--gold-light);
  font-weight: 800;
  user-select: none;
  opacity: 0.75;
  margin: 0 2px;
  display: inline-block;
}

@media (max-width: 820px) {
  .hero-institution-badge {
    padding: 10px 20px;
    border-radius: 22px;
    gap: 6px 8px;
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) {
  .hero-institution-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.45;
  }
  .hero-institution-badge .inst-line-sep {
    display: none;
  }
}

.hero-badge-wrap {
  margin-bottom: 16px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-inst-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-main-slogan {
  font-family: var(--font);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 20%, #fef08a 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Two Main Prominent Action Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
  color: #071930 !important;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(184, 147, 74, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(184, 147, 74, 0.5);
  background: linear-gradient(135deg, #cfa95e 0%, #e2c068 100%);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-qarabag-hero {
  border-radius: var(--radius-pill);
}

/* Hero Stat Cards Whitespace */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.hero-stats .stat-item {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: rgba(10, 34, 64, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .hero-content {
    padding: 32px 20px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ─── 4. MEGA MENU DROPDOWN BALANCE ─── */
.nav-dropdown-menu {
  min-width: 280px;
  max-width: 330px;
  padding: 8px;
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(10, 34, 64, 0.12), 0 2px 8px rgba(10, 34, 64, 0.04);
}

.nav-dropdown-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  gap: 10px;
}

.nav-dd-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  font-size: 1rem;
}

.nav-dd-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-dd-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.85;
}

/* ─── 5. REFINED TAB SYSTEMS (Kampus & Structure) ─── */
.campus-floors-wrapper {
  margin: 24px 0 28px;
}

.campus-floors-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  background: var(--bg-alt);
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.campus-floor-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  gap: 4px;
}

.campus-floor-btn:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.campus-floor-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(10, 34, 64, 0.22);
}

.campus-floor-btn.active .floor-num-badge {
  background: var(--gold);
  color: #071930;
}

.campus-floor-btn.active .floor-meta-count {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .campus-floor-btn.active {
  background: linear-gradient(135deg, #1e3a5f 0%, #112038 100%);
  border-color: var(--gold);
  color: #ffffff;
}

body.dark-mode .campus-floor-btn.active .floor-num-badge {
  background: var(--gold);
  color: #071930;
}

/* Structure Tabs */
.struct-control-bar {
  margin-bottom: 24px;
}

.struct-view-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg-alt);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.struct-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.struct-toggle-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.struct-toggle-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(10, 34, 64, 0.2);
}

body.dark-mode .struct-toggle-btn.active {
  background: var(--gold);
  color: #071930;
}

/* ─── 6. SMART LIVE SEARCH MODAL (Ağıllı Canlı Axtarış) ─── */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 12, 24, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-container {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-modal-overlay.active .search-modal-container {
  transform: translateY(0) scale(1);
}

body.dark-mode .search-modal-container {
  background: #0d1a2d;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

body.dark-mode .search-modal-header {
  background: #0d1a2d;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  position: relative;
}

.search-modal-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.global-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.global-search-input::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.search-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.search-close-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.search-modal-categories {
  display: flex;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.search-cat-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.search-cat-pill:hover {
  color: var(--text);
  border-color: var(--accent);
}

.search-cat-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

body.dark-mode .search-cat-pill.active {
  background: var(--gold);
  color: #071930;
  border-color: var(--gold);
}

.search-modal-body {
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Quick Suggestions State */
.search-initial-state {
  padding: 16px 8px;
}

.search-hint-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chip-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-chip-quick:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Live Results List */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--bg-alt);
  border-color: var(--gold);
  transform: translateX(4px);
}

body.dark-mode .search-result-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .search-result-item:hover,
body.dark-mode .search-result-item.selected {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

.search-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(10, 34, 64, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.dark-mode .search-item-icon {
  background: rgba(212, 175, 55, 0.15);
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.search-item-title {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.search-item-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.search-item-desc mark,
.search-item-title mark {
  background: rgba(251, 191, 36, 0.35);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 800;
}

.search-item-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.search-result-item:hover .search-item-arrow {
  color: var(--gold);
  transform: translateX(3px);
}

.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 18px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.sm-footer-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sm-footer-tip kbd {
  font-family: var(--font-mono);
  padding: 1px 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.68rem;
}

/* ─── 7. MOBILE NAVIGATION ACCORDION & OPTIMIZATION ─── */
.mobile-nav-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

body:not(.dark-mode) .mobile-search-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0b2545 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body.dark-mode .mobile-search-btn {
  background: rgba(15, 34, 64, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mobile-theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

body:not(.dark-mode) .mobile-theme-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0b2545 !important;
}

body.dark-mode .mobile-theme-btn {
  background: rgba(15, 34, 64, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}

.mobile-theme-btn .icon-sun {
  display: none;
}

.mobile-theme-btn .icon-moon {
  display: block;
}

body.dark-mode .mobile-theme-btn .icon-sun {
  display: block;
  color: #fbbf24;
}

body.dark-mode .mobile-theme-btn .icon-moon {
  display: none;
}

body:not(.dark-mode) .mobile-nav-link {
  color: #0b2545 !important;
  font-weight: 700 !important;
}

body.dark-mode .mobile-nav-link {
  color: #f8fafc !important;
  font-weight: 700 !important;
}

.mobile-nav-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  transition: all var(--transition-fast);
}

body:not(.dark-mode) .mobile-nav-header {
  background: #f1f5f9 !important;
  color: #0b2545 !important;
  border-left: 3.5px solid #c59b27 !important;
}

body.dark-mode .mobile-nav-header {
  background: rgba(15, 34, 64, 0.85) !important;
  color: #ffffff !important;
  border-left: 3.5px solid #c59b27 !important;
}

.mobile-nav-header:hover {
  filter: brightness(0.96);
}

.mobile-nav-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-group-chevron {
  transition: transform 0.28s ease;
  color: var(--accent);
}

body:not(.dark-mode) .mobile-group-chevron {
  color: #0b2545 !important;
}

body.dark-mode .mobile-group-chevron {
  color: #ffd700 !important;
}

.mobile-nav-group.open .mobile-group-chevron {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-nav-group.open .mobile-nav-sub {
  max-height: 480px;
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

body:not(.dark-mode) .mobile-nav-sublink {
  color: #0f172a !important;
}

body:not(.dark-mode) .mobile-nav-sublink:hover {
  color: #0b2545 !important;
  background: #f1f5f9 !important;
}

body.dark-mode .mobile-nav-sublink {
  color: #f1f5f9 !important;
}

body.dark-mode .mobile-nav-sublink:hover {
  color: #ffd700 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.mobile-nav-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

body:not(.dark-mode) .mobile-contact-line {
  color: #334155 !important;
}

body:not(.dark-mode) .mobile-contact-line a {
  color: #0b2545 !important;
  font-weight: 700 !important;
}

body.dark-mode .mobile-contact-line {
  color: #cbd5e1 !important;
}

body.dark-mode .mobile-contact-line a {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.mobile-dim-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 8px;
}

/* Mobile Screen Specific High-Contrast Polish (<= 768px & <= 480px) */
@media (max-width: 768px) {
  body:not(.dark-mode) .stat-label,
  body:not(.dark-mode) .main-stat .stat-label {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
  }

  body.dark-mode .stat-label,
  body.dark-mode .main-stat .stat-label {
    color: #e2e8f0 !important;
    font-weight: 700 !important;
  }

  body:not(.dark-mode) .hero-desc {
    color: #cbd5e1 !important;
  }

  body.dark-mode .hero-desc {
    color: #e2e8f0 !important;
  }

  .room-title {
    font-size: 1.02rem !important;
  }

  .room-desc {
    font-size: 0.83rem !important;
    line-height: 1.55 !important;
  }

  .lecture-dept-card {
    min-width: 245px !important;
  }

  body:not(.dark-mode) .lecture-dept-card .lecture-dept-name {
    color: #0b2545 !important;
    font-weight: 800 !important;
  }

  body:not(.dark-mode) .lecture-dept-card .lecture-dept-meta {
    color: #334155 !important;
    font-weight: 600 !important;
  }

  body.dark-mode .lecture-dept-card .lecture-dept-name {
    color: #ffffff !important;
    font-weight: 800 !important;
  }

  body.dark-mode .lecture-dept-card .lecture-dept-meta {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
 * EXECUTIVE PROFESSIONAL ENHANCEMENTS (OPTIONS 2 & 3)
 * 1. Radial Progress Back-to-Top Button
 * 2. Executive Mouse Glow & Border Luminescence
 * 3. Cinematic Zoomable Image Hover Styles
 * 4. Animated Metric Counter Number Accents
 * ══════════════════════════════════════════════════════════════════ */

/* 1. Radial Progress Back-to-Top Button */
.radial-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.35s,
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16);
  padding: 0;
  outline: none;
}

[data-theme="light"] .radial-back-to-top {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.radial-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.radial-back-to-top:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.24), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.radial-progress-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.radial-progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

[data-theme="light"] .radial-progress-bg {
  stroke: rgba(15, 23, 42, 0.08);
}

.radial-progress-bar {
  fill: none;
  stroke: #00d2ff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 119.38;
  transition: stroke-dashoffset 0.15s ease-out, stroke 0.3s ease;
}

[data-theme="light"] .radial-progress-bar {
  stroke: #0077b6;
}

.radial-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
  z-index: 2;
}

[data-theme="light"] .radial-arrow {
  color: #0077b6;
}

.radial-back-to-top:hover .radial-arrow {
  transform: translateY(-3px);
  color: #f59e0b;
}

@media (max-width: 768px) {
  .radial-back-to-top {
    bottom: 22px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
}

/* 2. Executive Mouse Glow & Border Luminescence */
.mouse-glow-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease !important;
}

.mouse-glow-card::after {
  content: "";
  position: absolute;
  top: var(--glow-y, -1000px);
  left: var(--glow-x, -1000px);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.14), transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.mouse-glow-card:hover::after {
  opacity: 1;
}

[data-theme="light"] .mouse-glow-card::after {
  background: radial-gradient(circle, rgba(0, 150, 230, 0.16), transparent 70%);
}

.mouse-glow-card > *:not(.honor-card-ambient):not([aria-hidden="true"]) {
  position: relative;
  z-index: 2;
}

/* 3. Cinematic Zoomable Image Hover Styles */
.zoomable-img {
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.zoomable-img:hover {
  transform: scale(1.025);
  filter: brightness(1.04);
}

.zoomable-img-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: inherit;
}

.zoomable-img-wrap::after {
  content: "🔍";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.zoomable-img-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* 4. Animated Number Transitions */
.stat-counting {
  display: inline-block;
  will-change: transform, opacity;
}
