@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

.impact-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  min-height: 360px;
  margin: -7rem auto 0;
  padding: 6rem 2rem 2rem;
  flex: 1;
  overflow: hidden;
}

.impact-hero-text {
  position: relative;
  z-index: 1;
}

.impact-hero-text h1 {
  position: relative;
  margin: 0 0 1.2rem;
  color: #10824c;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  animation: impactFadeIn 1s ease-out forwards;
}

.impact-hero-text h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #4cbb6a;
  border-radius: 2px;
}

.impact-hero-text p {
  max-width: 600px;
  margin: 2rem 0 0;
  color: #2f3e2f;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}

.impact-hero-image {
  position: relative;
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
}

.impact-hero-image img:first-child {
  position: relative;
  z-index: 1;
  display: block;
  width: min(75%, 300px);
  height: auto;
  object-fit: contain;
}

.impact-hero-image img:last-child {
  position: absolute;
  z-index: 0;

  width: 102.5%;
  height: 102.5%;
  object-fit: contain;
}

.impact-feed {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.impact-feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.impact-feed-heading h2 {
  margin: 0;
  color: #10824c;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.impact-feed-heading p {
  margin: 0.75rem 0 0;
  color: #2f3e2f;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.impact-feed-heading > a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  color: #10824c;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 2px solid #feeacf;
  border-radius: 999px;
  box-shadow: 0 0 12px #feecd2;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-feed-heading > a:hover {
  color: #4cbb6a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px #feecd2;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.25rem;
}

.impact-post {
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #feeacf;
  border-radius: 1rem;
  box-shadow: 0 0 20px #feecd2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px #feecd2;
}

.impact-post > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.impact-image-frame {
  position: relative;
  flex-shrink: 0;
  height: 220px;
  overflow: hidden;
  background: #f5f8f1;
}

.impact-post .impact-image-blur {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transform: scale(1.1);
  opacity: 0.55;
  pointer-events: none;
}

.impact-post .impact-image-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.impact-post-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

.impact-category {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.7rem;
  color: #10824c;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eaf6ed;
  border-radius: 999px;
}

.impact-post h3 {
  margin: 0 0 0.5rem;
  color: #10824c;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.impact-post p {
  margin: 0;
  color: #444;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 950px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-hero {
    grid-template-columns: 1fr 0.7fr;
  }
}

@media (max-width: 650px) {
  .impact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: -5rem;
    padding: 6rem 1.5rem 1rem;
  }

  .impact-hero-text h1 {
    font-size: 2.5rem;
  }

  .impact-hero-text p {
    font-size: 1.05rem;
  }

  .impact-hero-image {
    min-height: 220px;
  }

  .impact-hero-image img:first-child {
    width: 180px;
  }

  .impact-feed {
    padding: 2rem 1.25rem 4rem;
  }

  .impact-feed-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .impact-grid {
    gap: 0.85rem;
  }

  .impact-image-frame {
    height: 180px;
  }

  .impact-post-text {
    padding: 0.8rem;
  }
}

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

  .impact-image-frame {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-post,
  .impact-feed-heading > a {
    transition: none;
  }

  .impact-post:hover,
  .impact-feed-heading > a:hover {
    transform: none;
  }
}

@keyframes impactFadeIn {
  to {
    opacity: 1;
  }
}