/* ==========================================================================
   DREAMROOTS — Core Stylesheet
   A ripple motif runs through this design: every act of giving sends
   a ring outward through a community. Rings recur in the divider,
   the stat markers, the hover states and the loader.
   ========================================================================== */

:root {
  /* ---- Brand colors (Oyate Zambia palette) ---- */
  --color-primary: #2A99D0;       /* Oyate medium blue */
  --color-primary-dark: #1F7AAB;  /* deeper blue for hover/contrast */
  --color-sky: #60C7F2;           /* Oyate light/sky blue */
  --color-secondary: #2A8A43;     /* Oyate dark green */
  --color-accent: #78BF45;        /* Oyate light green — CTA pop color */
  --color-accent-soft: #E3F3D9;   /* soft light-green tint for badges/bg */
  --color-bg: #F8FBF9;
  --color-white: #FFFFFF;
  --color-text-dark: #1F2937;
  --color-text-light: #6B7280;

  /* ---- Gradients ---- */
  --gradient-primary: linear-gradient(135deg, #2A99D0 0%, #78BF45 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(42,153,208,0.18) 0%, rgba(11,29,25,0.75) 100%);
  --gradient-accent: linear-gradient(135deg, #78BF45 0%, #A3D977 100%);
  --gradient-brand: linear-gradient(135deg, #2A8A43 0%, #2A99D0 50%, #60C7F2 100%);

  /* ---- Typography ---- */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---- Spacing scale ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 4.5rem;

  /* ---- Radii & shadows ---- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 100px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 8px 30px rgba(42, 153, 208, 0.28);
  --shadow-glow-green: 0 8px 30px rgba(120, 191, 69, 0.32);

  /* ---- Layout ---- */
  --container-width: 1240px;
  --nav-height: 84px;
  --alert-height: 42px;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--color-text-dark);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- Typography scale ---- */
h1, h2, h3, h4, h5 {
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p { color: var(--color-text-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p { margin-top: var(--space-sm); font-size: 1.05rem; }

section { padding: var(--space-3xl) 0; position: relative; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.55);
  pointer-events: none;
  animation: btnRippleAnim 0.6s ease-out forwards;
}
@keyframes btnRippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(42,153,208,0.35); }

.btn-accent {
  background: var(--gradient-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(120,191,69,0.35);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(120,191,69,0.45); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--color-white); transform: translateY(-3px); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-3px); }

.nav-actions .btn-outline-dark {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
}
.nav-actions .btn-outline-dark:hover { background: rgba(255,255,255,0.15); border-color: var(--color-white); color: var(--color-white); }
.navbar.is-scrolled .nav-actions .btn-outline-dark {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.navbar.is-scrolled .nav-actions .btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); }

.btn-sm { padding: 11px 22px; font-size: 0.85rem; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

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

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  background-image: linear-gradient(120deg, rgba(42,153,208,0.05), rgba(120,191,69,0.05));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-bold);
  font-size: 1.4rem;
  color: var(--color-white);
  transition: color 0.4s ease, box-shadow 0.4s ease;
  background: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.navbar.is-scrolled .brand { box-shadow: none; }

.navbar.is-scrolled .brand { color: var(--color-primary-dark); }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(120,191,69,0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links > li { position: relative; }

.nav-links a {
  font-weight: var(--fw-medium);
  font-size: 0.96rem;
  color: var(--color-white);
  padding: 10px 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.35s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links li.active > a::after { width: 100%; }

.nav-links li.active > a { color: var(--color-accent); font-weight: var(--fw-semibold); }
.navbar.is-scrolled .nav-links li.active > a { color: var(--color-primary); }

.nav-links a:hover { color: var(--color-accent); }
.navbar.is-scrolled .nav-links a:hover { color: var(--color-primary); }

.chevron { width: 10px; height: 10px; transition: transform 0.3s ease; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 230px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}

.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  color: var(--color-text-dark) !important;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: var(--fw-regular);
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--color-bg); color: var(--color-primary) !important; }

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

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  transition: background 0.3s ease, color 0.3s ease;
}
.navbar.is-scrolled .icon-btn { color: var(--color-text-dark); }
.icon-btn:hover { background: rgba(255,255,255,0.18); }

.login-btn {
  width: auto; height: auto;
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 12px;
  gap: 6px;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.login-btn span { font-size: 0.86rem; font-weight: var(--fw-medium); white-space: nowrap; }
.login-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.navbar.is-scrolled .login-btn { border-color: #E5EAE9; }
.login-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.8); }
.navbar.is-scrolled .login-btn:hover { background: var(--color-bg); border-color: var(--color-primary); }

@media (max-width: 340px) {
  .login-btn span { display: none; }
  .login-btn { padding: 0; width: 42px; height: 42px; border: none; }
}
.navbar.is-scrolled .icon-btn:hover { background: var(--color-bg); }
.icon-btn svg { width: 20px; height: 20px; }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.35s ease;
}
.navbar.is-scrolled .hamburger span { background: var(--color-text-dark); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--color-white);
  z-index: 1100;
  padding: var(--space-xl) var(--space-lg);
  transition: right 0.45s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open { right: 0; }

.mobile-menu-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-lg);
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-weight: var(--fw-medium);
  font-size: 1.05rem;
  padding: 14px 4px;
  border-bottom: 1px solid #EEF2F1;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-submenu { padding-left: var(--space-sm); display: none; }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { border-bottom: none; font-size: 0.92rem; color: var(--color-text-light); padding: 10px 4px; }

.mobile-menu li.active > a { color: var(--color-primary); font-weight: var(--fw-semibold); }
.mobile-menu .mobile-submenu a.active { color: var(--color-primary); font-weight: var(--fw-semibold); }

.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(11,29,25,0.55);
  z-index: 1050;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }

/* ---- Search overlay ---- */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(11,29,25,0.92);
  z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box { width: min(600px, 88vw); text-align: center; }
.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  color: var(--color-white);
  font-size: 1.8rem;
  padding: 14px 0;
  text-align: center;
}
.search-box input::placeholder { color: rgba(255,255,255,0.45); }
.search-box p { color: rgba(255,255,255,0.6); margin-top: var(--space-md); font-size: 0.85rem; }
.search-close {
  position: absolute; top: 32px; right: 32px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero::before {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(42,153,208,0.55), transparent 70%);
  top: 8%; right: 6%;
  animation-delay: 0s;
}
.hero::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(120,191,69,0.5), transparent 70%);
  bottom: 12%; left: 4%;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.08); }
  66% { transform: translate(-15px, 20px) scale(0.94); }
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 1;
  transition: opacity 1.6s ease;
}
.hero-intro-video.is-fading-out { opacity: 0; }
.hero-intro-video.is-done { display: none; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 9s cubic-bezier(.25,.46,.45,.94);
}
.hero-slide.is-active { opacity: 1; transform: scale(1.14); }
.hero-slides::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-rings {
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 620px; height: 620px;
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
}
.hero-rings circle { fill: none; stroke: var(--color-accent); stroke-width: 1; }

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-content .eyebrow { color: var(--color-accent-soft); }
.hero-content .eyebrow::before { background: var(--color-accent); }

