/* ===============================
   HERO SECTION (Modern + Responsive)
================================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
  /* fallback if video doesn't load */
}
/* Adjust video behavior on smaller screens to maintain full visibility */
@media (max-width: 768px) {
  .hero-bg-video {
    object-fit: contain;     /* Prevents cropping on phones and tablets */
    background-color: black; /* Fills side gaps neatly */
    width: 100%;
    height: 100%;
  }
}

/* Background Video */
.hero-bg-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

/* --- Black Curtain Overlay (Gradient) --- */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
      /* strong dark top */
    rgba(0, 0, 0, 0.45) 40%,  /* soft fade in middle */
    rgba(0, 0, 0, 0.2) 100%   /* nearly clear bottom */
  );
}

/* Optional subtle dark overlay for clarity */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  z-index: -1;
}

/* Content (text + button) */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  padding: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 1.5vw + 0.4rem, 2rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* CTA Button */
.hero .cta-btn {
  padding: 0.9rem 2.2rem;
  background-color: #E67E22;
  border: none;
  color: white;
  font-size: clamp(0.9rem, 1vw + 0.3rem, 1.1rem);
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.hero .cta-btn:hover {
  background-color: #D35400;
  transform: translateY(-3px);
}

/* ===============================
   RESPONSIVENESS
================================= */

/* Small Phones */
@media (max-width: 480px) {
  .hero {
    height: 85vh;
    padding: 1rem;
  }
  .hero-content {
    max-width: 95%;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .cta-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 1024px) {
  .hero {
    height: 90vh;
    padding: 1.5rem;
  }
  .hero-content {
    max-width: 80%;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
}

/* Laptops */
@media (min-width: 1025px) and (max-width: 1599px) {
  .hero {
    height: 100vh;
  }
  .hero-content {
    max-width: 70%;
  }
}

/* TVs and Ultrawide Screens */
@media (min-width: 1600px) {
  .hero-content {
    max-width: 60%;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero p {
    font-size: 1.8rem;
  }
}

/* Mission Section */
.mission {
    padding: 1rem 1rem;
    text-align: center;
    background-color: #ECF0F1;
}

.mission h2 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.mission p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
/* Impactful Leader Stories Section */
.impactful-leaders {
    padding: 1rem 1rem;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    text-align: center;
}

.impactful-leaders h2 {
   margin-top: 40px;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.leader-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.leader-item {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}
.leader-item img {
  width: 100%;
  height: 250px;           /* fixed equal height for all */
  border-radius: 15px;
  margin-bottom: 1rem;
  
  object-fit: cover;       /* fills the space without stretching */
  object-position: center; /* keeps focus in the middle */
  
  background-color: #f4f4f4; /* soft neutral background */
  box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* modern shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.leader-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}


.leader-item h2 {
  color: white;
  text-align: center;
  font-weight: 800;    /* extra bold */
  font-size: 22px;     /* bigger for name */
  margin: 4px 0 2px;   /* tight spacing */
  line-height: 1.2;
}

.leader-item h3 {
  color: #f9f3f3;         /* softer contrast for role */
  text-align: center;
  font-weight: 500;    /* lighter than h2 */
  font-size: 18px;     /* slightly smaller */
  margin: 0;           /* no extra spacing */
  line-height: 1.1;
}


.leader-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spaces out content */
  align-items: center;
  padding: 20px;
  height: 100%; /* ensures all leader cards are even */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Social icons always at bottom */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto; /* pushes it down */
  padding-top: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: #02543f;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: #3b82f6;
  transform: scale(1.1);
}


/* Programs Section */
.programs {
  display: flex;
  flex-wrap: nowrap;
  gap: 1cm;
  padding: 4rem 2rem;
  background-color: #F7F7F7;
  overflow-x: auto;
  position: relative;
}

.program-card {
  background-color: #fff;
  padding: 1rem;
  min-width: 300px;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

.program-card h3 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.program-card p {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.program-card .cta-btn {
  background-color: #04625c;
}

.program-card .cta-btn:hover {
  background-color: #1ABC9C;
}

/* Overlay Logic for 4th card */
.overlay-card {
  position: absolute;
  top: 50%;
  left: calc(100% - 350px); /* Adjust based on card width */
  transform: translateY(-50%) scale(0.95);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Appear on hover over programs container */
.programs:hover .overlay-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
  z-index: 999;
  box-shadow: 0px 10px 20px rgba(0,0,0,0.2);
}

/* ===== CTA Button (Learn More) ===== */
.cta-btn {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;

  /* Visuals (Trailblazers palette) */
  background: linear-gradient(135deg, #1e6959, #0e3947);
  color: #fff;
  border: 0;
  border-radius: 12px;

  /* Typography */
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  text-decoration: none;

  /* Effects */
  box-shadow: 0 10px 18px rgba(14, 57, 71, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, background 220ms ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer highlight on hover */
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0.18) 40%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(14, 57, 71, 0.3);
  background: linear-gradient(135deg, #0e3947, #1e6959);
}

.cta-btn:hover::before {
  transform: translateX(120%);
}

/* Active press feedback */
.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 14px rgba(14, 57, 71, 0.22);
}

/* Accessible focus ring */
.cta-btn:focus-visible {
  outline: 3px solid #f59842;  /* accent */
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(245, 152, 66, 0.25);
}

/* Optional arrow indicator */
.cta-btn::after {
  content: "↗";
  font-size: 0.95em;
  opacity: 0.85;
  transform: translateY(1px);
}

/* Contrast variant (on dark backgrounds) */
.cta-btn--light {
  background: linear-gradient(135deg, #f59842, #9e1b33);
  color: #fff;
}

/* Make the anchor target scroll nicely below sticky headers */
html {
  scroll-behavior: smooth;
}
#program-details {
  scroll-margin-top: 80px; /* adjust if your header height differs */
}

/* Responsive sizing */
@media (max-width: 640px) {
  .cta-btn {
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }
}

/* ===============================
   IMPACT STORIES SECTION (Fixed Color, Clean Modern Look)
================================= */

.impact-stories {
  padding: 60px 30px;
  background-color: #888484; /* solid background */
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 15px;
}

/* Section Title */
.impact-stories h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  color: #ffffff; /* fixed solid white */
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); /* subtle depth */
}

/* Video Gallery Layout */
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Each Video Item */
.video-item {
  width: 400px;
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(166, 166, 166, 0.3);
}

/* Video Box */
.video-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(94, 77, 77, 0.4);
}

/* Video Caption */
.video-item p {
  margin-top: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: #ffffff; /* fixed solid white */
  text-shadow: 0 0 8px rgba(118, 115, 115, 0.4); /* soft shadow only */
}

/* Removed all background glow, gradients, and animations */
.impact-stories::before,
.impact-stories::after {
  content: none;
}
