/* ============================================
   ASTF Youth Council — Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --blue-900: #1A1B5E;
  --blue-800: #2B2D8B;
  --blue-700: #3A3DBF;
  --blue-600: #4A4DE0;
  --blue-100: #E8E8FF;
  --gold-500: #C5A535;
  --gold-400: #D4AF37;
  --gold-300: #E8C84A;
  --gold-100: #FFF8E1;
  --teal-500: #00B4D8;
  --teal-400: #00D4AA;
  --teal-100: #E0F7FA;

  /* Neutral */
  --gray-950: #0A0A0F;
  --gray-900: #111118;
  --gray-800: #1E1E2A;
  --gray-700: #2D2D3D;
  --gray-600: #4A4A5A;
  --gray-500: #6B6B7B;
  --gray-400: #9191A0;
  --gray-300: #B8B8C5;
  --gray-200: #D8D8E2;
  --gray-100: #EDEDF2;
  --gray-50: #F7F7FA;
  --white: #FFFFFF;

  /* Semantic */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --bg-inverse: var(--gray-950);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-400);
  --text-inverse: var(--white);
  --border-color: var(--gray-200);
  --border-light: var(--gray-100);

  /* Typography */
  --font-en: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-ar: 'Noto Kufi Arabic', 'Amiri', 'Segoe UI', sans-serif;
  --font-display: var(--font-en);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Sizing */
  --container-max: 1280px;
  --container-narrow: 800px;
  --nav-height: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
  --shadow-glow-blue: 0 0 40px rgba(43,45,139,0.15);
  --shadow-glow-gold: 0 0 40px rgba(197,165,53,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: var(--gray-950);
  --bg-secondary: var(--gray-900);
  --bg-tertiary: var(--gray-800);
  --bg-inverse: var(--white);
  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-400);
  --text-tertiary: var(--gray-500);
  --text-inverse: var(--gray-900);
  --border-color: var(--gray-700);
  --border-light: var(--gray-800);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-en);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
}

/* Arabic mode */
[dir="rtl"] body,
[lang="ar"] body {
  font-family: var(--font-ar);
}

/* Anchor scroll offset */
[id^="sec-"] {
  scroll-margin-top: var(--nav-height);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; max-width: 100%; }
table { max-width: 100%; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-5xl) 0;
  overflow: hidden;
  position: relative;
}

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

.section--dark {
  background: var(--blue-900);
  color: var(--white);
}

.section--gradient {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  color: var(--white);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-500); }
.text-teal { color: var(--teal-500); }
.text-blue { color: var(--blue-800); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* --- Spacing Utilities --- */
.mt-sm { margin-top: var(--space-lg); }
.mt-md { margin-top: var(--space-xl); }
.mt-lg { margin-top: var(--space-2xl); }
.mt-xl { margin-top: var(--space-3xl); }
.mb-sm { margin-bottom: var(--space-lg); }
.mb-md { margin-bottom: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-2xl); }

.section-label--center { justify-content: center; }
.section-subtitle--center { max-width: 700px; margin-left: auto; margin-right: auto; }

.page-spacer { padding-top: 6rem; }
.container--form { max-width: var(--container-narrow); }

/* --- Member Counter Badge --- */
.member-counter-badge {
  background: rgba(197,165,53,0.15);
  border: 1px solid rgba(197,165,53,0.3);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.member-counter-badge__icon { font-size: 1.5rem; }
.member-counter-badge__count { font-size: 1.8rem; font-weight: 800; color: var(--gold-500); }
.member-counter-badge__label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* --- List Items (Requirements/Benefits) --- */
.list-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}
.list-item__marker--gold { color: var(--gold-500); font-weight: 800; }
.list-item__marker--teal { color: var(--teal-500); }
.list-item__text { color: var(--text-secondary); line-height: 1.7; }

.heading-sm--gold { margin-bottom: var(--space-lg); color: var(--gold-500); }
.heading-sm--teal { margin-bottom: var(--space-lg); color: var(--teal-500); }

/* --- File Upload Area --- */
.file-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  background: var(--bg-secondary);
}
.file-upload-area:hover,
.file-upload-area--active {
  border-color: var(--gold-500);
  background: var(--bg-primary);
}

/* --- Form Message --- */
.form-msg {
  display: none;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--teal-100);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--blue-800);
  font-weight: 600;
}

/* --- News List --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Additional Spacing --- */
.mb-xl { margin-bottom: var(--space-3xl); }
.section-padding { padding: 2rem 0; }

/* --- Partner Card Components --- */
.partner-card__tier { font-size: 1.2rem; }
.partner-card__perks { margin-top: 1rem; text-align: start; }
.partner-perk-item__check { color: var(--teal-500); }
.card--highlight .card__title,
.card--highlight .partner-perk-item span:last-child { color: #fff; }
.card--highlight .partner-perk-item__check { color: var(--gold-400); }
.doc-card .btn { margin-top: auto; }

/* --- Contact & Footer Helpers --- */
.contact-link { color: var(--teal-500); text-decoration: none; }
.footer__credit { margin-top: 0.25rem; font-size: 0.85rem; opacity: 0.7; }

/* --- File List Items --- */
.file-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.file-item__size { opacity: 0.5; }

/* --- Partner Components --- */
.partner-card__icon { font-size: 2.5rem; margin-bottom: var(--space-xl); }
.partner-perk-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: center;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.heading-sm {
  font-size: 1.25rem;
  font-weight: 600;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.8;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-500);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

[dir="rtl"] .section-label::before { display: none; }
[dir="rtl"] .section-label::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-out);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(10,10,15,0.92);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  transition: color var(--duration-normal);
}