.hero-content h1 { color: var(--color-white); margin-bottom: var(--space-md); }
.hero-content h1 span { color: var(--color-accent); }

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.hero-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.hero-stat { position: relative; }
.hero-stat .num {
  font-size: 2.1rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-dots {
  position: absolute;
  bottom: 130px; left: var(--space-md); right: var(--space-md);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 640px;
}
.hero-dots button {
  width: 34px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dots button.is-active { background: var(--color-accent); width: 50px; }

.scroll-cue {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent); animation: scrollPulse 2s ease-in-out infinite; }

.wave-divider {
  position: absolute;
  bottom: -1px; left: 0; width: 100%;
  line-height: 0; z-index: 2;
}
.wave-divider svg { width: 100%; height: 110px; display: block; }

/* ==========================================================================
   ABOUT PREVIEW
   ========================================================================== */

.about-preview .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }

.collage { position: relative; height: 520px; }
.collage img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.collage .img-a { width: 68%; height: 78%; top: 0; left: 0; }
.collage .img-b { width: 52%; height: 48%; bottom: 0; right: 0; border: 6px solid var(--color-bg); box-shadow: var(--shadow-lg); }
.collage-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
.collage-badge .ring-icon { width: 44px; height: 44px; flex-shrink: 0; }
.collage-badge strong { display: block; font-size: 1.3rem; color: var(--color-primary); }
.collage-badge span { font-size: 0.78rem; color: var(--color-text-light); }

.value-list { display: grid; gap: var(--space-sm); margin: var(--space-lg) 0; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-item .dot svg { width: 16px; height: 16px; }
.value-item h4 { margin-bottom: 2px; }
.value-item p { font-size: 0.92rem; }

/* ==========================================================================
   IMPACT COUNTERS
   ========================================================================== */

.impact-band {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}
.impact-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 30%, rgba(255,255,255,0.08) 0, transparent 40%),
                     radial-gradient(circle at 85% 70%, rgba(255,255,255,0.08) 0, transparent 40%);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  position: relative; z-index: 1;
}
.impact-item { text-align: center; color: var(--color-white); }
.impact-ring { width: 84px; height: 84px; margin: 0 auto var(--space-sm); position: relative; }
.impact-ring svg { transform: rotate(-90deg); }
.impact-ring circle.track { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 4; }
.impact-ring circle.progress { fill: none; stroke: var(--color-accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 226; transition: stroke-dashoffset 1.6s cubic-bezier(.22,1,.36,1); }
.impact-item .count { font-size: 2rem; font-weight: var(--fw-bold); }
.impact-item .desc { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.projects-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .projects-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid.cols-4 { grid-template-columns: 1fr; } }

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s ease;
}
.project-card:hover { transform: translateY(-10px) scale(1.015); box-shadow: var(--shadow-lg); }

.project-media { position: relative; height: 230px; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-media img { transform: scale(1.08); }

.project-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--color-primary);
  font-size: 0.72rem; font-weight: var(--fw-semibold);
  padding: 7px 14px; border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.project-body { padding: var(--space-md); }
.project-loc { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--color-text-light); margin-bottom: 8px; }
.project-loc svg { width: 14px; height: 14px; color: var(--color-secondary); }
.project-body h3 { margin-bottom: 8px; }
.project-body p { font-size: 0.92rem; margin-bottom: var(--space-md); }

.progress-track { height: 8px; background: #EDF2F1; border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--gradient-accent); border-radius: var(--radius-pill); width: 0%; transition: width 1.4s cubic-bezier(.22,1,.36,1); }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--color-text-light); margin-bottom: var(--space-md); }
.progress-meta strong { color: var(--color-primary); }

.project-link { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-semibold); font-size: 0.9rem; color: var(--color-primary); }
.project-link svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.project-link:hover svg { transform: translateX(4px); }

.projects-cta { text-align: center; margin-top: var(--space-xl); }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }

.why-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.why-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.why-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
  transition: background 0.4s ease, transform 0.4s ease;
}
.why-card:hover .why-icon { background: var(--gradient-primary); transform: rotate(-6deg); }
.why-icon svg { width: 28px; height: 28px; color: var(--color-primary); transition: color 0.4s ease; }
.why-card:hover .why-icon svg { color: var(--color-white); }
.why-card h4 { margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; }

/* ==========================================================================
   SUCCESS STORIES
   ========================================================================== */

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.story-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.story-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.story-media { height: 200px; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: var(--space-md); position: relative; }
.quote-mark { font-size: 3rem; color: var(--color-accent); line-height: 1; font-weight: var(--fw-bold); font-family: Georgia, serif; }
.story-body p.quote { color: var(--color-text-dark); font-size: 0.97rem; margin: 6px 0 var(--space-md); }
.story-person { display: flex; align-items: center; gap: 10px; }
.story-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.story-person strong { font-size: 0.9rem; display: block; }
.story-person span { font-size: 0.78rem; color: var(--color-text-light); }

/* ==========================================================================
   VOLUNTEER CTA
   ========================================================================== */

.volunteer-cta {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 var(--space-md);
  width: calc(100% - 2 * var(--space-md));
}
.volunteer-cta::before { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(11,29,25,0.92) 0%, rgba(42,153,208,0.5) 70%); }
.volunteer-cta .container { position: relative; z-index: 1; max-width: 560px; margin: 0; margin-left: var(--space-2xl); }
.volunteer-cta .eyebrow { color: var(--color-accent-soft); }
.volunteer-cta h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.volunteer-cta p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-lg); }
.volunteer-cta .hero-cta { margin-bottom: 0; }

/* ==========================================================================
   NEWS
   ========================================================================== */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.news-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.news-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.news-media { position: relative; height: 200px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-media img { transform: scale(1.08); }
.news-body { padding: var(--space-md); }
.news-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--color-text-light); margin-bottom: 10px; }
.news-meta .cat { color: var(--color-secondary); font-weight: var(--fw-semibold); }
.news-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-body p { font-size: 0.9rem; margin-bottom: var(--space-sm); }

/* ==========================================================================
   PARTNERS CAROUSEL
   ========================================================================== */

.partners-track-wrap { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; gap: var(--space-2xl); width: max-content; animation: scrollLoop 28s linear infinite; }
.partner-chip {
  height: 64px; padding: 0 28px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #E5EAE9;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text-dark);
  font-size: 0.95rem; font-weight: var(--fw-semibold);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.partner-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); color: var(--color-primary); }
.partners-track img { height: 40px; opacity: 0.55; filter: grayscale(1); transition: opacity 0.3s ease, filter 0.3s ease; }
.partners-track img:hover { opacity: 1; filter: grayscale(0); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-slider { position: relative; max-width: 780px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; animation: fadeUp 0.6s ease; }
.testimonial-slide img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-md); box-shadow: var(--shadow-md); }
.testimonial-slide p.quote { font-size: 1.3rem; color: var(--color-text-dark); font-weight: var(--fw-medium); line-height: 1.5; margin-bottom: var(--space-md); }
.testimonial-slide strong { display: block; }
.testimonial-slide span { font-size: 0.85rem; color: var(--color-text-light); }
.testimonial-nav { display: flex; justify-content: center; gap: var(--space-md); margin-top: var(--space-lg); }
.testimonial-nav button { width: 46px; height: 46px; border-radius: 50%; background: var(--color-white); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.testimonial-nav button:hover { background: var(--color-accent-soft); }
.testimonial-dots { display: flex; gap: 8px; align-items: center; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: #D9E2E0; box-shadow: none; }
.testimonial-dots button.is-active { background: var(--color-primary); width: 22px; border-radius: 6px; }

/* ==========================================================================
   DONATION BANNER
   ========================================================================== */

/* ==========================================================================
   VIDEO PLAYER — branded YouTube embed treatment
   ========================================================================== */

.video-showcase {
  max-width: 1600px;
  width: 94vw;
  margin: 0 auto;
  position: relative;
}

.event-poster-wrap {
  max-width: 1600px;
  width: 94vw;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  padding: 4px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, #2A99D0 0%, #2A8A43 50%, #78BF45 100%);
  background-size: 200% 200%;
  animation: videoGradientShift 8s ease infinite;
  box-shadow: var(--shadow-lg);
}

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

.video-frame-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0B1F1A;
}

.video-frame-inner iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  border: 0;
}

