/* ------------------------------
   COLOR VARIABLES
------------------------------ */
:root {
    --deep-blue: #1D4E89;      /* Primary brand color (Hero, CTA focus) */
    --aqua: #23B5D3;           /* Accent color (buttons, highlights) */
    --sky: #E6F4F8;            /* Light background sections */
    --dark-navy: #0C1B33;      /* Dark text or footer */
    --white: #FFFFFF;          /* Clean white */
    --gray-text: #2E3A4E;   
    --red: #eb4c34;   /* Softer text for readability */
  }
  
  /* ------------------------------
     RESET + BASE
  ------------------------------ */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: linear-gradient(-45deg, var(--deep-blue), var(--aqua), var(--deep-blue), var(--dark-navy));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    overflow-x: hidden;
  }
  
  @keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
  }
  
  .container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
  }
  
  /* ------------------------------
   NAVBAR - GLASSMORPHISM DESIGN
  ------------------------------ */
  .navbar {
  /* GLASSMORPHISM EFFECT: Semi-transparent background with blur */
  background: rgba(29, 78, 137, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  
  /* STICKY POSITIONING: Stays at top while scrolling */
    position: sticky;
    top: 0;
    z-index: 1000;
  
  /* PROFESSIONAL SHADOW: Deep shadow for elevation effect */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* SMOOTH TRANSITIONS: All properties animate smoothly */
  transition: all 0.3s ease;
  }
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0; /* reduced height */
}
/* BRAND LOGO SECTION */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease;
}
.brand a.brand-link { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand:hover {
  /* HOVER ELEVATION: Lifts brand slightly on hover */
  transform: translateY(-2px);
}

/* LOGO STYLING WITH GLOW EFFECT */
  .logo-img {
  width: 53px; /* slightly smaller to reduce navbar height */
  height: 53px;
  border-radius: 50%;
  /* AQUA GLOW: Colored shadow matching theme */
  box-shadow: 0 4px 15px rgba(35, 181, 211, 0.3);
  transition: box-shadow 0.3s ease;
}
.logo-img:hover {
  /* ENHANCED GLOW: Stronger shadow on hover */
  box-shadow: 0 6px 20px rgba(35, 181, 211, 0.5);
}

/* GRADIENT TEXT EFFECT FOR BRAND NAME */
  .brand-name {
    font-family: 'Raleway', sans-serif;
  font-size: 42px;
    font-weight: 800;
  letter-spacing: 1.5px;
  /* GRADIENT TEXT: Creates premium gradient text effect */
  background: linear-gradient(135deg, var(--white), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  }
  .nav-main { display: flex; align-items: center; gap: 2rem; flex-wrap: nowrap; }
  .nav-links { display: flex; gap: 2rem; list-style: none; flex-wrap: nowrap; }
  
  /* MOBILE MENU TOGGLE */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1002;
  }
  
  .hamburger {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  .menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* NAVIGATION LINKS WITH UNDERLINE ANIMATION */
  .nav-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px; /* increased font size */
    text-decoration: none;
    color: var(--white);
    padding: 0.5rem 0.6rem;
    position: relative;
    transition: font-weight 0.3s ease;
    white-space: nowrap;
  }
  
  /* NON-CLICKABLE DROPDOWN TRIGGER STYLING */
  .nav-dropdown-trigger {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px; /* increased font size */
    color: var(--white);
    padding: 0.5rem 0.6rem;
    position: relative;
    cursor: pointer;
    transition: font-weight 0.3s ease;
    display: block;
    white-space: nowrap;
  }

  /* UNDERLINE ANIMATION FOR BOTH LINKS AND DROPDOWN TRIGGER */
  .nav-links a::after,
  .nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  /* HOVER EFFECT WITH UNDERLINE EXPANSION AND BOLD TEXT */
  .nav-links a:hover,
  .nav-dropdown-trigger:hover {
    font-weight: 800;
  }

  .nav-links a:hover::after,
  .nav-dropdown-trigger:hover::after {
    width: 100%;
  }
  
  /* Align left cluster and right donate, and donate styling */
  .nav-main { display: flex; align-items: center; gap: 2rem; flex-wrap: nowrap; }
  .nav-actions { display: flex; align-items: center; margin-left: auto; }
  .donate-cta {
    background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(244, 162, 97, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border: 2px solid rgba(255,255,255,0.15);
    white-space: nowrap;
  }
  .donate-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(244, 162, 97, 0.5); }
  
  /* DROPDOWN MENU STYLING */
  .dropdown-container {
    position: relative;
  }
  
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: rgba(29, 78, 137, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1001;
    list-style: none;
    padding: 0;
  }
  
  .dropdown-container:hover .dropdown {
    display: block;
    animation: fadeInUp 0.3s ease;
  }
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
  }
  .dropdown li {
    list-style: none;
  }
  
  .dropdown li a {
    display: block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    margin: 0.2rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
  }
  
  .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--aqua);
  }
  
  /* ------------------------------
   HERO SECTION - PREMIUM DESIGN
  ------------------------------ */
  .hero {
    position: relative;
    text-align: center;
  /* MULTI-LAYER GRADIENT: Complex gradient background for depth */
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-navy) 50%, var(--deep-blue) 100%);
    color: var(--white);
  padding: 6rem 1rem;
  overflow: hidden;
}
/* Home page (index) – keep video tint only here */
.indexhero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(
  100% 60% at 50% 20%,
  rgba(0,0,0,.15) 0%,   /* was .35 */
  rgba(0,0,0,.35) 60%,  /* was .55 */
  rgba(0,0,0,.45) 100%  /* was .65 */
),
linear-gradient(
  0deg,
  rgba(12,27,51,.25),   /* was .45 */
  rgba(12,27,51,.25)    /* was .45 */
);
  z-index:2;                 /* below .hero-content, above video */
  pointer-events:none;
}

/* Ensure other heroes don't inherit an overlay */
.hero:not(.indexhero)::after{ content:none; }


/* RADIAL OVERLAY EFFECTS: Creates depth and visual interest */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* LAYERED RADIAL GRADIENTS: Multiple light sources effect */
  background: radial-gradient(circle at 30% 70%, rgba(35, 181, 211, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(29, 78, 137, 0.2) 0%, transparent 50%);
  z-index: 1;
}

/* CONTENT LAYERING: Ensures content appears above background effects */
.hero-content {
  position: relative;
  z-index: 2;
  }
  /* HERO TITLE WITH GRADIENT TEXT & GLOW ANIMATION */
  .hero h1 {
    font-family: 'Poppins', sans-serif;
  /* RESPONSIVE TYPOGRAPHY: Scales with viewport width */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* TEXT SHADOW: Depth effect behind text */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  /* GRADIENT TEXT EFFECT: Premium gradient text */
  background: linear-gradient(135deg, var(--white) 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* GLOW ANIMATION: Pulsing glow effect */
  animation: glow 3s ease-in-out infinite alternate;
}
.indexhero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  /* Gradient adjusted to avoid pure white at the start */
  background: linear-gradient(135deg, #c2e1fb 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation: glow 3s ease-in-out infinite alternate;
}


/* GLOW ANIMATION KEYFRAMES: Creates pulsing light effect */
@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(35, 181, 211, 0.5));
  }
  to {
    filter: drop-shadow(0 0 30px rgba(35, 181, 211, 0.8));
  }
  }
  .hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* PREMIUM CTA BUTTON WITH 3D EFFECTS */