.nav.scrolled .nav__logo {
  color: var(--text-primary);
}

.nav__logo img {
  height: 48px;
  width: 48px;
  border-radius: var(--radius-full);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
  min-width: 0;
}

.nav__logo-text span:first-child {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__logo-text span:last-child {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  position: relative;
}

.nav.scrolled .nav__link {
  color: var(--text-secondary);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link.active {
  color: var(--blue-800);
  background: var(--blue-100);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.85);
  transition: all var(--duration-fast);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav.scrolled .nav__btn {
  color: var(--text-secondary);
}

.nav__btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav.scrolled .nav__btn:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav.scrolled .nav__hamburger span {
  background: var(--text-primary);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: flex;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav__mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.nav__mobile a {
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.nav__mobile a:hover {
  background: var(--bg-secondary);
  color: var(--blue-800);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue-800);
  color: var(--white);
  border-color: var(--blue-800);
}

.btn--primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
}

.btn--gold:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--border-color);
}

.btn--outline-dark:hover {
  background: var(--blue-800);
  color: var(--white);
  border-color: var(--blue-800);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow-x: hidden;
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 40%, #1a2980 100%);
}

.hero__bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(197,165,53,0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0,180,216,0.06) 0%, transparent 60%);
  animation: float 25s ease-in-out infinite reverse;
}

/* Geometric grid overlay */
.hero__grid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-xl) 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__text {
  color: var(--white);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(197,165,53,0.15);
  border: 1px solid rgba(197,165,53,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.05em;
}

.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.03em;
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__visual-ring {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(197,165,53,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin-slow 60s linear infinite;
}

.hero__visual-ring::before {
  content: '';
  position: absolute;
  top: 20px; right: 20px; bottom: 20px; left: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,180,216,0.1);
}

.hero__visual-logo {
  width: 280px;
  height: 280px;
  padding: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
  animation: spin-slow 60s linear infinite reverse;
  filter: drop-shadow(0 0 40px rgba(197,165,53,0.5));
}

/* Floating particles on ring */
.hero__particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}

.hero__particle:nth-child(1) { top: 0; left: 50%; transform: translate(-50%, -50%); }
.hero__particle:nth-child(2) { bottom: 0; left: 50%; transform: translate(-50%, 50%); background: var(--teal-500); }
.hero__particle:nth-child(3) { top: 50%; left: 0; transform: translate(-50%, -50%); }
.hero__particle:nth-child(4) { top: 50%; right: 0; transform: translate(50%, -50%); background: var(--teal-500); }


/* --- Card System --- */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: var(--blue-100);
  color: var(--blue-800);
}

.card__icon--gold {
  background: var(--gold-100);
  color: var(--gold-500);
}

.card__icon--teal {
  background: var(--teal-100);
  color: var(--teal-500);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

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

.card--feature .card__icon {
  margin: 0 auto var(--space-lg);
}

/* Highlighted card */
.card--highlight {
  background: var(--blue-800) !important;
  color: var(--white) !important;
  border-color: var(--blue-800);
}
.card--highlight .card__title {
  color: #fff !important;
}
.card--highlight .card__text,
.card--highlight span {
  color: rgba(255,255,255,0.9) !important;
}

.card .card__text {
  color: var(--text-primary);
}

.card--highlight .card__icon {
  background: rgba(255,255,255,0.15);
  color: var(--gold-400) !important;
}

/* Non-highlight card text - ensure readable */
.card:not(.card--highlight) .card__title {
  color: var(--text-primary);
}
.card:not(.card--highlight) .card__text,
.card:not(.card--highlight) span:not([style*="teal"]):not([style*="gold"]) {
  color: var(--text-primary);
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- Vision/Mission/Values Section --- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.vmv-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.vmv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-800), var(--gold-500));
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.vmv-card:hover::before {
  transform: scaleX(1);
}

.vmv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.vmv-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: var(--white);
}

.vmv-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.vmv-card__text {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Governance / Org Chart --- */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
}

.org-level {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
}

.org-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  min-width: 200px;
  max-width: 260px;
  transition: all var(--duration-normal) var(--ease-out);
}

.org-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.org-card--primary {
  background: var(--blue-800);
  color: var(--white);
  border-color: var(--blue-800);
  min-width: 280px;
}

.org-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  overflow: hidden;
}
.org-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

.org-card--primary .org-card__avatar {
  background: transparent;
}

.org-card__founder {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}
.org-card--primary .org-card__founder {
  color: var(--gold-300);
}

.org-card__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.org-card__role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.org-card--primary .org-card__role {
  color: var(--gold-400);
}

.org-connector {
  width: 2px;
  height: 40px;
  background: var(--border-color);
  margin: 0 auto;
}

/* --- Document Cards --- */
.doc-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--duration-normal) var(--ease-out);
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.doc-card__type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-500);
  background: var(--gold-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
[data-theme="dark"] .doc-card__type {
  background: rgba(197,165,53,0.15);
}
.doc-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}
.doc-card__date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* --- Departments Grid --- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.dept-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.dept-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-800);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.dept-card:hover::after {
  transform: scaleX(1);
}