.video-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 31, 26, 0.9);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.video-live-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #78BF45;
  box-shadow: 0 0 0 0 rgba(120, 191, 69, 0.6);
  animation: liveDotPulse 1.8s ease-out infinite;
}

@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(120, 191, 69, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(120, 191, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(120, 191, 69, 0); }
}

.video-channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  max-width: 900px;
  margin: var(--space-md) auto 0;
  padding: 16px 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.video-channel-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-channel-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-white);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.video-channel-name { font-weight: var(--fw-bold); font-size: 1rem; color: var(--color-text-dark); }
.video-channel-handle { font-size: 0.84rem; color: var(--color-text-light); }

.video-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: var(--space-md);
}
.video-topic-chip {
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  background: var(--color-accent-soft);
  background: rgba(42, 153, 208, 0.1);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 640px) {
  .video-channel-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .video-channel-identity { justify-content: center; }
}

.donation-banner {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.donation-banner > * { min-width: 0; }
.donation-banner img { max-width: 100%; height: auto; display: block; }
.donation-banner::before {
  content: '';
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--color-accent-soft);
  right: -140px; top: -140px; opacity: 0.6;
}
.donation-copy { position: relative; z-index: 1; }
.donation-copy h2 { margin-bottom: var(--space-sm); }
.donation-copy p { margin-bottom: var(--space-lg); }
.donation-amounts { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--space-md) 0; position: relative; z-index: 1; }
.amount-chip {
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 2px solid #E5EAE9; font-weight: var(--fw-semibold); font-size: 0.92rem;
  transition: all 0.3s ease;
}
.amount-chip:hover, .amount-chip.is-selected { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.newsletter-band {
  position: relative;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl);
  flex-wrap: wrap;
  color: var(--color-white);
  overflow: hidden;
}
.newsletter-band::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -100px; right: -60px;
}
.newsletter-band::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -80px; left: 10%;
}
.newsletter-copy { display: flex; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.newsletter-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
}
.newsletter-icon svg { width: 24px; height: 24px; color: #fff; }
.newsletter-band h3 { color: var(--color-white); margin-bottom: 6px; }
.newsletter-band p { color: rgba(255,255,255,0.85); }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 420px; min-width: 280px; position: relative; z-index: 1; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 15px 20px; border-radius: var(--radius-pill);
  border: none; background: rgba(255,255,255,0.15); color: var(--color-white);
  backdrop-filter: blur(8px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.65); }
.donation-banner .newsletter-form input {
  background: var(--color-bg);
  color: var(--color-text-dark);
  border: 1.5px solid #E5EAE9;
}
.donation-banner .newsletter-form input::placeholder { color: var(--color-text-light); }
.newsletter-form input:focus { background: rgba(255,255,255,0.25); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: #0B1F1A; color: rgba(255,255,255,0.7); padding-top: var(--space-2xl); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { color: rgba(255,255,255,0.6); margin: var(--space-md) 0; font-size: 0.92rem; }
.footer-brand .brand { color: var(--color-white); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, transform 0.3s ease; }
.social-row a:hover { background: var(--color-accent); color: var(--color-primary-dark); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; }

.footer-col h4 { color: var(--color-white); margin-bottom: var(--space-md); font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-col a:hover { color: var(--color-accent); padding-left: 4px; }

.footer-contact li { display: flex; gap: 10px; font-size: 0.9rem; margin-bottom: 14px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--color-accent); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) 0; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-legal { display: flex; gap: var(--space-md); }

/* ==========================================================================
   FLOATING UI: back-to-top, cookie notice
   ========================================================================== */

/* ---- Scroll progress bar (injected via JS, no HTML changes needed) ---- */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2A99D0, #2A8A43, #78BF45);
  z-index: 2000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* ---- Floating WhatsApp button (injected via JS, no HTML edits needed) ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; left: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 28px; height: 28px; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

.cookie-notice {
  position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 950;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: flex; gap: var(--space-sm); align-items: flex-start;
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.cookie-notice.is-visible { transform: translateY(0); }
.cookie-notice svg { width: 26px; height: 26px; color: var(--color-primary); flex-shrink: 0; }
.cookie-notice p { font-size: 0.85rem; margin-bottom: 10px; }
.cookie-actions { display: flex; gap: 10px; }

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */

.page-loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring { width: 56px; height: 56px; position: relative; }
.loader-ring svg { animation: spin 1.1s linear infinite; }
.loader-ring circle { fill: none; stroke: var(--color-primary); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 90; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.bg-alt { background: var(--color-white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.visually-hidden-focusable:focus { left: 16px !important; }

/* ==========================================================================
   INNER PAGE HERO + BREADCRUMB
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-overlay);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,191,69,0.4), transparent 70%);
  filter: blur(50px);
  top: 10%; right: 8%;
  z-index: 0;
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite;
  pointer-events: none;
}
.page-hero .hero-rings { opacity: 0.22; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: rgba(255,255,255,0.9); font-weight: var(--fw-medium); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }
.page-hero h1 { color: var(--color-white); max-width: 700px; }
.page-hero p.lead { color: rgba(255,255,255,0.85); max-width: 600px; margin-top: var(--space-sm); font-size: 1.05rem; }

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}
.timeline-item { position: relative; padding-left: 68px; margin-bottom: var(--space-xl); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 8px; top: 2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: var(--fw-bold); color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item .year { color: var(--color-accent); font-weight: var(--fw-semibold); font-size: 0.85rem; display: block; margin-bottom: 6px; }
.timeline-item p { font-size: 0.94rem; }

/* ==========================================================================
   TEAM / LEADERSHIP
   ========================================================================== */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.team-grid.leads { grid-template-columns: repeat(3, 1fr); }
.team-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s ease, box-shadow 0.4s ease; background: var(--color-white); }
.team-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.team-photo { position: relative; height: 280px; overflow: hidden; }

/* ---- Initials avatar: used instead of stock photos for named people we
   don't have real headshots for yet. Honest placeholder, not a fake photo. ---- */
.initials-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: 3rem;
  letter-spacing: 0.02em;
}
.initials-avatar.sm { font-size: 1.4rem; }
.initials-avatar.md { font-size: 1.8rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-social {
  position: absolute; bottom: -50px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  padding: 14px 0;
  background: linear-gradient(to top, rgba(11,29,25,0.85), transparent);
  transition: bottom 0.4s ease;
}
.team-card:hover .team-social { bottom: 0; }
.team-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: var(--color-white); }
.team-social a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.team-social svg { width: 15px; height: 15px; }
.team-info { padding: var(--space-md); text-align: center; }
.team-info h4 { margin-bottom: 2px; }
.team-info span { font-size: 0.85rem; color: var(--color-secondary); font-weight: var(--fw-medium); }

.dept-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-xl); }
.dept-tab { padding: 10px 22px; border-radius: var(--radius-pill); border: 2px solid #E5EAE9; font-weight: var(--fw-medium); font-size: 0.9rem; transition: all 0.3s ease; }
.dept-tab.is-active, .dept-tab:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }

/* ==========================================================================
   FILTER BAR + PAGINATION (projects, gallery)
   ========================================================================== */

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip { padding: 10px 20px; border-radius: var(--radius-pill); background: var(--color-white); border: 2px solid #E5EAE9; font-size: 0.88rem; font-weight: var(--fw-medium); transition: all 0.3s ease; }
.filter-chip.is-active, .filter-chip:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.filter-search { position: relative; }
.filter-search input { padding: 12px 44px 12px 18px; border-radius: var(--radius-pill); border: 2px solid #E5EAE9; min-width: 240px; background: var(--color-white); }
.filter-search input:focus { border-color: var(--color-primary); }
.filter-search svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-light); }

.fade-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-item.is-hidden { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-2xl); }
.pagination button, .pagination span { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: var(--fw-medium); font-size: 0.9rem; background: var(--color-white); box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.pagination button.is-active { background: var(--color-primary); color: var(--color-white); }
.pagination button:hover:not(.is-active) { background: var(--color-accent-soft); }
.pagination .arrow svg { width: 15px; height: 15px; }

/* ==========================================================================
   FORMS (shared)
   ========================================================================== */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); min-width: 0; }