.pulse-border {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  /* PILL SHAPE: Modern rounded button */
  border-radius: 50px;
  color: var(--white);
  /* GRADIENT BACKGROUND: Premium gradient effect */
  background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  /* LAYERED SHADOWS: Multiple shadows for depth */
 
  /* SMOOTH CUBIC-BEZIER TRANSITION: Professional easing */
 
 
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
  box-shadow: 0 8px 24px rgba(244, 162, 97, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: 2px solid rgba(255,255,255,0.15);
}


/* ADVANCED HOVER EFFECTS */
.pulse-border:hover {
  /* Slightly deeper gradient for readability contrast */
  background: linear-gradient(135deg, #e6b74f 0%, #d98748 100%);
  
  /* Keep text white */
  color: var(--white);

  /* Subtle lift on hover */
  transform: translateY(-3px);

  /* Stronger glow/shadow */
  box-shadow: 0 12px 28px rgba(244, 162, 97, 0.45);

  /* Optional: smooth transition */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  opacity: 1;
}


/* ANIMATED BORDER EFFECT */
.pulse-border::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  /* ANIMATED GRADIENT BORDER: Moving light effect */
  background: linear-gradient(270deg, var(--aqua), var(--white), var(--aqua));
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: borderAnimation 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* BORDER ANIMATION KEYFRAMES: Creates moving light effect */
@keyframes borderAnimation {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
  
  /* ------------------------------
   CATEGORY HERO - INTERACTIVE IMAGE SHOWCASE
------------------------------ */
.category-hero {
  background: var(--white);
  padding: 2rem 0;
  /* POSITIONING: Accommodates overlapping wave */
  position: relative;
  z-index: 1;
}

/* IMAGE CONTAINER WITH PROFESSIONAL SHADOWS */
.category-image {
  position: relative;
  /* MODERN BORDER RADIUS: Large rounded corners */
  border-radius: 20px;
  overflow: hidden;
  /* DEEP SHADOW: Creates floating effect */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin: 0 1rem;
  /* Z-INDEX: Ensures image appears above wave */
  z-index: 2;
}

/* HERO IMAGE WITH ZOOM EFFECT */
.category-image img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  /* SMOOTH ZOOM TRANSITION: Slow zoom for elegance */
  transition: transform 0.6s ease;
}
.category-image:hover img {
  /* ZOOM EFFECT: Subtle image scaling on hover */
  transform: scale(1.05);
}
  /* FLOATING CATEGORY BUTTONS */
.category-buttons {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  /* Z-INDEX: Ensures buttons appear above wave */
  z-index: 3;
}

/* GLASSMORPHISM BUTTONS WITH ADVANCED EFFECTS */
.category-buttons button {
  /* GLASSMORPHISM: Semi-transparent with blur */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  /* PILL SHAPE: Modern rounded buttons */
  border-radius: 25px;
  cursor: pointer;
  color: var(--deep-blue);
  /* PROFESSIONAL EASING: Smooth cubic-bezier transition */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* SUBTLE SHADOW: Floating effect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* SHIMMER EFFECT FOR BUTTONS */
.category-buttons button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* SHIMMER GRADIENT: Light sweep effect */
  background: linear-gradient(90deg, transparent, rgba(35, 181, 211, 0.2), transparent);
  transition: left 0.5s;
}
.category-buttons button:hover::before {
  /* SHIMMER ACTIVATION: Light moves across button */
  left: 100%;
}

/* BUTTON HOVER TRANSFORMATION */
.category-buttons button:hover {
  /* COLOR CHANGE: Transform to aqua theme */
  background: var(--aqua);
  color: var(--white);
  /* 3D EFFECT: Lift and scale */
  transform: translateY(-3px) scale(1.05);
  /* ENHANCED SHADOW: Stronger depth effect */
  box-shadow: 0 8px 25px rgba(35, 181, 211, 0.4);
  border-color: var(--aqua);
}
  
/* ===== Category Hero (split like "What is WAVE") ===== */
.category-hero.cat-split {
  /* same soft off-white feel as intro */
  background: radial-gradient(1200px 600px at 70% 10%, rgba(35,181,211,0.07), transparent 60%) ,
              linear-gradient(180deg, #f9fbfc 0%, #ffffff 100%);
  padding: 3.5rem 1rem;
}
.category-hero.cat-split .container {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
}
.cat-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;   /* image left bigger */
  gap: 2rem;
  align-items: center;               /* vertically center the right card */
}

/* Left media frame (fixed visual size for all images) */
.cat-media-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.12);
  background: #eef6fa;
  aspect-ratio: 16 / 9;              /* ensures the same frame size */
}
.cat-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Buttons on the image (single row) */
.cat-tabs {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 2;
}
.cat-tabs button {
  appearance: none;
  border: none;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .02em;
  background: #fff;
  color: var(--deep-blue);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.cat-tabs button:hover { transform: translateY(-2px); }
.cat-tabs button.active {
  background: linear-gradient(135deg, var(--aqua), var(--deep-blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(35,181,211,.35);
}

/* Right panel card */
.cat-panel {
  background: #fff;
  border: 1px solid rgba(29,78,137,.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  padding: 1.6rem 1.4rem;
}
.cat-panel .cat-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin: 0 0 .5rem;
  background: linear-gradient(135deg, var(--deep-blue), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cat-panel .cat-copy {
  color: var(--gray-text);
  margin-bottom: 1rem;
}

/* Responsive stack */
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .cat-panel { order: 2; }
  .cat-media { order: 1; }
  .cat-tabs { top: 10px; gap: .6rem; }
  .cat-tabs button { padding: .55rem .9rem; font-size: .9rem; }
}

.category-info-card {
  background: rgba(255, 255, 255, 0.6); /* subtle white tint */
  box-shadow: none; /* remove shadow */
  border: none; /* remove border */
  padding: 2rem;
  border-radius: 1rem; /* keep rounded corners for style */
  backdrop-filter: blur(6px); /* softens image behind card */
}

.category-info-card h2 {
  color: #003366; /* dark blue for readability */
  margin-bottom: 1rem;
}

.category-info-card p {
  color: #333;
  line-height: 1.5;
}

  /* ------------------------------
   INTRO (What is WAVE) - PROFESSIONAL SECTION
------------------------------ */

/* Base intro */
.intro {
  background: radial-gradient(1200px 600px at 70% 10%, rgba(35,181,211,0.07), transparent 60%),
  linear-gradient(180deg, #ebf5fa 0%, #ffffff 100%);
  color: var(--dark-navy);
  padding: 5rem 1rem;
  position: relative;
}

/* Intro + mission variant */
.intro.mission {
  background: linear-gradient(135deg, #e8f4fd 0%, #b3d9f2 50%, #87ceeb 100%);
  color: var(--dark-navy, #0b1b2b);
}

.intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* MINIMAL OVERLAY: Very subtle professional effect */
  background: radial-gradient(circle at 70% 30%, rgba(35, 181, 211, 0.02) 0%, transparent 80%);
  z-index: 1;
}
  .intro-content {
    display: flex;
    flex-wrap: wrap;
  gap: 3rem;
    align-items: center;
  position: relative;
  z-index: 2;
  }
  .intro .text {
    flex: 1;
  min-width: 300px;
  }
  .intro h2 {
    font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
    color: var(--deep-blue);
  text-shadow: 0 2px 10px rgba(29, 78, 137, 0.1);
  position: relative;
}
.intro h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--deep-blue));
  border-radius: 2px;
  }
  .intro p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
    color: var(--gray-text);
  line-height: 1.7;
  max-width: 500px;
  }
  /* UNIVERSAL AQUA BUTTON */
/* AQUA BUTTON WITH SAME SIZE AS PULSE-BORDER */
.btn {
  position: relative;
  display: inline-block;

  /* 🔹 Match pulse-border spacing */
  padding: 1rem 2.5rem;
  font-size: 1.1rem;

  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;

  /* AQUA gradient */
  background: linear-gradient(135deg, var(--aqua) 0%, #1D9FB8 100%);

  /* Depth */
  box-shadow: 0 8px 24px rgba(35, 181, 211, 0.35);

  /* Fade-in animation */
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;

  /* Smooth easing */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn:hover {
  background: linear-gradient(135deg, #1D9FB8 0%, #0d7f94 100%);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(35, 181, 211, 0.45);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  .intro .btn {
  background: linear-gradient(135deg, var(--aqua) 0%, #1D9FB8 100%);
    color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
    text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(35, 181, 211, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  }
  .intro .btn:hover {
  background: linear-gradient(135deg, #1D9FB8 0%, var(--aqua) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(35, 181, 211, 0.4);
}
/* Intro video: responsive 16:9, same aesthetics */
.intro .video {
  flex: 1;
  min-width: 300px;

  /* responsive sizing */
  max-width: 640px;          /* adjust if you want it wider/narrower */
  aspect-ratio: 16 / 9;      /* keeps height proportional */
  position: relative;
}

.intro .video iframe,
.intro .video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;

  /* your existing style */
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 10px 30px rgba(29, 78, 137, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro .video iframe:hover,
.intro .video video:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2),
              0 15px 40px rgba(29, 78, 137, 0.15);
}

  /* ------------------------------
   SOCIAL PROOF - PREMIUM STATS SECTION
------------------------------ */
.social-proof {
  /* PROFESSIONAL CONTAINED BACKGROUND: Clean white with subtle gradient */
  background: linear-gradient(135deg, #e8f4fd 0%, #b3d9f2 50%, #87ceeb 100%);
  color: var(--dark-navy, #0b1b2b);
  
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* SUBTLE OVERLAY EFFECTS: Professional depth without overwhelming */
.social-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* SINGLE RADIAL GRADIENT: Subtle professional lighting */
  background: radial-gradient(circle at 70% 30%, rgba(35, 181, 211, 0.08) 0%, transparent 60%);
  z-index: 1;
}

/* CONTENT LAYERING: Ensures content appears above effects */
.social-proof .container {
  position: relative;
  z-index: 2;
}
  .social-proof h2 {
    font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--deep-blue);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  .stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
  flex-wrap: wrap;
  }
  /* PREMIUM STAT CARDS WITH PROFESSIONAL DESIGN */
.stat-card {
  /* CLEAN WHITE BACKGROUND: Professional solid background */
  background: var(--white);
  padding: 2.5rem 2rem;
  /* MODERN ROUNDED CORNERS: Large border radius */
  border-radius: 20px;
  min-width: 200px;
  /* PROFESSIONAL SHADOWS: Subtle depth without overwhelming */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08),
              0 4px 12px rgba(29, 78, 137, 0.1);
  /* PROFESSIONAL EASING: Smooth cubic-bezier transition */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* AQUA BORDER: Subtle brand color accent */
  border: 2px solid rgba(35, 181, 211, 0.1);
  position: relative;
  overflow: hidden;
}

/* SHIMMER OVERLAY EFFECT */
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* DIAGONAL SHIMMER: Creates light sweep effect */
  background: linear-gradient(45deg, transparent, rgba(35, 181, 211, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}
.stat-card:hover::before {
  /* SHIMMER ACTIVATION: Light sweeps across card */
  opacity: 1;
  transform: rotate(45deg) translate(30%, 30%);
}

/* PROFESSIONAL HOVER EFFECT */
.stat-card:hover {
  /* SUBTLE 3D TRANSFORMATION: Gentle lift effect */
  transform: translateY(-5px);
  /* ENHANCED SHADOWS: Professional depth on hover */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12),
              0 8px 20px rgba(35, 181, 211, 0.15);
  /* BORDER COLOR CHANGE: Aqua highlight */
  border-color: var(--aqua);
}
  .stat-card h3 {
    font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
  }
  .stat-card p {
  color: var(--gray-text);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  }
  
  /* ------------------------------
     GALLERY (Infinite Scroll)
  ------------------------------ */
 /* ------------------------------
   GALLERY - INFINITE SCROLL WITH PROFESSIONAL EFFECTS
------------------------------ */
.gallery {
  background: linear-gradient(135deg, #e8f4fd 0%, #b3d9f2 50%, #87ceeb 100%);
  color: var(--dark-navy, #0b1b2b);
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* SUBTLE BACKGROUND OVERLAY: Professional depth */
.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* SINGLE RADIAL GRADIENT: Subtle professional lighting */
  background: radial-gradient(circle at 70% 30%, rgba(35, 181, 211, 0.08) 0%, transparent 60%);
  z-index: 1;
}
.gallery .container {
  position: relative;
  z-index: 2;
}
.gallery h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--deep-blue);
  text-shadow: 0 2px 10px rgba(29, 78, 137, 0.1);
  }
  
  /* INFINITE SCROLL TRACK: Seamless looping animation */
.gallery-track {
  display: flex;
  gap: 1.5rem;
  /* CALCULATED WIDTH: Accommodates all images for smooth loop */
  width: calc(240px * 24); /* 12 images x 2 sets */
  /* SMOOTH INFINITE ANIMATION: 60-second loop */
  animation: scroll 25s linear infinite;
  will-change: transform;
  padding: 1rem 0;
}

/* INTERACTIVE PAUSE: Stops animation on hover */
.gallery:hover .gallery-track {
  animation-play-state: paused;
}

/* PROFESSIONAL IMAGE STYLING */
.gallery-track img {
  flex-shrink: 0;
  width: 240px;
  height: 180px;
  object-fit: cover;
  /* MODERN BORDER RADIUS: Rounded corners */
  border-radius: 16px;
  /* SMOOTH TRANSITIONS: Professional easing curve */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* LAYERED SHADOWS: Multiple shadows for depth */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
              0 4px 12px rgba(29, 78, 137, 0.1);
  /* WHITE BORDER: Clean professional border */
  border: 3px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  position: relative;
}

/* GRADIENT OVERLAY EFFECT: Appears on hover */
.gallery-track img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* BLUE GRADIENT OVERLAY: Theme-matching overlay */
  background: linear-gradient(135deg, rgba(35, 181, 211, 0.2) 0%, rgba(29, 78, 137, 0.3) 100%);
  border-radius: 13px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* ADVANCED HOVER EFFECTS: 3D transformation with enhanced shadows */
.gallery-track img:hover {
  /* 3D LIFT & SCALE: Dramatic hover effect */
  transform: translateY(-10px) scale(1.15);
  /* SPACING ADJUSTMENT: Prevents overlap */
  margin: 0 1.5rem;
  z-index: 10;
  /* DRAMATIC SHADOWS: Strong depth effect */
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25),
              0 15px 35px rgba(35, 181, 211, 0.3);
  /* BORDER HIGHLIGHT: Aqua border on hover */
  border-color: var(--aqua);
}
.gallery-track img:hover::before {
  /* OVERLAY REVEAL: Shows gradient overlay */
  opacity: 1;
}
  
  /* INFINITE SCROLL ANIMATION: Seamless continuous movement */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* PRECISE CALCULATION: Moves exactly one set width for seamless loop */
    transform: translateX(calc(-240px * 12 - 1.5rem * 12)); /* width of one set + gaps */
  }
}
  
  /* ------------------------------
     LOGO MARQUEE (RTL Infinite)
  ------------------------------ */
  .logo-marquee {
    background: radial-gradient(1200px 600px at 70% 10%, rgba(35,181,211,0.07), transparent 60%),
    linear-gradient(180deg, #ebf5fa 0%, #ffffff 100%);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
  }
  .logo-marquee .container { position: relative; z-index: 1; }

  .logo-viewport {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  }
  .logo-marquee h2{
    font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
    color: var(--deep-blue);
  text-shadow: 0 2px 10px rgba(29, 78, 137, 0.1);
  position: relative;
  }
  .logo-track {
    --logo-width: 160px;
    --logo-height: 64px;
    --logo-gap: 2rem;
    display: flex;
    gap: var(--logo-gap);
    align-items: center;
    width: max-content;
    will-change: transform;
    padding: 0.5rem 0;
  }
/* Dark versions: stays with the element even when DOM order changes */
.logo-placeholder.is-dark {
  background: #000;
  border-color: rgba(29, 78, 137, 0.25); /* optional: a touch stronger on dark */
}

  .logo-placeholder {
    width: var(--logo-width);
    height: var(--logo-height);
    flex: 0 0 auto;
  
    /* rounded + consistent frame */
    border-radius: 14px;
    background: #fff;
    border: 2px solid rgba(29, 78, 137, 0.15);
  
    /* subtle depth */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  
    /* keep the logo centered and inside the frame */
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* prevents any image corners from poking out */
  }
  .logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* preserve logo aspect while fitting */
    border-radius: 10px;   /* slight rounding inside the frame */
    display: block;
  }

  /* Re-entry slide-in effect for cycled items */
  .logo-reenter {
    animation: logoReenter 650ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes logoReenter {
    0% { opacity: 0; transform: translateX(28px); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: translateX(0); }
  }

  /* Note: movement handled in JS for perfect DOM-cycling loop */
  
  /* ------------------------------
     TIMELINE (Horizontal, RTL Loop)
  ------------------------------ */
  /* =========================
   Mission Timeline — auto-growing cards + taller track
   ========================= */
.missionTimeline .timeline-wrapper {
  min-height: 520px;   /* base minimum */
  height: auto;        /* wrapper grows with tallest card */
  padding-top: 30px;   /* extra space above */
  padding-bottom: 40px;/* extra space below */
}

.missionTimeline .timeline-track {
  align-items: stretch;
  min-height: calc(100% + 60px); /* track is always taller than cards */
  padding-bottom: 20px;          /* ensures dots never touch the bottom */
}

.missionTimeline .timeline-item {
  height: auto !important;  
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 32px;
  overflow: hidden;
}

.missionTimeline .timeline-image {
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.missionTimeline .timeline-date,
.missionTimeline .timeline-title,
.missionTimeline .timeline-description {
  flex-shrink: 0;
}

.missionTimeline .timeline-description {
  margin-top: 0.5rem;
  line-height: 1.55;
  font-size: 0.95rem;
  word-break: break-word;
}

  .timeline { background: var(--white); color: var(--dark-navy); padding: 5rem 0; position: relative; overflow: hidden; }
  .timeline-viewport { --img-size: 170px; position: relative; overflow: hidden; height: 600px; mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%); }
  .timeline-track { position: relative; display: flex; align-items: center; gap: 4rem; will-change: transform; transition: none; }

  /* Baseline */
  .timeline-viewport::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: linear-gradient(90deg, var(--aqua), var(--deep-blue)); transform: translateY(-50%); opacity: 0.25; }

  .timeline-item { position: relative; width: 300px; height: 100%; }
  .timeline-img { position: absolute; left: 50%; width: var(--img-size); height: var(--img-size); object-fit: cover; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 15px 35px rgba(0,0,0,0.18); border: 6px solid #fff; background: #f3f6fa; }
  .timeline-item.above .timeline-img { top: 120px; }
  .timeline-item.below .timeline-img { bottom: 120px; }

  .timeline-node { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background: var(--deep-blue); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(29,78,137,0.15); z-index: 2; }

  .timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--aqua); border: 3px solid #fff; border-radius: 50%; z-index: 2; }
  .timeline-item.above .timeline-dot { top: calc(120px + var(--img-size) + 10px); }
  .timeline-item.below .timeline-dot { bottom: calc(120px + var(--img-size) + 10px); }

  /* Dotted connector between image and baseline */
  .timeline-item::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; background-image: linear-gradient(var(--aqua) 40%, rgba(0,0,0,0) 0%); background-size: 2px 10px; background-repeat: repeat-y; z-index: 1; }
  .timeline-item.above::after { top: calc(120px + var(--img-size) + 16px); bottom: 50%; }
  .timeline-item.below::after { top: 50%; bottom: calc(120px + var(--img-size) + 16px); }

  .timeline-label, .timeline-meta { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
  .timeline-item.above .timeline-meta { top: calc(50% + 18px); }
  .timeline-item.below .timeline-meta { bottom: calc(50% + 18px); }
  .timeline-year { color: var(--deep-blue); font-weight: 800; font-family: 'Poppins', sans-serif; }
  .timeline-desc { color: var(--gray-text); font-size: 0.95rem; }

  /* Re-entry animation for cycled items */
  .timeline-reenter { animation: timelineReenter 600ms cubic-bezier(0.22, 1, 0.36, 1); }
  @keyframes timelineReenter { 0% { opacity: 0; transform: translateX(28px); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateX(0); } }

  /* ------------------------------
     CANVAS SECTION - INTERACTIVE VISUALIZATION
  ------------------------------ */
  .canvas-section {
    background: var(--white);
    color: var(--dark-navy);
    padding: 5rem 1rem;
    position: relative;
  }
  
  .canvas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(35, 181, 211, 0.05) 0%, transparent 50%);
    z-index: 1;
  }
  
  .canvas-content {
    position: relative;
    z-index: 2;
    text-align: center;
  }
  
  .canvas-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--deep-blue);
    text-shadow: 0 2px 10px rgba(29, 78, 137, 0.1);
    position: relative;
  }
  
  .canvas-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--aqua), var(--deep-blue));
    border-radius: 2px;
  }
  
  .canvas-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--gray-text);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .canvas-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
                0 10px 30px rgba(29, 78, 137, 0.05);
    border: 2px solid rgba(35, 181, 211, 0.1);
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
  }
  
  .canvas-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15),
                0 15px 40px rgba(29, 78, 137, 0.1);
    border-color: var(--aqua);
  }
  
  #waveCanvas {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #e6f4f8 100%);
    border: 1px solid rgba(35, 181, 211, 0.2);
    display: block;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
  }
  
  #waveCanvas:hover {
    box-shadow: 0 10px 25px rgba(35, 181, 211, 0.2);
  }
  
  .canvas-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .canvas-btn {
    background: linear-gradient(135deg, var(--aqua) 0%, #1D9FB8 100%);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(35, 181, 211, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .canvas-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .canvas-btn:hover {
    background: linear-gradient(135deg, #1D9FB8 0%, var(--aqua) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 181, 211, 0.4);
  }
  
  .canvas-btn:hover::before {
    left: 100%;
  }
  
  .canvas-btn:active {
    transform: translateY(0);
  }
  
  @media (max-width: 768px) {
    .canvas-container {
      padding: 1rem;
      margin: 0 1rem;
    }
    
    .canvas-controls {
      flex-direction: column;
      align-items: center;
    }
    
    .canvas-btn {
      width: 200px;
    }
  }

  /* ------------------------------
     INTERACTIVE TIMELINE
  ------------------------------ */
  .timeline-section {
    background: radial-gradient(1200px 600px at 70% 10%, rgba(35,181,211,0.07), transparent 60%),
  linear-gradient(180deg, #ebf5fa 0%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
  }

  .timeline-content {
    text-align: center;
    color: var(--dark-navy);
    position: relative;
  }

  .timeline-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--deep-blue);
  }

  .timeline-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--gray-text);
  }

  .timeline-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(35, 181, 211, 0.2);
    border-radius: 15px;
    background: #f8fbff;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
  }

  .timeline-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  .timeline-track {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 40px;
    padding: 0 50px;
    position: relative;
    min-width: fit-content;
  }

  /* Timeline line */
  .timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--aqua);
    transform: translateY(-50%);
    z-index: 1;
  }

  .timeline-item {
    flex-shrink: 0;
    width: 280px;
    height: 320px;
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(35, 181, 211, 0.2);
    z-index: 2;
  }

  /* Timeline dot */
  .timeline-item::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 3px solid var(--aqua);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .timeline-item.active::after {
    background: var(--deep-blue);
    border-color: var(--deep-blue);
  }

  .timeline-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(35, 181, 211, 0.2);
  }

  .timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--aqua);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    text-align: center;
  }

  .timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 8px;
    text-align: left;
    line-height: 1.3;
  }

  .timeline-description {
    font-size: 0.9rem;
    color: var(--gray-text);
    text-align: left;
    line-height: 1.4;
  }

  /* Responsive Timeline */
  @media (max-width: 768px) {
    .timeline-content h2 {
      font-size: 2rem;
    }
    
    .timeline-wrapper {
      height: 350px;
    }
    
    .timeline-track {
      gap: 30px;
      padding: 0 30px;
    }
    
    .timeline-item {
      width: 240px;
      height: 280px;
      padding: 15px;
    }
    
    .timeline-image {
      height: 130px;
    }
    
    .timeline-title {
      font-size: 1rem;
    }
    
    .timeline-description {
      font-size: 0.85rem;
    }
  }

    
  
  /* ------------------------------
     FOOTER
  ------------------------------ */
  .footer {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
    color: var(--white);
    text-align: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(35, 181, 211, 0.1) 0%, transparent 50%);
  z-index: 1;
}
.footer-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}
.social-links {
  display: flex;
  gap: 1.5rem;
  }
  .footer a {
    color: var(--aqua);
    text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.footer a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(35, 181, 211, 0.2), transparent);
  transition: left 0.5s;
}
.footer a:hover::before {
  left: 100%;
  }
  .footer a:hover {
  color: var(--white);
  background: rgba(35, 181, 211, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(35, 181, 211, 0.3);
}

/* New footer layout: socials left, copy center, contact right */
.footer-3col { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-social { display: flex; align-items: center; gap: 1rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06); transition: transform 0.2s ease, background 0.2s ease; }
.footer-social a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }
.footer-social img { width: 22px; height: 22px; object-fit: contain; display: block; }

