/* ===== About → The Water Challenge in ASALs =====
   Ships with the plugin and is enqueued under its own handle rather than living
   in about.css, because about.css resolves to the ACTIVE THEME's copy when it
   has one — so on any site whose theme has not been updated in step with the
   plugin, these rules would never load and the section would render unstyled.
   Same reasoning as about-team.css and about-map.css.

   Built from the same tokens as the rest of the page: lavender section, white
   cards, purple accents. The wet months take the two purples, the dry months
   take the border tint — the contrast is the point, but the palette does not
   change. */
.about-challenge {
  background: var(--bg-lavender);
  padding: 84px 0 88px;
}

.about-challenge-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 46px;
}

.about-challenge-head .section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.about-challenge-head h2 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-dark);
}

.about-challenge-head h2 span {
  color: var(--primary-purple);
}

.about-challenge-head .chal-lead {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ── The rainfall year ── */
.chal-year {
  max-width: 720px;
  /* !important because this is a <figure>, and Elementor's own reset zeroes
     figure margins from a later stylesheet — without it the block loses both
     its centring and its 56px gap to the section below. */
  margin: 0 auto 56px !important;
  padding: 26px 26px 20px;
  background: var(--white);
  border: 1px solid var(--border-lavender);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.chal-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  align-items: end;
}

.chal-bar-track {
  display: flex;
  align-items: flex-end;
  height: 96px;
  border-radius: 8px;
  background: var(--primary-purple-light);
  overflow: hidden;
}

.chal-bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: var(--border-lavender);
  transition: var(--transition);
}

.chal-bar.is-long .chal-bar-fill {
  background: var(--primary-purple);
}

/* The two theme purples are too close to tell apart at this size, so the short
   rains are separated by value, not by a hue the palette does not have. */
.chal-bar.is-short .chal-bar-fill {
  background: var(--accent-purple);
  opacity: 0.55;
}

.chal-bar-label {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.chal-bar.is-long .chal-bar-label,
.chal-bar.is-short .chal-bar-label {
  color: var(--text-dark);
}

.chal-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-lavender);
}

.chal-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
}

.chal-key::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--border-lavender);
}

.chal-key.is-long::before { background: var(--primary-purple); }
.chal-key.is-short::before { background: var(--accent-purple); opacity: 0.55; }

/* ── Photograph + consequences ── */
.chal-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.chal-grid.is-single {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.chal-grid.is-single .chal-effects {
  justify-content: center;
}

.chal-visual {
  position: relative;
  margin: 0;
}

.chal-visual img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 24px 24px 24px 120px;
  box-shadow: var(--shadow-md);
}

/* Same badge treatment as the intro's "since 2010", mirrored to the other
   corner so the two do not read as the same element twice. */
.chal-stat {
  position: absolute;
  right: -24px;
  bottom: 28px;
  max-width: 200px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--primary-purple);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.chal-stat .num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.chal-stat .lbl {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.9;
}

.chal-text p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 18px;
}

.chal-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chal-effects li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-lavender);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.chal-effects li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.chal-effects li:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .chal-grid { grid-template-columns: 1fr; gap: 44px; }
  .chal-visual img { height: 360px; }
  .chal-stat { right: 0; }
}

@media (max-width: 600px) {
  .about-challenge-head h2 { font-size: 28px; }
  /* Twelve bars will not fit at full size: keep the shape of the year, drop the gaps. */
  .chal-year { padding: 20px 16px 16px; }
  .chal-bars { gap: 5px; }
  .chal-bar-track { height: 76px; }
  .chal-bar-label { font-size: 10.5px; }
  .chal-keys { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chal-visual img { height: 300px; border-radius: 20px 20px 20px 80px; }
  .chal-stat { position: static; max-width: none; margin-top: 16px; }
}
