/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0b4f3e 0%, #0f6e56 45%, #1a8a6c 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero::before {
  width: 460px;
  height: 460px;
  right: -120px;
  top: -120px;
}

.hero::after {
  width: 200px;
  height: 200px;
  left: -80px;
  bottom: -120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr .8fr; /* Increased by 15% from 0.9fr */
  gap: .2rem;
  align-items: center;
  padding: 3.6rem 0;
}

.hero h1 {
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-height: 374px; /* Increased by 10% from 340px */
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-image img.active {
  opacity: 1;
}

/* ==========================================================================
   2. INTRO & MISSION/VISION SECTION
   ========================================================================== */
.intro-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Balanced gap between introduction text and cards */
  text-align: center;
  align-items: center;
  margin-bottom: -2rem; /* Pulls the next section closer to shorten the gap */
}

.intro-who {
  max-width: 850px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
  /* Removed height: 50% as it breaks grid flows when parent height isn't static */
}

/* Specific styling to make Mission and Vision boxes larger */
.mission-vision-grid .card {
  padding: 1rem 1rem; /* Enhanced internal whitespace for a premium look */
  font-size: 1.1rem;     /* Increased paragraph sizing for clarity */
}

/* Fixed from h2 to h3 to match your actual index.html file tags */
.mission-vision-grid .card h2 {
  font-size: 1.5rem;    
  margin-bottom: 0.5rem;   
}

/* ==========================================================================
   3. IMPACT GRID SECTION
   ========================================================================== */
section:has(.impact-grid) {
  padding-top: 1rem !important; /* Compresses top spacing explicitly */
}

.impact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.impact-card {
  padding: 1rem;
  text-align: center;
}

.impact-card h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--c-primary);
}

.impact-card p {
  margin: 0.2rem 0 0;
  font-size: 0.87rem;
}

/* ==========================================================================
   4. PARTNERS CAROUSEL STRIP
   ========================================================================== */
.partner-strip {
  padding: 2.5rem 0 4.5rem 0;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
  overflow: hidden;
}

.partner-header {
  margin-bottom: 2.5rem;
}

.partners-link {
  text-decoration: none;
  color: var(--c-primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s ease;
}

.partners-link:hover {
  color: var(--c-accent);
}

.partners-link .arrow-mark {
  display: inline-block;
  transition: transform 0.3s ease;
}

.partners-link:hover .arrow-mark {
  transform: translateX(6px);
}

.partner-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: partnerSlide 26s linear infinite;
}

.partner-logo {
  width: 200px;
  height: 100px;
  padding: 0.5rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.partner-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.partner-logo img {
  max-height: 80px;
  max-width: 180px;
  object-fit: contain;
  margin: 0;
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img:hover {
  transform: scale(1.1);
}

@keyframes partnerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1040px) {
  .impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .intro-stack,
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
}