/* ============================================================
   Wellbeing Bangladesh Foundation — Inner Page Styles
   (loads after styles.css; shared by all subpages)
   ============================================================ */

/* ---------- Active nav state ---------- */
.main-nav a.active {
  color: var(--green-700);
  font-weight: 700;
}

/* ---------- Page hero (dark, photo-backed) ---------- */
.page-hero {
  position: relative;
  min-height: clamp(480px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg, .page-hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  z-index: -2;
}
.page-hero-bg img { animation: heroZoom 14s ease-in-out infinite alternate; }
.page-hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(165deg, rgba(4, 40, 23, .88) 0%, rgba(6, 55, 31, .74) 48%, rgba(8, 92, 54, .58) 100%),
    linear-gradient(to top, rgba(4, 40, 23, .55) 0%, rgba(4, 40, 23, 0) 40%);
}
.page-hero-inner { padding: 170px 0 84px; color: #fff; }
.crumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .78);
  margin-bottom: 20px;
}
.crumb a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.crumb a:hover { color: var(--gold-400); }
.page-hero-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.16; letter-spacing: -.015em;
  max-width: 880px; margin-bottom: 18px;
  text-wrap: balance;
}
.page-hero-title em { font-style: normal; color: var(--gold-400); }
.page-hero-sub {
  font-size: clamp(.98rem, 1.4vw, 1.1rem);
  line-height: 1.75; color: #D9EBDF;
  max-width: 720px;
}

/* ---------- Split story rows ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.story-grid.reverse { direction: rtl; }
.story-grid.reverse > * { direction: ltr; }
.story-copy p { color: var(--slate); line-height: 1.85; margin-bottom: 16px; font-size: .97rem; }
.story-copy strong { color: var(--green-900); }
.story-media { position: relative; margin: 0; }
.story-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.story-media::before {
  content: "";
  position: absolute;
  right: -16px; bottom: -16px;
  width: 130px; height: 130px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(232, 169, 61, .38), rgba(56, 163, 216, .26));
  z-index: -1;
  filter: blur(1px);
}
.story-media::after {
  content: "";
  position: absolute;
  left: -18px; top: -18px;
  width: 92px; height: 92px;
  border: 2px dashed rgba(10, 123, 75, .35);
  border-radius: 50%;
  z-index: -1;
}

/* ---------- Feature cards (numbered) ---------- */
.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  list-style: none; padding: 0; margin: 0;
}
.num-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.num-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.num-num {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: .78rem; letter-spacing: .18em;
  color: var(--gold-600); margin-bottom: 12px;
}
.num-item h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; line-height: 1.4;
  color: var(--green-950); margin-bottom: 8px;
}
.num-item p { color: var(--muted); line-height: 1.7; font-size: .9rem; margin: 0; }

/* ---------- Icon feature cards ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  list-style: none; padding: 0; margin: 0;
}
.feat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feat-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--green-50); color: var(--green-600);
  margin-bottom: 16px;
}
.feat-ic .ic { width: 24px; height: 24px; }
.feat-card h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.07rem; color: var(--green-950);
  margin-bottom: 8px;
}
.feat-card p { color: var(--muted); line-height: 1.7; font-size: .9rem; margin: 0; }

/* ---------- Quote band (photo-backed when JS adds .has-photo) ---------- */
.quote-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-50);
}
.quote-band.has-photo {
  padding: clamp(96px, 11vw, 150px) 0;
  background: var(--green-950);
}
.quote-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--qb-photo, none);
  background-size: cover;
  background-position: center;
  animation: qbZoom 16s ease-in-out infinite alternate;
  transform: scale(1);
}
@keyframes qbZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  .quote-band::before { animation: none; }
}
.quote-band.has-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(170deg, rgba(4, 40, 23, .9) 0%, rgba(6, 55, 31, .82) 50%, rgba(8, 92, 54, .74) 100%);
}
.quote-band.has-photo .container { position: relative; }
.quote-band.has-photo .section-eyebrow { color: var(--gold-400); }
.quote-band.has-photo .section-title { color: #fff; }
.quote-band.has-photo .quote-cite { color: rgba(255, 255, 255, .78); }
.quote-band.has-photo blockquote {
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .35);
}
.quote-band.has-photo blockquote em { font-style: normal; color: var(--gold-400); }
.quote-cite {
  display: block; margin-top: 18px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600);
}