.dept-card:hover {
  box-shadow: var(--shadow-md);
}

.dept-card__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .dept-card__number {
  color: var(--gray-800);
}

.dept-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.dept-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Members Grid --- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.member-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .member-card {
  background: rgba(30,30,42,0.6);
}

.member-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-600), var(--gold-400), var(--teal-500));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.member-card:hover::before {
  opacity: 0.25;
}

.member-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.member-card--chair {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-glow-gold);
  background: var(--white);
}

.member-card--chair:hover {
  box-shadow: 0 12px 40px rgba(197,165,53,0.25);
}

.member-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  color: var(--text-tertiary);
  border: 3px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.member-card:hover .member-card__avatar {
  box-shadow: 0 0 24px rgba(43,45,139,0.2);
  border-color: var(--blue-600);
}

.member-card--chair .member-card__avatar {
  border-color: var(--gold-400);
  background: transparent;
  color: var(--gold-500);
}

.member-card--chair:hover .member-card__avatar {
  box-shadow: 0 0 24px rgba(197,165,53,0.3);
  border-color: var(--gold-400);
}

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

.member-card__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
  transition: color var(--duration-fast);
}

.member-card:hover .member-card__name {
  color: var(--blue-800);
}

[data-theme="dark"] .member-card:hover .member-card__name {
  color: var(--gold-400);
}
[data-theme="dark"] .member-card--chair {
  background: rgba(30,30,42,0.7);
  border-color: rgba(197,165,53,0.3);
}
[data-theme="dark"] .member-card__role {
  color: var(--gray-400);
}
[data-theme="dark"] .member-card__number {
  color: var(--gray-400);
  opacity: 0.8;
}

.member-card__role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.member-card--chair .member-card__role {
  color: var(--gold-500);
}
.member-card__number {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
  opacity: 0.7;
  font-weight: 500;
}
.member-card__founder {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

/* Clickable card */
.member-card--clickable {
  cursor: pointer;
}
.member-card--clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.member-card--clickable:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* Member Modal */
.member-modal {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.member-modal.open {
  display: flex;
}
.member-modal__overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.member-modal__content {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.member-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}
[dir="rtl"] .member-modal__close {
  right: auto;
  left: 1rem;
}
.member-modal__close:hover {
  background: var(--bg-secondary);
}
.member-modal__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.member-modal__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-modal__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.member-modal__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
}
.member-modal__id {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 600;
}
.member-modal__bio {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-inline-start: 3px solid var(--gold-500);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.member-modal__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.member-modal__row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.member-modal__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.member-modal__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.member-modal__empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 2rem 0;
  font-style: italic;
}

@media (max-width: 480px) {
  .member-modal__header {
    flex-direction: column;
    text-align: center;
  }
  .member-modal__content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .member-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
  }

  .member-card__avatar {
    width: 96px;
    height: 96px;
  }
}

/* --- Initiatives / Projects --- */
.initiative-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.initiative-card__img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.initiative-card__img::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(197,165,53,0.1));
}

.initiative-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--gold-500);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

[dir="rtl"] .initiative-card__badge {
  left: auto;
  right: var(--space-md);
}

.initiative-card__body {
  padding: var(--space-xl);
}

.initiative-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.initiative-card__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.initiative-card__meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* --- News / Media --- */
.news-card {
  display: flex;
  gap: var(--space-xl);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-card__img {
  width: 160px;
  min-height: 130px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-100), var(--teal-100));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue-800);
}

.news-card__body {
  flex: 1;
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--gold-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.news-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Featured news */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.news-featured__img {
  border-radius: var(--radius-lg);
  height: 360px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
}

.news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--duration-fast);
  font-size: 0.95rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-800);
  box-shadow: 0 0 0 3px rgba(43,45,139,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* --- Partners --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
}

.partner-logo {
  height: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-out);
}

.partner-logo:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-glow-gold);
}

/* Sponsor tiers */
.tier {
  margin-bottom: var(--space-3xl);
}

.tier__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
}

.tier__label--gold { color: var(--gold-500); border-color: var(--gold-500); }
.tier__label--silver { color: var(--gray-400); border-color: var(--gray-300); }
.tier__label--bronze { color: #CD7F32; border-color: #CD7F32; }

/* --- Newsletter Section --- */
.newsletter {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197,165,53,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.newsletter__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}
.newsletter__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.newsletter__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}
.newsletter__form {
  position: relative;
  z-index: 1;
}
.newsletter__fields {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter__input {
  flex: 1 1 200px;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.newsletter__input::placeholder {
  color: rgba(255,255,255,0.55);
}
.newsletter__input:focus {
  border-color: var(--gold-400);
  background: rgba(255,255,255,0.15);
}
.newsletter__btn {
  flex-shrink: 0;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.newsletter__msg {
  margin-top: var(--space-md);
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .newsletter__fields {
    flex-direction: column;
  }
  .newsletter__input {
    flex: 1 1 auto;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(197,165,53,0.08), transparent 70%);
}

.cta-banner__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner__text {
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
  font-size: 1.1rem;
  position: relative;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.contact-item__value {
  font-weight: 600;
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--gray-950);
  color: var(--gray-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer__brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.footer__heading {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--gold-400);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-800);
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--duration-fast);
  font-size: 0.85rem;
}

.footer__social a:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(197,165,53,0.1);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-800));
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.page-header__breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--duration-fast);
}

