/* ============================================================
   UDUF AFRICA — PREMIUM CSS REWRITE (DESKTOP OPTIMIZED)
   Brand: Navy #001338 | Orange #f7941d | Blue #2e2bbf
   Aesthetic: Refined editorial — clean, airy, bold moments
   FIXES: Desktop scaling, upcoming events CTA visibility,
          second logo position, footer row layout, e-books typography,
          removed desktop testimonial arrows
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #001338;
  --orange:      #f7941d;
  --blue:        #2e2bbf;
  --blue-dark:   #1a1880;
  --cream:       #faf9f6;
  --light:       #f4f5f9;
  --mid:         #e8eaf2;
  --text:        #1a1d2e;
  --muted:       #6b7089;
  --white:       #ffffff;

  --header-h:    72px;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-xl:   48px;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);

  --shadow-sm:   0 2px 8px rgba(0,19,56,.07);
  --shadow-md:   0 8px 28px rgba(0,19,56,.10);
  --shadow-lg:   0 20px 60px rgba(0,19,56,.13);

  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  padding-top: var(--header-h);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── UTILITY ── */
.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ============================================================
   PRELOADER (PRESERVED)
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

#preloader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(227, 148, 29, 0.18);
    z-index: 1;
}

.preloader-glass {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
}

.preloader-logo {
    width: 90px;
}

.text-wrapper {
    height: 70px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.text {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    font-family: 'Poppins', serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: #001338;
    opacity: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
    width: 100%;
}

.slide-right {
    animation: slideFromRight 2s ease forwards;
}

.slide-left {
    animation: slideFromLeft 2s ease forwards;
}

@keyframes slideFromRight {
    0% { opacity: 0; transform: translateX(40px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-20px); }
}

@keyframes slideFromLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    20% { opacity: 1; transform: translateX(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(20px); }
}

@media (min-width: 992px) {
    .preloader-glass { gap: 40px; }
    .preloader-logo { width: 280px; }
    .text-wrapper { height: 110px; }
    .text { font-size: 7.5rem; letter-spacing: 3px; }
}

#preloader.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,19,56,.45);
  backdrop-filter: blur(3px);
  z-index: 2900;
}
.overlay.active { display: block; }

/* ============================================================
   HEADER — FIXED: SECOND LOGO POSITIONED NEXT TO MAIN LOGO
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 3000;
}

/* Hanging logo - main logo */
.logo-container {
  position: relative;
  top: 0;
  left: 0;
  background: var(--white);
  padding: 8px 14px 18px;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow-md);
  z-index: 3001;
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 76px;
  width: auto;
}

/* Second logo - now positioned next to main logo (not centered) */
.logo-second {
  position: relative;
  left: 0;
  top: 0;
  transform: none;
  display: flex;
  align-items: center;
  margin-left: 12px;
  z-index: 3002;
}

.logo-second img {
  height: 50px;
  width: auto;
}

/* Right nav */
.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  z-index: 3003;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}

nav a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 4000;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .35s var(--ease);
}

/* Mobile nav */
@media (max-width: 992px) {
  header { height: 64px; }

  :root { --header-h: 64px; }

  .hamburger { display: flex; }

  .logo-container { padding: 6px 10px 14px; }
  .logo-container img { height: 55px; }
  .logo-second img { height: 28px; }

  nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(72%, 320px);
    background: var(--navy);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 3500;
    padding: 90px 36px 40px;
    overflow-y: auto;
  }

  nav.show { transform: translateX(0); }

  nav ul { flex-direction: column; gap: 6px; }

  nav a {
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  nav a:hover { color: var(--orange); border-bottom-color: rgba(255,255,255,.06); }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

.hero-slide.active { opacity: 1; z-index: 2; }

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: rgba(128, 0, 128, 0.3);
    z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  gap: 32px;
}