.footer-copy { flex: 1; text-align: center; margin: 0; color: rgba(255,255,255,0.85); }

.footer-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; gap: 0.25rem; }
.footer-contact .label { font-weight: 700; color: rgba(255,255,255,0.9); font-size: 0.95rem; }
.footer-contact a { color: var(--aqua); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-3col { flex-direction: column; align-items: center; }
  .footer-contact { align-items: center; }
  
  .stats {
    flex-direction: column;
    align-items: center;
  }
  
  .category-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    font-size: 14px;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Mobile Navigation (768px and below) */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-main {
    position: relative;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(29, 78, 137, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 1001;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a,
  .nav-dropdown-trigger {
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
  }
  
  .dropdown {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    border: none;
    margin-top: 1rem;
  }
  
  .dropdown-container:hover .dropdown {
    display: block;
  }
  
  /* Touch-friendly dropdown behavior */
  .dropdown-container {
    position: relative;
  }
  
  .dropdown-container .nav-dropdown-trigger {
    cursor: pointer;
  }
  
  .dropdown li a {
    font-size: 1.2rem;
    padding: 0.8rem;
  }
  
  .nav-actions {
    margin-left: 0;
  }
  
  .donate-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: min(100% - 3rem, 1200px);
  }
  
  .nav-links a,
  .nav-dropdown-trigger {
    font-size: 16px;
    padding: 0.5rem 0.8rem;
  }
  
  .brand-name {
    font-size: 36px;
  }
  
  .logo-img {
    width: 35px;
    height: 35px;
  }
}


/* Large Mobile/Small Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  
  .hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
  }
  
  .brand-name {
    font-size: 32px;
  }
  
  .intro-content {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, 1200px);
  }
  
  .hero {
    padding: 3rem 0.5rem;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .brand-name {
    font-size: 28px;
  }
  
  .logo-img {
    width: 30px;
    height: 30px;
  }
  
  .nav-content {
    padding: 0.6rem 0;
  }
  
  .donate-cta {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Gallery adjustments */
  .gallery-track img {
    width: 250px;
    height: 180px;
  }
  
  /* Stats section */
  .stats {
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .stat-card h3 {
    font-size: 2rem;
  }
}

/* Extra Large Screens (1400px and above) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.4rem;
  }
}

/* ============================================
   SECTION-SPECIFIC RESPONSIVE STYLES
   ============================================ */

/* INTRO SECTION RESPONSIVE */
@media (max-width: 768px) {
  .intro {
    padding: 3rem 1rem;
  }
  
  .intro-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .intro .text {
    min-width: auto;
  }
  
  .intro h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .intro p {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .intro .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .intro .video {
    min-width: auto;
  }
}

/* GALLERY SECTION RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-track img {
    width: 280px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .gallery {
    padding: 3rem 1rem;
  }
  
  .gallery h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .gallery-track img {
    width: 250px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .gallery-track img {
    width: 220px;
    height: 160px;
  }
}

/* CATEGORY HERO SECTION RESPONSIVE */
@media (max-width: 768px) {
  .category-hero {
    padding: 3rem 1rem;
  }
  
  .category-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
  
  .category-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .category-buttons button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }
}

/* SOCIAL PROOF SECTION RESPONSIVE */
@media (max-width: 768px) {
  .social-proof {
    padding: 3rem 1rem;
  }
  
  .social-proof h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .stat-card {
    padding: 2rem 1.5rem;
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }
  
  .stat-card h3 {
    font-size: 2.5rem;
  }
  
  .stat-card p {
    font-size: 1.1rem;
  }
}

/* FOOTER RESPONSIVE ENHANCEMENTS */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .footer-social img {
    width: 40px;
    height: 40px;
  }
  
  .footer-contact {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .footer-contact a {
    font-size: 0.9rem;
  }
}

/* BUTTONS AND INTERACTIVE ELEMENTS */
@media (max-width: 768px) {
  .btn,
  .donate-cta,
  .canvas-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    min-height: 44px; /* Touch-friendly size */
  }
  
  button,
  .btn,
  .donate-cta {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (max-width: 768px) {
  * {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* Ensure text remains readable when zoomed */
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* Touch-friendly interactive elements */
  a, button, .btn, .donate-cta, .nav-links a, .nav-dropdown-trigger {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* PRINT STYLES */
@media print {
  .navbar,
  .footer,
  .menu-toggle,
  .donate-cta {
    display: none !important;
  }
  
  .hero,
  .intro,
  .social-proof {
    break-inside: avoid;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* REDUCED MOTION PREFERENCE */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   ADVANCED RESPONSIVE UTILITIES & ENHANCEMENTS
   ============================================ */

/* VIDEO RESPONSIVENESS */
@media (max-width: 768px) {
  .hero-video-bg {
    height: 60vh; /* Reduce height on mobile */
  }
  
  .hero-video-bg video,
  .hero-video-bg iframe {
    object-position: center;
  }
  
  .intro .video video {
    border-radius: 15px; /* Smaller radius on mobile */
  }
}

/* IMAGE OPTIMIZATION */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .footer-social img {
    width: 36px;
    height: 36px;
  }
}

/* TIMELINE ENHANCEMENTS */
@media (max-width: 480px) {
  .timeline-wrapper {
    height: 300px;
    border-radius: 10px;
  }
  
  .timeline-item {
    width: 200px;
    height: 250px;
    padding: 12px;
  }
  
  .timeline-image {
    height: 110px;
  }
  
  .timeline-title {
    font-size: 0.9rem;
  }
  
  .timeline-description {
    font-size: 0.8rem;
  }
}

/* TEAM SECTION RESPONSIVENESS */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  
  .team-grid.two,
  .team-grid.one,
  #exec-row-bottom {
    grid-template-columns: 1fr !important;
  }
  
  .member {
    grid-column: 1 !important;
  }
  
  .team-modal__dialog {
    width: 95%;
    max-width: 400px;
    margin: 1rem;
  }
}

/* CANVAS SECTION RESPONSIVENESS */
@media (max-width: 480px) {
  .canvas-container {
    padding: 0.5rem;
    margin: 0 0.5rem;
    border-radius: 15px;
  }
  
  .canvas-btn {
    width: 180px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .category-buttons button,
  .timeline-item,
  .stat-card {
    /* (optional) touch tweaks for these blocks */
    touch-action: manipulation;
  }

  /* Ensure hover states work on touch devices */
  .btn:hover,
  .donate-cta:hover,
  .nav-links a:hover {
    transform: none;
  }

  .btn:active,
  .donate-cta:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}


/* LOADING STATES & PERFORMANCE */
@media (max-width: 768px) {
  /* Reduce animation complexity on mobile */
  .gallery-track {
    animation-duration: 60s; /* Slower animation for better performance */
  }
  
  /* Simplify gradients on low-end devices */
  .hero::before,
  .intro::before,
  .footer::before {
    background: rgba(35, 181, 211, 0.1);
  }
}

/* LANDSCAPE ORIENTATION MOBILE */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    position: fixed;
    top: 70px;
    padding: 1rem;
  }
  
  .nav-links a,
  .nav-dropdown-trigger {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* HIGH DPI DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  .logo-img,
  .footer-social img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* DARK MODE PREFERENCE */
@media (prefers-color-scheme: dark) {
  /* This can be expanded if dark mode is needed */
  .timeline-wrapper {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* SMALL SCREENS OPTIMIZATIONS */
@media (max-width: 320px) {
  .container {
    width: min(100% - 0.5rem, 1200px);
  }
  
  .hero {
    padding: 2rem 0.25rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .brand-name {
    font-size: 24px;
  }
  
  .logo-img {
    width: 28px;
    height: 28px;
  }
  
  .donate-cta {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .gallery-track img {
    width: 200px;
    height: 140px;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-card h3 {
    font-size: 1.5rem;
  }
}

/* Additional animations and scroll effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: var(--aqua);
  color: var(--white);
}

::-moz-selection {
  background: var(--aqua);
  color: var(--white);
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

/* PROFESSIONAL WAVE ANIMATION - SINGLE LAYER, FULL WIDTH, LEFT ➜ RIGHT */
.wave-animation {
  position: absolute;
  bottom: -30px; /* keeps ~25% overlap into next section */
  left: 0;
  width: 100%;
  height: 120px;
  /* SINGLE LAYER with multiple waves in one SVG path */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath d='M0,60 C120,90 240,30 360,60 C480,90 600,30 720,60 C840,90 960,30 1080,60 C1200,90 1320,30 1440,60 L1440,120 L0,120 Z' fill='%23E6F4F8'/%3E%3C/svg%3E") repeat-x;
  background-size: 1200px 120px; /* width of one wave tile */
  background-position: 0 0;
  /* Only horizontal movement + gentle float */
  animation: waveFloat 8s ease-in-out infinite, waveMove 16s linear infinite;
  opacity: 1;
  z-index: 10;
}

/* WAVE FLOAT: Gentle up and down movement */
@keyframes waveFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* WAVE MOVE: Horizontal wave movement (left ➜ right) */
@keyframes waveMove {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 0; }
}

/* Enhanced loading states */
.stat-card h3 {
  transition: all 0.3s ease;
}

/* Hover effects for better interactivity */
.container {
  transition: all 0.3s ease;
}

/* Improved button states */
button, .btn {
  position: relative;
  overflow: hidden;
}

button:active, .btn:active {
  transform: scale(0.98);
}

/* Enhanced text animations */
.hero h1, .intro h2, .social-proof h2, .gallery h2 {
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero p {
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}


  /* Donate hero uses a background photo under your existing overlay */
.hero.hero-donate {
  background: 
    linear-gradient(135deg, rgba(12,27,51,0.7), rgba(29,78,137,0.7)),
    url('media/2023\ -\ Check\ Presentation/Check3.jpeg') center/cover no-repeat;
}
/* Join Us: video hero */
.hero.hero-join { padding: 0; min-height: 60vh; position: relative; }
.hero-video-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-video-bg video, .hero-video-bg iframe { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: relative; z-index: 1; text-align: center; padding: 6rem 1rem; }
.hero-overlay h1, .hero-overlay p {
  text-shadow: 0 8px 30px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35);
}

/* Testimonials carousel (3 visible) */
.testimonial-viewport { overflow: hidden; margin-top: 2rem; }

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;   /* was center — change to flex-start */
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}


/* --- Events Roadmap (full-bleed, wavy spine, cards alternate) --- */
.roadmap {
  position: relative;
  background: var(--white);
  color: var(--dark-navy);
  padding: 0;                 /* full-bleed */
  overflow: hidden;
}

/* full-width container on this page only */
.roadmap .container { width: 100%; max-width: none; padding: 5rem 0; }

/* animated dotted background */
.roadmap::before,
.roadmap::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 1.75px at 20px 20px, rgba(35,181,211,0.16) 2px, transparent 2px);
  background-size: 46px 46px;
  animation: dotsDrift 38s linear infinite;
  z-index: 0;
}
.roadmap::after {
  background-image:
    radial-gradient(circle 1.5px at 10px 10px, rgba(29,78,137,0.10) 2px, transparent 2px);
  background-size: 36px 36px;
  animation-duration: 55s;
  opacity: .8;
}
@keyframes dotsDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 600px 400px; }
}

/* layout */
#events-roadmap { position: relative; display: flex; flex-direction: column; gap: 6rem; z-index: 2; }

/* a single row */
.event-row { position: relative; width: 100%; min-height: 420px; display: flex; }

/* keep a clear center channel for the wave so cards never cover it */
:root { --wave-col: 140px; --gutter: 28px; }

/* cards */
.event-card {
  background: var(--white);
  color: var(--dark-navy);
  box-shadow: 0 16px 36px rgba(0,0,0,.12), 0 8px 20px rgba(29,78,137,.14);
  border-radius: 20px;
  border: 2px solid rgba(35,181,211,.10);
  padding: 0 0 1rem;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: space-between;

  /* this math guarantees we never cross the center wave */
  max-width: min(620px, calc(50vw - (var(--wave-col) / 2) - var(--gutter)));
  width: 100%;
  z-index: 2;
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,.16), 0 10px 26px rgba(29,78,137,.18); }

.event-media { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.event-body { padding: 1rem 1.25rem 0; }
.event-body h3 { font-family: 'Poppins', sans-serif; color: var(--deep-blue); margin: .25rem 0 .35rem; }
.event-meta { font-weight: 800; color: var(--aqua); margin-bottom: .6rem; }
.event-body p { color: var(--gray-text); margin-bottom: 1rem; }

/* alternate sides */
.event-row.left  { justify-content: flex-start; padding-right: calc(50% + var(--wave-col)/2 + var(--gutter)); padding-left: var(--gutter); }
.event-row.right { justify-content: flex-end;   padding-left:  calc(50% + var(--wave-col)/2 + var(--gutter)); padding-right: var(--gutter); }

/* curved mini-connector from card edge toward wave (subtle) */
.event-row .connector {
  position: absolute; top: 50%; width: 120px; height: 80px; pointer-events: none; z-index: 1;
}
.event-row.left  .connector { left: calc(50% - var(--wave-col)/2 - 120px); transform: translateY(-50%); }
.event-row.right .connector { right: calc(50% - var(--wave-col)/2 - 120px); transform: translateY(-50%) scaleX(-1); }
.connector path { fill: none; stroke: rgba(29,78,137,.26); stroke-width: 2; }

/* center wavy spine—always visible */
#wave-svg {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: var(--wave-col);
  transform: translateX(-50%);
  height: 100%;
  pointer-events: none;
  z-index: 1; /* above dots, below cards */
  filter: drop-shadow(0 0 10px rgba(35,181,211,.18));
}

/* responsive stack */
@media (max-width: 980px){
  :root { --wave-col: 70px; --gutter: 18px; }
  .event-row { min-height: 0; }
  .event-row.left,
  .event-row.right { padding-left: calc(var(--wave-col) + 22px); padding-right: var(--gutter); }
  .event-card { max-width: 100%; }
  .connector { display: none; }
  #wave-svg { left: 26px; transform: none; }
}
/* === Events: Scroll-in reveal === */
.event-row .event-card {
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.event-row.is-visible .event-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger the reveal slightly (left/right) */
.event-row.left  .event-card { transition-delay: .05s; }
.event-row.right .event-card { transition-delay: .12s; }

/* === Blur-up lazy images === */
.event-media img.blur-up {
  filter: blur(12px);
  opacity: .85;
  transform: scale(1.02);
  transition: filter .5s ease, opacity .5s ease, transform .5s ease;
}
.event-media img.is-loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}



/* Remove the subtle connector curves */
.connector { display: none !important; }



/* ===== Event page (hero + gallery) ===== */

/* HERO */
.event-hero { background: var(--white); color: var(--dark-navy); position: relative; padding: 4.5rem 0 3rem; }
.event-hero .container { position: relative; z-index: 2; }

.event-hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem; align-items: center;
}

.hero-art {
  margin: 0; border-radius: 22px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to right, #000 68%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, #000 68%, rgba(0,0,0,0) 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }

.hero-info h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--deep-blue), var(--aqua));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-meta { list-style: none; padding: 0; margin: 0 0 1rem; }
.hero-meta li { margin: .25rem 0; color: var(--deep-blue); }
.hero-desc { color: var(--gray-text); margin-bottom: 1.25rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(120px,1fr)); gap: 1rem; }
.hero-stats .stat {
  background: #fff; border: 2px solid rgba(35,181,211,.12); border-radius: 16px;
  padding: .9rem 1rem; text-align: center; box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.kpi { font-weight: 800; color: var(--deep-blue); font-size: clamp(1.3rem, 2.3vw, 1.8rem); }
.kpi-label { color: var(--gray-text); font-weight: 600; font-size: .95rem; }

/* GALLERY */
.event-gallery { background: var(--white); padding: 2rem 1rem 4rem; }
.gallery-wrap {
  width: min(100% - 2rem, 1400px);
  margin: 0 auto;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gcard {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #eef6fa;
  border: 3px solid transparent; /* default border */
  box-shadow: 0 12px 28px rgba(0,0,0,.08), 0 4px 12px rgba(29,78,137,.1);
  isolation: isolate;
  transition: transform 0.4s ease, border-color 0.3s ease;
}
.gcard img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2; /* Ensure image is above the white mask */
  transition: transform 0.4s ease;
}

/* Rotating blue outline */
.gcard .ring {
  position: absolute; inset: -2px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, var(--aqua), var(--deep-blue), var(--aqua));
  filter: blur(0.5px);
  z-index: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.gcard::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: #fff;
  z-index: 1;
}

