/* ============================================
   Libyan Canadian Community — Modern Theme
   Libyan Flag Colors: Red, Black & Green
   ============================================ */

/* ---------- CSS Variables / Theme Tokens ---------- */
:root {
  /* 🇱🇾 Dark mode — Black base from Libyan flag */
  --color-bg: #07080c;
  --color-bg-elevated: #0d1117;
  --color-bg-card: rgba(13, 17, 23, 0.7);
  --color-bg-card-hover: rgba(18, 24, 32, 0.8);
  --color-surface: rgba(13, 17, 23, 0.75);
  --color-surface-alt: rgba(18, 24, 32, 0.88);
  --color-border: rgba(239, 68, 68, 0.1);
  --color-border-hover: rgba(239, 68, 68, 0.22);

  --color-text: #f5f0f0;
  --color-text-secondary: #a3949b;
  --color-text-muted: #6e5f68;

  /* 🔴 Red — Libyan flag primary (top stripe) */
  --color-primary: #ef4444;
  --color-primary-light: #f87171;
  --color-primary-soft: #fca5a5;
  /* 🟢 Green — Libyan flag accent (bottom stripe) */
  --color-accent: #22c55e;
  --color-accent-soft: #4ade80;
  --accent-rgb: 239, 68, 68;
  --accent-rgb-soft: 34, 197, 94;
  --accent-rgb-strong: 220, 38, 38;
  --accent-rgb-deep: 22, 163, 74;

  --gradient-brand: linear-gradient(135deg, #fca5a5 0%, #ef4444 42%, #22c55e 100%);
  --gradient-blue: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #22c55e 100%);
  --gradient-btn: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);

  --glow-primary: 0 0 40px rgba(239, 68, 68, 0.14);
  --glow-card: 0 1px 3px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.22);
  --glow-card-hover: 0 8px 32px rgba(239, 68, 68, 0.12), 0 2px 8px rgba(34, 197, 94, 0.06);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.5rem;
  --header-height: 64px;
  --container-max: 1200px;
  --section-padding: 7rem 2.5rem;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 16px;
  --radius-full: 99em;
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-in-out);
  --transition-slow: 400ms var(--ease-in-out);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
  --color-bg: #faf9f9;
  --color-bg-elevated: #f5eeed;
  --color-bg-card: rgba(255, 255, 255, 0.88);
  --color-bg-card-hover: rgba(254, 242, 242, 0.92);
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-alt: rgba(254, 242, 242, 0.96);
  --color-border: rgba(220, 38, 38, 0.12);
  --color-border-hover: rgba(220, 38, 38, 0.22);

  --color-text: #1a0c0c;
  --color-text-secondary: #4a2d2d;
  --color-text-muted: #7d5a5a;

  /* 🔴 Red — deeper for light backgrounds */
  --color-primary: #dc2626;
  --color-primary-light: #ef4444;
  --color-primary-soft: #f87171;
  /* 🟢 Green — deeper for light backgrounds */
  --color-accent: #16a34a;
  --color-accent-soft: #15803d;
  --accent-rgb: 220, 38, 38;
  --accent-rgb-soft: 22, 163, 74;
  --accent-rgb-strong: 185, 28, 28;
  --accent-rgb-deep: 21, 128, 61;

  --gradient-brand: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #16a34a 100%);
  --gradient-blue: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #16a34a 100%);
  --gradient-btn: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%);

  --glow-primary: 0 0 40px rgba(239, 68, 68, 0.1);
  --glow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(220, 38, 38, 0.06);
  --glow-card-hover: 0 8px 30px rgba(239, 68, 68, 0.1), 0 4px 14px rgba(34, 197, 94, 0.05);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--accent-rgb), 0.035), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(var(--accent-rgb-soft), 0.025), transparent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-primary-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ---------- Utility: Text Gradient ---------- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Libyan Crescent & Star Background ---------- */
.libya-crescent-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.libya-crescent-bg svg {
  position: absolute;
}

/* Large crescent — slow drift across the viewport */
.crescent-float-1 {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -5%;
  opacity: 0.04;
  animation: crescentDrift1 60s ease-in-out infinite alternate;
}

.crescent-float-2 {
  width: 260px;
  height: 260px;
  bottom: 12%;
  right: -3%;
  opacity: 0.035;
  animation: crescentDrift2 50s ease-in-out infinite alternate;
}