.page-header__breadcrumb a:hover {
  color: var(--gold-400);
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-header__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.tab {
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

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

.tab.active {
  color: var(--blue-800);
  border-bottom-color: var(--blue-800);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade-in 0.4s var(--ease-out);
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.value-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.value-item__text {
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 40px;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 15px;
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-800);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--blue-800);
}

[dir="rtl"] .timeline__dot {
  left: auto;
  right: -33px;
}

.timeline__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .hero {
    min-height: 80vh;
  }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .vmv-grid { grid-template-columns: 1fr; }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .news-featured {
    grid-template-columns: 1fr;
  }

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-5xl: 4rem;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__content {
    padding-bottom: var(--space-2xl);
  }

  .hero {
    min-height: auto;
  }

  .page-spacer {
    padding-top: 5rem;
  }

  .news-list {
    gap: 0.75rem;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card__img {
    width: 100%;
    height: 160px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .org-level {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .org-card,
  .org-card--primary {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .cta-banner {
    padding: var(--space-2xl);
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

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




  .news-card__img {
    width: 100%;
    min-height: 100px;
  }

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

  .mt-xl { margin-top: var(--space-2xl); }
  .mt-lg { margin-top: var(--space-xl); }
  .mb-xl { margin-bottom: var(--space-2xl); }

  .container {
    padding: 0 var(--space-md);
  }
}

/* ============================================
   ADVANCED VISUAL ENHANCEMENTS — WOW EDITION
   ============================================ */

/* ========== PHASE 1: ANIMATED MOVING BACKGROUNDS ========== */

/* --- Global Animated Mesh Background (Video-Like) --- */
.animated-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.animated-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.07;
  will-change: transform;
}

.animated-bg__blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-700), transparent 70%);
  top: -10%;
  left: -5%;
  animation: blob-drift-1 35s ease-in-out infinite;
}

.animated-bg__blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-400), transparent 70%);
  top: 40%;
  right: -10%;
  animation: blob-drift-2 40s ease-in-out infinite;
}

.animated-bg__blob--3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--teal-500), transparent 70%);
  bottom: -5%;
  left: 30%;
  animation: blob-drift-3 45s ease-in-out infinite;
}

.animated-bg__blob--4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--blue-600), transparent 70%);
  top: 60%;
  left: -8%;
  animation: blob-drift-4 50s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15vw, 10vh) scale(1.1); }
  50% { transform: translate(5vw, 25vh) scale(0.95); }
  75% { transform: translate(-5vw, 15vh) scale(1.05); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-20vw, -8vh) scale(1.15); }
  50% { transform: translate(-10vw, 12vh) scale(0.9); }
  75% { transform: translate(-25vw, -5vh) scale(1.05); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10vw, -15vh) scale(1.1); }
  50% { transform: translate(-15vw, -8vh) scale(1.05); }
  75% { transform: translate(5vw, -20vh) scale(0.95); }
}

@keyframes blob-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20vw, -10vh) scale(1.05); }
  50% { transform: translate(10vw, 15vh) scale(1.15); }
  75% { transform: translate(25vw, 5vh) scale(0.9); }
}

[data-theme="dark"] .animated-bg__blob { opacity: 0.04; }

/* --- Hero Animated Gradient --- */
.hero {
  background-size: 300% 300%;
  animation: hero-gradient 20s ease infinite;
}

@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Hero Floating Orbs --- */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  pointer-events: none;
}

.hero__blob--1 {
  width: 400px;
  height: 400px;
  background: rgba(197,165,53,0.12);
  top: 10%;
  right: 5%;
  animation: hero-orb-1 25s ease-in-out infinite;
}

.hero__blob--2 {
  width: 300px;
  height: 300px;
  background: rgba(0,180,216,0.1);
  bottom: 10%;
  left: 10%;
  animation: hero-orb-2 30s ease-in-out infinite;
}

.hero__blob--3 {
  width: 250px;
  height: 250px;
  background: rgba(74,77,224,0.1);
  top: 50%;
  left: 40%;
  animation: hero-orb-3 35s ease-in-out infinite;
}

@keyframes hero-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-10vw, 5vh) scale(1.2); }
  66% { transform: translate(-5vw, -8vh) scale(0.9); }
}

@keyframes hero-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8vw, -6vh) scale(1.15); }
  66% { transform: translate(12vw, 4vh) scale(0.85); }
}

@keyframes hero-orb-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6vw, 8vh) scale(1.1); }
  66% { transform: translate(8vw, -5vh) scale(0.95); }
}

/* --- Hero Particle Glow --- */
.hero__particle {
  box-shadow: 0 0 12px 4px rgba(197,165,53,0.5);
  animation: particle-pulse 3s ease-in-out infinite alternate;
}

.hero__particle:nth-child(2),
.hero__particle:nth-child(4) {
  box-shadow: 0 0 12px 4px rgba(0,180,216,0.5);
}

@keyframes particle-pulse {
  0% { box-shadow: 0 0 8px 2px currentColor; }
  100% { box-shadow: 0 0 20px 8px currentColor; }
}

/* --- Noise texture overlay --- */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 1;
}


/* ========== PHASE 2: GLASSMORPHISM CARDS ========== */