/* Hover effects */
.gcard:hover {
  transform: scale(1.05);
  border-color: var(--deep-blue);
}
.gcard:hover .ring {
  opacity: 1;
  animation: spin 1.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ===== Meet the Team (layout + responsiveness + contrast) ===== */

/* Optional: slight tweak so team hero title pops on light bg */
.team-hero .hero-info h1 { margin-bottom: .35rem; }

/* Sections */
.team-section { background: linear-gradient(135deg, #e8f4fd 0%, #b3d9f2 50%, #87ceeb 100%);
  color: var(--dark-navy, #0b1b2b); padding: 3.5rem 1rem; }
.team-section.alt { background: radial-gradient(1200px 600px at 70% 10%, rgba(35,181,211,0.07), transparent 60%),
  linear-gradient(180deg, #ebf5fa 0%, #ffffff 100%);
color: var(--dark-navy); }
.team-section .container { width: min(100% - 2rem, 1200px); margin: 0 auto; }

.team-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--deep-blue);
  margin: 0 auto 2rem;
  width: min(100%, 900px);
  padding-bottom: .6rem;
  border-bottom: 3px solid rgba(29,78,137,.2);
}

/* Row wrappers keep rows centered & control vertical spacing */
.exec-wrap, .admin-wrap {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  row-gap: 2.25rem; /* space between top & bottom rows */
}

/* Grids (explicit rows) */
.team-grid {
  display: grid;
  gap: 1.25rem;                 /* fixed horizontal gap between cards */
  justify-content: center;      /* center rows with 1 or 2 items */
  justify-items: center;        /* center each card in its column */
}
.team-grid.three { grid-template-columns: repeat(3, 1fr); }
.team-grid.two   { grid-template-columns: repeat(2, 1fr); }
.team-grid.one   { grid-template-columns: repeat(1, 1fr); }

/* Extra margin on top rows for breathing room (fine-tune spacing) */
.team-row { margin-bottom: .25rem; }
.team-row.last { margin-bottom: 0; }

/* Card sizing: identical width & height across rows */
.member {
  width: 100%;
  max-width: 360px;             /* consistent width */
  min-height: 360px;            /* consistent height */
  background: #fff;
  border: 2px solid rgba(35,181,211,.18);
  border-radius: 22px;
  padding: 1.4rem 1.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
  color: var(--dark-navy);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.member:hover {
  transform: translateY(-6px);
  border-color: var(--aqua);
  box-shadow: 0 24px 48px rgba(0,0,0,.16), 0 0 0 4px rgba(35,181,211,.12);
}
.member:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

/* Avatar is locked so text length doesn't change card height */
.avatar { width: 170px; height: 170px; border-radius: 50%; overflow: hidden;
  border: 6px solid rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(0,0,0,.18); margin-bottom: .8rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Reserve height for up to 2 lines of name to keep cards equal */
.member-name {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  margin-bottom: .35rem;
  min-height: 2.8em; /* ~2 lines */
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical; 
  overflow: hidden;
}
.member-role {
  font-weight: 700; color: var(--aqua);
  border-top: 2px solid rgba(35,181,211,.25);
  margin: .35rem auto 0; padding-top: .4rem;
  width: fit-content;
}

/* Modal (matches your site aesthetic) */
.team-modal {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.55); z-index: 2000;
  transition: opacity .2s ease, visibility .2s ease;
}
.team-modal[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.team-modal__dialog {
  width: min(680px, calc(100% - 2rem));
  background: linear-gradient(135deg, rgba(13,24,48,0.97), rgba(15,40,70,0.97));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; color: var(--white);
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.team-modal__close {
  position: absolute; right: 1.2rem; top: .9rem;
  border: none; background: transparent; color: var(--white);
  font-size: 1.6rem; cursor: pointer; opacity: .95;
}
.team-modal__head { display: flex; gap: .9rem; align-items: center; margin-top: .25rem; }
.team-modal__head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.85); }
.tm-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.3rem; }
.tm-role { font-weight: 700; color: var(--aqua); }
.tm-rule { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); margin: .75rem 0 1rem; }
.tm-desc { line-height: 1.6; color: rgba(255,255,255,.95); }
/* Team modal description links */
.tm-desc a {
  color: var(--aqua);
  font-weight: 700;
  text-decoration: none;
}
.tm-desc a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-grid.three { grid-template-columns: repeat(2, 1fr); }
  .team-grid.two   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid.three,
  .team-grid.two,
  .team-grid.one   { grid-template-columns: 1fr; }
  .member { max-width: 420px; min-height: 340px; }
  .avatar { width: 150px; height: 150px; }
}

/* --- Keep bottom Exec row spacing identical to top --- */
.team-grid.two {
  /* use 3 equal columns so the 2 cards sit in col 1 and 3 */
  grid-template-columns: repeat(3, 1fr);
}
.team-grid.two .member:nth-child(1) { grid-column: 1; }
.team-grid.two .member:nth-child(2) { grid-column: 3; }

/* Admin bottom: 1 card centered in middle column */
.team-grid.one {
  grid-template-columns: repeat(3, 1fr);
}
.team-grid.one .member:nth-child(1) { grid-column: 2; }

/* Modal: add a footer close button spacing */
.team-modal__dialog .tm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
}
.team-modal__dialog .btn-close {
  border: none;
  background: var(--aqua);
  color: var(--white);
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.team-modal__dialog .btn-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(35,181,211,.35);
}