@media (max-width: 900px) {
  .profile-dashboard-grid { grid-template-columns: 1fr !important; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: var(--fw-medium); color: var(--color-text-dark); }
.form-field input, .form-field select, .form-field textarea {
  padding: 14px 18px; border-radius: var(--radius-sm); border: 2px solid #E5EAE9;
  background: var(--color-white); color: var(--color-text-dark); transition: border-color 0.3s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-primary); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field .hint { font-size: 0.78rem; color: var(--color-text-light); }
.form-field.is-error input, .form-field.is-error textarea, .form-field.is-error select { border-color: #DC4C4C; }
.form-field .error-msg { font-size: 0.78rem; color: #DC4C4C; display: none; }
.form-field.is-error .error-msg { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--color-text-light); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); }

.form-card { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-xl); }
.form-success { display: none; text-align: center; padding: var(--space-lg) 0; }
.form-success.is-visible { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--color-primary); margin: 0 auto var(--space-sm); }

/* ==========================================================================
   AUTH PAGES — Login / Create Account
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-height);
}

.auth-visual {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl);
  overflow: hidden;
}
.auth-visual::before { content: ''; position: absolute; inset: 0; background: var(--gradient-overlay); }
.auth-visual-content { position: relative; z-index: 1; color: var(--color-white); max-width: 420px; }
.auth-visual-content .brand-logo-img { height: 46px; margin-bottom: var(--space-lg); filter: none; }
.auth-visual-content blockquote { font-size: 1.3rem; font-weight: var(--fw-medium); line-height: 1.5; margin-bottom: var(--space-md); }
.auth-visual-content cite { font-style: normal; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.auth-visual .hero-rings { opacity: 0.25; }

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg);
}

.auth-card { width: 100%; max-width: 440px; }
.auth-card .brand-logo-img { height: 40px; margin-bottom: var(--space-lg); }
.auth-card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 6px; }
.auth-card > p.lead { margin-bottom: var(--space-lg); font-size: 0.98rem; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: var(--space-lg) 0; color: var(--color-text-light); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #E5EAE9; }

.social-auth-row { display: flex; flex-direction: column; gap: 10px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: var(--radius-pill);
  border: 2px solid #E5EAE9; background: var(--color-white);
  font-weight: var(--fw-medium); font-size: 0.92rem; color: var(--color-text-dark);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.btn-social:hover { border-color: var(--color-primary); background: var(--color-bg); }
.btn-social svg { width: 18px; height: 18px; }

.auth-foot-link { text-align: center; margin-top: var(--space-lg); font-size: 0.92rem; color: var(--color-text-light); }
.auth-foot-link a { color: var(--color-primary); font-weight: var(--fw-semibold); }
.auth-foot-link a:hover { text-decoration: underline; }

.password-field { position: relative; }
.password-toggle {
  position: absolute; right: 14px; top: 41px;
  color: var(--color-text-light); display: flex; align-items: center;
}
.password-toggle svg { width: 18px; height: 18px; }

.password-strength { display: flex; gap: 4px; margin-top: 6px; }
.password-strength span { height: 4px; flex: 1; background: #E5EAE9; border-radius: 3px; transition: background 0.3s ease; }
.password-strength.weak span:nth-child(1) { background: #DC4C4C; }
.password-strength.medium span:nth-child(1), .password-strength.medium span:nth-child(2) { background: var(--color-accent); }
.password-strength.strong span { background: var(--color-secondary); }

.form-row-inline { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); flex-wrap: wrap; gap: 8px; }
.form-row-inline a { font-size: 0.86rem; color: var(--color-primary); font-weight: var(--fw-medium); }
.form-row-inline a:hover { text-decoration: underline; }

/* ==========================================================================
   DONATE PAGE
   ========================================================================== */

.donate-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: var(--space-xl); flex-wrap: wrap; }

/* ---- Payment method selector (donation form) ---- */
.payment-method-tabs { display: flex; gap: 10px; margin-bottom: var(--space-lg); }
.payment-method-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border: 2px solid #E5EAE9; border-radius: var(--radius-md);
  font-weight: var(--fw-semibold); font-size: 0.92rem; color: var(--color-text-light);
  background: var(--color-white);
  transition: all 0.25s ease; cursor: pointer;
}
.payment-method-tab svg { width: 20px; height: 20px; }
.payment-method-tab.is-active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(42,153,208,0.06); }
.payment-panel { display: none; }
.payment-panel.is-active { display: block; }
.mobile-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: var(--space-md); }
.mobile-provider-option {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid #E5EAE9; border-radius: var(--radius-md); padding: 12px 14px;
  cursor: pointer; transition: all 0.2s ease;
}
.mobile-provider-option.is-active { border-color: var(--color-primary); background: rgba(42,153,208,0.06); }
.mobile-provider-option input { margin: 0; }
.mobile-provider-option img { height: 22px; }
.card-icons { display: flex; gap: 8px; align-items: center; }
.card-icons svg { height: 20px; }

/* ---- Giving-level item cards (individual funding options) ---- */
.giving-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.giving-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.giving-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.giving-card-head { display: flex; justify-content: space-between; align-items:flex-start; gap: var(--space-sm); margin-bottom: 6px; }
.giving-card-head h4 { font-size: 1.08rem; margin: 0; }
.giving-price { font-size: 1.3rem; font-weight: var(--fw-bold); color: var(--color-primary); white-space: nowrap; }
.giving-desc { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 10px; }
.giving-impact {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: var(--fw-semibold); color: var(--color-secondary);
  background: rgba(42, 138, 67, 0.1);
  padding: 6px 12px; border-radius: var(--radius-pill);
  margin-bottom: 12px; width: fit-content;
}
.giving-why { font-size: 0.84rem; color: var(--color-text-light); line-height: 1.6; margin-bottom: var(--space-md); flex-grow: 1; }
.giving-why strong { color: var(--color-text-dark); }
.giving-card .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 900px) {
  .giving-grid { grid-template-columns: 1fr; }
}
.donate-tab { padding: 12px 28px; border-radius: var(--radius-pill); background: var(--color-white); font-weight: var(--fw-semibold); font-size: 0.92rem; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.donate-tab.is-active { background: var(--gradient-primary); color: var(--color-white); }

.impact-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.impact-level { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.4s ease, box-shadow 0.4s ease; border: 2px solid transparent; }
.impact-level:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.impact-level.featured { border-color: var(--color-accent); position: relative; }
.impact-level .featured-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-accent); color: var(--color-primary-dark); font-size: 0.72rem; font-weight: var(--fw-semibold); padding: 6px 16px; border-radius: var(--radius-pill); }
.impact-level .amount { font-size: 2.2rem; font-weight: var(--fw-bold); color: var(--color-primary); margin: var(--space-sm) 0; }
.impact-level p { font-size: 0.9rem; margin-bottom: var(--space-md); }