/* ---------- Person / steward cards ---------- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  list-style: none; padding: 0; margin: 0;
}
.person-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.person-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.person-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.person-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.person-card:hover .person-media img { transform: scale(1.05); }
.person-body { padding: 22px 24px 26px; }
.person-loc {
  font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px;
}
.person-body h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.12rem; color: var(--green-950); margin-bottom: 4px;
}
.person-role { color: var(--green-700); font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
.person-body p { color: var(--muted); line-height: 1.7; font-size: .9rem; margin: 0; }

/* ---------- Level ladder (survival → contribution) ---------- */
.ladder { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-inline: auto; }
.ladder-row {
  display: grid; grid-template-columns: 70px 220px 1fr; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease;
}
.ladder-row:hover { transform: translateX(6px); border-color: var(--green-100); }
.ladder-lv {
  font-family: var(--font-head); font-weight: 800;
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-700);
  border: 1px solid var(--line);
}
.ladder-row h3 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--green-950); }
.ladder-row p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0; }

/* ---------- Vertical tabs (pillars / areas) ---------- */
.vtabs { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.vtab-list { display: flex; flex-direction: column; gap: 8px; }
.vtab-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  font-family: inherit; font-weight: 700; font-size: .93rem;
  color: var(--slate); cursor: pointer; text-align: left;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.vtab-btn .ic { width: 20px; height: 20px; color: var(--green-600); flex: none; }
.vtab-btn:hover { border-color: var(--green-100); background: var(--green-50); }
.vtab-btn.on { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.vtab-btn.on .ic { color: var(--gold-400); }
.vtab-panel {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 42px);
  min-height: 300px;
}
.vtab-panel h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: var(--green-950); margin-bottom: 12px;
}
.vtab-panel p { color: var(--slate); line-height: 1.85; margin-bottom: 16px; font-size: .95rem; }
.vtag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vtag-row span {
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--green-800);
}

/* ---------- Dark CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 11vw, 140px) 0;
  text-align: center; color: #fff;
}
.cta-band-bg, .cta-band-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.cta-band-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(4, 40, 23, .93), rgba(6, 55, 31, .86) 55%, rgba(8, 92, 54, .8));
}
.cta-band-inner { position: relative; }
.cta-band-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 3.3vw, 2.45rem);
  line-height: 1.22; letter-spacing: -.01em;
  max-width: 860px; margin: 14px auto 18px;
  text-wrap: balance;
}
.cta-band-title em { font-style: normal; color: var(--gold-400); }
.cta-band-sub { max-width: 720px; margin: 0 auto 30px; color: #D9EBDF; line-height: 1.85; }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Soft bands ---------- */
.band-soft { background: var(--cream); }
.band-green { background: var(--green-50); }

/* ---------- Scroll reveal (inner pages; needs html.js set by main.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }

/* Critical Failsafe: Never hide editorial, article, or legal post content */
.entry-content,
.entry-content *,
.legal,
.legal *,
.story-copy,
#page-content,
#legal-content,
article.section {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
  align-items: stretch;
}
.direct-inquiries-wrap {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 42px);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.direct-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: var(--green-950);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.direct-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 28px;
}
.direct-group {
  margin-bottom: 24px;
}
.direct-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.direct-val {
  font-size: 1.05rem;
  color: var(--green-800);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-block;
  word-break: break-all;
}
.direct-val:hover {
  color: var(--green-600);
  text-decoration: underline;
}
.direct-quote-box {
  margin-top: auto;
  padding: 22px 24px;
  border: 1px solid rgba(27, 122, 75, 0.22);
  border-radius: 16px;
  background: rgba(242, 250, 245, 0.65);
}
.direct-quote-box p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--green-900);
  margin: 0;
}