.hero-text-container {
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.hero-text-container.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .02em;
  max-width: 820px;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-donate,
.btn-volunteer {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 400;
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}

.btn-donate {
  background: #22a74a;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(34,167,74,.35);
}

.btn-volunteer {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(247,148,29,.35);
}

.btn-donate:hover,
.btn-volunteer:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.hero-slider-nav {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s, width .3s;
  padding: 0;
}

.hero-slider-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   MISSION SECTION
   ============================================================ */
#mission-section {
  background: var(--blue);
  color: var(--white);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

#mission-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(247,148,29,.12) 0%, transparent 70%);
  pointer-events: none;
}

.mission-container {
  max-width: 1100px;
  margin: 0 auto;
}

.mission-header {
  text-align: center;
  margin-bottom: 48px;
  overflow: hidden;
}

.mission-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--white);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.mission-header h2.reveal-now {
  opacity: 1;
  transform: translateY(0);
}

.mission-header .line-1,
.mission-header .line-2 {
  display: block;
}

.mission-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease) .15s, transform 1s var(--ease) .15s;
}

.mission-box.reveal-now {
  opacity: 1;
  transform: translateY(0);
}

.mission-box p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  line-height: 1.75;
  margin-bottom: 18px;
}

.mission-box p:last-of-type { margin-bottom: 28px; }

.btn-know-more {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  transition: background .25s, transform .25s;
}

.btn-know-more:hover {
  background: #ff9f2e;
  transform: translateY(-2px);
}

/* Focus areas */
.focus-areas h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 28px;
  text-align: center;
  opacity: .95;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .focus-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .focus-grid { grid-template-columns: repeat(4, 1fr); }
}

.focus-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s;
}

.focus-item:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.focus-item.active {
  background: rgba(255,255,255,.13);
  border-color: var(--orange);
  border-left: 4px solid var(--orange);
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.focus-header span {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
}

.arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: background .3s, transform .35s, color .3s;
  flex-shrink: 0;
}

.focus-item.active .arrow-circle {
  background: var(--orange);
  transform: rotate(-90deg);
}

.focus-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.focus-item.active .focus-content { max-height: 240px; }

.focus-content p {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.8);
}

.focus-learn-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 6px;
  transition: opacity .2s;
}

.focus-learn-more:hover { opacity: .75; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: 72px 5%;
  background: var(--white);
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stats-container { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--cream);
  border: 1px solid var(--mid);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: .02em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   UPCOMING EVENTS — FIXED: NAVIGATION ARROWS VISIBLE
   ============================================================ */
#upcoming-events {
  position: relative;
  min-height: 100svh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding: 80px 5%;
  text-align: center;
}

.events-header {
  margin-bottom: 60px;
  z-index: 10;
  max-width: 600px;
}

.events-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.events-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
}

.events-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Fixed slider width and spacing for desktop */
.events-slider {
  width: 100%;
  max-width: 480px;
  margin-bottom: 140px;
  position: relative;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: visible;
}

.event-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 64px rgba(0,19,56,.18);
}

.event-slide.active {
  opacity: 1;
  visibility: visible;
}

/* CTA container with proper positioning and spacing */
.event-content-anchor {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 24px 20px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: transparent;
}

.event-subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .05em;
  color: var(--navy);
  text-transform: uppercase;
}

.event-cta {
  padding: 14px 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(247,148,29,.4);
  transition: transform .25s, background .25s;
  display: inline-block;
  white-space: nowrap;
}

.event-cta:hover {
  transform: translateY(-3px);
  background: #e68a15;
}

/* Desktop specific adjustments for events */
@media (min-width: 992px) {
  .events-slider {
    max-width: 520px;
    margin-bottom: 160px;
  }
  
  .event-subtitle {
    font-size: 1.3rem;
  }
  
  .event-cta {
    padding: 16px 56px;
    font-size: 1rem;
  }
  
  .event-content-anchor {
    padding-top: 28px;
  }
}