.donate-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-xl); align-items: start; }
.donate-summary { background: var(--color-primary-dark); color: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-xl); position: sticky; top: 110px; }
.donate-summary h3 { color: var(--color-white); }
.donate-summary .line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.92rem; }
.donate-summary .total { font-size: 1.3rem; font-weight: var(--fw-bold); }
.payment-icons { display: flex; gap: 10px; margin-top: var(--space-md); flex-wrap: wrap; }
.payment-icons span { background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: var(--fw-medium); }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: var(--space-md); }
.secure-note svg { width: 16px; height: 16px; color: var(--color-accent); }

/* ==========================================================================
   BLOG / NEWS LAYOUT
   ========================================================================== */

.blog-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: var(--space-2xl); align-items: start; }
.blog-list { display: flex; flex-direction: column; gap: var(--space-lg); }
.blog-list .news-card { display: grid; grid-template-columns: 260px 1fr; }
.blog-list .news-media { height: 100%; min-height: 190px; }

.sidebar-widget { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); margin-bottom: var(--space-lg); }
.sidebar-widget h4 { margin-bottom: var(--space-md); }
.sidebar-widget ul { display: flex; flex-direction: column; gap: 12px; }
.cat-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 6px 0; }
.cat-row span.count { color: var(--color-text-light); }
.cat-row a:hover { color: var(--color-primary); }

.mini-post { display: flex; gap: 12px; align-items: flex-start; }
.mini-post img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.mini-post h5 { font-size: 0.9rem; font-weight: var(--fw-semibold); line-height: 1.35; margin-bottom: 4px; }
.mini-post span { font-size: 0.76rem; color: var(--color-text-light); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 0.8rem; padding: 7px 14px; background: var(--color-bg); border-radius: var(--radius-pill); color: var(--color-text-light); }
.tag-cloud a:hover { background: var(--color-primary); color: var(--color-white); }

/* ---- Single article ---- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body img.article-cover { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: var(--space-xl); width: 100%; height: 420px; object-fit: cover; }
.article-body h2 { margin: var(--space-lg) 0 var(--space-sm); }
.article-body p { margin-bottom: var(--space-md); font-size: 1.02rem; color: var(--color-text-dark); }
.article-meta { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
.author-chip { display: flex; align-items: center; gap: 10px; }
.author-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-chip strong { font-size: 0.9rem; display: block; }
.author-chip span { font-size: 0.78rem; color: var(--color-text-light); }
.share-row { display: flex; gap: 10px; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid #EEF2F1; }
.share-row a { width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.share-row a:hover { background: var(--color-accent-soft); }
.share-row svg { width: 16px; height: 16px; color: var(--color-primary); }
blockquote { border-left: 4px solid var(--color-accent); padding: 4px 0 4px 24px; margin: var(--space-lg) 0; font-size: 1.15rem; font-style: italic; color: var(--color-text-dark); }

/* ==========================================================================
   GALLERY + LIGHTBOX
   ========================================================================== */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); grid-auto-flow: dense; }
.gallery-item { display: block; position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; height: 240px; }
.gallery-item.tall { grid-row: span 2; height: 100%; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,29,25,0.75), transparent 60%);
  display: flex; align-items: flex-end; padding: var(--space-sm);
  opacity: 0; transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--color-white); font-size: 0.85rem; font-weight: var(--fw-medium); }
.gallery-item .play-badge { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.gallery-item .play-badge svg { width: 14px; height: 14px; }

/* ---- Featured gallery: one big image + a clickable filmstrip ---- */
.gallery-featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 460px;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-sm);
}
.gallery-featured-main img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}
.gallery-featured-main.is-loading img { opacity: 0.4; }
.gallery-featured-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,0.45); color: #fff; border: none; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.gallery-featured-nav:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.gallery-featured-nav.prev { left: 14px; }
.gallery-featured-nav.next { right: 14px; }
@media (max-width: 560px) {
  .gallery-featured-nav { width: 36px; height: 36px; }
}
.gallery-featured-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  background: linear-gradient(to top, rgba(11,29,25,0.75), transparent 75%);
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: var(--fw-medium);
}
.gallery-thumb-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-xs);
}
.gallery-thumb {
  display: block;
  position: relative;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  padding: 0;
  background: none;
  opacity: 0.65;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumb.is-active { opacity: 1; border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) {
  .gallery-featured-main { height: 320px; }
  .gallery-thumb-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .gallery-featured-main { height: 240px; }
  .gallery-thumb { height: 60px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11,29,25,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; max-width: 900px; width: 88vw; }
.lightbox-inner img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-video { width: 100%; max-height: 78vh; border-radius: var(--radius-md); background: #000; display: block; }
.lightbox-caption { color: rgba(255,255,255,0.8); text-align: center; margin-top: var(--space-sm); font-size: 0.9rem; }
.lightbox-tabs { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-sm); }
.lightbox-tab {
  border: 1px solid rgba(255,255,255,0.3); background: transparent; color: rgba(255,255,255,0.85);
  padding: 6px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: var(--fw-medium); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-tab.is-active, .lightbox-tab:hover { background: var(--color-accent); color: var(--color-primary-dark); border-color: var(--color-accent); }

/* ---- Reusable media grid: photo/video tiles used across campaign
   pages (Back to School, Christmas Hampers, Keep My Village Clean,
   Run for Life) and the homepage gallery preview. Pairs with
   media-gallery.js for the shared lightbox + next/prev + Show More. ---- */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.media-tile {
  position: relative; display: block; border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; height: 210px; box-shadow: var(--shadow-sm);
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.media-tile:hover img { transform: scale(1.08); }
.media-tile.is-more-hidden { display: none; }
.gallery-item .media-play-badge, .media-tile .media-play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,0.28); z-index: 1;
}
.gallery-item .media-play-badge svg, .media-tile .media-play-badge svg {
  width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.gallery-item:hover .media-play-badge, .media-tile:hover .media-play-badge { background: rgba(15,23,42,0.42); }
.media-grid-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: var(--space-lg); flex-wrap: wrap; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-categories { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-xl); }
.faq-search { max-width: 480px; margin: 0 auto var(--space-2xl); position: relative; }
.faq-search input { width: 100%; padding: 16px 50px 16px 22px; border-radius: var(--radius-pill); border: 2px solid #E5EAE9; background: var(--color-white); }
.faq-search svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-light); }

.accordion { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; text-align: left; font-weight: var(--fw-semibold); font-size: 0.98rem; }
.accordion-trigger .plus { width: 24px; height: 24px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.35s ease, background 0.35s ease; }
.accordion-item.is-open .accordion-trigger .plus { transform: rotate(135deg); background: var(--color-accent); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-panel-inner { padding: 0 24px 22px; }
.accordion-panel-inner p { font-size: 0.93rem; }
.accordion-item.is-hidden { display: none; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-2xl); align-items: start; }
.contact-layout > * { min-width: 0; }
.contact-info-card { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-lg); margin-bottom: var(--space-md); display: flex; gap: 16px; align-items: flex-start; }
.contact-info-card .dot { width: 44px; height: 44px; border-radius: 14px; background: var(--color-accent-soft); color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card h4 { margin-bottom: 4px; }
.contact-info-card p { font-size: 0.9rem; }

.map-placeholder {
  height: 280px; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #DCE7E3 0%, #EAF1EF 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg);
}
.map-placeholder .pin { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--color-primary); }
.map-placeholder .pin svg { width: 36px; height: 36px; }
.map-placeholder .pin span { font-size: 0.85rem; font-weight: var(--fw-medium); color: var(--color-text-dark); }
.map-placeholder::before, .map-placeholder::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(42,153,208,0.25);
}
.map-placeholder::before { width: 160px; height: 160px; }
.map-placeholder::after { width: 260px; height: 260px; }

