/* ============================================================
   NurulQuran — Design System
   "Light of Revelation" — 2026 Redesign
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- Tanzil Madinah Uthmani Quranic Font ---- */
@font-face {
  font-family: 'me_quran';
  src: url('../assets/fonts/me_quran.woff') format('woff'),
       url('../assets/fonts/me_quran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   1. CSS CUSTOM PROPERTIES — Color System
   ============================================================ */
:root {
  /* --- Raw color values --- */
  --color-indigo-deep: #0d0033;
  --color-royal-blue: #1a237e;
  --color-royal-blue-light: #3949ab;
  --color-luminous-blue: #7c9cff;
  --color-celestial-teal: #004d40;
  --color-mint-teal: #64ffda;
  --color-deep-teal: #00695c;
  --color-warm-gold: #c9a227;
  --color-bright-gold: #ffd54f;
  --color-subtle-rose: #880e4f;
  --color-soft-rose: #f48fb1;

  /* --- Semantic tokens (light mode default) --- */
  --primary: var(--color-royal-blue);
  --primary-light: var(--color-royal-blue-light);
  --accent-gold: var(--color-warm-gold);
  --accent-teal: var(--color-deep-teal);
  --accent-rose: var(--color-subtle-rose);

  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --card-border: rgba(26, 35, 126, 0.12);
  --text: #1a1a2e;
  --text-secondary: #334155;
  --text-muted: #525266;
  --text-heading: var(--text);
  --border: rgba(26, 35, 126, 0.12);
  --border-light: rgba(26, 35, 126, 0.06);

  /* Calendar Colors */
  --cal-event-bg: #e6f4ea;
  --cal-event-border: #1e8e3e;
  --cal-event-text: #0d652d;
  --cal-event-bg-hover: #ceead6;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: rgba(26, 35, 126, 0.08);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0d0033 0%, #1a237e 30%, #004d40 70%, #0d0033 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-luminous-blue), var(--color-mint-teal), var(--color-bright-gold));
  --gradient-gold: linear-gradient(135deg, var(--color-warm-gold), var(--color-bright-gold));
  --gradient-card-border: linear-gradient(135deg, rgba(26, 35, 126, 0.3), rgba(0, 105, 92, 0.3), rgba(201, 162, 39, 0.3));
  --gradient-section: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(124, 156, 255, 0.15);
  --shadow-gold-glow: 0 0 30px rgba(201, 162, 39, 0.2);

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-arabic: 'me_quran', 'KFGQPC Uthman Taha Naskh', 'Amiri', 'Traditional Arabic', serif;

  /* Color scheme */
  color-scheme: light dark;
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: var(--color-luminous-blue);
    --primary-light: #a0b4ff;
    --accent-gold: var(--color-bright-gold);
    --accent-teal: var(--color-mint-teal);
    --accent-rose: var(--color-soft-rose);

    --bg: #0a0e1a;
    --bg-alt: #0f1629;
    --surface: #141b2d;
    --surface-elevated: rgba(20, 27, 45, 0.9);
    --card-bg: #141b2d;
    --card-border: rgba(124, 156, 255, 0.15);
    --text: #e8eaed;
    --text-secondary: #a0a8c0;
    --text-muted: #6b7394;
    --text-heading: var(--text);
    --border: rgba(124, 156, 255, 0.15);
    --border-light: rgba(124, 156, 255, 0.08);

    /* Calendar Colors */
    --cal-event-bg: rgba(30, 142, 62, 0.2);
    --cal-event-border: #81c995;
    --cal-event-text: #81c995;
    --cal-event-bg-hover: rgba(30, 142, 62, 0.35);

    --glass-bg: rgba(14, 20, 40, 0.75);
    --glass-border: rgba(124, 156, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    --gradient-card-border: linear-gradient(135deg, rgba(124, 156, 255, 0.4), rgba(100, 255, 218, 0.4), rgba(255, 213, 79, 0.4));
    --gradient-section: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(124, 156, 255, 0.2);
    --shadow-gold-glow: 0 0 40px rgba(255, 213, 79, 0.15);
  }
}

/* Manual dark mode override */
html.dark {
  --primary: var(--color-luminous-blue);
  --primary-light: #a0b4ff;
  --accent-gold: var(--color-bright-gold);
  --accent-teal: var(--color-mint-teal);
  --accent-rose: var(--color-soft-rose);

  --bg: #0a0e1a;
  --bg-alt: #0f1629;
  --surface: #141b2d;
  --surface-elevated: rgba(20, 27, 45, 0.9);
  --card-bg: #141b2d;
  --card-border: rgba(124, 156, 255, 0.15);
  --text: #e8eaed;
  --text-secondary: #a0a8c0;
  --text-muted: #6b7394;
  --text-heading: var(--text);
  --border: rgba(124, 156, 255, 0.15);
  --border-light: rgba(124, 156, 255, 0.08);

  /* Calendar Colors */
  --cal-event-bg: rgba(30, 142, 62, 0.2);
  --cal-event-border: #81c995;
  --cal-event-text: #81c995;
  --cal-event-bg-hover: rgba(30, 142, 62, 0.35);

  --glass-bg: rgba(14, 20, 40, 0.75);
  --glass-border: rgba(124, 156, 255, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.3);

  --gradient-card-border: linear-gradient(135deg, rgba(124, 156, 255, 0.4), rgba(100, 255, 218, 0.4), rgba(255, 213, 79, 0.4));
  --gradient-section: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(124, 156, 255, 0.2);
  --shadow-gold-glow: 0 0 40px rgba(255, 213, 79, 0.15);
}

html.light {
  --primary: var(--color-royal-blue);
  --primary-light: var(--color-royal-blue-light);
  --accent-gold: var(--color-warm-gold);
  --accent-teal: var(--color-deep-teal);
  --accent-rose: var(--color-subtle-rose);

  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --card-border: rgba(26, 35, 126, 0.12);
  --text: #1a1a2e;
  --text-secondary: #334155;
  --text-muted: #525266;
  --text-heading: var(--text);
  --border: rgba(26, 35, 126, 0.12);
  --border-light: rgba(26, 35, 126, 0.06);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-shadow: rgba(26, 35, 126, 0.08);

  --gradient-card-border: linear-gradient(135deg, rgba(26, 35, 126, 0.3), rgba(0, 105, 92, 0.3), rgba(201, 162, 39, 0.3));
  --gradient-section: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(124, 156, 255, 0.15);
  --shadow-gold-glow: 0 0 30px rgba(201, 162, 39, 0.2);
}

/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-out);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--accent-teal); }