/* --- Glassmorphism nav enhancement --- */
.nav.scrolled {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(10,10,15,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- Glass Cards --- */
.card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
}

[data-theme="dark"] .card {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .card.card--highlight {
  background: var(--blue-800) !important;
  color: var(--white) !important;
  border-color: var(--blue-700) !important;
}
[data-theme="dark"] .card--highlight .card__title {
  color: #fff !important;
}
[data-theme="dark"] .card--highlight .card__text,
[data-theme="dark"] .card--highlight span {
  color: rgba(255,255,255,0.9) !important;
}
[data-theme="dark"] .card:not(.card--highlight) .card__title {
  color: var(--gray-100) !important;
}
[data-theme="dark"] .card:not(.card--highlight) .card__text,
[data-theme="dark"] .card:not(.card--highlight) > div span {
  color: var(--gray-200) !important;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-600), var(--gold-400), var(--teal-500));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.card:hover::before {
  opacity: 0.15;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(43,45,139,0.12), 0 0 0 1px rgba(43,45,139,0.05);
}

/* --- Glass VMV Cards --- */
.vmv-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
}

[data-theme="dark"] .vmv-card {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

.vmv-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s var(--ease-out);
  z-index: 0;
}

.vmv-card:hover::after {
  left: 100%;
}

.vmv-card:hover {
  box-shadow: 0 12px 40px rgba(43,45,139,0.15);
}

/* --- Glass Dept Cards --- */
.dept-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
}

[data-theme="dark"] .dept-card {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

/* --- Glass Initiative Cards --- */
.initiative-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
}

[data-theme="dark"] .initiative-card {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

.initiative-card__img {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 30%, var(--blue-700) 60%, #1a2980 100%);
  background-size: 200% 200%;
  transition: background-position 0.8s var(--ease-out);
}

.initiative-card:hover .initiative-card__img {
  background-position: 100% 100%;
}

/* --- Glass News Cards --- */
.news-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--duration-normal) var(--ease-out);
}

[data-theme="dark"] .news-card {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

.news-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(43,45,139,0.12);
}

[dir="rtl"] .news-card:hover {
  transform: translateX(-6px);
}

/* --- Glass FAQ Items --- */
.faq-item {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

[data-theme="dark"] .faq-item {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

.faq-item:hover {
  border-color: rgba(43,45,139,0.2);
}

.faq-item.open {
  box-shadow: 0 8px 32px rgba(43,45,139,0.12), inset 3px 0 0 var(--blue-800);
  border-color: var(--blue-800);
}

/* --- Glass Org Cards --- */
.org-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
}

[data-theme="dark"] .org-card {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Chairman card — glass with dark text */
.org-card--primary {
  background: rgba(255,255,255,0.7);
  color: var(--text-primary);
  border-color: rgba(197,165,53,0.3);
}

.org-card--primary .org-card__role {
  color: var(--gold-500);
}

.org-card--primary .org-card__avatar {
  background: transparent;
}

[data-theme="dark"] .org-card--primary {
  background: rgba(30,30,42,0.6);
  color: var(--gray-100);
  border-color: rgba(197,165,53,0.2);
}


/* --- Glass Partner Cards --- */
.partner-logo {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
}

[data-theme="dark"] .partner-logo {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

/* --- Glass Value Items --- */
.value-item {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--duration-normal) var(--ease-out);
}

[data-theme="dark"] .value-item {
  background: rgba(30,30,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}

.value-item:hover {
  transform: translateX(8px);
  border-color: var(--blue-800);
  box-shadow: 0 4px 20px rgba(43,45,139,0.1);
}

[dir="rtl"] .value-item:hover {
  transform: translateX(-8px);
}


/* ========== PHASE 3: GRADIENT TEXT ========== */

.section-title {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--gold-500) 50%, var(--teal-500) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shimmer 6s ease infinite;
}

@keyframes gradient-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

[data-theme="dark"] .section-title {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--gold-400) 50%, var(--teal-400) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shimmer 6s ease infinite;
}

/* Keep hero & dark section titles white */
.section--dark .section-title,
.section--gradient .section-title,
.hero__title {
  -webkit-text-fill-color: unset;
  background: none;
}


/* ========== PHASE 4: PREMIUM ORG CHART ========== */

/* --- Glowing Avatar Rings --- */
.org-card__avatar {
  position: relative;
  box-shadow: 0 0 0 3px rgba(43,45,139,0.1), 0 0 20px rgba(43,45,139,0.08);
  transition: all var(--duration-normal) var(--ease-out);
}

.org-card:hover .org-card__avatar {
  box-shadow: 0 0 0 3px rgba(43,45,139,0.2), 0 0 30px rgba(43,45,139,0.15);
  transform: scale(1.05);
}

/* Chairman gold glow */
.org-card--primary .org-card__avatar {
  box-shadow: 0 0 0 3px rgba(197,165,53,0.3), 0 0 25px rgba(197,165,53,0.2);
  animation: avatar-glow-gold 3s ease-in-out infinite alternate;
}

@keyframes avatar-glow-gold {
  0% { box-shadow: 0 0 0 3px rgba(197,165,53,0.2), 0 0 20px rgba(197,165,53,0.15); }
  100% { box-shadow: 0 0 0 4px rgba(197,165,53,0.4), 0 0 35px rgba(197,165,53,0.25); }
}

.org-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* --- Enhanced Connector --- */
.org-connector {
  background: linear-gradient(to bottom, var(--blue-800), var(--gold-500));
  width: 2px;
  height: 50px;
  position: relative;
}

.org-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 10px rgba(197,165,53,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { top: 0; opacity: 1; }
  50% { top: calc(100% - 8px); opacity: 0.5; }
}


/* ========== PHASE 5: GLOWING ACCENTS ========== */

/* --- Button Glow --- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn--primary {
  box-shadow: 0 4px 15px rgba(43,45,139,0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 25px rgba(43,45,139,0.4), 0 0 40px rgba(43,45,139,0.15);
}

.btn--gold {
  box-shadow: 0 4px 15px rgba(197,165,53,0.3);
}

.btn--gold:hover {
  box-shadow: 0 6px 25px rgba(197,165,53,0.4), 0 0 40px rgba(197,165,53,0.15);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* --- Glowing Section Label Line --- */
.section-label::before {
  box-shadow: 0 0 8px rgba(197,165,53,0.4);
}

/* --- Glowing Value Item Icons --- */
.value-item__icon {
  box-shadow: 0 0 12px rgba(43,45,139,0.1);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.value-item:hover .value-item__icon {
  box-shadow: 0 0 20px rgba(43,45,139,0.2);
}

/* --- Glowing Contact Icons --- */
.contact-item__icon {
  box-shadow: 0 0 12px rgba(43,45,139,0.08);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-item:hover .contact-item__icon {
  box-shadow: 0 0 24px rgba(43,45,139,0.15);
  transform: scale(1.08);
}

[dir="rtl"] .faq-item.open {
  box-shadow: 0 8px 32px rgba(43,45,139,0.12), inset -3px 0 0 var(--blue-800);
}

/* --- CTA banner animated glow --- */
.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(197,165,53,0.05), transparent, rgba(0,180,216,0.05), transparent);
  animation: cta-rotate 15s linear infinite;
  z-index: 0;
}

@keyframes cta-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}