.crescent-float-3 {
  width: 160px;
  height: 160px;
  top: 55%;
  left: 60%;
  opacity: 0.025;
  animation: crescentDrift3 45s ease-in-out infinite alternate;
}

[data-theme="light"] .crescent-float-1 { opacity: 0.045; }
[data-theme="light"] .crescent-float-2 { opacity: 0.04; }
[data-theme="light"] .crescent-float-3 { opacity: 0.03; }

@keyframes crescentDrift1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(8vw, 6vh) rotate(12deg); }
  50%  { transform: translate(15vw, -4vh) rotate(-5deg); }
  75%  { transform: translate(5vw, 10vh) rotate(8deg); }
  100% { transform: translate(12vw, 3vh) rotate(-3deg); }
}

@keyframes crescentDrift2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  30%  { transform: translate(-10vw, -5vh) rotate(-15deg); }
  60%  { transform: translate(-6vw, 8vh) rotate(10deg); }
  100% { transform: translate(-14vw, -2vh) rotate(5deg); }
}

@keyframes crescentDrift3 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  35%  { transform: translate(-5vw, -8vh) rotate(20deg); }
  65%  { transform: translate(4vw, 5vh) rotate(-12deg); }
  100% { transform: translate(-3vw, -6vh) rotate(8deg); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- News & Events Ticker ---------- */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.ticker-label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

/* Small triangle arrow on the label */
.ticker-label::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--color-primary);
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}

.ticker:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  cursor: default;
}

.ticker-item:hover {
  color: var(--color-text);
}

.ticker-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.ticker-badge--event {
  background: rgba(var(--accent-rgb-soft), 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(var(--accent-rgb-soft), 0.25);
}

.ticker-badge--news {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--color-primary-light);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.ticker-divider {
  color: var(--color-border-hover);
  font-size: 0.6rem;
  padding: 0 0.25rem;
  flex-shrink: 0;
}

/* ---------- Section Utility ---------- */
.section {
  padding: var(--section-padding);
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.125rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 8, 12, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.07);
  height: var(--header-height);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .header {
  background: rgba(250, 249, 249, 0.8);
  border-bottom-color: rgba(220, 38, 38, 0.08);
}

.header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Header actions — theme switch + donate on the right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(var(--accent-rgb), 0.25));
  transition: filter 0.3s var(--ease-in-out), transform 0.3s var(--ease-in-out);
}

.logo:hover img {
  filter: drop-shadow(0 4px 16px rgba(var(--accent-rgb), 0.45));
  transform: scale(1.05);
}

.logo span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Nav links — centered pill bar */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
}

[data-theme="light"] .nav-links {
  background: var(--color-surface);
}

.nav-links a {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a.active {
  color: var(--color-text);
  background: var(--color-surface);
}

[data-theme="light"] .nav-links a.active {
  background: var(--color-bg-elevated);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-donate {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full);
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3), 0 0 0 1px rgba(134, 239, 172, 0.12) inset;
  animation: donateGlow 3s ease-in-out infinite;
}

.nav-donate:hover {
  color: #fff;
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.45);
  transform: translateY(-1px) scale(1.03);
}

.nav-donate::after {
  content: '';
  position: absolute;
  top: -80%;
  left: -65%;
  width: 50%;
  height: 260%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg);
  transition: transform 0.7s var(--ease-in-out), left 0.7s var(--ease-in-out);
}

.nav-donate:hover::after {
  left: 120%;
}

[data-theme="light"] .nav-donate {
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 55%, #166534 100%);
  border-color: rgba(21, 128, 61, 0.4);
  box-shadow: 0 2px 12px rgba(21, 128, 61, 0.25);
}

[data-theme="light"] .nav-donate:hover {
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(21, 128, 61, 0.35);
}

@keyframes donateGlow {
  0%, 100% {
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3), 0 0 0 1px rgba(134, 239, 172, 0.12) inset;
  }
  50% {
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), 0 0 0 1px rgba(134, 239, 172, 0.25) inset;
  }
}

/* Language toggle */
.nav-links .lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 38px;
  padding: 0 0.75rem;
  margin-left: 0.35rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-links .lang-toggle .lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.nav-links .lang-toggle:hover {
  background: var(--color-border-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text);
  transform: translateY(-1px);
}

.nav-links .lang-toggle:hover .lang-icon {
  opacity: 1;
}