/* ---- Accessibility ---- */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

:where(a:any-link, button, [role="button"]):focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-padding);
  position: relative;
}

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

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

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

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  max-width: 80ch;
  color: var(--text-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.5em;
  line-height: 2;
  direction: rtl;
  unicode-bidi: bidi-override;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-accent);
  color: #0d0033;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-glow), 0 8px 32px rgba(124, 156, 255, 0.3);
  color: #0d0033;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  color: #fff;
}

.btn-donate {
  background: var(--gradient-gold);
  color: #1a1a2e;
  box-shadow: var(--shadow-gold-glow);
}

.btn-donate:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-gold-glow), 0 8px 32px rgba(201, 162, 39, 0.3);
  color: #1a1a2e;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

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

/* ============================================================
   6. GLASSMORPHISM CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-spring);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--accent-teal);
}

/* Gradient border card */
.gradient-border-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-spring);
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-card-border);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

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

.gradient-border-card:hover::before {
  background: var(--gradient-accent);
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  z-index: 1001;
}

.navbar.scrolled .nav-brand {
  color: var(--text);
}

.nav-brand img {
  height: 40px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: rgba(124, 156, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar.scrolled .theme-toggle {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  z-index: 1001;
}

.navbar.scrolled .nav-toggle {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

/* Mobile menu */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-hero);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 999;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    font-size: 1.35rem;
    padding: 0.75rem 2rem;
    color: #fff;
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  /* ---- Force white-on-dark when overlay is open, even if scrolled ---- */
  body.menu-open { overflow: hidden; }

  .nav-links.open a,
  .navbar.scrolled .nav-links.open a {
    color: #fff;
  }
  .nav-links.open a:hover,
  .nav-links.open a.active,
  .navbar.scrolled .nav-links.open a:hover,
  .navbar.scrolled .nav-links.open a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
  }

  .nav-links.open ~ .nav-actions .nav-toggle,
  .navbar.scrolled .nav-links.open ~ .nav-actions .nav-toggle {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
  }

  .nav-links.open ~ .nav-actions .theme-toggle,
  .navbar.scrolled .nav-links.open ~ .nav-actions .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .navbar.scrolled .nav-brand:has(~ .nav-links.open) {
    color: #fff;
  }

  .navbar:has(.nav-links.open),
  .navbar.scrolled:has(.nav-links.open) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
  }
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

/* Animated gradient mesh overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(124, 156, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(255, 213, 79, 0.08) 0%, transparent 40%);
  animation: hero-mesh 12s ease-in-out infinite alternate;
}

@keyframes hero-mesh {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.1) rotate(2deg); opacity: 1; }
}

/* Star field */
.hero-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float-orb var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: var(--opacity-start, 0.3);
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
    opacity: var(--opacity-mid, 0.5);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
    opacity: var(--opacity-start, 0.3);
  }
}

/* Geometric pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(60deg, rgba(255,255,255,0.5) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.5) 75%),
    linear-gradient(60deg, rgba(255,255,255,0.5) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.5) 75%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 var(--container-padding);
}

.hero__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  color: var(--color-bright-gold);
  margin-bottom: 1.5rem;
  opacity: 0.95;
  direction: rtl;
  letter-spacing: 0;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  font-weight: 400; /* Regular weight - NOT bold */
}

.hero__title {
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ============================================================
   9. ABOUT SECTION
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ============================================================
   10. COURSE CARDS
   ============================================================ */
.course-card {
  position: relative;
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
}

.course-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.course-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.course-card p {
  font-size: 0.95rem;
  margin: 0 auto;
}

.course-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--duration-fast) var(--ease-out);
}

.course-card:hover .card-link {
  gap: 0.75rem;
  color: var(--accent-teal);
}

/* ============================================================
   11. PROGRAMS SECTION
   ============================================================ */
.program-card {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-spring);
}

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

.program-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.program-card h3 { margin-bottom: 0.75rem; }
.program-card p { margin: 0 auto; font-size: 0.95rem; }

/* ============================================================
   12. EVENTS TIMELINE
   ============================================================ */
.events-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.events-column h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

.event-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-gold);
  transition: all var(--duration-normal) var(--ease-spring);
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-teal);
}