/* Navigation arrows - FIXED: now visible and functional */
.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--mid);
  font-size: 1.8rem;
  color: var(--navy);
  cursor: pointer;
  z-index: 100;
  padding: 12px;
  opacity: 0.8;
  transition: opacity .2s, background .2s, transform .2s;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover { 
  opacity: 1;
  background: var(--orange);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.slider-btn.left  { left: 5%; }
.slider-btn.right { right: 5%; }

/* For larger screens, position arrows further out */
@media (min-width: 768px) {
  .slider-btn.left  { left: 8%; }
  .slider-btn.right { right: 8%; }
}

@media (min-width: 1200px) {
  .slider-btn.left  { left: 12%; }
  .slider-btn.right { right: 12%; }
}

/* Dots */
.slider-dots {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.dot.active {
  background: var(--blue);
  transform: scale(1.2);
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
#programs-section { overflow: hidden; }

.programs-section {
  background: var(--light);
  padding-bottom: 80px;
}

.programs-header {
  background: var(--navy);
  padding: 64px 5%;
  color: var(--white);
}

.programs-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: .02em;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 14px;
}

.programs-header p {
  max-width: 600px;
  font-size: .98rem;
  line-height: 1.7;
  opacity: .8;
}

.programs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 44px;
  padding: 0 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s;
}

.program-card.show {
  opacity: 1;
  transform: translateY(0);
}

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

.program-card.show:hover { transform: translateY(-6px); }

.program-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

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

.program-content {
  padding: 20px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.program-content p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.know-more {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
  margin-top: auto;
}

.know-more:hover { gap: 8px; }

/* ============================================================
   VOLUNTEERS SECTION
   ============================================================ */
#volunteers-section {
  background: var(--navy);
  color: var(--white);
  padding: 80px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 0;
  position: relative;
}

#volunteers-section::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,43,191,.25) 0%, transparent 70%);
  pointer-events: none;
}

.volunteers-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .03em;
  color: var(--white);
  margin-bottom: 24px;
}

.volunteers-copy {
  max-width: 680px;
  font-size: .975rem;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
  margin: 0 auto 32px;
}

#network-container {
  position: relative;
  width: 100%;
  height: 420px;
  max-width: 780px;
  margin: 0 auto 40px;
}

#network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.network-line {
  stroke: #00a2ff;
  stroke-width: .7;
  stroke-opacity: .25;
}

#network-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(0,162,255,.5);
  background: var(--navy);
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 18px rgba(0,162,255,.2);
}

.node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.node-name {
  position: absolute;
  bottom: -38px;
  width: 120px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  text-align: center;
  pointer-events: none;
}

.node-name .name-line  { font-weight: 700; color: #00a2ff; }
.node-name .brand-line { font-size: .6rem; color: #00ffff; opacity: .8; }

.volunteer-cta { margin-top: 8px; padding-bottom: 16px; }

.btn-volunteer {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 40px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 22px rgba(247,148,29,.35);
  transition: background .25s, transform .25s, color .25s;
}

.btn-volunteer:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  #volunteers-section {
    display: grid;
    grid-template-areas:
      "header header"
      "copy   network"
      "cta    cta";
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    text-align: left;
    gap: 20px 48px;
  }

  .volunteers-header { grid-area: header; text-align: center; }
  .volunteers-copy   { grid-area: copy; margin: 0; max-width: 46ch; padding-right: 20px; }
  #network-container { grid-area: network; margin: 0; }
  .volunteer-cta     { grid-area: cta; text-align: center; }
}

/* ============================================================
   CERTIFICATION SECTION
   ============================================================ */
.certification-section {
  background: linear-gradient(150deg, var(--white) 0%, #f0f2fc 100%);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.certification-section::after {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(46,43,191,.06) 0%, transparent 70%);
  pointer-events: none;
}

.certification-text {
  max-width: 520px;
  margin-bottom: 44px;
}

.certification-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: .03em;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 18px;
}

.certification-text p {
  font-size: .975rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 6px 22px rgba(46,43,191,.22);
  transition: background .25s, transform .25s;
}

.cert-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.certification-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}

.certification-image img:hover { transform: scale(1.01); }

@media (min-width: 1000px) {
  .certification-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 100px 8%;
  }

  .certification-text { margin-bottom: 0; }
}