[data-theme="light"] .nav-links .lang-toggle {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Theme switch (toggle) */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: var(--color-text-muted);
  -webkit-tap-highlight-color: transparent;
}

.theme-switch__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: color 0.3s var(--ease-in-out), opacity 0.3s var(--ease-in-out);
}

/* Sun icon (left) — highlighted in light mode */
.theme-switch__sun {
  opacity: 0.35;
  color: var(--color-text-muted);
}

/* Moon icon (right) — highlighted in dark mode */
.theme-switch__moon {
  opacity: 0.35;
  color: var(--color-text-muted);
}

/* Active states */
[data-theme="light"] .theme-switch__sun,
[data-theme="light"] .theme-switch__sun {
  opacity: 1;
  color: #f59e0b;
}

[data-theme="dark"] .theme-switch__moon,
:root:not([data-theme]) .theme-switch__moon {
  opacity: 1;
  color: #a78bfa;
}

/* The track */
.theme-switch__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  transition: background 0.35s var(--ease-in-out), border-color 0.35s var(--ease-in-out);
  display: block;
  flex-shrink: 0;
}

.theme-switch:hover .theme-switch__track {
  border-color: var(--color-border-hover);
}

/* The sliding thumb */
.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: transform 0.35s var(--ease-in-out), background 0.35s var(--ease-in-out), box-shadow 0.35s var(--ease-in-out);
  display: block;
}

/* Dark mode — thumb slides right, green glow */
[data-theme="dark"] .theme-switch__thumb,
:root:not([data-theme]) .theme-switch__thumb {
  transform: translateX(18px);
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

[data-theme="dark"] .theme-switch__track,
:root:not([data-theme]) .theme-switch__track {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.2);
}

/* Light mode — thumb stays left, warm glow */
[data-theme="light"] .theme-switch__thumb {
  transform: translateX(0);
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

[data-theme="light"] .theme-switch__track {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}

/* ---------- RTL (Arabic) Layout Fixes ---------- */
[dir="rtl"] .nav-links .lang-toggle {
  margin-left: 0;
  margin-right: 0.35rem;
}

/* Ticker: scroll in opposite direction for RTL */
[dir="rtl"] .ticker-content {
  animation-name: tickerScrollRTL;
}

@keyframes tickerScrollRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Ticker label arrow flips for RTL */
[dir="rtl"] .ticker-label::after {
  right: auto;
  left: -8px;
  border-left-color: transparent;
  border-right-color: var(--color-primary);
}

/* News card accent bar on right side for RTL */
[dir="rtl"] .news-card::before {
  left: auto;
  right: 0;
}

/* Donate button shimmer animation for RTL */
[dir="rtl"] .nav-donate::after,
[dir="rtl"] .donate-trigger::after {
  left: auto;
  right: -65%;
  transform: rotate(-18deg);
}

[dir="rtl"] .nav-donate:hover::after,
[dir="rtl"] .donate-trigger:hover::after {
  left: auto;
  right: 120%;
}

/* Donate modal close button for RTL */
[dir="rtl"] .donate-modal__title {
  margin: 0 0 0.65rem 2rem;
}

[dir="rtl"] .donate-modal__close {
  right: auto;
  left: 0.7rem;
}

/* Theme switch thumb direction for RTL */
[dir="rtl"] .theme-switch__thumb {
  left: auto;
  right: 2px;
}

[dir="rtl"][data-theme="dark"] .theme-switch__thumb,
[dir="rtl"]:root:not([data-theme]) .theme-switch__thumb {
  transform: translateX(-18px);
}

[dir="rtl"][data-theme="light"] .theme-switch__thumb {
  transform: translateX(0);
}

/* Lightbox nav buttons for RTL */
[dir="rtl"] .lightbox-prev { left: auto; right: 1.5rem; }
[dir="rtl"] .lightbox-next { right: auto; left: 1.5rem; }

/* Goal card top bar stays the same — no change needed */

/* Back to top for RTL (already handled below) */

/* Donate modal */
body.donate-modal-open {
  overflow: hidden;
}

.donate-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 2200;
}

.donate-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.donate-modal__card {
  position: relative;
  width: min(100%, 540px);
  padding: 1.2rem 1.25rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--glow-card-hover);
}

.donate-modal__title {
  margin: 0 2rem 0.65rem 0;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--color-text);
}