/* Only for the bottom Exec row */
/* Executive board bottom row (two cards centered, same horizontal gap) */
#exec-row-bottom{
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem;              /* same as .team-grid gap */
  justify-content:center;
}

#exec-row-bottom .member:nth-child(1),
#exec-row-bottom .member:nth-child(2){
  grid-column:auto !important; /* cancel the 1/3 placement from the generic two-row rule */
}


/* ==== Hero video background ==== */


/* Full-bleed video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* behind everything */
  filter: saturate(1.05); /* subtle polish */
}

/* Readability overlay (brand-tinted gradient + subtle vignette) */
/* Neutral default — no dark overlay on other pages (e.g., Join Us) */
/* Default: no tint overlay for pages that don't need it */
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: none;
  mix-blend-mode: normal;
}

/* Home page (video hero): strong, brand‑tinted overlay for readability */
.indexhero .hero-overlay{
  background:
    radial-gradient(100% 60% at 50% 20%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.65) 100%),
    linear-gradient(0deg, rgba(12,27,51,.45), rgba(12,27,51,.45));
  mix-blend-mode: multiply;
}





/* Ensure text sits on top */
.hero-content {
  position: relative;
  z-index: 3;
}
.hero p {
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

/* Keep your wave visible above the video */
.wave-animation {
  z-index: 4;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; } /* fall back to poster/fallback bg */
}