.hours-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hours-table td { padding: 10px 0; font-size: 0.92rem; border-bottom: 1px solid #EEF2F1; word-wrap: break-word; }
.hours-table td:first-child { width: 58%; padding-right: var(--space-sm); }
.hours-table td:last-child { width: 42%; text-align: right; color: var(--color-primary); font-weight: var(--fw-medium); }

.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-xl); }
.dept-card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-sm); }
.dept-card h4 { margin-bottom: 4px; }
.dept-card span { font-size: 0.85rem; color: var(--color-text-light); display: block; margin-bottom: 8px; }
.dept-card a { font-size: 0.88rem; color: var(--color-primary); font-weight: var(--fw-medium); }

/* ==========================================================================
   IMPACT PAGE — infographics & chart
   ========================================================================== */

.chart-card { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-lg); }
.bar-chart { display: flex; align-items: flex-end; gap: var(--space-md); height: 240px; padding-top: var(--space-md); }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 100%; max-width: 46px; background: var(--gradient-primary); border-radius: 8px 8px 0 0; height: 0; transition: height 1.4s cubic-bezier(.22,1,.36,1); position: relative; }
.bar-chart .bar span.val { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; font-weight: var(--fw-semibold); color: var(--color-primary); white-space: nowrap; }
.bar-chart .bar-label { margin-top: 10px; font-size: 0.78rem; color: var(--color-text-light); text-align: center; }

.infographic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.infographic-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center; box-shadow: var(--shadow-sm); }
.infographic-card .big-num { font-size: 2.4rem; font-weight: var(--fw-bold); color: var(--color-primary); }
.infographic-card p { font-size: 0.86rem; margin-top: 6px; }

/* ---- Impact Numbers: elevated stat cards (nicer than the flat band) ---- */
.impact-stats-section { background: var(--color-bg); }
.impact-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}
.impact-stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-accent);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.impact-stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.impact-stat-card:nth-child(2) { border-top-color: var(--color-primary); }
.impact-stat-card:nth-child(3) { border-top-color: var(--color-secondary); }
.impact-stat-card:nth-child(4) { border-top-color: var(--color-accent); }
.impact-stat-card:nth-child(5) { border-top-color: var(--color-primary); }
.impact-stat-icon {
  width: 52px; height: 52px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.impact-stat-icon svg { width: 24px; height: 24px; color: var(--color-primary); }
.impact-stat-card .count { font-size: 2.1rem; font-weight: var(--fw-bold); line-height: 1.1; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.impact-stat-card .desc { font-size: 0.82rem; color: var(--color-text-light); margin-top: 6px; font-weight: var(--fw-medium); }

@media (max-width: 1200px) {
  .impact-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .impact-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.timeline-horizontal { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: var(--space-md); scrollbar-width: thin; }
.timeline-horizontal .th-item { flex: 0 0 220px; background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-sm); border-top: 4px solid var(--color-accent); }
.timeline-horizontal .th-item .year { color: var(--color-primary); font-weight: var(--fw-bold); font-size: 1.1rem; }

/* ==========================================================================
   PARTNERS PAGE
   ========================================================================== */

.partner-logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.partner-logo-card { background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; padding: var(--space-lg); height: 120px; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.partner-logo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner-logo-card img { max-height: 44px; filter: grayscale(1); opacity: 0.7; transition: all 0.3s ease; }
.partner-logo-card:hover img { filter: grayscale(0); opacity: 1; }

.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-2xl) 0; }
.error-page .ring-illustration { width: 220px; height: 220px; margin: 0 auto var(--space-lg); }
.error-page h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--color-primary); }
.error-page p { max-width: 460px; margin: var(--space-sm) auto var(--space-lg); }
.error-page .hero-cta { justify-content: center; }

/* ==========================================================================
   VOLUNTEER PAGE
   ========================================================================== */

.opportunity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }

/* ---- Numbered process steps (e.g. Run for Life registration flow) ---- */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); position: relative; }
.process-row::before {
  content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background-image: linear-gradient(to right, #E5EAE9 50%, transparent 50%);
  background-size: 14px 2px;
}
.process-step { position: relative; text-align: center; }
.process-node { width: 54px; height: 54px; border-radius: 50%; background: var(--color-white); border: 2px solid var(--color-secondary); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); font-weight: var(--fw-bold); color: var(--color-secondary); position: relative; z-index: 1; }
.process-step h4 { margin-bottom: 6px; }
.process-step p { font-size: 0.9rem; }
@media (max-width: 900px) { .process-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } .process-row::before { display: none; } }
@media (max-width: 480px) { .process-row { grid-template-columns: 1fr; } }
.opportunity-card { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-lg); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.opportunity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.opportunity-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-sm); }
.opportunity-card .badge { background: var(--color-accent-soft); color: var(--color-primary-dark); font-size: 0.72rem; font-weight: var(--fw-semibold); padding: 6px 14px; border-radius: var(--radius-pill); }
.opportunity-card ul { margin-top: var(--space-sm); display: flex; flex-direction: column; gap: 8px; }
.opportunity-card li { display: flex; gap: 8px; font-size: 0.88rem; color: var(--color-text-light); align-items: flex-start; }
.opportunity-card li svg { width: 15px; height: 15px; color: var(--color-secondary); flex-shrink: 0; margin-top: 2px; }

.benefit-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.benefit-strip.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .benefit-strip.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .benefit-strip.cols-5 { grid-template-columns: repeat(2, 1fr); } }
.benefit-item { text-align: center; padding: var(--space-md); }
.benefit-item .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-sm); }
.benefit-item .dot svg { width: 24px; height: 24px; }

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */
.admin-body { background: var(--color-bg); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px; flex-shrink: 0;
  background: #0F2A22;
  color: rgba(255,255,255,0.85);
  display: flex; flex-direction: column;
  padding: var(--space-lg) 0;
  position: sticky; top: 0; height: 100vh;
}
.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--space-lg) var(--space-lg); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: var(--space-md); }
.admin-sidebar-brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 3px; }
.admin-sidebar-brand span { font-weight: var(--fw-semibold); font-size: 0.92rem; color: #fff; line-height: 1.2; }

.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.is-active { background: var(--gradient-primary); color: #fff; }
.admin-nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); padding: 14px 14px 6px; }

.admin-sidebar-foot { padding: var(--space-md) var(--space-lg) 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--space-md); }
.admin-sidebar-foot a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 0.85rem; padding: 8px 0; }
.admin-sidebar-foot a:hover { color: #fff; }

.admin-main { flex: 1; min-width: 0; }

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--space-xl);
  background: var(--color-white);
  border-bottom: 1px solid #EEF2F1;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 { font-size: 1.25rem; margin: 0; }