.donate-modal__body {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.donate-modal__email {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.donate-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.donate-modal__close:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.18), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(var(--accent-rgb-soft), 0.16), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(var(--accent-rgb-strong), 0.14), transparent 55%);
  background-size: 120% 120%;
  animation: heroGlowShift 18s ease-in-out infinite alternate;
}

@keyframes heroGlowShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 80%; }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  mix-blend-mode: screen;
  filter: blur(40px);
  animation: heroFloat 14s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(var(--accent-rgb-strong), 0.55) 0%, rgba(var(--accent-rgb-strong), 0) 65%);
  top: 10%;
  left: 6%;
  animation-duration: 16s;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5) 0%, rgba(var(--accent-rgb), 0) 65%);
  bottom: 12%;
  right: 8%;
  animation-duration: 20s;
  animation-delay: -4s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(var(--accent-rgb-deep), 0.45) 0%, rgba(var(--accent-rgb-deep), 0) 65%);
  top: 35%;
  right: 30%;
  animation-duration: 13s;
  animation-delay: -2s;
}

@keyframes heroFloat {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -22px, 0); }
  100% { transform: translate3d(-12px, 10px, 0); }
}

/* Soft orb accents */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 350px at 20% 30%, rgba(var(--accent-rgb), 0.14) 0%, transparent 100%),
    radial-gradient(circle 300px at 80% 60%, rgba(var(--accent-rgb-soft), 0.10) 0%, transparent 100%),
    radial-gradient(circle 220px at 55% 15%, rgba(var(--accent-rgb-strong), 0.08) 0%, transparent 100%);
  pointer-events: none;
}

[data-theme="light"] .hero-bg::after {
  background:
    radial-gradient(circle 350px at 20% 30%, rgba(var(--accent-rgb), 0.06) 0%, transparent 100%),
    radial-gradient(circle 300px at 80% 60%, rgba(var(--accent-rgb-soft), 0.05) 0%, transparent 100%),
    radial-gradient(circle 220px at 55% 15%, rgba(var(--accent-rgb-strong), 0.04) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2.5rem 1.5rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .hero-content {
  color: #1a1625;
  text-shadow: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

[data-theme="light"] .hero-badge {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.12);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="light"] .hero p {
  color: var(--color-text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-in-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.45);
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.22);
  color: var(--color-text);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(220, 38, 38, 0.05);
}

.donate-trigger {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  border: 1px solid rgba(34, 197, 94, 0.5);
  font-weight: 700;
  box-shadow: 0 3px 14px rgba(34, 197, 94, 0.3), 0 0 0 1px rgba(134, 239, 172, 0.12) inset;
  animation: donateGlow 3s ease-in-out infinite;
}

.donate-trigger:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4), 0 0 0 1px rgba(134, 239, 172, 0.2) inset;
}

.donate-trigger::after {
  content: '';
  position: absolute;
  top: -80%;
  left: -65%;
  width: 50%;
  height: 260%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg);
  transition: transform 0.7s var(--ease-in-out), left 0.7s var(--ease-in-out);
}

.donate-trigger:hover::after {
  left: 120%;
}

[data-theme="light"] .donate-trigger {
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 55%, #166534 100%);
  border-color: rgba(21, 128, 61, 0.45);
}

[data-theme="light"] .donate-trigger:hover {
  color: #ffffff;
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      145deg,
      rgba(var(--accent-rgb), 0.28) 0%,
      rgba(var(--accent-rgb-strong), 0.18) 42%,
      rgba(0, 0, 0, 0.38) 100%
    );
  mix-blend-mode: multiply;
  transition: opacity var(--transition-base);
}

[data-theme="light"] .about-image::after {
  background:
    linear-gradient(
      145deg,
      rgba(var(--accent-rgb), 0.1) 0%,
      rgba(var(--accent-rgb-soft), 0.12) 45%,
      rgba(255, 255, 255, 0.22) 100%
    );
  mix-blend-mode: normal;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.values span {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-full);
}

/* ---------- Stats Counter (styles in bottom of file) ---------- */

/* ---------- Goals Section ---------- */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.goal-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: all 0.35s var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: opacity 0.3s var(--ease-in-out);
}

.goal-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
  box-shadow: var(--glow-card-hover);
}

.goal-card:hover::before {
  opacity: 1;
}

.goal-card .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb-soft), 0.08));
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s var(--ease-out);
}