/* ===== HONEYCOMB GALLERY STYLES ===== */
.honeycomb-gallery {
  background: linear-gradient(135deg, var(--white, #fff) 0%, #f8fafc 100%);
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
}

.honeycomb-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 120px);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  grid-auto-flow: dense;
}

/* Base honeycomb item/content so overlay & image effects work */
.honeycomb-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000; /* acts as a subtle backdrop while image loads */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.honeycomb-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.honeycomb-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.honeycomb-item.large { grid-column: span 2; grid-row: span 2; }
.honeycomb-item.medium { grid-column: span 2; grid-row: span 1; }
.honeycomb-item.small { grid-column: span 1; grid-row: span 1; }

/* Overlay reveal (default hidden; JS toggles transform too) */
.overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white, #fff);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.overlay h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover effects */
.honeycomb-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.honeycomb-item:hover .honeycomb-content img { transform: scale(1.1); }
.honeycomb-item:hover .overlay { transform: translateY(0); }

/* ===== SOCIAL PROOF - STATS ===== */

/* layout for the stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12),
              0 4px 12px rgba(29, 78, 137, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(35, 181, 211, 0.15);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15),
              0 8px 20px rgba(35, 181, 211, 0.12);
  border-color: rgba(35, 181, 211, 0.3);
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonial-viewport {
  
  overflow: hidden;
  margin-top: 2rem;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: stretch;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}
/* Testimonials: page-based carousel */
.testimonial-viewport {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  will-change: transform;
}

