/* WFPF Impact page
   (templates/node--wfpf-impact-page.html.twig). */

/* Hero */
@media (max-width: 767.98px) {
  .wfpf-impact-hero.fullscreen-hero {
    --fullscreen-hero-gradient-start: 0%;
    --fullscreen-hero-gradient-end: 81.43%;
  }
}

/* Results */
.wfpf-results .max-width {
  padding-top: 100px;
  padding-bottom: 100px;
}

.wfpf-results .section-title {
  gap: 20px;
  margin: 0 auto 40px;
  max-width: 720px;
}

.wfpf-results .section-title__heading {
  font-size: 48px;
}

.wfpf-results .section-description {
  max-width: none;
  font-size: 16px;
}

.wfpf-results__list {
  --cols: 1;
  --gap: 23px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
}

.wfpf-results__card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 400px;
  padding: 32px 26px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--brand-off-white);
}

.wfpf-results__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wfpf-results__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--brand-bondi-blue) 15%, rgb(0 55 117 / 0%) 117.5%);
}

.wfpf-results__topic,
.wfpf-results__body {
  position: relative;
  z-index: 1;
}

.wfpf-results__topic {
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--brand-cerulean-blue);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wfpf-results__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wfpf-results__country,
.wfpf-results__project {
  color: inherit;
  font-size: 18px;
  line-height: 1.5;
}

.wfpf-results__project {
  opacity: 0.7;
}

.wfpf-results__support {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wfpf-results__amount {
  font-size: 40px;
  line-height: 1;
}

.wfpf-results__label {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wfpf-results__result {
  font-size: 20px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .wfpf-results__list {
    --cols: 2;
  }

  .wfpf-results__card {
    min-height: 560px;
  }

  .wfpf-results__country,
  .wfpf-results__project {
    font-size: 20px;
  }

  .wfpf-results__amount {
    font-size: 64px;
  }
}

@media (min-width: 1080px) {
  .wfpf-results__list {
    --cols: 3;
  }
}

@media (min-width: 1440px) {
  .wfpf-results__list {
    --cols: 5;
  }
}

@media (min-width: 1600px) {
  .wfpf-results .max-width {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* Annual Reports and Publications */
.wfpf-knowledge.banner-container.gradient-bottom {
  --gradient-start: 32.87%;
  --gradient-end: 76.13%;
  min-height: 800px;
}

.wfpf-knowledge .section-title-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.wfpf-knowledge .section-title {
  gap: 20px;
}

.wfpf-knowledge.banner-container .section-title__heading {
  margin-bottom: 12px !important;
}

.wfpf-knowledge .section-description {
  max-width: 753px;
  font: 500 18px/1.5 var(--font-ideal-sans-medium), sans-serif;
}

.wfpf-knowledge.banner-container .button-link {
  margin-top: 0;
  padding: 20px 32px;
  letter-spacing: 0;
}

.wfpf-knowledge.banner-container .button-link:not(:hover) {
  background: var(--brand-off-white);
}

.wfpf-knowledge.banner-container .button-link:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

@media (min-width: 768px) {
  .wfpf-knowledge.banner-container.gradient-bottom {
    --gradient-start: 18.54%;
    --gradient-end: 61.75%;
    min-height: 720px;
  }

  .wfpf-knowledge .section-description {
    font: 400 20px/1.35 var(--font-ideal-sans-regular), sans-serif;
  }
}

@media (min-width: 768px) and (max-width: 1439.98px) {
  .wfpf-knowledge.banner-container .section-title-container {
    padding-right: 43%;
  }
}