.event-card .event-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-card h4 { margin-bottom: 0.35rem; }
.event-card .event-date {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.event-card p { font-size: 0.9rem; }
.event-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* ============================================================
   13. TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials-wrapper {
  position: relative;
  width: 100%;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.5rem 2rem;
  scrollbar-width: none;
  cursor: grab;
}

.testimonials-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 360px;
  max-width: calc(100vw - 3rem);
  padding: 2.25rem 1.75rem;
  text-align: center;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: all var(--duration-fast) var(--ease-out);
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -1.25rem;
}

.carousel-next {
  right: -1.25rem;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: #0d0033;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-gold);
  opacity: 0.5;
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 0.15em;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 500;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonials-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  padding: 0;
}

.testimonials-dots .dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 85vw;
  }
  .carousel-arrow {
    display: none;
  }
}

/* ============================================================
   14. RESOURCES SECTION
   ============================================================ */
.resource-category-card,
.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) var(--ease-spring), border-color var(--duration-fast);
}

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

.resource-category-title {
  margin-top: 0;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.resource-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.resource-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resource-item-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.resource-item-link:hover {
  color: var(--primary);
}

.resource-item-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   15. PROJECTS / DONATE SECTION
   ============================================================ */
.projects-section {
  background: var(--gradient-hero);
  color: #fff;
}

.projects-section .section-title { color: #fff; }
.projects-section .section-subtitle { color: rgba(255, 255, 255, 0.7); }
.projects-section .section-title::after {
  background: var(--gradient-gold);
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-spring);
}

.project-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-card h3 { color: #fff; margin-bottom: 0.35rem; }
.project-card .project-subtitle {
  color: var(--color-bright-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.project-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-mint-teal);
  font-weight: 600;
  font-size: 0.9rem;
}

.donate-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.donate-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.donate-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   16. CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
}

.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-spring);
}

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

.contact-flag {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-card h4 { margin-bottom: 0.5rem; }
.contact-card a {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-email {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
}

.contact-email a {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-light);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   18. SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* ============================================================
   17. MEDIA CENTER (AUDIO & VIDEO PLAYER)
   ============================================================ */
.media-container {
  margin-top: 2rem;
  gap: 2rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.media-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

/* Custom Audio Player */
.custom-audio-player {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.player-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

/* Visualizer bars */
.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 48px;
  height: 36px;
}

.audio-visualizer .bar {
  width: 3px;
  height: 20%;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-visualizer.playing .bar {
  animation: visualize 1.2s ease-in-out infinite alternate;
}

.audio-visualizer.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.audio-visualizer.playing .bar:nth-child(2) { animation-delay: 0.4s; }
.audio-visualizer.playing .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer.playing .bar:nth-child(4) { animation-delay: 0.6s; }
.audio-visualizer.playing .bar:nth-child(5) { animation-delay: 0.3s; }
.audio-visualizer.playing .bar:nth-child(6) { animation-delay: 0.5s; }
.audio-visualizer.playing .bar:nth-child(7) { animation-delay: 0.1s; }
.audio-visualizer.playing .bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes visualize {
  0% { height: 20%; }
  100% { height: 100%; }
}

.track-details h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-heading);
}

.track-details p {
  font-size: 0.85rem;
  margin: 0.2rem 0 0 0;
  opacity: 0.7;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.play-btn {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: var(--shadow-sm);
}

.play-btn:hover {
  transform: scale(1.05);
  background: var(--primary-light);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  font-size: 0.8rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  background: var(--border-light);
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  transition: transform 0.1s;
}

.progress-bar::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.volume-slider {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  background: var(--border-light);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-heading);
  cursor: pointer;
}

/* Playlist styling */
.audio-playlist, .video-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
  max-height: 220px;
  padding-right: 0.5rem;
}

.playlist-item, .video-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  width: 100%;
}

.playlist-item:hover, .video-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.playlist-item.active, .video-item.active {
  background: rgba(124, 156, 255, 0.08);
  border-color: var(--accent-gold);
}

.playlist-item.active .track-name, .video-item.active h4 {
  color: var(--accent-gold);
  font-weight: 600;
}

.track-num {
  font-weight: 700;
  opacity: 0.5;
  width: 30px;
}

.track-name {
  flex: 1;
}