/* ============================================================
   E-BOOKS SECTION — TYPOGRAPHY MATCHES CERTIFICATION SECTION
   ============================================================ */
.ebooks-section {
  background: var(--orange);
  padding: 60px 5%;
  position: relative;
  overflow: hidden;
}

.ebooks-section::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 65%);
  pointer-events: none;
}

/* Typography now matches certification section (font sizes, weights, line-heights, spacing) */
.ebooks-content {
  max-width: 520px;
  margin-bottom: 44px;
}

.ebooks-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: .03em;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.ebooks-content p {
  font-size: .975rem;
  color: rgba(255,255,255,.9);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.ebooks-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 2px solid rgba(255,255,255,.5);
  padding-bottom: 4px;
  transition: border-color .25s, gap .2s;
}

.ebooks-link:hover {
  border-bottom-color: var(--white);
  gap: 14px;
}

.ebooks-image {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.ebooks-image img {
  max-width: 300px;
  width: 85%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.22));
}

@media (min-width: 992px) {
  .ebooks-section {
    padding: 80px 8%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ebooks-section > * {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
  }

  .ebooks-content {
    flex: 0 0 52%;
    margin-bottom: 0;
  }
  
  .ebooks-content h2 {
    font-size: 2.8rem;
  }
  
  .ebooks-content p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .ebooks-image {
    flex: 0 0 45%;
    justify-content: flex-end;
    margin-top: 0;
  }

  .ebooks-image img { 
    max-width: 480px; 
    width: 100%;
  }
}

/* ============================================================
   TESTIMONIALS — MOBILE
   ============================================================ */
.testimonial-section {
  background: var(--light);
  padding: 72px 5%;
}

.testimonial-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .03em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}

.testimonial-header p {
  font-size: .9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s, transform .25s;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  margin-top: 36px;
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

.testimonial-nav {
  margin: 32px 0 16px;
  display: flex;
  gap: 10px;
}

.testimonial-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--mid);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, color .2s;
}

.testimonial-nav button:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.testimonial-container {
  position: relative;
  overflow: hidden;
  max-width: 560px;
}

.testimonial-card {
  display: none;
  background: var(--white);
  padding: 32px 24px 28px 80px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mid);
  animation: fadeSlideUp .5s var(--ease);
  position: relative;
}

.testimonial-card.active { display: block; }

.testimonial-logo {
  position: absolute;
  top: 20px; left: 20px;
  width: 44px; height: 44px;
}

.testimonial-logo img { width: 100%; height: 100%; object-fit: contain; }

.testimonial-text {
  font-size: .935rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: .8rem;
  color: var(--muted);
  display: block;
}

.testimonial-author a {
  font-size: .8rem;
  color: var(--blue);
  display: inline-block;
  margin-top: 2px;
  transition: opacity .2s;
}

.testimonial-author a:hover { opacity: .7; }

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

/* ============================================================
   TESTIMONIALS — DESKTOP (ARROWS REMOVED)
   ============================================================ */
.desktop-testimonial-section {
  display: none;
  background: var(--light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.desktop-testimonial-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

.desktop-testimonial-header {
  margin-bottom: 40px;
}

.desktop-testimonial-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: .03em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.desktop-testimonial-header p {
  font-size: .9rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.desktop-btn-primary,
.desktop-btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s, transform .25s;
}

.desktop-btn-primary:hover { background: var(--blue-dark); }

.desktop-btn-secondary {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  margin-top: 36px;
}

.desktop-btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
}

.desktop-carousel-wrapper {
  position: relative;
  margin: 36px 0 28px;
}

/* Desktop carousel arrows hidden as requested */
.desktop-carousel-arrow {
  display: none;
}

.desktop-carousel-container {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-md);
}

.desktop-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .5s var(--ease);
}

.desktop-testimonial-card {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius-md);
  padding: 28px 22px 24px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

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

.desktop-testimonial-card .testimonial-logo {
  position: absolute;
  top: 18px; left: 18px;
  width: 40px; height: 40px;
}

