/* =========================================================
   HOMEPAGE SECTIONS (below the hero)
   Tokens, type and buttons come from css/wfc.css; the focus-area and
   article cards come from css/components.css.
   ========================================================= */

/* ---------- About ---------- */

.wfc-about__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.wfc-about__copy {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.wfc-about__copy .wfc-h2 {
  max-width: 24ch;
}

.wfc-about__copy .wfc-lead {
  max-width: 60ch;
}

.wfc-about__media {
  margin: 0;
}

/* The photo is cut to the outline of South Sudan (transparent around it),
   so it is shown whole: no cropping and no rounded frame. */
.wfc-about__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

@media (min-width: 992px) {
  .wfc-about__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 64px;
  }
}

/* ---------- Stories and events: two halves side by side ---------- */

/* The partners section below brings its own space above. */
.wfc-duo-section {
  padding-bottom: 0;
}

.wfc-duo {
  display: grid;
  gap: 24px;
}

.wfc-duo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.wfc-duo__head .wfc-h2 {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
}

/* Events sit in a deep green panel, so the two halves read apart at a glance. */
.wfc-duo__events {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
}

.wfc-duo__events .wfc-h2 {
  color: var(--wfc-paper);
}

.wfc-duo__events .wfc-link {
  color: var(--wfc-paper);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.wfc-duo__events .wfc-link:hover {
  color: var(--wfc-paper);
  text-decoration-color: var(--wfc-paper);
}

.wfc-duo__events .wfc-link:focus-visible {
  outline-color: var(--wfc-sun);
}

.wfc-agenda {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-agenda__item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.wfc-agenda__item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.wfc-agenda__item:has(a:focus-visible) {
  outline: 3px solid var(--wfc-sun);
  outline-offset: 2px;
  border-radius: 12px;
}

.wfc-agenda__date {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--wfc-paper);
  color: var(--wfc-forest);
}

.wfc-agenda__day {
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: 2rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.wfc-agenda__month {
  font-family: var(--wfc-text);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--wfc-slate);
}

.wfc-agenda__body {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.wfc-agenda__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.25rem;
  line-height: 1.18;
}

.wfc-agenda__title a {
  color: var(--wfc-paper);
  text-decoration: none;
  outline: none;
}

.wfc-agenda__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wfc-agenda__item:hover .wfc-agenda__title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.wfc-agenda__meta,
.wfc-agenda__empty {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 992px) {
  .wfc-duo {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
  }

  /* Inside the left half the story cards stay two across. */
  .wfc-duo .wfc-voices {
    gap: 20px;
  }
}

/* ---------- Partners ---------- */

.wfc-partners {
  display: grid;
  gap: 40px;
  align-items: center;
}

.wfc-partners__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.wfc-partners__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

/* Logos stay blurred: the list itself is behind the partner access key.
   The badge makes the blur read as locked rather than broken. */
.wfc-partners__vault {
  position: relative;
}

.wfc-partners__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--wfc-line);
  border-radius: 999px;
  background: var(--wfc-paper);
  box-shadow: 0 12px 32px rgba(23, 35, 28, 0.1);
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wfc-ink);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.wfc-partners__badge i {
  color: var(--wfc-forest);
}

.wfc-partners__logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wfc-partners__logos li {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 16px;
  border-radius: 14px;
  background: var(--wfc-mist);
}

.wfc-partners__logos img {
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  filter: grayscale(1) blur(9px);
  opacity: 0.5;
}

@media (min-width: 576px) {
  .wfc-partners__logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .wfc-partners {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}