.track-length {
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Video Showcase Styles */
.video-player-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

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

.video-item {
  gap: 1rem;
}

.video-thumbnail {
  background: var(--primary);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.video-details h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.video-details p {
  margin: 0.15rem 0 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Custom Scrollbar for playlists */
.audio-playlist::-webkit-scrollbar,
.video-playlist::-webkit-scrollbar {
  width: 6px;
}

.audio-playlist::-webkit-scrollbar-thumb,
.video-playlist::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

/* ============================================================
   18. INTERACTIVE EVENTS & TRIPS CALENDAR
   ============================================================ */
.events-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.events-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.35rem;
  border-radius: 50px;
  gap: 0.25rem;
}

.event-tab-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-size: 0.95rem;
}

.event-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.event-panel {
  display: none;
}

.event-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calendar View Grid */
.calendar-layout {
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
}

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

.calendar-widget {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

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

.calendar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-heading);
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  opacity: 0.6;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.cal-day {
  aspect-ratio: 1.1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  position: relative;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cal-day:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}

.cal-day.empty {
  cursor: default;
}

.cal-day.has-event {
  color: var(--cal-event-text);
  font-weight: 700;
  border-color: var(--cal-event-border);
  background: var(--cal-event-bg);
}

.cal-day.has-event:hover {
  border-color: var(--cal-event-border);
  background: var(--cal-event-bg-hover);
}

.event-dots-wrap {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  display: inline-block;
}

.cal-day.selected {
  background: var(--accent-gold) !important;
  color: #000000 !important;
  border-color: var(--accent-gold) !important;
}

.cal-day.selected .event-dot {
  background: #000;
  box-shadow: none;
}

/* Event Detail Card Display */
.event-detail-display {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

.event-detail-empty {
  text-align: center;
  opacity: 0.8;
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.event-detail-content {
  animation: fadeIn 0.3s ease forwards;
}

.event-detail-tag {
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.event-detail-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  color: var(--text-heading);
  line-height: 1.3;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.meta-icon {
  font-size: 1.1rem;
}

.event-detail-desc {
  font-size: 0.95rem;
  margin: 1.25rem 0;
  line-height: 1.6;
  opacity: 0.85;
}

.event-detail-cta {
  width: fit-content;
  margin-top: 0.5rem;
}

.hidden {
  display: none !important;
}

/* Trips Timeline panel */
.trips-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}

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

.timeline-item {
  position: relative;
}

.timeline-badge {
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-card {
  padding: 1.75rem;
}

.trip-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.trip-tag.upcoming {
  background: rgba(100, 255, 218, 0.15);
  color: var(--accent-teal);
}

.trip-tag.past {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  opacity: 0.6;
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-heading);
}

.trip-meta {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 0 1rem 0;
}

.trip-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.trip-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   18.1 FLYER SHOWCASE & MODAL STYLES
   ============================================================ */
.flyers-spotlight {
  margin-bottom: 2.5rem;
}

.flyers-spotlight-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.flyers-spotlight-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-bright-gold, #ffd54f);
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
}

.flyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.flyer-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.flyer-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--color-gold);
}

.flyer-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.4;
  overflow: hidden;
  background: #000;
}

.flyer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.flyer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 14, 26, 0.85);
  color: var(--color-gold, #ffd54f);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 213, 79, 0.3);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.flyer-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flyer-card:hover .flyer-zoom-overlay {
  opacity: 1;
}

.flyer-zoom-icon {
  background: var(--primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.flyer-card:hover .flyer-zoom-icon {
  transform: scale(1);
}

.flyer-info {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.flyer-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-heading);
  line-height: 1.3;
}

.flyer-city-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-teal, #64ffda);
}

.flyer-venue {
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.4;
}

.flyer-contact {
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  color: var(--color-gold);
}

/* Event side card flyer preview */
.event-detail-flyer-preview {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  max-height: 180px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.event-detail-flyer-preview:hover {
  transform: scale(1.02);
  border-color: var(--color-gold);
}

.event-detail-flyer-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.event-detail-flyer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.75rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Trips timeline flyer list */
.trip-flyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem 0;
}

.trip-flyer-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  background: #000;
  aspect-ratio: 1 / 1.35;
  position: relative;
}

.trip-flyer-thumb:hover {
  transform: scale(1.04);
  border-color: var(--color-gold);
}

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

.trip-flyer-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  padding: 0.2rem 0.4rem;
  text-align: center;
  backdrop-filter: blur(2px);
}

/* ============================================================
   18.2 WHATSAPP SHARE & ACTION BUTTONS
   ============================================================ */
.btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  width: fit-content;
  line-height: 1.2;
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  color: #ffffff !important;
}

.btn-whatsapp-sm {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.flyer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   18.3 ARCHIVE PAGE STYLES
   ============================================================ */
.archive-hero {
  padding: 8rem 0 3.5rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(124, 156, 255, 0.12), transparent 70%);
}

.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.archive-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.archive-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.archive-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 213, 79, 0.12);
  color: var(--color-gold, #ffd54f);
  border: 1px solid rgba(255, 213, 79, 0.3);
}

.archive-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-heading);
  line-height: 1.35;
}

.archive-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal, #64ffda);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.archive-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.25rem;
  flex: 1;
}

.archive-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.75rem;
}

.archive-highlights li {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.2rem;
}

.archive-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: bold;
}

.archive-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   18.4 MODAL OVERLAYS & THEATER MODE LIGHTBOX
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal-overlay.hidden {
  display: none !important;
}