/* ========== PHASE 6: ENHANCED SCROLL REVEAL ========== */

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--left.visible,
.reveal--right.visible,
.reveal--scale.visible {
  opacity: 1;
  transform: none;
}


/* ========== PHASE 7: FOOTER UPGRADE ========== */

/* --- Footer gradient top border (wider & glowing) --- */
.footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-800), var(--gold-500), var(--teal-500), var(--gold-500), var(--blue-800)) 1;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(197,165,53,0.08), transparent);
  pointer-events: none;
}

/* --- Footer Social Glow --- */
.footer__social a {
  transition: all var(--duration-normal) var(--ease-out);
}

.footer__social a:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(197,165,53,0.1);
  box-shadow: 0 0 20px rgba(197,165,53,0.2);
  transform: translateY(-2px);
}


/* ========== PHASE 8: POLISH & MICRO-INTERACTIONS ========== */

/* --- Form focus glow --- */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(43,45,139,0.1), 0 0 20px rgba(43,45,139,0.05);
}

/* --- Photo hover zoom --- */
.org-card__avatar img,
.member-card__avatar img {
  transition: transform 0.4s var(--ease-out);
}

.org-card:hover .org-card__avatar img,
.member-card:hover .member-card__avatar img {
  transform: scale(1.08);
}

/* --- Page header animated gradient --- */
.page-header {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 40%, #1a2980 100%);
  background-size: 200% 200%;
  animation: hero-gradient 15s ease infinite;
}

/* --- Section dividers --- */
.section + .section--alt,
.section--alt + .section {
  border-top: 1px solid var(--border-light);
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--blue-800), var(--gold-500));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--gold-500), var(--teal-500));
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--gray-900);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--blue-700), var(--gold-500));
}

/* --- Selection color --- */
::selection {
  background: var(--blue-800);
  color: var(--white);
}

/* --- Smooth page loading --- */
body {
  
}

@keyframes page-load {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Back to Top with glow --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--blue-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 8px 24px rgba(43,45,139,0.3);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(197,165,53,0.4);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}


/* ========== EXISTING FEATURES (PRESERVED) ========== */

/* --- Splash / Welcome Animation --- */










/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-800), var(--gold-400), var(--teal-500));
  z-index: 1001;
  transition: width 50ms linear;
}

/* --- Nav Link Underline Animation --- */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--teal-500));
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
  transform: translateX(-50%);
}

.nav__link:hover::after {
  width: 70%;
}

/* --- Active Nav Link --- */
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav.scrolled .nav__link.active {
  color: var(--blue-800);
  background: var(--blue-100);
}

/* --- Hero Parallax --- */
.hero__content {
  transition: transform 0.1s linear;
}

/* --- Lazy Image Fade --- */
.lazy-img {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.lazy-img.loaded {
  opacity: 1;
}

/* --- FAQ Accordion Details --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: inherit;
  font-family: inherit;
  line-height: 1.5;
}

.faq-question:hover {
  color: var(--blue-800);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--duration-normal) var(--ease-out);
}

.faq-item.open .faq-icon {
  background: var(--blue-800);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
  padding: 0 var(--space-xl);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-xl) var(--space-xl);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* --- Section Background Patterns --- */
.section--alt {
  position: relative;
}

.section--alt::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border-light) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}

#sec-about {
  position: relative;
  overflow: hidden;
}

#sec-about::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#sec-about::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197,165,53,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}


/* ========== PHASE 9: SAFETY & FALLBACKS ========== */

