/* ==========================================================================
   STRATEGIC THEMES BLOCK
   Layout: section title + 1–3 icon cards.
   1 card  → centred single card
   2 cards → side by side, centred as a group
   3 cards → 3-column row (as in design reference)
   ========================================================================== */

/* ── CSS custom properties ────────────────────────────────────── */
.strategic-themes-block {
  --st-title-color: var(--hng-orange, #f58220);
  --st-card-title: var(--hng-white, #ffffff);
  --st-card-body: var(--hng-white, #ffffff);
  --st-card-bg: rgba(255, 255, 255, 0.12);
  --st-card-radius: var(--radius-card, 1.25rem);
  --st-icon-size: clamp(64px, 10vw, 96px);
  --st-padding: var(--hng-section-pad, clamp(2rem, 5vw, 4rem));
  --st-gap: var(--hng-col-gap, clamp(1rem, 2.5vw, 1.75rem));

  width: 100%;
  box-sizing: border-box;
  /* padding: var(--st-padding); */
  margin-bottom: 60px;
}

/* ── Inner wrapper ────────────────────────────────────────────── */
.strategic-themes-block__inner {
  /* max-width: 1400px;
	margin: 0 auto; */
  display: flex;
  flex-direction: column;
  gap: var(--st-gap);
}

/* ── Section title — H1 per design spec ──────────────── */
.strategic-themes-block__section-title {
  margin: 0;
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 600 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--hng-h2-size, clamp(2.25rem, 4.5vw, 3.625rem));
  line-height: 1.1;
  color: var(--st-title-color);
}

/* ── Cards container ──────────────────────────────────────────── */
.strategic-themes-block__cards {
  display: flex;
  gap: var(--st-gap);
}

/* 3 cards: equal columns, stretch full width */
.strategic-themes-block__cards--3 {
  justify-content: space-between;
}

.strategic-themes-block__cards--3 .strategic-themes-block__card {
  flex: 1;
}

/* 2 cards: centred pair, each card capped at ~40% width */
.strategic-themes-block__cards--2 {
  justify-content: center;
}

.strategic-themes-block__cards--2 .strategic-themes-block__card {
  flex: 0 1 40%;
}

/* 1 card: single centred card, capped at ~380px */
.strategic-themes-block__cards--1 {
  justify-content: center;
}

.strategic-themes-block__cards--1 .strategic-themes-block__card {
  flex: 0 1 380px;
}

/* ── Individual card ──────────────────────────────────────────── */
.strategic-themes-block__card {
  background: var(--st-card-bg);
  border-radius: var(--st-card-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  box-sizing: border-box;
}

/* ── Card icon ────────────────────────────────────────────────── */
.strategic-themes-block__card-icon {
  flex-shrink: 0;
  width: 60%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.strategic-themes-block__card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Card title — 45px ────────────────────────────────────────── */
.strategic-themes-block__card-title {
  margin: 0;
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 600 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--hng-h3-size, clamp(1.5rem, 2.5vw, 1.875rem));
  line-height: 1.2;
  color: var(--st-card-title);
}

/* ── Card body — 22px ─────────────────────────────────────────── */
.strategic-themes-block__card-body {
  margin: 0;
  font-family: "ITCAvantGarde", sans-serif;
  font-weight: 400 !important;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--hng-body-size, clamp(1rem, 1.5vw, 1.25rem));
  color: var(--hng-white, #ffffff);
  line-height: 1.65;
}

/* ── Tablet (≤ 768px): 2 cards per row for 3-card layout ─────── */
@media (max-width: 768px) {
  .strategic-themes-block__cards--3 {
    flex-wrap: wrap;
  }

  .strategic-themes-block__cards--3 .strategic-themes-block__card {
    flex: 0 1 calc(50% - var(--st-gap) / 2);
  }

  .strategic-themes-block__cards--2 .strategic-themes-block__card {
    flex: 1;
  }
}

/* ── Mobile (≤ 540px): stack all cards ───────────────────────── */
@media (max-width: 540px) {
  .strategic-themes-block__cards,
  .strategic-themes-block__cards--2,
  .strategic-themes-block__cards--3 {
    flex-direction: column;
  }

  .strategic-themes-block__cards--1 .strategic-themes-block__card,
  .strategic-themes-block__cards--2 .strategic-themes-block__card,
  .strategic-themes-block__cards--3 .strategic-themes-block__card {
    flex: 1 1 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS — cards appear one by one
   JS sets transition-delay per data-st-index, then adds .is-visible
   ═══════════════════════════════════════════════════════════════ */

[data-st-animate] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-st-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-st-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