/* Quote philosophy block (replaces office visit text) */
.contact-quote-block {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.contact-quote-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.42rem, 2.3vw, 1.95rem);
  line-height: 1.48;
  color: var(--green-950);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.contact-quote-divider {
  width: 100%;
  height: 1px;
  background: rgba(4, 40, 23, 0.15);
  margin: 26px 0 22px;
}
.contact-quote-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}
.contact-ic {
  flex: none;
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600);
}
.contact-ic .ic { width: 22px; height: 22px; }
.contact-card h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; color: var(--green-950); margin-bottom: 4px;
}
.contact-card p { color: var(--muted); font-size: .87rem; line-height: 1.6; margin-bottom: 8px; }
.contact-card a { color: var(--green-700); font-weight: 700; font-size: .92rem; text-decoration: none; word-break: break-all; }
.contact-card a:hover { text-decoration: underline; }
.contact-form-wrap { position: relative; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.3rem; color: var(--green-950); margin-bottom: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--green-900); margin-bottom: 7px;
}
.form-field label .opt { color: var(--muted); font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit; font-size: .93rem; color: var(--green-950);
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #FBFDFC;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 123, 75, .12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; }
.form-consent input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--green-600); }
.form-consent label { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.form-submit { width: 100%; }
.form-note { margin-top: 12px; text-align: center; font-size: .78rem; color: var(--muted); }
.form-success {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  margin-bottom: 16px;
}
.success-ic svg { width: 30px; height: 30px; }
.form-success h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.3rem; color: var(--green-950); margin-bottom: 10px;
}
.form-success p { color: var(--muted); line-height: 1.75; max-width: 440px; margin: 0 auto 22px; font-size: .93rem; }
.visit-address {
  font-style: normal;
  color: var(--slate); line-height: 1.8;
  margin: 18px 0; padding-left: 16px;
  border-left: 3px solid var(--gold-400);
}
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .vtabs { grid-template-columns: 1fr; }
  .vtab-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .vtab-btn { flex: none; }
  .page-hero-inner { padding: 150px 0 70px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .ladder-row { grid-template-columns: 54px 1fr; }
  .ladder-row p { grid-column: 2; }
  .num-grid, .feat-grid, .person-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v3 — Magazine grid · Lightbox · Eco slider · Alt rows ·
         Steward slider · Background-image cards
   ============================================================ */

/* ---------- Core Programme Areas — image magazine grid ---------- */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.prog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prog-card--tall { grid-column: span 2; grid-row: span 2; }
.prog-media {
  position: relative;
  display: block;
  width: 100%;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
}
.prog-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), filter .5s ease;
}
.prog-card--tall .prog-media { min-height: 460px; }
.prog-card--tall .prog-media img { position: absolute; inset: 0; height: 100%; }
.prog-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 40, 23, .18), transparent 45%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.prog-media:hover::after,
.prog-media:focus-visible::after { opacity: 1; }
.prog-media:hover img,
.prog-media:focus-visible img { transform: scale(1.06); }
.prog-media:focus-visible { outline: 3px solid var(--gold-400); outline-offset: -3px; }
.prog-zoom {
  position: absolute; right: 14px; top: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .94);
  color: var(--green-800);
  box-shadow: 0 4px 14px rgba(4, 40, 23, .2);
  opacity: 0;
  transform: translateY(6px) scale(.9);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.prog-zoom svg { width: 18px; height: 18px; }
.prog-media:hover .prog-zoom,
.prog-media:focus-visible .prog-zoom { opacity: 1; transform: none; }
.prog-body { padding: 20px 22px 24px; }
.prog-body h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--green-950);
  margin-bottom: 8px;
}
.prog-body p { color: var(--muted); line-height: 1.7; font-size: .9rem; margin: 0; }
.prog-card--tall .prog-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px;
  background: linear-gradient(to top, rgba(4, 40, 23, .9) 0%, rgba(4, 40, 23, .55) 55%, rgba(4, 40, 23, 0) 100%);
}
.prog-card--tall .prog-body h3 { color: #fff; font-size: 1.35rem; }
.prog-card--tall .prog-body p { color: rgba(255, 255, 255, .85); font-size: .95rem; max-width: 480px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(3, 22, 13, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage { margin: 0; max-width: min(1080px, 92vw); text-align: center; }
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  display: block;
  margin-inline: auto;
  transform: scale(.96);
  transition: transform .3s ease;
}
.lightbox.open .lightbox-stage img { transform: scale(1); }
.lightbox-stage figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  letter-spacing: .04em;
}
.lightbox-close,
.lightbox-nav {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .24); transform: scale(1.06); }
.lightbox-close svg,
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; margin-top: -23px; }
.lightbox-next { right: 18px; top: 50%; margin-top: -23px; }
body.lb-open { overflow: hidden; }