.desktop-testimonial-card .testimonial-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.desktop-testimonial-card .testimonial-text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  margin: 56px 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desktop-testimonial-card .testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.desktop-testimonial-card .testimonial-author img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.desktop-testimonial-card .testimonial-author h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.desktop-testimonial-card .testimonial-author span {
  font-size: .78rem;
  color: var(--muted);
  display: block;
}

.desktop-testimonial-card .testimonial-author a {
  font-size: .78rem;
  color: var(--blue);
  display: inline-block;
  margin-top: 2px;
}

.desktop-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.desktop-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s, border-radius .3s;
}

.desktop-dot.active {
  background: var(--blue);
  width: 28px;
  border-radius: 4px;
}

@media (min-width: 992px) {
  .testimonial-section         { display: none !important; }
  .desktop-testimonial-section { display: block; }
}

@media (max-width: 991px) {
  .desktop-testimonial-section { display: none !important; }
}

/* ============================================================
   PARTNERS SECTION
   ============================================================ */
.partners-section {
  background: var(--white);
  padding: 64px 5%;
  text-align: center;
  overflow: hidden;
}

.partners-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .04em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.partners-header p {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 44px;
}

.partners-logos-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-logos {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: slideLeft 55s linear infinite;
  align-items: center;
}

.partners-logos img {
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .3s, transform .3s;
  filter: grayscale(30%);
}

.partners-logos img:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: grayscale(0%);
}

@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER — FIXED: THREE COLUMNS IN ONE ROW FOR DESKTOP
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 56px 5% 28px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.2fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Ensure three columns stay in one row on desktop */
@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1.2fr;
    gap: 50px;
  }
}

@media (max-width: 991px) and (min-width: 541px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo {
  width: 110px;
  height: auto;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: .855rem;
  line-height: 1.7;
  opacity: .75;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer a {
  color: rgba(255,255,255,.7);
  font-size: .855rem;
  line-height: 2;
  display: inline-block;
  transition: color .2s;
}

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

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 7px 0;
  font-size: .855rem;
  line-height: 1.5;
}

.contact-row img { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }

.footer-social {
  text-align: center;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-social img {
  width: 22px;
  height: 22px;
  opacity: .7;
  transition: opacity .2s, transform .2s;
}

.footer-social img:hover { opacity: 1; transform: translateY(-3px); }

.footer-copy {
  text-align: center;
  margin-top: 20px;
  font-size: .8rem;
  opacity: .5;
}

.footer-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.footer-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REVEAL ANIMATIONS (SHARED)
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay { transition-delay: .2s; }

/* ============================================================
   MISCELLANEOUS OVERRIDES
   ============================================================ */

/* Focus areas heading */
.focus-areas h2 {
  font-family: var(--font-display) !important;
}

/* Programs section nesting fix */
#programs-section > section { overflow: visible; }
#certification-section > section,
#ebooks-section > section,
#partners-section > section { overflow: visible; }

/* ============================================================
   RESPONSIVE POLISH — DESKTOP OPTIMIZED
   ============================================================ */
@media (max-width: 992px) {
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-donate, .btn-volunteer { padding: 13px 28px; min-width: 200px; }

  .mission-box { padding: 28px 20px; }

  .events-slider { max-width: 80%; }

  .ebooks-content h2 { font-size: 2rem; }

  .programs-header h2 { font-size: clamp(2rem, 7vw, 3.4rem); }

  .certification-section { padding: 56px 5%; }

  .testimonial-card { padding: 64px 18px 24px 18px; }
  .testimonial-logo { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 480px) {
  .stats-container { grid-template-columns: 1fr 1fr; }
  .stat-number     { font-size: 2rem; }
}

/* Desktop scaling fix — prevents zoomed-in appearance */
@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }
  
  .container {
    max-width: 1280px;
  }
  
  .hero-title {
    font-size: 4.2rem;
  }
  
  .programs-container {
    gap: 32px;
  }
}