/* ═══════════════════════════════════════════════════════════════════════════
   MAZIMA — Programs Page
   3-column card layout: photo | content | impact/diagram
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Header ─────────────────────────────────────────────────────────────── */
.prog-header {
  background: var(--green-xdk);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.prog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 85% 40%, rgba(196,154,44,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.prog-header .container { position: relative; z-index: 1; }
.prog-header .section-label { color: var(--gold); margin-bottom: 10px; }
.prog-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 14px;
}
.prog-header-sub {
  color: rgba(255,255,255,0.58);
  font-size: 16px;
  line-height: 1.8;
  max-width: 62ch;
  margin-bottom: 40px;
}

/* ── Chain nav ───────────────────────────────────────────────────────────── */
.prog-chain-nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.prog-chain-nav::-webkit-scrollbar { display: none; }

.prog-chain-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
  transition: background .18s, border-color .18s;
}
.prog-chain-step:hover {
  background: rgba(255,255,255,0.04);
  border-bottom-color: var(--gold);
}
.prog-chain-step span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color .18s;
}
.prog-chain-step:hover span { color: rgba(255,255,255,0.85); }

.prog-chain-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prog-chain-icon i { color: var(--c); font-size: 14px; }

.prog-chain-sep {
  color: rgba(255,255,255,0.15);
  font-size: 10px;
  flex-shrink: 0;
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.prog-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.prog-section--light { background: var(--white); }
.prog-section--warm  { background: var(--bg-warm); }

/* Section header */
.prog-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.prog-section-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prog-section-icon i { color: var(--c); font-size: 20px; }
.prog-section-tag {
  color: var(--c) !important;
  margin-bottom: 2px;
}
.prog-section-meta h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--green-dk);
  margin: 0;
}

/* Intro paragraphs */
.prog-intro-para {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 78ch;
  margin-bottom: 10px;
}

/* SDG note */
.prog-sdg-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 32px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--green-dk);
  line-height: 1.5;
  max-width: 86ch;
}
.prog-sdg-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── 3-column card ───────────────────────────────────────────────────────── */
.prog-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s;
}
.prog-section--warm .prog-card { background: var(--white); }
.prog-card:hover { box-shadow: var(--shadow-lg); }

/* Columns */
.prog-col { display: flex; flex-direction: column; }

.prog-col--photo {
  border-right: 1px solid var(--rule);
}

.prog-col--content {
  padding: 28px 28px 24px;
  border-right: 1px solid var(--rule);
}

.prog-col--impact {
  background: var(--bg-warm);
}
.prog-section--warm .prog-col--impact {
  background: color-mix(in srgb, var(--green-xdk) 4%, white);
}

/* Photo */
.prog-photo-wrap {
  flex: 1;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  background: var(--green-lt);
}
.prog-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  transition: transform .4s ease;
}

.prog-card:hover .prog-photo-wrap img { transform: scale(1.03); }
.prog-photo-wrap--diagram {
  min-height: 100%;
}
.prog-photo-wrap--diagram img {
  object-fit: contain;
  padding: 16px;
  background: #f8fafc;
}
.prog-photo--missing::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  background: var(--green-lt);
}

.prog-photo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, white);
  border-top: 1px solid color-mix(in srgb, var(--c) 15%, transparent);
  flex-shrink: 0;
}

/* Content column */
.prog-card-title {
  font-size: 1.2rem;
  color: var(--green-dk);
  margin-bottom: 14px;
  line-height: 1.3;
}

.prog-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.prog-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.prog-detail-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prog-sizes-heading {
  margin-bottom: 6px;
}

.prog-sizes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.prog-sizes-list li {
  font-size: 13.5px;
  color: var(--text);
  padding: 6px 10px;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: 6px;
  line-height: 1.4;
}

.prog-cost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 18px;
  margin-top: auto;
}

.prog-donate-btn {
  align-self: flex-start;
  font-size: 14px;
  padding: 11px 22px;
}

/* Impact column */
.prog-impact-block {
  padding: 24px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prog-impact-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 4px;
}
.prog-impact-head i { font-size: 12px; }

.prog-impact-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--green-dk);
  line-height: 1.7;
  border-left: 3px solid var(--c);
  padding-left: 12px;
  margin: 0;
}

.prog-impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.prog-impact-list li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 4px;
}

/* ── CTA band ────────────────────────────────────────────────────────────── */
.prog-cta-band {
  background: var(--green-xdk);
  padding: 64px 0;
}
.prog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.prog-cta-inner h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}
.prog-cta-inner p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  max-width: 48ch;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-xdk) !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(196,154,44,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-gold:hover {
  background: #b8891f;
  box-shadow: 0 6px 22px rgba(196,154,44,0.45);
  transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .prog-card {
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto auto;
  }
  .prog-col--impact {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule);
  }
  .prog-col--photo { border-bottom: none; }
}

@media (max-width: 768px) {
  .prog-header { padding: 44px 0 0; }
  .prog-section { padding: 48px 0; }

  .prog-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .prog-col--photo {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .prog-col--content {
    border-right: none;
    padding: 20px;
  }
  .prog-photo-wrap { min-height: 200px; }
  .prog-chain-step { padding: 14px 12px; }
  .prog-cta-inner { flex-direction: column; text-align: center; }
  .prog-cta-inner p { max-width: 100%; }
}