/* Grid */
.impact-stats {
  padding: 120px 0 60px;
}

.impact-stats__title {
  text-align: center;
}

.impact-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  padding: 32px 0 24px;
}

/* Card */
.impact-stat__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 252px;
  color: #fff;
  padding: 24px 24px 120px;
}

.impact-stat__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.impact-stat__card:nth-child(1)::before {
  background: linear-gradient(180deg, rgba(12, 67, 143, 0.95) 0%, rgba(12, 67, 143, 0.75) 100%);
}

.impact-stat__card:nth-child(2)::before {
  background: linear-gradient(180deg, rgba(255, 134, 116, 0.95) 0%, rgba(255, 134, 116, 0.88) 100%);
}

.impact-stat__card:nth-child(3)::before {
  background: linear-gradient(180deg, rgba(0, 142, 109, 0.95) 0%, rgba(0, 142, 109, 0.8) 100%);
}

.impact-stat__card:nth-child(4)::before {
  background: linear-gradient(180deg, #ac4fc6 0%, rgba(172, 79, 198, 0.8) 100%);
}

/* Background image layer */
.impact-stat__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.impact-stat__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content layer */
.impact-stat__value,
.impact-stat__icon,
.impact-stat__label {
  position: relative;
  z-index: 3;
}

/* Value */
.impact-stat__value {
  font-size: 72px;
  font-weight: 700;
  font-family: Arada-Headline-Bold;
  line-height: 100%;
  padding-bottom: 4px;
}

/* Label */

.impact-stats__caption {
  font-size: 24px;
  line-height: 130%;
  font-family: Arada-Light;
  font-weight: 400;
  color: #999999;
  text-align: center;
}

.impact-stat__icon {
  position: absolute;
  bottom: 0;
  left: 24px;
  display: flex;
}

.impact-stat__icon img {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  width: 100%;
}

/* Responsive */
@media (min-width: 992px) {
  .impact-stat__value {
    font-size: 48px;
  }
}

@media (min-width: 1440px) {
  .impact-stat__value {
    font-size: 72px;
  }
}

@media (max-width: 991px) {
  .impact-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
}

@media only screen and (max-width: 768px) {
  .impact-stats__grid {
    grid-template-columns: 1fr;
  }

  /* Optional: adjust spacing */
  .impact-stat__card {
    min-height: 260px;
    margin: 0;
  }

  .impact-stats {
    padding: 60px 0 20px;
  }

  .impact-stat__label {
    font-size: 16px;
  }
}
