/* Additional styles for the hero section to match the image */
.impact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.impact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/african-entrepreneurs-marketplace.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.impact-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.impact-hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tech-badge {
  display: inline-block;
  background-color: rgba(59, 131, 246, 0.316);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.impact-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.impact-title span {
  background: linear-gradient(to right, #818cf8, #e879f9, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.impact-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #4f46e5;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.explore-btn:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.arrow-down {
  font-size: 1.25rem;
}

/* Particle effects */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0.5;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}
  
  /* Impact Overview Section - Updated to match the image */
  .impact-overview {
    position: relative;
    background-color: #0f172a;
    color: white;
    padding: 5rem 0;
    overflow: hidden;
  }
  
  .impact-badge {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    margin-bottom: 1.5rem;
  }
  
  .impact-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #a78bfa;
    background: linear-gradient(to right, #8b5cf6, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .impact-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    color: #cbd5e1;
  }
  
  .stat-card {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .stat-icon.blue {
    background-color: #3b82f6;
  }
  
  .stat-icon.green {
    background-color: #22c55e;
  }
  
  .stat-icon.purple {
    background-color: #a855f7;
  }
  
  .stat-icon.orange {
    background-color: #f59e0b;
  }
  
  .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
  }
  
  .stat-number.blue {
    color: #3b82f6;
  }
  
  .stat-number.green {
    color: #22c55e;
  }
  
  .stat-number.purple {
    color: #a855f7;
  }
  
  .stat-number.orange {
    color: #f59e0b;
  }
  
  .stat-label {
    font-size: 1rem;
    color: #cbd5e1;
  }
  
  .impact-detail-card {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
  }
  
  .detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .detail-icon.blue {
    background-color: #3b82f6;
  }
  
  .detail-icon.purple {
    background-color: #a855f7;
  }
  
  .detail-title {
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .detail-title.blue {
    color: #3b82f6;
  }
  
  .detail-title.purple {
    color: #a855f7;
  }
  
  .detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
  }
  
  .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .check-icon.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
  }
  
  .check-icon.purple {
    background-color: rgba(168, 85, 247, 0.2);
    color: #a855f7;
  }
  /* Previous styles remain the same */
    
    /* Updated Success Stories Section with reduced card height */
    .success-stories-section {
      position: relative;
      background-color: #2e1065;
      color: white;
      padding: 5rem 0;
      overflow: hidden;
    }
    
    .stories-badge {
      display: inline-block;
      background-color: rgba(168, 85, 247, 0.2);
      color: #c084fc;
      padding: 0.5rem 1.5rem;
      border-radius: 9999px;
      font-weight: 500;
      margin-bottom: 1.5rem;
    }
    
    .stories-heading {
      font-size: 3.5rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      color: #ec4899;
      background: linear-gradient(to right, #ec4899, #d946ef);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    
    .stories-description {
      font-size: 1.1rem;
      max-width: 800px;
      margin: 0 auto 3rem;
      line-height: 1.7;
      color: #cbd5e1;
    }
    
    .story-card {
      background-color: rgba(76, 29, 149, 0.5);
      border-radius: 1rem;
      overflow: hidden;
      height: 100%;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .story-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    
    .story-image-container {
      position: relative;
      height: 200px; /* Reduced from 250px */
      overflow: hidden;
    }
    
    .story-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    
    .story-card:hover .story-image {
      transform: scale(1.05);
    }
    
    .program-icon {
      position: absolute;
      bottom: 1rem;
      right: 1rem;
      width: 36px; /* Slightly reduced */
      height: 36px; /* Slightly reduced */
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .program-icon.education {
      background-color: #3b82f6;
    }
    
    .program-icon.agriculture {
      background-color: #22c55e;
    }
    
    .program-icon.entrepreneurship {
      background-color: #d946ef;
    }
    
    .story-content {
      padding: 1.25rem; /* Reduced from 1.5rem */
    }
    
    .story-name {
      font-size: 1.25rem; /* Reduced from 1.5rem */
      font-weight: 600;
      margin-bottom: 0.25rem; /* Reduced from 0.5rem */
    }
    
    .story-name.education {
      color: #3b82f6;
    }
    
    .story-name.agriculture {
      color: #22c55e;
    }
    
    .story-name.entrepreneurship {
      color: #d946ef;
    }
    
    .story-program {
      font-size: 0.9rem; /* Reduced from 1rem */
      color: #cbd5e1;
      margin-bottom: 0.75rem; /* Reduced from 1rem */
    }
    
    .story-quote {
      background-color: rgba(76, 29, 149, 0.7);
      border-radius: 0.75rem;
      padding: 1.25rem; /* Reduced from 1.5rem */
      position: relative;
      color: #e2e8f0;
      font-style: italic;
      font-size: 0.9rem; /* Added smaller font size */
      line-height: 1.5; /* Added tighter line height */
    }
    
    .quote-mark {
      position: absolute;
      font-size: 1.25rem; /* Reduced from 1.5rem */
      color: rgba(255, 255, 255, 0.2);
    }
    
    .quote-mark.left {
      top: 0.5rem;
      left: 0.5rem;
    }
    
    .quote-mark.right {
      bottom: 0.5rem;
      right: 0.5rem;
    }
  /* Testimonials Section with Parallax */
  .impact-testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
  }
  
  .parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/african-sustainable-farm.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(-1px) scale(2);
  }
  
  .parallax-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  
  .testimonial-quote {
    font-size: 3rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 1rem;
    left: 1rem;
  }
  
  .testimonial-text {
    color: #1f2937;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
  }
  
  .author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
  }
  
  .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .author-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
  }
  
  .author-role {
    color: #6b7280;
    font-size: 0.875rem;
  }
  
  /* Call to Action Section */
  .impact-cta-section {
    position: relative;
    overflow: hidden;
  }
  
  .impact-cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: -1;
  }
  
  .impact-cta-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDMyMCI+PHBhdGggZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjMpIiBkPSJNMCwyMjRMNDgsMjEzLjNDOTYsMjAzLDE5MiwxODEsMjg4LDE4MS4zQzM4NCwxODEsNDgwLDIwMyw1NzYsMjI0QzY3MiwyNDUsNzY4LDI2Nyw4NjQsMjUwLjdDOTYwLDIzNSwxMDU2LDE4MSwxMTUyLDE2NS4zQzEyNDgsMTQ5LDEzNDQsMTcxLDEzOTIsMTgxLjNMMTQ0MCwxOTJMMTQ0MCwzMjBMMTM5MiwzMjBDMTM0NCwzMjAsMTI0OCwzMjAsMTE1MiwzMjBDMTA1NiwzMjAsOTYwLDMyMCw4NjQsMzIwQzc2OCwzMjAsNjcyLDMyMCw1NzYsMzIwQzQ4MCwzMjAsMzg0LDMyMCwyODgsMzIwQzE5MiwzMjAsOTYsMzIwLDQ4LDMyMEwwLDMyMFoiPjwvcGF0aD48L3N2Zz4=');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
  }
  
  .impact-cta-content {
    color: white;
  }
  
  .impact-cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .impact-cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .impact-hero-title {
      font-size: 2.5rem;
    }
    
    .impact-hero-subtitle {
      font-size: 1rem;
    }
    
    .impact-hero-stats {
      flex-direction: column;
      gap: 1rem;
    }
    
    .impact-stat-number {
      font-size: 2rem;
    }
    
    .impact-hero-visual {
      height: 300px;
    }
    
    .data-viz-canvas-container {
      height: 300px;
    }
    
    .impact-map {
      height: 350px;
    }
    
    .impact-cta-title {
      font-size: 1.75rem;
    }

    .tech-badge {
      padding: 0.5rem 0.7rem;
      border: solid 1px #1f2937;
  }

  .impact-title {
    font-size: 3rem;
}

.impact-subtitle {
  font-size: 1.2rem;
}

.impact-heading {
  font-size: 1.7rem;
}

.impact-description {
  font-size: 0.9rem;
}
  }

  /* Mobile Grid for Stat Cards */
@media (max-width: 767.98px) {
  /* Override Bootstrap's default stacking behavior on mobile */
  .impact-overview .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }

  .impact-overview .col-md-6 {
    width: 50%; /* Make columns take up 50% width (2 per row) */
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  /* Adjust card styling for smaller screens */
  .stat-card {
    padding: 1.25rem;
    height: 100%;
    margin-bottom: 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  .stories-heading {
    font-size: 2rem;
}
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.75rem;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}