.tpage {
  /* Each page is exactly the width of the viewport */
  flex: 0 0 100%;
  display: flex;
  gap: var(--t-gap, 24px);
  justify-content: center; /* centers the 3 cards */
}
/* ================================
   TESTIMONIAL CARDS (clean version)
   ================================ */

/* Testimonial Layout */
.testimonial-viewport { 
  overflow: hidden; 
}

.testimonial-track { 
  display: flex; 
  will-change: transform; 
}

.tpage { 
  min-width: 100%; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.25rem; 
}

/* Each testimonial card */
.tcard {
  background: var(--white, #fff);
  color: var(--dark-navy, #0b1b2b);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08),
              0 4px 12px rgba(29, 78, 137, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  box-sizing: border-box;
}

/* Text inside cards */
.tcard p {
  color: var(--gray-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.tcard span {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--deep-blue);
}

/* Responsive: 2 per row on tablet */
@media (max-width: 900px) {
  .tpage {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 per row on mobile */
@media (max-width: 640px) {
  .tpage {
    grid-template-columns: 1fr;
  }
}


/* ===== RESPONSIVE: HONEYCOMB ===== */
@media (max-width: 1024px) {
  .honeycomb-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 100px);
    gap: 0.8rem;
  }
}



@media (max-width: 768px) {
  .honeycomb-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 80px);
    gap: 0.6rem;
  }
}



@media (max-width: 480px) {
  .honeycomb-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, 70px);
    gap: 0.5rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .testimonial-track,
  .honeycomb-content img,
  .overlay,
  .honeycomb-item {
    transition: none !important;
  }
  .honeycomb-item:hover {
    transform: none;
    box-shadow: none;
  }
}
/* ================================
   EVENTS HERO (scoped styles only)
   ================================ */
 
 /* Ensure the Events hero has its own stacking context */
.hero.hero-events {
  position: relative;
  overflow: hidden;            /* keeps the overlay inside */
  min-height: 56vh;            /* keep your current height */
}

/* Make sure the background video sits at the very back */
.hero.hero-events .hero-video-bg,
.hero.hero-events .hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;                  /* behind overlay + text */
}

/* The tint overlay — higher specificity so it wins over .hero::before */
.hero.hero-events::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;                  /* above video, below text */
  pointer-events: none;
  background:
    radial-gradient(
      100% 60% at 50% 20%,
      rgba(0,0,0,.15) 0%,
      rgba(0,0,0,.35) 60%,
      rgba(0,0,0,.45) 100%
    ),
    linear-gradient(
      0deg,
      rgba(12,27,51,.25),
      rgba(12,27,51,.25)
    );
}