/* ---------- Ecosystem initiatives slider (reference §3, full spec) ---------- */
.eco-slider {
  position: relative;
  overflow: hidden;
  background: var(--green-950);
  color: #fff;
  isolation: isolate;
}
.eco-stage {
  position: relative;
  min-height: clamp(660px, 96vh, 900px);
  display: flex;
  align-items: stretch;
}
.eco-bg { position: absolute; inset: 0; z-index: 0; }
.eco-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease, transform 8s ease;
}
.eco-bg img.is-on { opacity: 1; transform: scale(1); }
.eco-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(100deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .32) 100%);
}
.eco-content {
  position: relative; z-index: 2;
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  padding: clamp(96px, 12vh, 140px) 0 150px;
}
.eco-panel.is-on { animation: ecoIn .75s ease both; }
@keyframes ecoIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.eco-kicker {
  font-size: .74rem; font-weight: 800;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 16px;
}
.eco-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.06; letter-spacing: -.015em;
  margin-bottom: 12px;
}
.eco-tagline {
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: rgba(255, 255, 255, .88);
  margin-bottom: 18px;
}
.eco-desc {
  color: rgba(255, 255, 255, .76);
  line-height: 1.85;
  font-size: .97rem;
  max-width: 540px;
  margin-bottom: 26px;
}
.eco-cta { margin-top: 2px; }
.eco-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-content: center; }
.eco-imgcard.is-active {
  border-color: rgba(232, 169, 61, .85);
  box-shadow:
    0 0 0 2px rgba(232, 169, 61, .65),
    0 0 26px rgba(232, 169, 61, .5),
    0 0 60px rgba(232, 169, 61, .28),
    0 18px 40px rgba(0, 0, 0, .35);
}
.eco-imgcard.is-active img { transform: scale(1.05); }
.eco-imgcard {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 3 / 4.4;
  padding: 0; margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-950);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  cursor: pointer;
  color: #fff;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .45s ease;
}
.eco-imgcard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.eco-imgcard::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .18) 52%, transparent);
}
.eco-imgcard figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; text-align: left; }
.eco-imgcard-tag {
  display: block;
  font-size: .64rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 5px;
}
.eco-imgcard strong {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  color: #fff;
  font-size: 1rem; line-height: 1.3;
}
/* Hover lift only for real pointers — touch keeps taps clean (no sticky hover overflow) */
@media (hover: hover) and (pointer: fine) {
  .eco-imgcard:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(232, 169, 61, .55);
    box-shadow: 0 0 0 1px rgba(232, 169, 61, .25), 0 26px 54px rgba(0, 0, 0, .5), 0 0 34px rgba(232, 169, 61, .16);
  }
  .eco-imgcard:hover img { transform: scale(1.06); }
}
.eco-imgcard:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.eco-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
  padding-bottom: 34px;
}
.eco-arrows { display: flex; gap: 10px; }
.eco-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.eco-arrow:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.eco-arrow svg { width: 18px; height: 18px; }
.eco-progress {
  flex: 1;
  max-width: 340px;
  height: 3px;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  overflow: hidden;
}
.eco-progress span {
  display: block;
  height: 100%; width: 0;
  background: var(--gold-400);
  border-radius: 999px;
}
.eco-counter {
  margin: 0 0 0 auto;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.25rem; letter-spacing: .08em;
}
.eco-counter em {
  font-style: normal;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
  margin-left: 6px;
}
.initiatives-head { padding-bottom: 30px; }

/* ---------- Why an Ecosystem — alternating image rows (reference §4) ---------- */
.alt-rows { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 84px); margin-top: 50px; }
.alt-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.alt-row:nth-child(even) .alt-media { order: 2; }
.alt-media {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.alt-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s ease;
}
.alt-row:hover .alt-media img { transform: scale(1.045); }
.alt-media::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 52px; height: 52px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.alt-num {
  display: block;
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: 1.25rem; letter-spacing: .2em;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.alt-copy h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--green-950);
  margin-bottom: 12px;
}
.alt-copy p {
  color: var(--slate); line-height: 1.85;
  font-size: 1rem; margin: 0; max-width: 520px;
}