.lightbox-container {
  position: relative;
  max-width: 1000px;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 25;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.lightbox-close-btn:hover {
  background: var(--color-gold, #ffd54f);
  color: #000;
  transform: scale(1.1);
}

/* ============================================================
   19. 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;
    transform: none;
  }

  .hero::before { animation: none; }
  .hero-orb { animation: none; }
  .star { animation: none; opacity: 0.5; }
  .hero__scroll-indicator { animation: none; }
}

/* ============================================================
   20. HIGH CONTRAST MODE
   ============================================================ */
@media (prefers-contrast: more) {
  :root {
    --border: rgba(0, 0, 0, 0.3);
    --border-light: rgba(0, 0, 0, 0.2);
  }

  .glass-card,
  .gradient-border-card,
  .program-card,
  .event-card,
  .resource-card,
  .contact-card {
    border-width: 2px;
    border-color: var(--text);
  }

  .btn { font-weight: 700; }
}

/* ============================================================
   21. PRINT STYLES
   ============================================================ */
@media print {
  .navbar, .hero-stars, .hero-orb, .hero-pattern, .hero__scroll-indicator,
  .theme-toggle, .nav-toggle, .testimonials-dots { display: none; }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: #1a237e;
    color: #fff;
  }

  .section { padding-block: 2rem; }

  body { font-size: 12pt; }
}

/* ============================================================
   22. LIGHT MODE — Contrast & Readability Fixes
   Only targets elements that hardcode dark-mode colours
   (near-transparent whites, very bright teal/mint on light bg).
   Dark mode variables are NOT touched here.
   ============================================================ */
@media (prefers-color-scheme: light) {
  html:not(.dark) .btn-secondary {
    color: var(--primary);
    border-color: var(--primary);
  }
  html:not(.dark) .btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  /* Teal accent text is too bright on white — use darker teal */
  html:not(.dark) .flyer-city-date,
  html:not(.dark) .archive-meta {
    color: var(--accent-teal);   /* deep-teal: #00695c — good contrast on white */
  }

  /* Trip "past" tag — near-invisible bg on white */
  html:not(.dark) .trip-tag.past {
    background: rgba(26, 35, 126, 0.07);
    color: var(--text-secondary);
    opacity: 1;
  }

  /* Calendar hover — near-invisible on white */
  html:not(.dark) .cal-day:hover:not(.empty) {
    background: rgba(26, 35, 126, 0.06);
    border-color: var(--border);
  }

  /* Events tab bar background */
  html:not(.dark) .events-tabs {
    background: rgba(26, 35, 126, 0.05);
  }

  /* Audio player backgrounds */
  html:not(.dark) .custom-audio-player {
    background: rgba(26, 35, 126, 0.04);
    border-color: var(--border);
  }
  html:not(.dark) .player-display {
    background: rgba(26, 35, 126, 0.06);
  }

  /* Playlist items */
  html:not(.dark) .playlist-item,
  html:not(.dark) .video-item {
    background: var(--bg-alt);
  }
  html:not(.dark) .playlist-item:hover,
  html:not(.dark) .video-item:hover {
    background: rgba(26, 35, 126, 0.07);
  }
  html:not(.dark) .playlist-item.active,
  html:not(.dark) .video-item.active {
    background: rgba(26, 35, 126, 0.1);
  }

  /* Flyer cards */
  html:not(.dark) .flyer-card {
    background: #ffffff;
  }

  /* Archive page */
  html:not(.dark) .archive-card {
    background: #ffffff;
  }
  html:not(.dark) .archive-filter-bar {
    background: var(--bg-alt);
  }

  /* Cal nav button */
  html:not(.dark) .cal-nav-btn {
    background: var(--bg-alt);
  }
  html:not(.dark) .cal-nav-btn:hover {
    background: rgba(26, 35, 126, 0.08);
  }

  /* Section subtitle muted text — darken slightly for WCAG AA */
  html:not(.dark) .section-subtitle,
  html:not(.dark) .stat-label,
  html:not(.dark) .footer-links a,
  html:not(.dark) .footer-brand p,
  html:not(.dark) .footer-bottom {
    color: #5a5a7a;
  }

  /* Flyer contact text — gold is too light on white */
  html:not(.dark) .flyer-contact {
    color: var(--accent-gold);
  }

  /* Archive badge — gold on near-transparent looks washed out */
  html:not(.dark) .archive-badge {
    background: rgba(201, 162, 39, 0.15);
    color: #7a5c00;
    border-color: rgba(201, 162, 39, 0.4);
  }

  /* Archive highlights checkmark */
  html:not(.dark) .archive-highlights li::before {
    color: var(--accent-teal);
  }

  /* Flyer spotlight title */
  html:not(.dark) .flyers-spotlight-title {
    color: #7a5c00;
    background: rgba(201, 162, 39, 0.1);
  }

  /* Event detail tag */
  html:not(.dark) .event-detail-tag {
    background: rgba(201, 162, 39, 0.15);
    color: #7a5c00;
  }

  /* Trip tag upcoming on white */
  html:not(.dark) .trip-tag.upcoming {
    background: rgba(0, 105, 92, 0.1);
    color: var(--accent-teal);
  }
}

/* Same fixes for manually toggled light mode (.light class) */
html.light .btn-secondary {
  color: var(--primary);
  border-color: var(--primary);
}
html.light .btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
html.light .flyer-city-date,
html.light .archive-meta { color: var(--accent-teal); }
html.light .trip-tag.past {
  background: rgba(26, 35, 126, 0.07);
  color: var(--text-secondary);
  opacity: 1;
}
html.light .cal-day:hover:not(.empty) {
  background: rgba(26, 35, 126, 0.06);
  border-color: var(--border);
}
html.light .events-tabs { background: rgba(26, 35, 126, 0.05); }
html.light .custom-audio-player {
  background: rgba(26, 35, 126, 0.04);
  border-color: var(--border);
}
html.light .player-display { background: rgba(26, 35, 126, 0.06); }
html.light .playlist-item,
html.light .video-item { background: var(--bg-alt); }
html.light .playlist-item:hover,
html.light .video-item:hover { background: rgba(26, 35, 126, 0.07); }
html.light .playlist-item.active,
html.light .video-item.active { background: rgba(26, 35, 126, 0.1); }
html.light .flyer-card { background: #ffffff; }
html.light .archive-card { background: #ffffff; }
html.light .archive-filter-bar { background: var(--bg-alt); }
html.light .cal-nav-btn { background: var(--bg-alt); }
html.light .cal-nav-btn:hover { background: rgba(26, 35, 126, 0.08); }
html.light .section-subtitle,
html.light .stat-label,
html.light .footer-links a,
html.light .footer-brand p,
html.light .footer-bottom { color: #5a5a7a; }
html.light .flyer-contact { color: var(--accent-gold); }
html.light .archive-badge {
  background: rgba(201, 162, 39, 0.15);
  color: #7a5c00;
  border-color: rgba(201, 162, 39, 0.4);
}
html.light .archive-highlights li::before { color: var(--accent-teal); }
html.light .flyers-spotlight-title {
  color: #7a5c00;
  background: rgba(201, 162, 39, 0.1);
}
html.light .event-detail-tag {
  background: rgba(201, 162, 39, 0.15);
  color: #7a5c00;
}
html.light .trip-tag.upcoming {
  background: rgba(0, 105, 92, 0.1);
  color: var(--accent-teal);
}

/* ============================================================
   22.1 LIGHT MODE — Card, Filter & Resource Fixes
   Overrides inline dark-mode styles on filter bars,
   course cards, resource cards, glass-cards, search inputs.
   Uses !important where inline styles must be overridden.
   ============================================================ */

/* --- Mixin: apply to both auto-light and manual .light --- */

/* Course filter bar — inline rgba(255,255,255,0.02) bg */
@media (prefers-color-scheme: light) {
  html:not(.dark) .courses-filter-bar {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
  }
}
html.light .courses-filter-bar {
  background: var(--bg-alt) !important;
  border-color: var(--border) !important;
}

/* Filter buttons — inline color #e2e8f0, border rgba whites */
@media (prefers-color-scheme: light) {
  html:not(.dark) .filter-btn {
    color: var(--text-secondary) !important;
    border-color: var(--border) !important;
  }
  html:not(.dark) .filter-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
  }
  html:not(.dark) .filter-btn:hover:not(.active) {
    background: rgba(26, 35, 126, 0.06) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
  }
}
html.light .filter-btn {
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
}
html.light .filter-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
html.light .filter-btn:hover:not(.active) {
  background: rgba(26, 35, 126, 0.06) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Course search input — inline bg rgba(0,0,0,0.2), color #fff */
@media (prefers-color-scheme: light) {
  html:not(.dark) #course-search {
    background: var(--bg-alt) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
  }
  html:not(.dark) #course-search::placeholder {
    color: var(--text-muted);
  }
}
html.light #course-search {
  background: var(--bg-alt) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html.light #course-search::placeholder {
  color: var(--text-muted);
}

/* Course cards — ensure readable on white */
@media (prefers-color-scheme: light) {
  html:not(.dark) .course-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
  html:not(.dark) .course-card h3 {
    color: var(--text);
  }
  html:not(.dark) .course-card p {
    color: var(--text-secondary);
  }
  html:not(.dark) .course-card .card-icon,
  html:not(.dark) .course-card .course-icon {
    color: var(--text);
  }
  /* Course tag — inline gold-on-transparent */
  html:not(.dark) .course-tag {
    background: rgba(201, 162, 39, 0.15) !important;
    color: #7a5c00 !important;
  }
  /* Course arabic title */
  html:not(.dark) .course-arabic {
    color: #7a5c00 !important;
  }
}
html.light .course-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
html.light .course-card h3 { color: var(--text); }
html.light .course-card p { color: var(--text-secondary); }
html.light .course-tag {
  background: rgba(201, 162, 39, 0.15) !important;
  color: #7a5c00 !important;
}
html.light .course-arabic {
  color: #7a5c00 !important;
}

/* Glass cards — light mode needs visible bg + border */
@media (prefers-color-scheme: light) {
  html:not(.dark) .glass-card {
    background: #ffffff !important;
    border-color: var(--border) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
html.light .glass-card {
  background: #ffffff !important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Resource category cards — inline bg rgba(15,22,40,0.4), color #fff */
@media (prefers-color-scheme: light) {
  html:not(.dark) .resource-category-card {
    background: #ffffff !important;
    border-color: var(--border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }
  html:not(.dark) .resource-category-card h3 {
    color: var(--accent-teal) !important;
  }
  html:not(.dark) .resource-category-card a {
    color: var(--text) !important;
  }
  html:not(.dark) .resource-category-card a:hover {
    color: var(--primary) !important;
  }
  html:not(.dark) .resource-category-card span,
  html:not(.dark) .resource-category-card .resource-item-desc {
    color: var(--text-secondary) !important;
  }
  /* Catch the inline color:#fff on resource links */
  html:not(.dark) .resource-category-card li a[style*="color:#fff"],
  html:not(.dark) .resource-category-card li a[style*="color: #fff"] {
    color: var(--text) !important;
  }
}
html.light .resource-category-card {
  background: #ffffff !important;
  border-color: var(--border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
html.light .resource-category-card h3 {
  color: var(--accent-teal) !important;
}
html.light .resource-category-card a {
  color: var(--text) !important;
}
html.light .resource-category-card a:hover {
  color: var(--primary) !important;
}
html.light .resource-category-card span,
html.light .resource-category-card .resource-item-desc {
  color: var(--text-secondary) !important;
}
html.light .resource-category-card li a[style*="color:#fff"],
html.light .resource-category-card li a[style*="color: #fff"] {
  color: var(--text) !important;
}

/* Program cards — ensure readable text */
@media (prefers-color-scheme: light) {
  html:not(.dark) .program-card {
    background: #ffffff;
    border-color: var(--border);
  }
  html:not(.dark) .program-card h3 { color: var(--text); }
  html:not(.dark) .program-card p { color: var(--text-secondary); }
  html:not(.dark) .program-icon {
    background: var(--bg-alt);
    border-color: var(--border);
  }
}
html.light .program-card {
  background: #ffffff;
  border-color: var(--border);
}
html.light .program-card h3 { color: var(--text); }
html.light .program-card p { color: var(--text-secondary); }
html.light .program-icon {
  background: var(--bg-alt);
  border-color: var(--border);
}

/* Testimonial text colors */
@media (prefers-color-scheme: light) {
  html:not(.dark) .testimonial-card blockquote,
  html:not(.dark) .testimonial-quote {
    color: var(--text-secondary);
  }
  html:not(.dark) .testimonial-name,
  html:not(.dark) .author-name {
    color: var(--text);
  }
  html:not(.dark) .testimonial-role,
  html:not(.dark) .author-role {
    color: var(--accent-teal);
  }
}
html.light .testimonial-card blockquote,
html.light .testimonial-quote { color: var(--text-secondary); }
html.light .testimonial-name,
html.light .author-name { color: var(--text); }
html.light .testimonial-role,
html.light .author-role { color: var(--accent-teal); }

/* Contact cards */
@media (prefers-color-scheme: light) {
  html:not(.dark) .contact-card {
    background: #ffffff;
    border-color: var(--border);
  }
  html:not(.dark) .contact-card h4 { color: var(--text); }
}
html.light .contact-card {
  background: #ffffff;
  border-color: var(--border);
}
html.light .contact-card h4 { color: var(--text); }

/* Stat cards */
@media (prefers-color-scheme: light) {
  html:not(.dark) .stat-card {
    background: #ffffff !important;
    border-color: var(--border) !important;
  }
}
html.light .stat-card {
  background: #ffffff !important;
  border-color: var(--border) !important;
}

/* Event cards in timeline */
@media (prefers-color-scheme: light) {
  html:not(.dark) .event-card {
    background: #ffffff;
    border-color: var(--border-light);
  }
  html:not(.dark) .event-card h4 { color: var(--text); }
  html:not(.dark) .event-card p { color: var(--text-secondary); }

  /* Timeline card */
  html:not(.dark) .timeline-card {
    background: #ffffff !important;
    border-color: var(--border) !important;
  }
}
html.light .event-card {
  background: #ffffff;
  border-color: var(--border-light);
}
html.light .event-card h4 { color: var(--text); }
html.light .event-card p { color: var(--text-secondary); }
html.light .timeline-card {
  background: #ffffff !important;
  border-color: var(--border) !important;
}

/* Calendar widget */
@media (prefers-color-scheme: light) {
  html:not(.dark) .calendar-widget {
    background: #ffffff !important;
    border-color: var(--border) !important;
  }
  html:not(.dark) .event-detail-display {
    background: #ffffff !important;
    border-color: var(--border) !important;
  }
}
html.light .calendar-widget {
  background: #ffffff !important;
  border-color: var(--border) !important;
}
html.light .event-detail-display {
  background: #ffffff !important;
  border-color: var(--border) !important;
}

/* Theater Mode button (btn-secondary inside #media section) */
@media (prefers-color-scheme: light) {
  html:not(.dark) #open-theater-mode-btn {
    color: var(--primary) !important;
    border-color: var(--border) !important;
  }
}
html.light #open-theater-mode-btn {
  color: var(--primary) !important;
  border-color: var(--border) !important;
}

/* ============================================================
   FINAL LIGHT MODE FIX — Resource Category Cards
   (Cream/Pink background tint & Black outline + shadow on hover)
   ============================================================ */
html.light .resource-category-card,
html:not(.dark) .resource-category-card,
html.light .resource-card,
html:not(.dark) .resource-card {
  background-color: #fef8f5 !important; /* Soft warm cream-pink tint */
  border: 1px solid rgba(26, 35, 126, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.25s ease !important;
}

html.light .resource-category-card:hover,
html:not(.dark) .resource-category-card:hover,
html.light .resource-card:hover,
html:not(.dark) .resource-card:hover {
  transform: translateY(-5px) !important;
  border-color: #1a1a2e !important; /* Crisp black/dark outline on hover */
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important; /* Elevated shadow on hover */
}

/* Force text and link colors inside the card to be dark */
html.light .resource-category-card,
html.light .resource-category-card a,
html.light .resource-category-card h3,
html.light .resource-category-card li,
html.light .resource-category-card span,
html:not(.dark) .resource-category-card,
html:not(.dark) .resource-category-card a,
html:not(.dark) .resource-category-card h3,
html:not(.dark) .resource-category-card li,
html:not(.dark) .resource-category-card span {
  color: var(--text) !important;
}

html.light .resource-category-card .resource-category-title,
html:not(.dark) .resource-category-card .resource-category-title {
  color: var(--accent-teal) !important;
}

html.light .resource-category-card .resource-item-desc,
html:not(.dark) .resource-category-card .resource-item-desc {
  color: var(--text-secondary) !important;
}

/* ============================================================
   23. STANDARD SHARE ICON BUTTON & SOCIAL SHARE MODAL
   ============================================================ */
.btn-share-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.btn-share-icon:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.08);
  box-shadow: var(--shadow-md);
}

.btn-share-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Share Modal Dialog */
.share-modal-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalScaleUp 0.25s var(--ease-spring) forwards;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.share-modal-header h3 {
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.share-modal-close {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration-fast) ease;
}

.share-modal-close:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.share-preview-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.share-preview-thumb {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.share-preview-info {
  flex: 1;
  min-width: 0;
}

.share-preview-info h4 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
  color: var(--text);
}

.share-preview-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.share-native-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--gradient-accent);
  color: #0d0033;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  box-shadow: var(--shadow-glow);
}

.share-native-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), 0 6px 20px rgba(124, 156, 255, 0.4);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.share-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  text-align: center;
}