/* --- Reduced Motion --- */
@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, .reveal--left, .reveal--right, .reveal--scale { opacity: 1 !important; transform: none !important; }
  .lazy-img { opacity: 1 !important; }
  .hero { background-size: 100% 100% !important; animation: none !important; }
  .animated-bg { display: none !important; }
  .section-title {
    -webkit-text-fill-color: unset !important;
    background: none !important;
    animation: none !important;
  }
}

/* --- Backdrop-filter Fallback --- */
@supports not (backdrop-filter: blur(12px)) {
  .nav.scrolled {
    background: rgba(255,255,255,0.97);
  }
  [data-theme="dark"] .nav.scrolled {
    background: rgba(10,10,15,0.97);
  }
  .card, .vmv-card, .dept-card, .initiative-card, .news-card, .faq-item, .org-card, .value-item {
    background: var(--bg-primary);
  }
  [data-theme="dark"] .card,
  [data-theme="dark"] .vmv-card,
  [data-theme="dark"] .dept-card,
  [data-theme="dark"] .initiative-card,
  [data-theme="dark"] .news-card,
  [data-theme="dark"] .faq-item,
  [data-theme="dark"] .org-card,
  [data-theme="dark"] .value-item {
    background: var(--bg-secondary);
  }
  [data-theme="dark"] .card.card--highlight {
    background: var(--blue-800);
    color: var(--white);
  }
  .member-card {
    background: rgba(255,255,255,0.95);
  }
  [data-theme="dark"] .member-card {
    background: rgba(30,30,42,0.95);
  }
  .partner-logo {
    background: var(--bg-primary);
  }
  [data-theme="dark"] .partner-logo {
    background: var(--bg-secondary);
  }
  .members-search, .members-filter {
    background: var(--bg-primary);
  }
  [data-theme="dark"] .members-search, [data-theme="dark"] .members-filter {
    background: var(--bg-secondary);
  }
  .member-modal__overlay {
    background: rgba(0,0,0,0.6);
  }
  .pwa-install-banner {
    background: rgba(255,255,255,0.97);
  }
  [data-theme="dark"] .pwa-install-banner {
    background: rgba(30,30,42,0.97);
  }
}

/* --- Touch device tap highlight --- */
@media (hover: none) {
  .card:hover,
  .vmv-card:hover,
  .member-card:hover,
  .initiative-card:hover,
  .news-card:hover,
  .org-card:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.97);
  }
}

/* --- Mobile: tone down blobs for performance --- */
@media (max-width: 768px) {
  .animated-bg__blob {
    filter: blur(60px);
    opacity: 0.04;
  }
  .animated-bg__blob--3,
  .animated-bg__blob--4 {
    display: none;
  }
  .hero__blob--3 {
    display: none;
  }
}

/* --- Safe area padding for notched devices --- */
@supports (padding-top: env(safe-area-inset-top)) {
  .nav {
    padding-top: env(safe-area-inset-top);
  }

  .footer {
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  }

  .back-to-top {
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

/* --- Focus visible for keyboard users --- */
.btn:focus-visible,
.nav__link:focus-visible,
.nav__btn:focus-visible,
.faq-question:focus-visible,
.footer__link:focus-visible,
.back-to-top:focus-visible,
.pwa-install-banner__close:focus-visible,
.members-reset:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--blue-800);
  outline-offset: 1px;
}

/* ========== PAGE TRANSITIONS ========== */

.page-transition {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  pointer-events: none;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

body.page-entering {
  
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ========== MEMBERS SEARCH & FILTER ========== */

/* Board tiered layout */
.board-section {
  margin-bottom: var(--space-3xl);
}
.board-section__title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}
.board-tier {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.board-tier--1 .member-card {
  min-width: 220px;
  max-width: 260px;
}
.board-tier--1 .member-card__avatar {
  width: 140px;
  height: 140px;
  border-width: 4px;
  border-color: var(--gold-400);
}
.board-tier--1 .member-card__name {
  font-size: 1.1rem;
}
.board-tier--2 .member-card {
  min-width: 200px;
  max-width: 240px;
}
.board-tier--2 .member-card__avatar {
  width: 110px;
  height: 110px;
}
.board-tier--3 .member-card {
  min-width: 180px;
  max-width: 220px;
}
.board-tier--3 .member-card__avatar {
  width: 100px;
  height: 100px;
}
.board-tier--team {
  gap: var(--space-lg);
}
.board-tier__connector {
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--gold-400), var(--blue-800));
  border-radius: 2px;
  opacity: 0.4;
}
.team-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 600px) {
  .board-tier--1 .member-card__avatar { width: 120px; height: 120px; }
  .board-tier--2 .member-card__avatar { width: 100px; height: 100px; }
  .board-tier--3 .member-card__avatar { width: 90px; height: 90px; }
  .board-tier { gap: var(--space-md); }
}

.members-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  align-items: center;
}

.members-search {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  font-family: inherit;
}

[data-theme="dark"] .members-search {
  background: rgba(30,30,42,0.5);
  border-color: rgba(255,255,255,0.06);
}

.members-search:focus {
  outline: none;
  border-color: var(--blue-800);
  box-shadow: 0 0 0 3px rgba(43,45,139,0.1), 0 0 20px rgba(43,45,139,0.05);
}

