/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

/* --- Navigation --- */
nav {
  background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo span {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffd700;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* --- Slider --- */
.slider-container {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background: #0d2438;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(30,74,111,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 900px;
  animation: slideUp 1s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slide-content p {
  font-size: 1.6rem;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
  font-weight: 300;
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slider-dot:hover { background: rgba(255,255,255,0.6); transform: scale(1.1); }
.slider-dot.active { background: #fff; border-color: rgba(255,215,0,0.8); transform: scale(1.2); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  z-index: 100;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}
.slider-arrow:hover {
  background: rgba(255,215,0,0.9);
  color: #1e4a6f;
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.left { left: 25px; }
.slider-arrow.right { right: 25px; }

/* --- Sections --- */
section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

h2 {
  color: #1e4a6f;
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}
h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: linear-gradient(90deg, #ffd700 0%, #f39c12 100%);
  border-radius: 2px;
}

/* --- About / Mission --- */
.about-content {
  background: #fff;
  padding: 4rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}
.about-content p {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  text-align: justify;
  color: #555;
  line-height: 1.8;
}

/* Make the about image smaller and responsive */
.about-image img {
  width: 300px;          /* smaller image width */
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Optional: slightly smaller on mobile */
@media (max-width: 768px) {
  .about-image img {
    width: 180px;
  }
}

.quote {
  font-size: 1.5rem;
  font-style: italic;
  color: #1e4a6f;
  text-align: center;
  padding: 2.5rem;
  border-left: 5px solid #ffd700;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin: 3rem 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  font-weight: 600;
}

/* --- Make homepage slider ~half the screen --- */
.slider-container {
  height: 50vh !important;   /* half of the viewport */
  min-height: 380px;          /* keep it usable on small laptops */
  max-height: 620px;          /* optional: don't let it get too tall on big monitors */
}

/* Ensure inner pieces follow the container's height */
.slider-container .slide,
.slider-container .slide-overlay {
  height: 100% !important;
}

/* Keep background images nicely cropped */
.slider-container .slide {
  background-size: cover;
  background-position: center;
}

/* Dots/arrows stay positioned inside the smaller slider */
.slider-container .slider-nav { bottom: 20px; }
.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }

/* Optional: a touch taller on phones */
@media (max-width: 768px) {
  .slider-container {
    height: 55vh !important;
    min-height: 320px;
    max-height: 520px;
  }
}

/* === Fix for large gap below slider === */

/* Remove any default margin/padding below slider */
.slider-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure the first section after the slider sits closer */
#home > section:first-of-type {
  margin-top: 0 !important;
  padding-top: 2rem !important;  /* tighten just the top spacing */
}

/* Optional: make stats align more snugly under the slider */
.stats {
  margin-top: 2rem !important;
}
/* === Fix large white space around "Our Mission" section === */

/* Reduce top & bottom padding in mission section */
.mission-section {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Make sure the section before mission doesn't add extra space */
.stats,
.video-section {
  margin-bottom: 0 !important;
  padding-bottom: 1rem !important;
}

/* Tighter spacing inside the mission content */
.mission-section .about-content {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Adjust quote spacing */
.mission-section blockquote {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  padding: 1rem 1.5rem !important;
}
/* === Remove extra space between Mission and Donation sections === */

/* Trim bottom padding/margin of mission section */
.mission-section {
  padding-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
}

/* Remove top spacing from the donation section */
.donation-section,
.donation-overview,
.impact-section {
  margin-top: 0 !important;
  padding-top: 1rem !important;
}

/* Make sure the quote doesn’t push down too much */
.mission-section blockquote {
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}



/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  /* margin-top: 4rem; */
}
.stat-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(30,74,111,0.1);
}
.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(30,74,111,0.15);
  border-color: #ffd700;
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e4a6f;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stat-number.visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-label {
  font-size: 1.1rem;
  color: #666;
  margin-top: 0.8rem;
  font-weight: 500;
}

/* --- Leadership --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.member-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(30,74,111,0.1);
}
.member-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(30,74,111,0.2);
}
.member-photo {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4.5rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.member-photo::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}
.member-card:hover .member-photo::before { left: 100%; }
.member-info { padding: 2rem; text-align: center; }
.member-name {
  font-size: 1.4rem; font-weight: 700; color: #1e4a6f; margin-bottom: 0.5rem;
}
.member-title { color: #666; font-size: 1.05rem; font-weight: 500; }

/* --- Donate --- */
.donate-content {
  background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
  color: #fff;
  padding: 5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(30,74,111,0.3);
  position: relative;
  overflow: hidden;
}
.donate-content::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.03)"/><circle cx="900" cy="400" r="120" fill="rgba(255,255,255,0.03)"/><circle cx="1100" cy="150" r="60" fill="rgba(255,255,255,0.03)"/></svg>');
  opacity: 0.5;
}
.donate-content > * { position: relative; z-index: 1; }
.donate-content h2 { color: #fff; font-size: 3.2rem; }
.donate-content h2::after {
  background: linear-gradient(90deg, #ffd700 0%, #f39c12 100%);
}

.donate-content p { font-size: 1.3rem; margin-bottom: 2rem; line-height: 2; }

.donate-info {
  background: rgba(255,255,255,0.15);
  padding: 3rem;
  border-radius: 15px;
  margin-top: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.donate-info a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: inline-block;
}
.donate-info a:hover { color: #ffed4e; transform: scale(1.05); }

.donate-button-container { text-align: center; margin-top: 4rem; }
.no-uppercase {
  text-transform: none !important;
}

/* --- Contact --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info,
.contact-form {
  background: #fff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.contact-item {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.contact-item:hover { background: #e9ecef; transform: translateX(10px); }

.contact-item h3 {
  color: #1e4a6f;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.contact-item p { font-size: 1.15rem; color: #555; }
.contact-item a { color: #1e4a6f; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.contact-item a:hover { color: #ffd700; }

.form-group { margin-bottom: 2rem; }
.form-group label {
  display: block; margin-bottom: 0.8rem; color: #1e4a6f; font-weight: 700; font-size: 1.05rem;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem; border: 2px solid #e9ecef; border-radius: 10px; font-size: 1rem; transition: all 0.3s ease; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #1e4a6f; box-shadow: 0 0 0 3px rgba(30,74,111,0.1);
}
.form-group textarea { min-height: 180px; resize: vertical; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
  color: #1e4a6f;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255,215,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,215,0,0.5);
}
.btn-primary {
  background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
  color: #fff;
  box-shadow: 0 5px 20px rgba(30,74,111,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0d2438 0%, #1e4a6f 100%);
  box-shadow: 0 10px 30px rgba(30,74,111,0.5);
}

/* --- Footer --- */
footer {
  background: linear-gradient(135deg, #0d2438 0%, #1e4a6f 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 6rem;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
footer p { margin: 0.5rem 0; font-size: 1.05rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 1rem; }
  .nav-links { width: 100%; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
  .logo span { font-size: 1rem; }
  .logo img { height: 45px; }

  .slide-content h1 { font-size: 2.2rem; }
  .slide-content p { font-size: 1.2rem; }
  .slider-container { height: 450px; }
  .slider-arrow { padding: 0.5rem 0.8rem; font-size: 2rem; }

  .contact-content { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }

  h2 { font-size: 2.2rem; }
  .about-content, .donate-content { padding: 2.5rem; }
}

/* Fix for contact page layout */
section#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 4rem 2rem;
  background-color: #f8f9fb;
  text-align: center;
}

/* Ensure the title stays centered */
#contact h2 {
  font-size: 2.5rem;
  color: #1e4a6f;
  margin-bottom: 2rem;
  text-align: center;
}

/* Center and widen the contact container */
.contact-content.single-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;   /* make it wider */
  margin: 0 auto;
  gap: 1.5rem;
}

/* Make the white card full-width within the container */
.contact-info {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* Responsive: slightly smaller on mobile */
@media (max-width: 768px) {
  #contact h2 {
    font-size: 2rem;
  }

  .contact-content.single-column {
    max-width: 95%;
  }
}


 /* About page specific styles */
    .about-grid-2col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      margin-bottom: 4rem;
      align-items: center;
    }

    .image-placeholder {
      height: 350px;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
      font-weight: 600;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      background-size: cover;
      background-position: center;
    }

    .image-placeholder:hover {
      transform: scale(1.02);
      box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    }

    .about-section-card {
      background: #fff;
      padding: 3rem;
      border-radius: 15px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .about-section-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    }

    .about-section-card h3 {
      color: #1e4a6f;
      font-size: 2rem;
      margin-bottom: 1.5rem;
      font-weight: 700;
    }

    .about-section-card p {
      font-size: 1.15rem;
      margin-bottom: 1.2rem;
      color: #555;
      line-height: 1.8;
    }

    .about-section-card ul {
      list-style: none;
      padding: 0;
      margin-top: 1rem;
    }

    .about-section-card li {
      padding: 0.5rem 0;
      font-size: 1.1rem;
      color: #555;
    }

    .focus-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .focus-card {
      text-align: center;
      padding: 2rem;
      background: #f8f9fa;
      border-radius: 10px;
      transition: all 0.3s ease;
    }

    .focus-card:hover {
      background: #fff;
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .focus-card .icon {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .focus-card h4 {
      color: #1e4a6f;
      margin-bottom: 0.5rem;
      font-size: 1.3rem;
    }

    .focus-card p {
      font-size: 1rem;
      margin: 0;
      color: #666;
    }

    .cta-box {
      background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
      padding: 3rem;
      border-radius: 15px;
      text-align: center;
      margin-top: 4rem;
      color: white;
      box-shadow: 0 15px 50px rgba(30,74,111,0.3);
    }

    .cta-box h3 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: white;
    }

    .cta-box p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
      line-height: 1.8;
      color: rgba(255,255,255,0.9);
    }

    .highlight-stat {
      font-weight: 700;
      color: #ffd700;
      font-size: 1.3rem;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
      .about-grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .image-placeholder {
        height: 250px;
      }

      .about-section-card {
        padding: 2rem;
      }

      .about-section-card h3 {
        font-size: 1.6rem;
      }

      .focus-grid {
        grid-template-columns: 1fr;
      }

      .cta-box {
        padding: 2rem;
      }
    }

/* === Homepage custom sections (moved from index.html on merge) === */
/* Additional homepage styles */
    .hero-overlay-text {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
      padding: 3rem 2rem 2rem;
      color: white;
    }

    .impact-section {
      background: #e9ecef;  
      padding: 5rem 2rem;
      margin: 4rem 0;
      border-radius: 20px;
    }

    .impact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2.5rem;
      margin-top: 3rem;
    }

    .impact-card {
      background: white;
      padding: 2.5rem;
      border-radius: 15px;
      text-align: center;
      box-shadow: 0 8px 25px rgba(0,0,0,0.08);
      transition: all 0.3s ease;
      border: 1px solid rgba(30,74,111,0.1);
    }

    .impact-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(30,74,111,0.15);
      border-color: #ffd700;
    }

    .impact-icon {
      font-size: 4rem;
      margin-bottom: 1.5rem;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    }

    .impact-card h3 {
      color: #1e4a6f;
      font-size: 1.5rem;
      margin-bottom: 1rem;
      font-weight: 700;
    }

    .impact-card p {
      color: #555;
      line-height: 1.7;
      font-size: 1.05rem;
    }

    .video-section {
      background: white;
      padding: 5rem 2rem;
      border-radius: 20px;
      margin: 4rem 0;
      box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }

    .video-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      margin-top: 2rem;
    }

    .video-placeholder {
      background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
      border-radius: 15px;
      aspect-ratio: 16/9;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 3rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      transition: transform 0.3s ease;
    }

    .video-placeholder:hover {
      transform: scale(1.02);
    }

    .video-content h3 {
      color: #1e4a6f;
      font-size: 2rem;
      margin-bottom: 1.5rem;
      font-weight: 700;
    }

    .video-content p {
      color: #555;
      font-size: 1.15rem;
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

/* Remove extra space above the video or about section */
.video-section,
#video-section,
.about-video {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If your page uses a generic section rule adding space, limit it for this one */
section.video-section {
  padding-top: 1rem !important;  /* just a little breathing room */
}

/* Optional: tighten space below the section title */
.video-section h2,
.about-video h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
    .testimonial-section {
      background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
      padding: 2rem 4rem;
      margin: 4rem 0;
      margin-top: 0 !important;
      border-radius: 20px;
      color: white;
      box-shadow: 0 15px 50px rgba(30,74,111,0.3);
    }

    .testimonial-section h2 {
      color: white;
    }

    .testimonial-section h2::after {
      background: linear-gradient(90deg, #ffd700 0%, #f39c12 100%);
    }

    .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2.5rem;
      margin-top: 3rem;
    }

    .testimonial-card {
      background: rgba(255,255,255,0.1);
      padding: 2.5rem;
      border-radius: 15px;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.2);
      transition: all 0.3s ease;
    }

    .testimonial-card:hover {
      background: rgba(255,255,255,0.15);
      transform: translateY(-5px);
    }

    .testimonial-text {
      font-size: 1.1rem;
      line-height: 1.7;
      margin-bottom: 1.5rem;
      font-style: italic;
    }

    .testimonial-author {
      font-weight: 700;
      color: #ffd700;
      font-size: 1.1rem;
    }

    .timeline-section {
      padding: 3rem 0;
      margin: 4rem 0;
    }

    .timeline-container {
      max-width: 900px;
      margin: 0 auto;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 2rem;
      margin-bottom: 3rem;
      align-items: start;
    }

    .timeline-year {
      background: linear-gradient(135deg, #1e4a6f 0%, #0d2438 100%);
      color: white;
      padding: 1.5rem;
      border-radius: 15px;
      text-align: center;
      font-size: 1.5rem;
      font-weight: 700;
      box-shadow: 0 5px 20px rgba(30,74,111,0.3);
    }

    .timeline-content {
      background: white;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.08);
      border-left: 4px solid #ffd700;
    }

    .timeline-content h4 {
      color: #1e4a6f;
      font-size: 1.3rem;
      margin-bottom: 0.5rem;
    }

    .timeline-content p {
      color: #555;
      line-height: 1.7;
    }

    .cta-banner {
      background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
      padding: 4rem 3rem;
      border-radius: 20px;
      text-align: center;
      margin: 4rem 0;
      box-shadow: 0 15px 50px rgba(255,215,0,0.3);
    }

    .cta-banner h2 {
      color: #1e4a6f;
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
    }

    .cta-banner h2::after {
      background: #1e4a6f;
    }

    .cta-banner p {
      color: #1e4a6f;
      font-size: 1.3rem;
      margin-bottom: 2rem;
      font-weight: 500;
    }

    .partner-logos {
      display: flex;
      justify-content: center;
      gap: 3rem;
      flex-wrap: wrap;
      margin-top: 3rem;
      padding: 2rem;
      background: white;
      border-radius: 15px;
    }

    .partner-logo {
      width: 120px;
      height: 80px;
      background: #f8f9fa;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .partner-logo:hover {
      background: #e9ecef;
      transform: translateY(-3px);
    }

    @media (max-width: 768px) {
      .video-grid,
      .timeline-item {
        grid-template-columns: 1fr;
      }

      .impact-grid,
      .testimonial-grid {
        grid-template-columns: 1fr;
      }

      .timeline-year {
        padding: 1rem;
        font-size: 1.2rem;
      }
    }


/* === Spacing Normalization (site-wide) === */
:root{
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
}

/* Base section spacing */
section {
  padding: var(--space-xxl) var(--space-sm);
}

/* Remove redundant outside margins for custom sections to avoid double-spacing */
.impact-section,
.video-section,
.testimonial-section,
.timeline-section,
.cta-banner {
  margin: 0 !important;
}

/* Consistent gap between sequential sections */
section + section {
  margin-top: var(--space-xl);
}

/* Headings spacing */
h2 {
  margin-bottom: var(--space-lg);
}

/* Standardize internal block spacing */
.impact-grid,
.testimonial-grid,
.timeline-container,
.video-grid {
  row-gap: var(--space-xl);
  column-gap: var(--space-xl);
}

/* Tidy common margin spacing inside sections */
.stats { margin-top: var(--space-xl); }
.impact-grid { margin-top: var(--space-lg); }
.testimonial-grid { margin-top: var(--space-lg); }
.timeline-item { margin-bottom: var(--space-xl); }

/* CTA actions helper */
.cta-actions { gap: var(--space-lg); margin-top: var(--space-lg); }
.cta-banner .btn + .btn { margin-left: var(--space-lg); }
.cta-banner > *:last-child { margin-bottom: 0; }

/* Footer offset stays generous but consistent */
footer { margin-top: var(--space-xxl); }

/* Mobile refinements */
@media (max-width: 768px) {
  section {
    padding: var(--space-xl) var(--space-sm);
  }
  section + section {
    margin-top: var(--space-lg);
  }
  .stats,
  .impact-grid,
  .testimonial-grid {
    row-gap: var(--space-lg);
  }
  .timeline-item { margin-bottom: var(--space-lg); }
}

/* === Center the gray “panel” sections (override any earlier rules) === */
section.impact-section,
section.video-section,
section.testimonial-section,
section.timeline-section,
section.cta-banner {
  /* lock to site container width and center */
  width: min(1400px, 100%);
  margin-left: auto !important;
  margin-right: auto !important;

  /* keep even side padding and box sizing */
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* If any earlier normalization forced margin: 0 !important; undo it */
:where(section).impact-section,
:where(section).video-section,
:where(section).testimonial-section,
:where(section).timeline-section,
:where(section).cta-banner {
  margin-block: 0 !important;     /* keep tight top/bottom spacing */
  margin-inline: auto !important; /* center horizontally */
}

/* Optional: ensure inner grids don’t hug the left edge */
.impact-section .impact-grid,
.testimonial-section .testimonial-grid {
  margin-left: auto;
  margin-right: auto;
}