/* Ensure the overlay text is above the tint */
.hero.hero-events .hero-overlay {
  position: relative;
  z-index: 2;                  /* top-most */
  color: #fff;
}
/* =========================================================
   UNIVERSAL SAFETY (keeps media from causing side-scroll)
   ========================================================= */
   @media (max-width: 640px) {
    img, video, iframe {
      max-width: 100%;
      height: auto;
    }
  }
  
  /* =========================================================
     MOBILE-ONLY FIXES (max-width: 640px)
     ========================================================= */
  @media (max-width: 640px) {
    /* Kill stray horizontal scroll sitewide */
    html, body { overflow-x: hidden; }
    .container { max-width: 100%; }
  
    /* 1) Home/Impact/Donate: center number cards */
    .stat-card { 
      margin: 0 auto; 
      max-width: 320px; 
    }
    .stats-grid,
    .impact-stats,
    .donate-stats,
    .impact-by-numbers,
    .stats-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 1rem;
      justify-items: center;
    }
  
    /* 2) Home: Category buttons (stack + full width) */
    .category-buttons {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 12px;
      padding-inline: 0.5rem;
    }
    .category-buttons button { width: 100%; }
  
    /* 3) Footer social logos: make icons larger */
    .footer .footer-social a img {
      width: 28px;
      height: 28px;
    }
  
    /* 5) Mission & other two-column sections: stack, image under text */
    .intro .container.intro-content,
    .event-hero-grid,
    .split,
    .two-col,
    .mission-row {
      display: flex !important;
      flex-direction: column !important;
      gap: 1.25rem;
    }
    .intro .text { order: 1; }
    .intro .video,
    .split .media,
    .two-col .media,
    .mission-row .media { order: 2; }
    .intro .video iframe,
    .intro .video video { height: auto; }
  
    /* 6) Impact page: “Impact by the numbers” — center */
    .impact-numbers,
    .impact-cards,
    .impact-cards-row {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 1rem;
      justify-items: center;
    }
    .impact-numbers .stat-card,
    .impact-cards .stat-card { margin: 0 auto; }
  
    /* 7) Donate page: center impact cards */
    .donate-impact,
    .donate-impact-cards {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 1rem;
      justify-items: center;
    }
    .donate-impact .stat-card { margin: 0 auto; }
  
    /* 9) Individual event pages: prevent horizontal scroll from media */
    .hero .hero-video-bg video,
    .hero .hero-video-bg iframe {
      width: 100% !important;
      height: auto !important;
    }
    .hero,
    .event-hero,
    .hero .hero-overlay,
    .hero .hero-content {
      overflow: hidden;
    }
  
    /* 10) Our Events hero text visibility (stronger tint on mobile) */
    .hero-events { position: relative; }
    .hero-events::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      background:
        radial-gradient(
          100% 60% at 50% 20%,
          rgba(0,0,0,.25) 0%,
          rgba(0,0,0,.45) 60%,
          rgba(0,0,0,.55) 100%
        ),
        linear-gradient(0deg, rgba(12,27,51,.35), rgba(12,27,51,.35));
    }
    .hero-events .hero-overlay {
      position: relative;
      z-index: 3; /* above tint */
    }
    .hero-events .hero-overlay h1,
    .hero-events .hero-overlay p {
      text-shadow: 0 2px 8px rgba(0,0,0,.35);
    }
  }
  
  /* =========================================================
     TABLET TWEAKS (max-width: 768px) – keep hover sane
     ========================================================= */
  @media (max-width: 768px) {
    .category-buttons button,
    .timeline-item,
    .stat-card,
    .btn:hover,
    .donate-cta:hover,
    .nav-links a:hover {
      transform: none;
    }
    .btn:active,
    .donate-cta:active { 
      transform: scale(0.98);
      transition: transform 0.1s ease;
    }
  }
  
  /* =========================================================
     TESTIMONIALS LAYOUT (works with your JS; 3/2/1 per row)
     ========================================================= */
  .testimonial-viewport { overflow: hidden; }
  .testimonial-track { display: flex; will-change: transform; }
  
  /* A “page” of 3 cards — JS wraps cards into .tpage blocks */
  .tpage {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  /* Card styling — grid-driven (no flex-basis fights) */
  .tcard {
    min-height: 260px;
    background: var(--white, #fff);
    color: var(--dark-navy, #0b1b2b);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(29, 78, 137, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    touch-action: manipulation;
  }
  .tcard p {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 0.95rem;
  }
  .tcard span {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--deep-blue);
  }
  
  /* Tablet: 2 per page */
  @media (max-width: 900px) {
    .tpage { grid-template-columns: repeat(2, 1fr); }
  }
  
  /* Phone: 1 per page */
  @media (max-width: 640px) {
    .tpage { grid-template-columns: 1fr; }
    .tcard { min-height: 220px; }
  }

/* ===============================
   FIX 2 — Footer icons look tiny
   =============================== */
@media (max-width: 640px) {
  /* Keep the touch target big */
  .footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
  }

  /* Enlarge the actual graphic */
  .footer .footer-social a > img {
    width: 100px !important;
    height: 100px !important;
    display: block;
  }
}



/* =========================
   MOBILE FIX: Mission + Category pills
   ========================= */
@media (max-width: 640px) {
  /* --- B) MISSION INTRO: remove desktop layout/padding + center --- */
  .intro,
  .intro.mission {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .intro .container,
  .intro.mission .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    overflow: hidden;                 /* kill any stray horizontal bleed */
  }

  /* Force the side-by-side block to stack + center */
  .intro .container.intro-content,
  .intro.mission .container.intro-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem;
  }

  /* Text block: full width, no extra right padding */
  .intro .text,
  .intro.mission .text {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
    transform: none !important;
  }

  /* Media block: full width under text */
  .intro .video,
  .intro.mission .video {
    width: 100% !important;
    margin-top: 1rem;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }
  .intro .video img,
  .intro .video video,
  .intro .video iframe {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 16px;
  }

  /* Make sure everything measures inside the viewport */
  .intro, .intro * { box-sizing: border-box; }
}

/* =========================
   MOBILE: Category hero fixes
   ========================= */
   @media (max-width: 640px) {
    /* stop any horizontal scroll */
    html, body { overflow-x: hidden; }
  
    .cat-grid { display: block; }
    .cat-media { margin: 0; }
  
    /* Full-bleed image without transform (so children position correctly) */
    .cat-media-frame{
      position: relative;
      width: 100vw;
      left: 50%;
      right: 50%;
      margin-left: -50vw;   /* bleed to left edge */
      margin-right: -50vw;  /* bleed to right edge */
      overflow: hidden;
      border-radius: 16px;
      box-sizing: border-box;
    }
  
    #cat-hero{
      display:block;
      width:100%;
      height:auto;
      max-width:100%;
    }
  
    /* Tabs ON the image, centered, 2x2 grid — no more shifting left */
    .cat-tabs,
  .category-buttons {
    position: absolute !important; 
    top: 8px;                       /* distance from top of the image */
    right: 12px;                    /* anchor to the right side */
    left: auto;                     /* disable left anchoring */
    width: auto;                    /* container shrinks to fit content */

    display: grid !important;
    grid-template-columns:  repeat(2, auto);     /* stack vertically by default */
    gap: 8px;
    padding: 0;

    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .cat-tabs button,
  .category-buttons button {
    min-width: 120px;               /* make sure buttons have some width */
    font-size: 0.9rem;
    line-height: 1.1;
    padding: 10px 12px;
    border-radius: 14px;
    white-space: nowrap;
    text-align: center;
  }
  
    /* Card/text never overflow */
    .cat-panel{
      width:100%;
      max-width:100%;
      margin:12px 0 0;
      padding:16px;
      box-sizing:border-box;
      border-radius:16px;
      overflow-wrap:anywhere;
    }
  }
  @media (max-width: 640px){
    .cat-tabs{ backdrop-filter: blur(6px); }
    .cat-tabs button{ background: rgba(255,255,255,.92); }
  }
  /* Force all top-level nav links to align consistently */
/* Normalize all top-level nav links so they align evenly */
.nav-links > li > a,
.nav-links > li > .nav-dropdown-trigger {
  display: inline-block;
  line-height: 1.5;      /* consistent vertical rhythm */
  padding: 0.75rem 1rem; /* same padding for all */
  vertical-align: middle; 
  font-weight: 600;      /* keep the bold look */
}
.cat-hero {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 3rem;
  color: var(--deep-blue);
  text-shadow: 0 2px 10px rgba(29, 78, 137, 0.1);
  position: relative;
  display: block;
  
  text-align: center;
}


/* Layout */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;              /* no background bleed */
}

/* Replace old .label styling */
.contact-label {
  font-weight: 700;
  color: #ffffff;
  background: transparent !important;   /* kill any gradient */
  box-shadow: none !important;
}

/* Nuke decorative bars some themes add */
.contact-item::before,
.contact-label::before,
.contact-label::after {
  content: none !important;
  background: none !important;
}

/* Email link style */
.contact-link {
  color: #25c1d3;                       /* your teal */
  text-decoration: none;
}
.contact-link:hover,
.contact-link:focus {
  text-decoration: underline;
}
.timeline-item {
  text-decoration: none;   /* removes underline */
  color: inherit;          /* keeps the text color consistent */
  display: block;          /* makes the whole card clickable */
}