.admin-topbar-actions { display: flex; align-items: center; gap: 16px; }
.admin-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; color: var(--color-text-dark); }
.admin-bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); border: 2px solid var(--color-white); }
.admin-user-chip { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid #EEF2F1; }
.admin-user-chip .initials-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
.admin-user-chip span { font-size: 0.85rem; font-weight: var(--fw-medium); }

.admin-content { padding: var(--space-xl); }

.admin-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); }
.admin-stat-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.admin-stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.admin-stat-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; color: var(--color-primary-dark); }
.admin-stat-icon svg { width: 20px; height: 20px; }
.admin-stat-trend { font-size: 0.76rem; font-weight: var(--fw-semibold); padding: 3px 9px; border-radius: var(--radius-pill); }
.admin-stat-trend.up { background: rgba(42,138,67,0.12); color: var(--color-secondary); }
.admin-stat-card .num { font-size: 1.7rem; font-weight: var(--fw-bold); color: var(--color-text-dark); }
.admin-stat-card .label { font-size: 0.84rem; color: var(--color-text-light); margin-top: 2px; }

.admin-panel { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-lg); min-width: 0; max-width: 100%; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); flex-wrap: wrap; gap: 8px; }
.admin-panel-head h3 { margin: 0; font-size: 1.05rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.admin-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-light); padding: 0 12px 10px; border-bottom: 1px solid #EEF2F1; }
.admin-table td { padding: 12px; border-bottom: 1px solid #F3F5F4; color: var(--color-text-dark); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-status { font-size: 0.74rem; font-weight: var(--fw-semibold); padding: 4px 11px; border-radius: var(--radius-pill); display: inline-block; }
.admin-status.paid { background: rgba(42,138,67,0.12); color: var(--color-secondary); }
.admin-status.pending { background: rgba(96,199,242,0.18); color: #1F7AAB; }
.admin-status.new { background: rgba(42,153,208,0.12); color: var(--color-primary); }

.admin-activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F3F5F4; }
.admin-activity-item:last-child { border-bottom: none; }
.admin-activity-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary); }
.admin-activity-dot svg { width: 16px; height: 16px; }
.admin-activity-item p { margin: 0; font-size: 0.87rem; }
.admin-activity-item span { font-size: 0.76rem; color: var(--color-text-light); }

@media (max-width: 1100px) {
  .admin-stat-row { grid-template-columns: repeat(2, 1fr); }
  .admin-dash-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .admin-sidebar { position: fixed; left: -280px; z-index: 1200; transition: left 0.3s ease; box-shadow: var(--shadow-lg); }
  .admin-sidebar.is-open { left: 0; }
  .admin-content { padding: var(--space-md); }
  .admin-topbar { padding: 14px var(--space-md); }
}
@media (max-width: 640px) {
  .admin-stat-row { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; max-width: 100%; box-shadow: inset -18px 0 12px -14px rgba(0,0,0,0.12); }
  .admin-content { max-width: 100vw; overflow-x: hidden; padding: var(--space-sm); }
  .admin-panel { padding: var(--space-md); }
  #events-panel .admin-table, #news-panel .admin-table, #team-panel .admin-table, #gallery-panel .admin-table,
  #race-results-panel .admin-table, #donor-wall-panel .admin-table, #testimonials-panel .admin-table {
    display: table; white-space: normal;
  }
  #events-panel .admin-table td:first-child, #news-panel .admin-table td:first-child,
  #team-panel .admin-table td:first-child, #gallery-panel .admin-table td:first-child,
  #race-results-panel .admin-table td:nth-child(2), #donor-wall-panel .admin-table td:first-child,
  #testimonials-panel .admin-table td:first-child, #testimonials-panel .admin-table td:nth-child(2) {
    white-space: normal; overflow-wrap: break-word; min-width: 0; max-width: 140px;
  }
}

@media (max-width: 400px) {
  .admin-topbar { padding: 12px; }
  .admin-topbar h1 { font-size: 1.05rem; }
  .admin-user-chip span { display: none; }
  .admin-user-chip { padding-left: 8px; }
  .admin-topbar-actions { gap: 8px; }
}