/* ---------- Circle of Stewards — centered card slider, side arrows ---------- */
.stew-slider {
  position: relative;
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stew-viewport {
  width: min(860px, 100%);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-950);
  box-shadow: 0 26px 60px rgba(4, 40, 23, .22);
}
.stew-track {
  position: relative;
  display: flex;
  touch-action: pan-y;
  cursor: grab;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.stew-track.is-dragging { cursor: grabbing; }
.stew-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  user-select: none;
}
.stew-slide img {
  width: 100%;
  height: clamp(430px, 58vh, 540px);
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.stew-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 40, 23, .92) 0%, rgba(4, 40, 23, .45) 48%, rgba(4, 40, 23, .05) 78%);
  pointer-events: none;
}
.stew-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 4vw, 40px);
  color: #fff;
  pointer-events: none;
}
.stew-loc {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.stew-copy h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}
.stew-role {
  font-family: var(--font-head); font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 10px;
}
.stew-desc {
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
  max-width: 620px;
  font-size: .93rem;
  margin: 0;
}
.stew-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px; height: 50px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-800);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.stew-arrow:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 14px 30px rgba(4, 40, 23, .28);
}
.stew-arrow:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.stew-arrow svg { width: 20px; height: 20px; }
.stew-prev { left: clamp(2px, 1.2vw, 22px); }
.stew-next { right: clamp(2px, 1.2vw, 22px); }

/* ---------- Golden Circle cards with background images (reference §2) ---------- */
.gc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.gc-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  border: 1px solid rgba(4, 40, 23, 0.12);
  min-height: 400px;
  padding: 42px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  /* background: var(--green-950, #042817); */
  box-shadow: 0 10px 28px rgba(4, 40, 23, 0.12);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.gc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 169, 61, 0.6);
  box-shadow: 0 22px 50px rgba(4, 40, 23, 0.28);
}
.gc-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
  filter: brightness(0.95);
  
}
.gc-card:hover .gc-bg { transform: scale(1.08); }
.gc-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(93, 93, 93, 0.39) 0%, rgba(59, 59, 59, 0.9) 55%, rgba(5, 5, 5, 0.96) 100%);
  transition: background .4s ease;
}
.gc-card:hover .gc-veil {
  /* background: linear-gradient(180deg, rgba(3, 34, 19, 0.70) 0%, rgba(3, 28, 16, 0.85) 55%, rgba(2, 20, 11, 0.94) 100%); */
}
.gc-word {
  font-family: var(--font-head); font-weight: 300;
  font-size: 0.9rem; letter-spacing: .12em;
  font-style: italic;
  color: var(--gold-400, #E8A93D);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.gc-card h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(232, 169, 61, 0.35);
  width: 100%; max-width: 200px;
}
.gc-card p {
  color: rgba(235, 245, 238, 0.9);
  line-height: 1.8;
  font-size: .96rem;
  margin: 0;
}

/* ---------- v3 responsive ---------- */
@media (max-width: 980px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-grid { grid-template-columns: 1fr; }
  .gc-card { min-height: 320px; }
  .eco-stage { min-height: 0; }
  .eco-content { grid-template-columns: 1fr; gap: 42px; padding: 96px 0 150px; align-items: start; }
  .eco-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .eco-cards::-webkit-scrollbar { display: none; }
  .eco-imgcard { flex: 0 0 58%; scroll-snap-align: start; }
  /* the rail clips anything outside its box — keep cards flat and the glow tight */
  .eco-imgcard:hover,
  .eco-imgcard.is-active { transform: none; }
  .eco-imgcard:hover img { transform: none; }
  .eco-imgcard.is-active {
    box-shadow:
      0 0 0 2px rgba(232, 169, 61, .65),
      0 0 14px rgba(232, 169, 61, .35),
      0 10px 22px rgba(0, 0, 0, .35);
  }
}
@media (max-width: 760px) {
  .alt-row { grid-template-columns: 1fr; gap: 18px; }
  .alt-row:nth-child(even) .alt-media { order: 0; }
}
@media (max-width: 640px) {
  .prog-grid { grid-template-columns: 1fr; }
  .prog-card--tall { grid-column: auto; grid-row: auto; }
  .prog-card--tall .prog-media { min-height: 400px; }
  .eco-imgcard { flex-basis: 68%; }
  .eco-controls { gap: 14px; padding-bottom: 26px; }
  .eco-counter { font-size: 1rem; }
  .eco-desc { font-size: .92rem; }
  .stew-viewport { width: 100%; }
  .stew-slide img { height: 460px; }
  .stew-arrow { width: 42px; height: 42px; background: rgba(255, 255, 255, .94); }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   Purpose Slider (Framework page left-side text slider)
   ============================================================ */
.purpose-slider-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.purpose-slider-stage {
  position: relative;
  padding: 0 54px;
}
.purpose-slider-viewport {
  overflow: hidden;
  width: 100%;
}
.purpose-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}
.purpose-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.25;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.purpose-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.purpose-static-head {
  margin-bottom: 16px;
  padding-left: 54px;
}
.purpose-static-head .section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-800);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(4, 40, 23, .14);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(4, 40, 23, 0.04);
}
.purpose-slide-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  line-height: 1.22;
  color: var(--green-950);
  margin-top: 4px;
  margin-bottom: 16px;
}
.purpose-slide p {
  color: var(--slate);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: .97rem;
}
.purpose-slide p:last-child {
  margin-bottom: 0;
}
.purpose-slide strong {
  color: var(--green-900);
  font-weight: 700;
}
.purpose-arrow {
  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(4, 40, 23, 0.08);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
  z-index: 4;
}
.purpose-arrow:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 24px rgba(4, 40, 23, 0.2);
}
.purpose-arrow:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}
.purpose-arrow svg {
  width: 20px;
  height: 20px;
}
.purpose-prev {
  left: 0;
}
.purpose-next {
  right: 0;
}
.purpose-nav-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-left: 54px;
}
.purpose-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.purpose-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(4, 40, 23, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .25s ease;
}
.purpose-dot:hover {
  background: var(--green-600);
}
.purpose-dot.is-active {
  width: 24px;
  border-radius: 6px;
  background: var(--green-700);
}
.purpose-counter {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--green-800);
  opacity: .8;
}