.share-option-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.share-option-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-option-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }
.share-option-btn.twitter:hover { border-color: #000000; color: #000000; }
.share-option-btn.telegram:hover { border-color: #229ED9; color: #229ED9; }

.share-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.share-footer-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.share-action-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.share-action-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}



/* ============================================================
   COURSE FINDER WIZARD MODAL (from kim-nq.pages.dev)
   ============================================================ */
.btn-finder {
  background: rgba(200, 150, 62, 0.15);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}
.btn-finder:hover {
  background: var(--accent-gold);
  color: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 150, 62, 0.35);
}

.wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.wizard-overlay.open {
  opacity: 1;
  visibility: visible;
}

.wizard-dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wizard-overlay.open .wizard-dialog {
  transform: none;
}

.wizard-top {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}
.wizard-header {
  padding: 1.25rem 1.75rem 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.wizard-header-text .eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wizard-header-text h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin: 0;
  color: var(--text);
}
.wizard-close {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  line-height: 1;
}
.wizard-close:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent-gold);
}

.wizard-progress {
  height: 4px;
  background: var(--border-light);
  position: relative;
  margin: 0 1.75rem;
  border-radius: 2px;
}
.wizard-progress-fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.wizard-step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.4rem 1.75rem 0;
  font-weight: 500;
}