/* ---- WhatsApp / Copy Link share buttons ---- */
.share-btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.whatsapp-share-btn, .copy-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold); font-size: 0.88rem;
  cursor: pointer; border: 1.5px solid #E5EAE9; background: var(--color-white);
  transition: all 0.25s ease;
}
.whatsapp-share-btn { background: #25D366; color: #fff; border-color: #25D366; }
.whatsapp-share-btn:hover { background: #22753A; }
.copy-link-btn { color: var(--color-text-dark); }
.copy-link-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---- Countdown timer ---- */
.countdown-timer { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.countdown-unit { background: linear-gradient(150deg, rgba(42,153,208,0.10), rgba(120,191,69,0.14)); border: 1px solid rgba(42,153,208,0.15); border-radius: var(--radius-md); padding: 14px 18px; min-width: 78px; text-align: center; box-shadow: var(--shadow-sm); }
.countdown-unit .num { font-size: 1.8rem; font-weight: var(--fw-bold); color: var(--color-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit .unit-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-light); margin-top: 4px; }
.countdown-timer.on-dark .countdown-unit { background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.countdown-timer.on-dark .countdown-unit .num { color: #fff; }
.countdown-timer.on-dark .countdown-unit .unit-label { color: rgba(255,255,255,0.75); }

/* ---- Fundraising progress bars ---- */
.fundraising-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); }
.fundraising-card h4 { margin-bottom: 4px; }
.fundraising-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--color-text-light); margin: 10px 0 8px; }
.fundraising-meta strong { color: var(--color-primary); font-size: 1rem; }
.fundraising-track { height: 10px; background: var(--color-bg); border-radius: var(--radius-pill); overflow: hidden; }
.fundraising-fill { height: 100%; background: var(--gradient-primary); border-radius: var(--radius-pill); transition: width 1.2s ease; }

/* ---- Donation impact calculator ---- */
.impact-calc-slider { width: 100%; margin: var(--space-md) 0; accent-color: var(--color-primary); height: 6px; }
.impact-calc-result { background: var(--color-bg); border-radius: var(--radius-md); padding: 16px 20px; text-align: center; font-weight: var(--fw-semibold); color: var(--color-text-dark); min-height: 1.4em; }
.impact-calc-result strong { color: var(--color-primary); }

/* ---- Site alert banner ---- */
.site-alert-banner {
  display: none; align-items: center; gap: 0;
  background: #FEF3C7; color: #92400E;
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  z-index: 999;
  overflow: hidden;
}
.site-alert-banner.is-visible { display: flex; }
/* When the alert banner is active: push page content down to clear the
   fixed nav + banner stack. The navbar's readable "is-scrolled" state is
   forced on via JS (see initSiteAlertBanner in js/main.js) rather than
   duplicated here, since that state is already fully styled and tested. */
body.has-alert-banner main { padding-top: calc(var(--nav-height) + var(--alert-height)); }

.site-alert-badge {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  background: #92400E; color: #fff; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 16px; z-index: 2;
}
.site-alert-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #FEF3C7; animation: alertBlink 1.4s ease-in-out infinite; }
@keyframes alertBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.site-alert-ticker {
  flex: 1; overflow: hidden; white-space: nowrap; position: relative;
}
.site-alert-ticker-track {
  display: inline-flex; white-space: nowrap;
  animation: alertScroll 22s linear infinite;
}
.site-alert-ticker-track span { padding: 0 40px; font-size: 0.88rem; font-weight: var(--fw-medium); }
@keyframes alertScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-alert-banner a { color: #92400E; text-decoration: underline; font-weight: 700; }
.site-alert-close { flex-shrink: 0; cursor: pointer; background: none; border: none; color: #92400E; font-size: 1.1rem; padding: 8px 16px; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .site-alert-ticker-track { animation: none; padding-left: 0; }
}

/* ---- Race results leaderboard ---- */
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th { text-align: left; padding: 12px; font-size: 0.78rem; text-transform: uppercase; color: var(--color-text-light); border-bottom: 2px solid #EEF2F1; }
.leaderboard-table td { padding: 14px 12px; border-bottom: 1px solid #F3F5F4; }
.leaderboard-table tr:first-child td { font-weight: 700; color: #2A8A43; background: rgba(120,191,69,0.08); }

@media (max-width: 480px) {
  .countdown-unit { min-width: 62px; padding: 10px 12px; }
  .countdown-unit .num { font-size: 1.4rem; }
}

/* ==========================================================================
   GRID MIN-WIDTH SAFETY NET
   CSS Grid items default to min-width:auto, meaning they won't shrink
   below their content's natural size — this silently breaks mobile layouts
   when a grid has an image, long text, or a wide inline element inside
   (the grid column expands to fit the content instead of the other way
   around). This is a recurring bug class across this project; rather than
   patch each instance individually, this is a blanket safety net across
   every 2-column layout grid used sitewide.
   ========================================================================== */
.vision-grid > *,
.model-grid > *,
.contact-layout > *,
.dept-detail-grid > *,
.blog-layout > *,
.partner-logo-grid > *,
.profile-dashboard-grid > *,
.opportunity-grid > *,
.donor-wall-grid > *,
.fundraising-grid > *,
.completed-projects-grid > *,
.before-after-grid > *,
.newsletter-band > *,
.payment-method-tabs > * {
  min-width: 0;
}

/* ==========================================================================
   INTERACTIVE ENHANCEMENTS — scroll progress, tilt cards, magnetic CTAs
   ========================================================================== */

.tilt-card { transition: transform 0.25s ease, box-shadow 0.25s ease; will-change: transform; }
.tilt-card:hover { box-shadow: var(--shadow-lg); }

.impact-stat-card, .why-card, .project-card, .news-card, .story-card, .fundraising-card {
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}

.magnetic-btn { transition: transform 0.25s cubic-bezier(.22,1,.36,1); }

.gallery-thumb, .partner-chip, .social-row a {
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.social-row a:hover { transform: translateY(-4px) scale(1.08); color: var(--color-primary); }

.hero-cta .btn, .donation-copy .btn, .projects-cta .btn {
  will-change: transform;
}

/* Cursor-follow glow behind hero content on pointer devices */
.hero { position: relative; }
.hero-cursor-glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,199,242,0.28), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.hero:hover .hero-cursor-glow { opacity: 1; }

@media (hover: none) {
  .hero-cursor-glow { display: none; }
}

/* ==========================================================================
   VIBRANT VISUAL LAYER — colorful backgrounds, decorative blobs and
   gradient icon treatments so the page reads rich instead of flat/white.
   ========================================================================== */

body {
  background:
    radial-gradient(circle at 6% 8%, rgba(96,199,242,0.12), transparent 42%),
    radial-gradient(circle at 96% 4%, rgba(120,191,69,0.12), transparent 38%),
    radial-gradient(circle at 50% 55%, rgba(42,153,208,0.05), transparent 50%),
    var(--color-white);
}

.bg-alt {
  background: linear-gradient(180deg, #E9F6FC 0%, #F0FAEC 100%);
}

/* ---- Decorative blurred color blobs behind key sections ---- */
.impact-stats-section,
.featured-projects,
.success-stories,
.partners,
.latest-news,
.about-preview {
  position: relative;
  overflow: hidden;
}
.impact-stats-section::before,
.featured-projects::before,
.success-stories::before,
.partners::before,
.latest-news::before,
.about-preview::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.impact-stats-section::before { background: var(--color-primary); top: -170px; right: -140px; }
.featured-projects::before { background: var(--color-accent); bottom: -190px; left: -160px; }
.success-stories::before { background: var(--color-sky); top: -150px; left: -130px; }
.partners::before { background: var(--color-secondary); bottom: -170px; right: -110px; }
.latest-news::before { background: var(--color-sky); bottom: -160px; right: -130px; }
.about-preview::before { background: var(--color-accent); top: -140px; left: -170px; }

.impact-stats-section > .container,
.featured-projects > .container,
.success-stories > .container,
.partners > .container,
.partners > .partners-track-wrap,
.latest-news > .container,
.about-preview > .container {
  position: relative;
  z-index: 1;
}

/* ---- Icons: colorful by default, not just on hover ---- */
.why-icon { background: var(--gradient-primary); }
.why-icon svg { color: var(--color-white); }
.why-card:hover .why-icon { background: var(--gradient-accent); transform: rotate(-6deg) scale(1.08); }
.why-card:hover .why-icon svg { color: var(--color-primary-dark); }

.impact-stat-icon { background: var(--gradient-primary); }
.impact-stat-icon svg { color: var(--color-white); }
.impact-stat-card:nth-child(2) .impact-stat-icon,
.impact-stat-card:nth-child(4) .impact-stat-icon { background: var(--gradient-accent); }
.impact-stat-card:nth-child(2) .impact-stat-icon svg,
.impact-stat-card:nth-child(4) .impact-stat-icon svg { color: var(--color-primary-dark); }
.impact-stat-card:nth-child(3) .impact-stat-icon,
.impact-stat-card:nth-child(5) .impact-stat-icon { background: linear-gradient(135deg, var(--color-sky), var(--color-primary)); }

/* ---- Gradient heading text utility ---- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Floating ambient shapes (pure decoration, adds a sense of motion) ---- */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
  opacity: 0.5;
  animation: floatShape 7s ease-in-out infinite;
}
.floating-shape.delay-1 { animation-delay: 1.2s; }
.floating-shape.delay-2 { animation-delay: 2.4s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-22px) translateX(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-shape { animation: none; }
}

/* ---- Footer accent line ---- */
.site-footer { position: relative; }
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-brand);
}

/* ---- Section-head accent flourish ---- */
.section-head { position: relative; }
.section-head.center::after {
  content: '';
  display: block;
  width: 64px; height: 4px;
  margin: 14px auto 0;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
}

/* ---- Richer donation banner backdrop ---- */
.donation-banner {
  background: linear-gradient(120deg, rgba(42,153,208,0.10), rgba(120,191,69,0.12));
}

/* ---- Pulse glow on the hero's primary donate CTA to draw the eye ---- */
.hero-cta .btn-accent {
  animation: ctaPulseGlow 2.6s ease-in-out infinite;
}
@keyframes ctaPulseGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(120,191,69,0.35); }
  50% { box-shadow: 0 8px 34px rgba(120,191,69,0.65), 0 0 0 8px rgba(120,191,69,0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-accent { animation: none; }
}

/* ---- Flowing wave dividers between sections, instead of hard rectangular seams ---- */
.section-wave { position: relative; line-height: 0; z-index: 1; margin-top: calc(-1 * var(--space-lg)); }
.section-wave svg { width: 100%; height: 80px; display: block; }