@media (max-width: 640px) {
  .purpose-static-head {
    padding-left: 40px;
  }
  .purpose-slider-stage {
    padding: 0 40px;
  }
  .purpose-arrow {
    width: 36px;
    height: 36px;
  }
  .purpose-arrow svg {
    width: 16px;
    height: 16px;
  }
  .purpose-nav-bottom {
    padding-left: 40px;
  }
}

/* ============================================================
   Dimension Numbered Cards (6 cards, Ishan Foundation section 5 style)
   ============================================================ */
.dim-num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dim-num-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 2px 10px rgba(4, 40, 23, 0.03);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}
.dim-num-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(4, 40, 23, 0.08);
  border-color: rgba(27, 122, 75, 0.28);
}
.dim-num-val {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-600);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.dim-num-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-950);
  margin-bottom: 10px;
}
.dim-num-card p {
  color: var(--slate);
  line-height: 1.7;
  font-size: .92rem;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 980px) {
  .dim-num-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 640px) {
  .dim-num-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dim-num-card {
    padding: 26px 22px;
  }
}

/* ============================================================
   Legal / policy pages (privacy-policy — privacy, terms, accessibility)
   ============================================================ */
.legal { max-width: 880px; margin-inline: auto; }
.legal h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--green-950);
  margin: 42px 0 14px; padding-top: 20px; border-top: 1px solid var(--line);
  scroll-margin-top: 104px;
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--green-950); margin: 24px 0 8px;
}
.legal p { color: var(--slate); line-height: 1.85; margin: 0 0 16px; font-size: .97rem; }
.legal p:last-child { margin-bottom: 0; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; color: var(--slate); line-height: 1.85; font-size: .97rem; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--green-900); }
.legal a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-600); }
section[id] { scroll-margin-top: 104px; }

/* ============================================================
   Programme Photo Gallery & Showcase (Single Programme)
   ============================================================ */
.programme-gallery-section {
  background: var(--cream, #F8F5EC);
  border-top: 1px solid var(--line);
  padding: 80px 0;
}

.programme-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.programme-gallery-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(4, 40, 23, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.programme-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(4, 40, 23, 0.12);
  border-color: rgba(27, 122, 75, 0.32);
}

.programme-gallery-trigger {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.programme-gallery-trigger:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: -3px;
  border-radius: var(--radius-lg, 24px);
}

.programme-gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #E8EFEA;
}

.programme-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.programme-gallery-card:hover .programme-gallery-thumb img {
  transform: scale(1.07);
}

.programme-gallery-hover-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 40, 23, 0.05) 0%, rgba(4, 40, 23, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
}