.wizard-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  overflow-y: auto;
}
.wizard-question {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.wizard-options {
  display: grid;
  gap: 0.75rem;
}
.wizard-options.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.wizard-opt {
  position: relative;
  cursor: pointer;
  display: block;
}
.wizard-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.wizard-opt-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
}
.wizard-opt-label:hover {
  border-color: var(--accent-gold);
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.wizard-opt input:checked + .wizard-opt-label {
  border-color: var(--accent-gold);
  background: rgba(200, 150, 62, 0.1);
  box-shadow: 0 0 0 2px rgba(200, 150, 62, 0.25);
}

.wizard-opt-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  color: transparent;
  font-size: 0.65rem;
  transition: all 0.2s ease;
}
.wizard-opt input:checked + .wizard-opt-label .wizard-opt-check {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1a1a2e;
  font-weight: bold;
}
.wizard-opt-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.wizard-opt-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.2;
}
.wizard-opt-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.wizard-select-wrap {
  position: relative;
}
.wizard-select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.wizard-select-wrap select:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-color: var(--accent-gold);
}
.wizard-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.wizard-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wizard-goal-chip {
  position: relative;
}
.wizard-goal-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.wizard-goal-chip label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.2s ease;
}
.wizard-goal-chip label:hover {
  border-color: var(--accent-gold);
  background: var(--surface);
}
.wizard-goal-chip input:checked + label {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: #1a1a2e;
  font-weight: 600;
}