.members-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.members-search-wrap::before {
  content: '\1F50D';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

[dir="rtl"] .members-search-wrap::before {
  left: auto;
  right: 0.85rem;
}

[dir="rtl"] .members-search {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
}

.members-filter {
  padding: 0.65rem 1.25rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  font-family: inherit;
  min-width: 130px;
}

[data-theme="dark"] .members-filter {
  background: rgba(30,30,42,0.5);
  border-color: rgba(255,255,255,0.06);
}

.members-filter:focus {
  outline: none;
  border-color: var(--blue-800);
  box-shadow: 0 0 0 3px rgba(43,45,139,0.1);
}

.members-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-inline-start: auto;
}

/* No results */
.members-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--text-tertiary);
  font-size: 1.1rem;
}

.members-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* Clear search button */
.members-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 1;
}
.members-search-clear:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-primary);
}
[dir="rtl"] .members-search-clear {
  right: auto;
  left: 0.75rem;
}

/* Reset all button */
.members-reset {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 600;
}
.members-reset:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}
[data-theme="dark"] .members-reset:hover {
  background: rgba(255,255,255,0.06);
}

/* Active filter indicator */
.members-filter.filter-active {
  border-color: var(--blue-800);
  background: rgba(43,45,139,0.08);
  color: var(--blue-800);
  font-weight: 700;
}
[data-theme="dark"] .members-filter.filter-active {
  border-color: var(--gold-400);
  background: rgba(197,165,53,0.1);
  color: var(--gold-400);
}

/* Smooth hide/show for search filtering only */
.member-card.hidden {
  transition: opacity 0.3s, transform 0.3s;
}

.member-card.hidden {
  display: none;
}

/* ========== DARK MODE FIXES ========== */

/* Nav hover/active in dark mode */
[data-theme="dark"] .nav.scrolled .nav__link:hover,
[data-theme="dark"] .nav.scrolled .nav__link.active {
  color: var(--gold-400);
  background: rgba(197,165,53,0.1);
}
[data-theme="dark"] .nav__mobile a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--gold-400);
}

/* FAQ dark mode */
[data-theme="dark"] .faq-question:hover {
  color: var(--gold-400);
}
[data-theme="dark"] .faq-icon {
  background: rgba(255,255,255,0.08);
  color: var(--gray-300);
}
[data-theme="dark"] .faq-item.open .faq-icon {
  background: var(--gold-500);
  color: var(--gray-950);
}

/* Contact dark mode */
[data-theme="dark"] .contact-item__icon {
  background: rgba(255,255,255,0.08);
  color: var(--gold-400);
}
[data-theme="dark"] .contact-item__label {
  color: var(--gray-400);
}

/* Search clear button dark mode */
[data-theme="dark"] .members-search-clear:hover {
  background: rgba(255,255,255,0.1);
}

/* Org card role dark mode */
[data-theme="dark"] .org-card__role {
  color: var(--gray-400);
}


/* ========== SCROLL SNAPPING ========== */

html {
  scroll-snap-type: y proximity;
}

.section, .hero {
  scroll-snap-align: start;
}


/* ========== CURSOR GLOW ========== */

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43,45,139,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
    will-change: left, top;
  }

  .cursor-glow.visible {
    opacity: 1;
  }

  [data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(197,165,53,0.05) 0%, transparent 70%);
  }
}


/* ========== LOADING SKELETON ========== */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

[data-theme="dark"] .skeleton {
  background: var(--gray-800);
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: skeleton-shimmer 1.5s infinite;
}

[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: opacity 0.4s ease;
}

.skeleton-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.skeleton-nav {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-rect {
  border-radius: var(--radius-sm);
}

.skeleton-hero {
  flex: 1;
  max-height: 60vh;
  margin: 0 2rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .skeleton-hero {
  background: var(--gray-800);
}

.skeleton-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: skeleton-shimmer 1.5s infinite;
}

[data-theme="dark"] .skeleton-hero::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}

.skeleton-bars {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* ========== PWA INSTALL BANNER ========== */

.pwa-install-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 10000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transition: transform 0.5s var(--ease-out);
  max-width: 420px;
  width: calc(100% - 2rem);
}

.pwa-install-banner.visible {
  transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .pwa-install-banner {
  background: rgba(30,30,42,0.9);
  border-color: rgba(255,255,255,0.08);
}

.pwa-install-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.pwa-install-banner__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-install-banner__text {
  flex: 1;
}

.pwa-install-banner__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.pwa-install-banner__desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.pwa-install-banner__btn {
  padding: 0.5rem 1.25rem;
  background: var(--blue-800);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.pwa-install-banner__btn:hover {
  background: var(--gold-500);
}

.pwa-install-banner__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pwa-install-banner__close:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.05);
}

[dir="rtl"] .pwa-install-banner__close {
  right: auto;
  left: 0.5rem;
}

/* --- Print --- */
@media print {
  .nav, .footer, .hero__bg, .hero__grid, .scroll-progress, .back-to-top, .animated-bg, .cursor-glow, .skeleton-screen, .pwa-install-banner, .page-transition {
    display: none !important;
  }

  html {
    scroll-snap-type: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 2rem 0;
    scroll-snap-align: none;
  }

  .reveal, .reveal--left, .reveal--right, .reveal--scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .section-title {
    -webkit-text-fill-color: unset !important;
    background: none !important;
  }

  .hero {
    min-height: auto;
    background: #2B2D8B !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