.programme-gallery-card:hover .programme-gallery-hover-veil {
  opacity: 1;
}

.programme-gallery-zoom-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-950);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-8px) scale(0.85);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.programme-gallery-card:hover .programme-gallery-zoom-badge {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.programme-gallery-badge-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.programme-gallery-card-caption {
  padding: 14px 20px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate);
  background: #ffffff;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================================
   Accessible Lightbox Modal
   ============================================================ */
.wbf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wbf-lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.wbf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 40, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.wbf-lightbox-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wbf-lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wbf-lightbox-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--green-950);
  transform: scale(1.1);
}

.wbf-lightbox-btn:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.wbf-lightbox-btn.close {
  top: -56px;
  right: 0;
}

.wbf-lightbox-btn.nav-prev {
  left: -68px;
  top: 50%;
  transform: translateY(-50%);
}

.wbf-lightbox-btn.nav-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.wbf-lightbox-btn.nav-next {
  right: -68px;
  top: 50%;
  transform: translateY(-50%);
}

.wbf-lightbox-btn.nav-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.wbf-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.wbf-lightbox-stage img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: wbfZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wbfZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wbf-lightbox-meta {
  margin-top: 18px;
  text-align: center;
  max-width: 760px;
}

.wbf-lightbox-meta-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.wbf-lightbox-meta-caption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 8px;
}

.wbf-lightbox-meta-count {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .programme-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .wbf-lightbox-btn.nav-prev {
    left: 10px;
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .wbf-lightbox-btn.nav-prev:hover {
    transform: scale(1.1);
  }
  .wbf-lightbox-btn.nav-next {
    right: 10px;
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .wbf-lightbox-btn.nav-next:hover {
    transform: scale(1.1);
  }
  .wbf-lightbox-btn.close {
    top: -50px;
    right: 10px;
  }
}

@media (max-width: 600px) {
  .programme-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .programme-gallery-section {
    padding: 60px 0;
  }
  .wbf-lightbox-stage img {
    max-height: 60vh;
    border-radius: 12px;
  }
}

/* ============================================================
   Strategic Partners Showcase Grid & Single Profile
   ============================================================ */
.partner-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.partner-showcase-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 24px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(4, 40, 23, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(4, 40, 23, 0.12);
  border-color: rgba(27, 122, 75, 0.32);
}

.partner-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.partner-card-logo-frame {
  height: 60px;
  max-width: 160px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.partner-card-logo-frame img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.partner-showcase-card:hover .partner-card-logo-frame img {
  transform: scale(1.05);
}

.partner-fallback-initials {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-50, #EFF7F2);
  color: var(--green-800);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 137, 90, 0.2);
}

.partner-tag {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-50, #EFF7F2);
  color: var(--green-800);
  border: 1px solid rgba(16, 137, 90, 0.18);
  white-space: nowrap;
}

.partner-card-body {
  flex-grow: 1;
}

.partner-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-950);
  margin-bottom: 10px;
}

.partner-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.partner-title a:hover {
  color: var(--green-600);
}

.partner-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
}

.partner-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.partner-link-profile {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.partner-link-profile:hover {
  color: var(--gold-600);
  gap: 10px;
}

.partner-link-web {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-50, #EFF7F2);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.partner-link-web:hover {
  background: var(--green-700);
  color: #ffffff;
}

/* Single Partner Profile Page */
.partner-meta-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--green-950);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 8px;
}

.partner-meta-pill-outline {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
}

.partner-profile-section {
  padding: 80px 0;
}

.partner-identity-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 24px);
  padding: 34px 28px;
  box-shadow: 0 10px 30px rgba(4, 40, 23, 0.08);
  position: sticky;
  top: 110px;
}

.partner-profile-logo-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 22px;
  box-shadow: inset 0 2px 6px rgba(4, 40, 23, 0.02);
}

.partner-profile-logo-img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.partner-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-950);
  margin-bottom: 18px;
  text-align: center;
}

.partner-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px solid var(--line);
}

.partner-info-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  gap: 12px;
}

.info-label {
  color: var(--muted);
  font-weight: 500;
}

.info-val {
  color: var(--green-950);
  font-weight: 700;
  text-align: right;
}

.info-val a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  margin-right: 4px;
}

@media (max-width: 768px) {
  .partner-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .partner-identity-card {
    position: static;
    margin-top: 36px;
  }
}