.goal-card:hover .icon {
  transform: scale(1.1) translateY(-2px);
}

.goal-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.goal-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- Events Section ---------- */
.section-alt {
  background: var(--color-bg-elevated);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 10% 50%, rgba(var(--accent-rgb), 0.04), transparent),
    radial-gradient(ellipse 40% 50% at 90% 30%, rgba(var(--accent-rgb-soft), 0.03), transparent);
  pointer-events: none;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.event-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease-in-out);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--glow-card-hover);
  background: var(--color-bg-card-hover);
}

.event-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface);
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.event-card:hover .event-card-img img {
  transform: scale(1.04);
}

.event-card-body {
  padding: 1.75rem;
}

.event-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.event-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ---------- News Section ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.35s var(--ease-in-out);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity 0.3s var(--ease-in-out);
}

.news-card:hover::before {
  opacity: 1;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--glow-card-hover);
  background: var(--color-bg-card-hover);
}

.news-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  flex: 1;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
  padding: 5rem 0;
  text-align: center;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 150px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
}

.newsletter p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  position: relative;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
  border-color: var(--color-primary);
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.newsletter-form input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-form button {
  padding: 0.9rem 2rem;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: filter var(--transition-fast);
}

.newsletter-form button:hover {
  filter: brightness(1.15);
}

.newsletter-msg {
  margin-top: 1rem;
  font-size: 0.85rem;
  position: relative;
}

.newsletter-msg.success { color: var(--color-accent); }
.newsletter-msg.error { color: #f87171; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .footer {
  background: #f5edeb;
}

[data-theme="light"] .footer-glow {
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.04) 0%, transparent 70%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.125rem;
  color: var(--color-text);
}