.wizard-contact-note {
  background: rgba(200, 150, 62, 0.08);
  border: 1px solid rgba(200, 150, 62, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.wizard-field {
  margin-bottom: 1rem;
}
.wizard-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.wizard-field input {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.wizard-field input:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-color: var(--accent-gold);
}
.wizard-field input.input-error,
.wizard-select-wrap select.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.wizard-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.wizard-phone-row .wizard-select-wrap {
  flex: 0 0 115px;
}
.wizard-phone-row .wizard-select-wrap select {
  height: 100%;
  padding-right: 1.8rem;
  font-size: 0.88rem;
}
.wizard-phone-row .wizard-field {
  flex: 1;
  margin: 0;
}

.wizard-footer {
  flex-shrink: 0;
  background: var(--surface);
  padding: 1rem 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.wizard-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s;
}
.wizard-back:hover {
  color: var(--text);
}

.wizard-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.wizard-summary h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 0.6rem;
}
.wizard-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wizard-summary li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.wizard-summary li strong {
  color: var(--text);
  font-weight: 600;
}

.wizard-result-class {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.2), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.wizard-result-class h3 {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.wizard-result-class p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

.wizard-wa-btn {
  width: 100%;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.wizard-wa-btn:hover {
  background: #1fba58;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

@media (max-width: 600px) {
  .wizard-header, .wizard-body, .wizard-footer {
    padding-inline: 1.2rem;
  }
  .wizard-progress, .wizard-step-label {
    margin-inline: 1.2rem;
  }
  .wizard-options.cols-2 {
    grid-template-columns: 1fr;
  }
  .wizard-phone-row {
    flex-direction: column;
  }
  .wizard-phone-row .wizard-select-wrap {
    flex: none;
  }
}