.footer p,
.footer a,
.footer span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer a:hover {
  color: var(--color-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: all 0.25s var(--ease-in-out);
}

.social-icons a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-icons a:hover {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-credit {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.footer-credit a {
  color: var(--color-text-secondary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-credit a:hover {
  color: var(--color-primary);
}

/* ---------- Page Hero (Gallery / Contact) ---------- */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text);
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 30% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 100%),
    radial-gradient(circle 250px at 70% 50%, rgba(var(--accent-rgb-soft), 0.08) 0%, transparent 100%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero p {
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: rgba(239, 68, 68, 0.04);
}

.filter-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.gallery-item:hover {
  border-color: var(--color-border-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 12, 0.85), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--color-border);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

[data-theme="light"] .contact-form {
  box-shadow: var(--glow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.9rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group .error-msg {
  display: block;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.375rem;
  min-height: 1rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
  display: none;
  animation: successFadeIn 0.5s var(--ease-out);
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.form-success p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-panel h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-info-panel > p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-detail-item span,
.contact-detail-item span a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.contact-detail-item span a:hover {
  color: var(--color-accent);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-border-hover); }

[data-theme="light"] ::-webkit-scrollbar-track { background: var(--color-bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--color-border); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--color-border-hover); }

/* ---------- Selection ---------- */
::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: var(--color-text);
}

[data-theme="light"] ::selection {
  background: rgba(220, 38, 38, 0.15);
}

/* ---------- Responsive ---------- */

/* === Tablet / iPad landscape (max 1024px) === */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
    z-index: 1000;
  }

  [data-theme="light"] .nav-links {
    background: rgba(250, 249, 249, 0.98);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links .lang-toggle {
    width: auto;
    align-self: center;
    margin: 0.35rem 0 0;
    border-radius: var(--radius-full);
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-border);
  }

  .header-actions .nav-donate {
    padding: 0.6rem 1.5rem;
  }

  [dir="rtl"] .nav-links .lang-toggle {
    margin-right: 0;
  }

  .hamburger {
    display: flex;
  }

  .logo span {
    font-size: 0.9rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .events-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 600px;
  }

  .page-hero {
    min-height: 35vh;
  }
}

/* === Tablet portrait / large mobile (max 768px) === */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --section-padding: 4.5rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: 85vh;
  }

  .hero p {
    font-size: var(--font-size-base);
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .section-subtitle {
    font-size: var(--font-size-sm);
  }

  .about-image img {
    height: auto;
    max-height: 300px;
  }

  .about-text h2 {
    font-size: var(--font-size-2xl);
  }

  .about-text p {
    font-size: var(--font-size-sm);
  }

  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .goal-card {
    padding: 1.75rem 1.25rem;
  }

  .goal-card .icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .events-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .event-card-body {
    padding: 1.25rem;
  }

  .news-card {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .gallery-overlay {
    padding: 0.75rem;
    font-size: var(--font-size-xs);
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-info-panel h2 {
    font-size: var(--font-size-xl);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    padding: 3rem 0;
  }

  .stat-item h3 {
    font-size: 2.2rem;
  }

  .stat-item p {
    font-size: var(--font-size-xs);
  }

  .page-hero {
    min-height: 30vh;
  }

  .page-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .page-hero p {
    font-size: var(--font-size-sm);
  }

  .newsletter {
    padding: 3rem 0;
  }

  .newsletter h2 {
    font-size: var(--font-size-xl);
  }

  .newsletter-form {
    max-width: 100%;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }

  [dir="rtl"] .lightbox-prev { left: auto; right: 0.5rem; }
  [dir="rtl"] .lightbox-next { right: auto; left: 0.5rem; }

  [dir="rtl"] .lightbox-close {
    right: auto;
    left: 0.75rem;
  }

  .map-container iframe {
    height: 200px;
  }

  .ticker-label {
    padding: 0.6rem 0.9rem;
    font-size: 0.65rem;
  }

  .ticker-item {
    font-size: var(--font-size-xs);
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  [dir="rtl"] .back-to-top {
    right: auto;
    left: 1.25rem;
  }

  .donate-modal__card {
    padding: 2rem 1.5rem;
  }
}

/* === Small mobile (max 480px) === */
@media (max-width: 480px) {
  :root {
    --font-size-5xl: 1.875rem;
    --font-size-4xl: 1.5rem;
    --font-size-3xl: 1.25rem;
    --section-padding: 3rem 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .logo img {
    height: 36px;
  }

  .logo span {
    font-size: 0.78rem;
    max-width: 180px;
    line-height: 1.2;
  }

  .hero {
    min-height: 75vh;
  }

  .hero p {
    font-size: var(--font-size-sm);
    margin-bottom: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .about-image img {
    max-height: 220px;
  }

  .about-text h2 {
    font-size: var(--font-size-xl);
  }

  .goals-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .goal-card {
    padding: 1.5rem 1.25rem;
  }

  .goal-card h3 {
    font-size: var(--font-size-sm);
  }

  .goal-card p {
    font-size: var(--font-size-xs);
  }

  .event-card h3 {
    font-size: var(--font-size-base);
  }

  .event-card p {
    font-size: var(--font-size-sm);
  }

  .news-card h3 {
    font-size: var(--font-size-base);
  }

  .news-card p {
    font-size: var(--font-size-sm);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .stat-item h3 {
    font-size: 1.8rem;
  }

  .stat-item p {
    font-size: var(--font-size-xs);
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-sm);
    gap: 0;
  }

  .newsletter-form input {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 0.8rem 1rem;
  }

  .newsletter-form button {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 0.8rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.9rem;
    font-size: var(--font-size-sm);
  }

  .form-group textarea {
    min-height: 100px;
  }

  .contact-info-panel {
    gap: 1.25rem;
  }

  .contact-info-panel h2 {
    font-size: var(--font-size-lg);
  }

  .page-hero {
    min-height: 25vh;
    padding-top: calc(var(--header-height) + 0.5rem);
  }

  .page-hero p {
    font-size: var(--font-size-xs);
  }

  .footer {
    padding-top: 2.5rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .footer h4 {
    font-size: var(--font-size-xs);
  }

  .footer p,
  .footer a,
  .footer span {
    font-size: var(--font-size-xs);
  }

  .footer-bottom {
    font-size: 0.72rem;
  }

  .social-icons a {
    width: 36px;
    height: 36px;
  }

  .social-icons a svg {
    width: 16px;
    height: 16px;
  }

  .map-container iframe {
    height: 180px;
  }

  .donate-modal__card {
    padding: 1.5rem 1.25rem;
  }

  .donate-modal__title {
    font-size: var(--font-size-lg);
  }

  .donate-modal__body {
    font-size: var(--font-size-sm);
  }

  .ticker-label {
    padding: 0.5rem 0.6rem;
    font-size: 0.6rem;
  }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35);
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}

/* ---------- Stats Section ---------- */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(var(--accent-rgb), 0.05), transparent);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}
