/* =========================================================
   Selina Kingalame Foundation — Design System
   Display: Fraunces (warm editorial serif)
   Body/UI: Manrope (clean geometric sans)
   ========================================================= */

:root{
  --navy: #163350;
  --navy-deep: #0b1f33;
  --sage: #7c9a4a;
  --sage-deep: #536e2c;
  --sage-pale: #eef2e4;
  --gold: #d7a13b;
  --gold-deep: #b8842a;
  --cream: rgb(238 250 250 / 92%);
  --paper: #ffffff;
  --ink: #16324a;
  --ink-soft: #5b6b78;
  --line: #f6f7f9;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 18px 40px -22px rgba(11,31,51,0.28);
}
/* ---------- media / video ---------- */
.story-media video{ width:100%; height:100%; object-fit:cover; display:block; }


*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.12;
  font-weight: 600;
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- eyebrow / bookmark tag (signature element) ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
  position: relative;
  padding-left: 22px;
}
.eyebrow::before{
  content:"";
  position:absolute;
  left:0; top:50%;
  width:14px; height:14px;
  transform: translateY(-50%);
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary{ background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover{ background: var(--gold-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline{ background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover{ background: rgba(255,255,255,.12); border-color:#fff; }
.btn-ghost{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover{ background: var(--navy); color:#fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgb(238 250 250 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 46px; width:auto; }
.brand-text{ display:none; }

.nav-links{ display:flex; align-items:center; gap: 30px; }
.nav-links a{
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:2px; background: var(--sage);
  transition: width .2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ width:100%; }
.nav-links a[aria-current="page"]{ color: var(--sage-deep); }
.nav-cta-inline{ display:none; }

.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-cta .btn{ padding: 10px 22px; font-size: .85rem; }
.nav-toggle{
  display:none;
  position:relative; z-index:210;
  background:none; border:none; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center;
  gap:5px; width:44px; height:44px; padding:6px;
  border-radius:10px;
}
.nav-toggle:hover{ background: rgba(22,50,74,.06); }
.nav-toggle span{
  width:22px; height:2px; background: var(--navy); display:block;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }



@media (max-width: 920px){
  .brand-text{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-scrim{ display:block; }

  /* FIX: Ensure sidebar panel fills full height and sits properly fixed */
  .nav-links{
    position: fixed; 
    top: 0; 
    right: 0; 
    width: min(320px, 85vw);
    height: 100vh;           /* Forces full screen height */
    height: 100dvh;          /* Supports modern mobile browser viewports */
    z-index: 200;
    
    background: var(--paper, #fff);
    box-shadow: -10px 0 30px rgba(11,31,51,.25);
    
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    
    padding: 80px 20px 30px; /* Space top for header/toggle */
    
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;        /* Allows scrolling through links */
  }

  /* Slide in drawer when opened */
  .nav-links.open{ 
    transform: translateX(0); 
  }

  .nav-links::before{
    content: "All pages";
    display: block;
    font-family: var(--font-body);
    font-size: .74rem; 
    font-weight: 800; 
    letter-spacing: .12em; 
    text-transform: uppercase;
    color: var(--ink-soft, #666);
    padding: 0 14px 10px;
  }

  .nav-links a{
    display: flex; 
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    background: transparent;
  }
  
  .nav-links a::after{ display: none; }
  .nav-links a:hover{ background: var(--sage-pale); }
  
  .nav-links a[aria-current="page"]{
    background: var(--sage-pale);
    color: var(--sage-deep);
  }

  .nav-cta{ display: none; }

  .nav-links a.nav-cta-inline{
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: auto;
    margin: 18px 14px 0;
    padding: 12px 22px;
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 700;
    border-radius: 999px;
  }
  
  .nav-links a.nav-cta-inline:hover{ 
    background: var(--gold-deep); 
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  min-height: 78vh;
  display:flex; align-items:flex-end;
  color:#fff;
  overflow:hidden;
  z-index: 1;
   background: linear-gradient(180deg, rgba(11,31,51,.35), rgba(11,31,51,.85)),
              linear-gradient(120deg, var(--navy-deep), var(--sage-deep));
}
/* Ensure hero is relative so background layers absolute correctly */



/* Background container */
.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* MUST be 0 (or higher), NOT -1 */
}

/* Base style for each slide */
.hero-bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Start positioned off-screen to the right */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

/* Active slide stays centered */
.hero-bg-slider .slide.active {
  transform: translateX(0);
  opacity: 1;
}

/* Slide exiting moves out to the left */
.hero-bg-slider .slide.exit {
  transform: translateX(-100%);
  opacity: 0;
}

/* Optional overlay so text remains easy to read */
.hero-bg-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Overlay gradient to keep text readable over the images */
  background: linear-gradient(180deg, rgba(11,31,51,.35), rgba(11,31,51,.85));
}
/* NEW: Light Rays Container Fix */
.side-rays-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important; /* Blends rays over hero background images */
  overflow: hidden;
}

.side-rays-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero-inner{
  position: relative;
  z-index: 3;
  padding: 90px 28px 64px;
  max-width: var(--container);
  margin: 0 auto;
  width:100%;
}
.hero .eyebrow{ color: var(--gold); }
.hero .eyebrow::before{ background:#fff; }
.hero h1{
  color:#fff;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  max-width: 15ch;
  margin-bottom: .3em;
}
.hero p.lead{
  color: rgba(255,255,255,.86);
  font-size: 1.18rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-path{
  position:absolute; inset:0; z-index:1; opacity:.5;
  background-image: radial-gradient(circle at 15% 25%, rgba(255,255,255,.10) 0, transparent 40%),
                     radial-gradient(circle at 85% 15%, rgba(215,161,59,.18) 0, transparent 45%);
}

.page-hero{
  min-height: 46vh;
  align-items:center;
}
.page-hero .hero-inner{ padding: 74px 28px; }
.page-hero h1{ font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section{ padding: 84px 0; }
.section-tight{ padding: 56px 0; }
.section-navy{ background: var(--navy-deep); color:#fff; }
.section-navy h2, .section-navy h3{ color:#fff; }
.section-sage{ background: var(--sage-pale); }
.section-header{ max-width: 62ch; margin-bottom: 44px; }
.section-header.center{ margin-left:auto; margin-right:auto; text-align:center; }
h2{ font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-header p{ color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- about snapshot / two-col ---------- */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items:center;
}
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } }

.frame-photo{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  transform: perspective(900px);
  transition: box-shadow .3s ease;
  will-change: transform;
}
.frame-photo img{ display:block; width:100%; height:100%; object-fit:cover; }
.frame-photo:hover{ box-shadow: 0 26px 54px -22px rgba(11,31,51,0.38); }
/* soft gradient accent peeking out behind the framed photo */
.split > div:has(> .frame-photo){ position:relative; }
.split > div:has(> .frame-photo)::before{
  content:"";
  position:absolute;
  width:80%; height:80%;
  right:-22px; bottom:-22px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--sage) 100%);
  border-radius: var(--radius);
  opacity:.16;
  z-index:0;
}
.split.reverse > div:has(> .frame-photo)::before{ right:auto; left:-22px; }
.split .frame-photo{ position:relative; z-index:1; }
.frame-photo::after{
  content:"";
  position:absolute; inset:0;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  pointer-events:none;
}
.stat-chip{
  position:absolute; bottom: -22px; right: -18px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 16px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  text-align:center;
  min-width: 120px;
}
.stat-chip strong{ display:block; font-size: 1.9rem; line-height:1; }
.stat-chip span{ font-family: var(--font-body); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; }

/* ---------- focus area / portfolio grid ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
@media (max-width: 900px){ .grid-3{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.tile{
  position:relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.tile-icon{
  width: 52px; height:52px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: var(--sage-pale); color: var(--sage-deep);
  margin-bottom: 18px;
}
.tile-icon svg{ width:26px; height:26px; }
.tile h3{ font-size: 1.24rem; margin-bottom: 8px; }
.tile p{ color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }
.tile .tag{
  position:absolute; top:18px; right:18px;
  width:26px; height:26px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
  opacity:0;
  transition: opacity .2s ease;
}
.tile:hover .tag{ opacity:1; }

/* ---------- quote banner ---------- */
.quote-banner{
  background: var(--sage-deep);
  color:#fff;
  padding: 70px 0;
  position:relative;
  overflow:hidden;
}
.quote-banner blockquote{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  max-width: 46ch;
  margin: 0 auto 20px;
  text-align:center;
  line-height:1.4;
}
.quote-banner cite{
  display:block; text-align:center;
  font-style:normal; font-weight:700;
  font-size:.9rem; letter-spacing:.04em;
  color: rgba(255,255,255,.85);
}
.quote-icon{
  width:44px;height:44px;margin:0 auto 18px;display:block;
  color: rgba(255,255,255,.55);
}

/* ---------- growth path divider (signature, used for sequences only) ---------- */
.growth-path{
  display:flex; align-items:center; justify-content:space-between;
  gap: 8px; margin: 46px 0 10px; position:relative;
}
.growth-path::before{
  content:"";
  position:absolute; left:24px; right:24px; top:24px;
  height:2px;
  background-image: linear-gradient(90deg, var(--sage) 60%, transparent 40%);
  background-size: 14px 2px;
  z-index:0;
}
.growth-step{ position:relative; z-index:1; text-align:center; flex:1; }
.growth-step .num{
  width:48px; height:48px; border-radius:50%;
  background: var(--paper); border: 2px solid var(--sage);
  color: var(--sage-deep); font-family: var(--font-display); font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 12px; font-size: 1.1rem;
}
.growth-step h4{ font-size: 1rem; margin-bottom: 6px; }
.growth-step p{ font-size:.86rem; color: var(--ink-soft); }
@media (max-width: 760px){
  .growth-path{ flex-direction:column; align-items:stretch; }
  .growth-path::before{ display:none; }
  .growth-step{ display:flex; gap:16px; text-align:left; align-items:flex-start; margin-bottom: 22px;}
  .growth-step .num{ margin:0; flex-shrink:0; }
}

/* ---------- stats band ---------- */
.stats-band{
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; text-align:center;
}
@media (max-width: 760px){ .stats-band{ grid-template-columns: repeat(2,1fr); } }
.stat{ padding: 10px; }
.stat strong{
  display:block; font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold);
}
.stat span{ font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; color: rgba(255,255,255,.75); font-weight:700; }

/* ---------- story / card list ---------- */
.story-card{
  background: var(--paper);
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease;
  display:flex; flex-direction:column;
}
.story-card:hover{ box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.story-media{ position:relative; aspect-ratio: 16/10; overflow:hidden; background: var(--sage-pale); }
.story-media img{ width:100%; height:100%; object-fit:cover; }
.story-badge{
  position:absolute; top:14px; left:14px;
  background: var(--navy-deep); color:#fff;
  font-size:.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding: 6px 12px; border-radius:999px;
}
.story-body{ padding: 20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.story-body h3{ font-size: 1.14rem; margin-bottom:8px; }
.story-body p{ color: var(--ink-soft); font-size:.92rem; flex:1; }
.story-link{ font-weight:700; font-size:.86rem; color: var(--sage-deep); margin-top:6px; }
.story-link::after{ content:" →"; }

.story-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .story-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .story-grid{ grid-template-columns: 1fr; } }

/* ---------- values / list rows ---------- */
.value-row{
  display:flex; gap:20px; padding: 22px 0; border-top:1px solid var(--line);
}
.value-row:last-child{ border-bottom:1px solid var(--line); }
.value-num{ font-family: var(--font-display); color: var(--sage); font-size:1.3rem; width:44px; flex-shrink:0; }
.value-row h4{ margin-bottom:4px; font-size:1.08rem; }
.value-row p{ color: var(--ink-soft); margin:0; font-size:.94rem; }

/* ---------- accordion (about/work pages) ---------- */
.accordion-item{ border-top: 1px solid var(--line); }
.accordion-item:last-child{ border-bottom: 1px solid var(--line); }
.accordion-trigger{
  width:100%; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  padding: 20px 4px; font-family: var(--font-display);
  font-size: 1.12rem; color: var(--navy); text-align:left;
}
.accordion-trigger .plus{
  width:26px; height:26px; border-radius:50%; border:1.5px solid var(--sage);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-left:16px;
  position:relative;
}
.accordion-trigger .plus::before,.accordion-trigger .plus::after{
  content:""; position:absolute; background: var(--sage-deep);
}
.accordion-trigger .plus::before{ width:10px; height:2px; }
.accordion-trigger .plus::after{ width:2px; height:10px; transition: transform .2s ease; }
.accordion-item.open .accordion-trigger .plus::after{ transform: rotate(90deg); scale: 0; }
.accordion-panel{
  max-height:0; overflow:hidden; transition: max-height .3s ease;
}
.accordion-panel-inner{ padding: 0 4px 22px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- pill tabs (insights/media) ---------- */
.tab-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 34px; }
.tab-btn{
  padding: 9px 20px; border-radius:999px; border:1.5px solid var(--line);
  background: var(--paper); font-weight:700; font-size:.86rem; cursor:pointer;
  color: var(--ink-soft); transition: all .18s ease;
}
.tab-btn.active, .tab-btn:hover{ background: var(--sage); border-color: var(--sage); color:#fff; }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--navy);
  color:#fff;
  border-radius: 22px;
  padding: 54px 44px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position: relative;
  overflow:hidden;
}
.cta-banner::before{
  content:"";
  position:absolute; right:-60px; top:-60px; width:220px; height:220px;
  border-radius:50%; background: rgba(215,161,59,.18);
}
.cta-banner h2{ color:#fff; margin-bottom:6px; font-size: clamp(1.5rem,3vw,2.1rem); }
.cta-banner p{ color: rgba(255,255,255,.78); margin:0; max-width:44ch; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; position:relative; z-index:2; }

/* ---------- contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: .95fr 1.05fr; gap: 50px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-card{
  background: var(--navy-deep); color:#fff; border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info-card h3{ color:#fff; }
.contact-line{ display:flex; gap:14px; padding: 16px 0; border-top:1px solid rgba(255,255,255,.14); }
.contact-line:first-of-type{ border-top:none; }
.contact-line .ico{ width:22px;height:22px; flex-shrink:0; margin-top:2px; color: var(--gold); }
.contact-line strong{ display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color: rgba(255,255,255,.6); margin-bottom:3px; }
.social-row{ display:flex; gap:10px; margin-top:26px; }
.social-row a{
  width:38px;height:38px;border-radius:50%; background: rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; transition: background .2s ease;
}
.social-row a:hover{ background: var(--gold); color: var(--navy-deep); }
.social-row svg{ width:17px; height:17px; }

.form-card{ background: var(--paper); border-radius: var(--radius); padding: 40px 34px; border:1px solid var(--line); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size:.82rem; font-weight:700; color: var(--navy); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding: 12px 14px; border-radius:10px; border:1.5px solid var(--line);
  font-family: var(--font-body); font-size:.95rem; background: var(--cream);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--sage); outline:none; }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:.82rem; color: var(--ink-soft); margin-top: 14px; }
.map-embed{ border-radius: var(--radius); overflow:hidden; margin-top: 30px; border:1px solid var(--line); }
.map-embed iframe{ width:100%; height:280px; border:0; display:block; }

/* ---------- newsletter strip ---------- */
.newsletter-strip{
  background: var(--sage-pale); border-radius: var(--radius);
  padding: 34px 36px; display:flex; align-items:center; justify-content:space-between;
  gap: 24px; flex-wrap:wrap;
}
.newsletter-strip form{ display:flex; gap:10px; flex-wrap:wrap; }
.newsletter-strip input[type="email"]{
  padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  min-width: 240px; font-family: var(--font-body);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 64px 0 26px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand img{ height:44px; margin-bottom: 14px; }
.footer-brand p{ font-size:.9rem; color: rgba(255,255,255,.62); max-width: 34ch; }
.footer-col h5{
  color:#fff; font-family: var(--font-body); font-size:.78rem;
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px;
}
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ font-size:.92rem; color: rgba(255,255,255,.72); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap: 12px; padding-top: 22px; font-size:.82rem; color: rgba(255,255,255,.5);
}
.footer-bottom .social-row a{ width:34px; height:34px; }
.footer-bottom .footer-credit{ color: rgba(255,255,255,.5); }
.footer-bottom .footer-credit a{ color: rgba(255,255,255,.72); font-weight:600; letter-spacing:.02em; }
.footer-bottom .footer-credit a:hover{ color: var(--gold); }

/* ---------- back to top ---------- */
.back-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height:46px; border-radius:50%;
  background: var(--gold); color: var(--navy-deep);
  display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer; box-shadow: var(--shadow-soft);
  opacity:0; pointer-events:none; transform: translateY(10px);
  transition: all .25s ease;
}
.back-top.show{ opacity:1; pointer-events:auto; transform:none; }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* ---------- illustrated photo-tile placeholders (no stock photography) ---------- */
.photo-tile{
  position:relative; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background-size: 14px 14px;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.4px);
}
.photo-tile svg{ width: 34%; max-width:120px; color: rgba(255,255,255,.92); }
.photo-tile.tone-navy{ background-color: var(--navy); }
.photo-tile.tone-sage{ background-color: var(--sage-deep); }
.photo-tile.tone-gold{ background-color: var(--gold-deep); }
.photo-tile.tone-navy2{ background-color: var(--navy-deep); }
.photo-tile.tone-sagelight{ background-color: var(--sage); }

/* ---------- breadcrumb ---------- */
.breadcrumb{ font-size:.82rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a{ color: rgba(255,255,255,.7); }
.breadcrumb a:hover{ color:#fff; }

a.tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.tile-link:hover {
  transform: translateY(-3px);
}

.link-label {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-color, #0056b3);
}


/* ==========================================
   Voices Section Base Layout
   ========================================== */
/* Layout & Container */
.voices_wrapper {
  padding: 50px 0;
  background-color: #04253f;
  color: #ffffff;
}

.voices_wrapper .white-text {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

/* Horizontal Row with Side Arrows */
.voices-carousel-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 15px;
}

.voices-slider-content {
  flex: 1;
  min-width: 0; /* Prevents overflow */
}

/* Slide Display Rules */
.voices-single-slider {
  position: relative;
  width: 100%;
}

.voice-slide {
  display: none; /* Hide all slides by default */
  text-align: center;
  outline: none;
  animation: fadeIn 0.4s ease-in-out;
}

.voice-slide.active {
  display: block !important; /* Show only the active slide */
}

/* Smooth Fade Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slide Element Styling */
.voice-slide {
  text-align: center;
  outline: none;
}

.voice-img-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.voice-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  background-color: #989d9e;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.by-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
  color: #f0a500;
}

/* Side Arrow Buttons */
.voice-arrow {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* Click Reliability & Layering Fixes */
  position: relative;
  z-index: 100;
  pointer-events: auto;
  user-select: none;
  outline: none;
  transition: all 0.3s ease;
}

.voice-arrow:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.voice-arrow:active {
  transform: scale(0.92);
}

/* Dots Styling */
.voices_wrapper .slick-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  gap: 8px;
}

.voices_wrapper .slick-dots li button {
  font-size: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.voices_wrapper .slick-dots li.slick-active button {
  background: #ffffff;
  width: 22px;
  border-radius: 5px;
}

/* ==========================================
   Founder & Leadership banner
   (uses .section-navy for background/colour — this block only
   adds the layout + the pieces that are specific to this section)
   ========================================== */
.leader-section .eyebrow{ color: var(--gold); }
.leader-section .eyebrow::before{ background: var(--gold); }

.leader-banner-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 768px) {
  .leader-banner-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 32px;
  }
}

/* Image — same framed-photo language as the "About snapshot" section,
   adapted for a dark background */
.leader-img-container {
  position: relative;
  width: 100%;
  max-width: 240px;
}

.leader-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.leader-badge {
  position: absolute;
  bottom: -18px;
  right: -14px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  text-align: center;
  min-width: 96px;
}
.leader-badge strong{ display:block; font-size: 1.15rem; line-height:1; }
.leader-badge span{ font-family: var(--font-body); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

@media (max-width: 768px) {
  .leader-badge{ right: 50%; transform: translateX(50%); }
}

/* Content */
.leader-content { max-width: 62ch; }

.leader-title {
  color: #fff;
  margin-bottom: 4px;
}

.leader-role {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  color: var(--gold);
  margin: 0 0 18px;
}

.leader-bio,
.leader-mission {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.leader-bio strong,
.leader-mission strong {
  color: #fff;
}

.leader-content .btn{ margin-top: 8px; }

/* ==========================================
   Founder Section Styling
   ========================================== */

:root {
  --primary-color: #2e7d32;
  --accent-color: #4caf50;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --bg-light: #f9fafb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

.mf-founder-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mf-founder-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Eyebrow Header */
.mf-founder-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mf-founder-eyebrow-line {
  height: 2px;
  width: 40px;
  background-color: var(--accent-color);
}

.mf-founder-eyebrow-text {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
}

/* Heading */
.mf-founder-heading {
  text-align: center;
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 40px;
  font-weight: 800;
}

.mf-founder-heading-accent {
  color: var(--primary-color);
}

/* Main Card */
.mf-founder-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

@media (min-width: 868px) {
  .mf-founder-card {
    flex-direction: row;
  }
}

/* Left Column */
.mf-founder-left {
  position: relative;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 280px;
}

.mf-founder-portrait-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  margin-bottom: 16px;
  z-index: 2;
}

.mf-founder-portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mf-founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  z-index: 2;
}

.mf-founder-role-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
  z-index: 2;
}

/* Decorative Arcs */
.mf-founder-left-arc, .mf-founder-left-arc2 {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.mf-founder-left-arc {
  width: 220px;
  height: 220px;
  top: -40px;
  left: -40px;
}

.mf-founder-left-arc2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
}

/* Right Column */
.mf-founder-right {
  position: relative;
  padding: 40px;
  flex: 1;
}

.mf-founder-quote-mark {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 6rem;
  color: #f3f4f6;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.mf-founder-para {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.mf-founder-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.mf-founder-callout p {
  margin: 0;
  color: #166534;
  font-size: 1.05rem;
  font-style: italic;
}

/* Footer & Buttons */
.mf-founder-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .mf-founder-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.mf-founder-sig {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-founder-sig-avatar {
  width: 44px;
  height: 44px;
}

.mf-founder-sig-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.mf-founder-sig-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mf-founder-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mf-founder-btn, .mf-founder-btn-outline {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mf-founder-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
}

.mf-founder-btn:hover {
  background-color: #1b4332;
}

.mf-founder-btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.mf-founder-btn-outline:hover {
  background-color: #f0fdf4;
}

/* Modal Overlay & Card */
.mf-founder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99999;
  padding: 20px;
}

.mf-founder-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mf-founder-modal {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mf-founder-overlay.open .mf-founder-modal {
  transform: translateY(0);
}

.mf-founder-modal h3 {
  margin-top: 0;
  color: var(--text-dark);
  font-size: 1.5rem;
  padding-right: 30px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.mf-founder-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mf-founder-modal-close:hover {
  color: #000000;
}

.mf-founder-modal-content {
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 15px;
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.mf-founder-modal-content p {
  margin-bottom: 14px;
}

.mf-modal-signoff {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  color: var(--text-dark);
}



/* ==========================================
   Donation Form Styling
   ========================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.donation-container {
  display: flex;
  flex-direction: row;
  max-width: 900px;
  width: 100%;
  margin: 40px auto;        /* ← added */
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Left Section */
.campaign-section {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #e0e0e0;
}

/* before */
.campaign-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* after */
.campaign-image {
  flex: 1;
  width: 100%;
  min-height: 160px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.campaign-logo {
  max-height: 40px;
  width: auto;
}

.campaign-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}

.campaign-text a {
  color: #0056b3;
  text-decoration: underline;
}

.campaign-links {
  margin-top: 16px;
  font-size: 12px;
  color: #666666;
}

.campaign-links a {
  color: #666666;
  text-decoration: none;
}

.campaign-links a:hover {
  text-decoration: underline;
}

/* Right Section */
.form-section {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
}

.shield-icon {
  color: #2e7d32;
}

.form-header h2 {
  font-size: 20px;
  font-weight: 600;
}

/* Frequencies */
.frequencies {
  display: flex;
  background: #f0f2f5;
  border: none;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.frequency-option {
  flex: 1;
  position: relative;
}

.frequency-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.frequency-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  color: #555;
}

.frequency-option input:checked + label {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.frequency-option label svg {
  color: #d81b60;
}

/* Preset Amounts */
.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: none;
}

.amount-btn {
  position: relative;
}

.amount-btn input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.amount-btn label {
  display: block;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
}

.amount-btn input:checked + label {
  border-color: #000000;
  background: #f8f9fa;
  box-shadow: inset 0 0 0 1px #000000;
}

/* Input Wrapper */
.price-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 12px;
}

.amount-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  width: 100%;
}

.currency-select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #555555;
  outline: none;
  cursor: pointer;
}

/* Buttons */
.form-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}


.btn-gpay {
  background: #000000;
  color: #ffffff;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .donation-container {
    flex-direction: column;
  }
  .campaign-section {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  .campaign-image {          /* ← added */
    flex: none;
    height: 200px;
  }
}

/* Mobile Money Button Styling */
.btn-mobile-money {
  background: #16a34a; /* Vibrant Green */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-mobile-money:hover {
  background: #15803d;
}

.btn-mobile-money .phone-icon {
  flex-shrink: 0;
}

.provider-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}



.provider-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 440px;
  padding: 30px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
}

.modal-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.modal-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 20px;
}

/* Form Styles Inside Modal */
.modal-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0 6px;
  color: #334155;
}

.modal-content select, 
.modal-content input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.phone-input-group {
  display: flex;
  align-items: center;
}

.phone-input-group .country-code {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-right: none;
  padding: 10px 12px;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

.phone-input-group input {
  border-radius: 0 8px 8px 0;
}

.modal-summary {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  margin: 18px 0;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
}

.full-width {
  width: 100%;
  padding: 12px;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #16a34a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Payment Modal Sub-Tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Bank Account Card Box */
.bank-details-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #334155;
}

.bank-row:last-child {
  border-bottom: none;
}

.copy-btn {
  background: #e2e8f0;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: #cbd5e1;
}

.bank-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-info {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
}


/* Cancel Link in Form Footer */
.cancel-donation-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.cancel-donation-link:hover {
  color: #0f172a;
}

/* Exit Reminder Modal Override */
#modalOverlay {
  display: none; /* Hidden until triggered */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-card {
  background-color: #222832;
  color: #ffffff;
  width: 90%;
  max-width: 380px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* Body */
.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.description {
  font-size: 0.95rem;
  color: #c5cbd3;
  line-height: 1.4;
  margin-bottom: 20px;
  max-width: 280px;
}

/* Form & Floating Input */
.reminder-form {
  width: 100%;
  text-align: left;
}

.form-group {
  position: relative;
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 18px 16px 6px;
  background-color: #191e26;
  border: 1px solid #363e4d;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #3b82f6;
}

.form-label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #8b95a5;
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: 6px;
  font-size: 0.75rem;
  color: #8b95a5;
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #c5cbd3;
  cursor: pointer;
  user-select: none;
  margin-bottom: 20px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: #191e26;
  border: 1px solid #363e4d;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #ffffff;
  border-color: #ffffff;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #191e26;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container a {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer & Buttons */
.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.modal-footer .btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.modal-footer .btn-primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.modal-footer .btn-secondary {
  background-color: #ffffff;
  color: #191e26;
}

.modal-footer .btn:hover {
  opacity: 0.9;
}

/* Bell Graphic Illustration Styling */
.illustration-wrap {
  margin-bottom: 16px;
}

.bell-icon-container {
  position: relative;
  width: 80px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.envelope {
  position: absolute;
  bottom: 0;
  width: 70px;
  height: 40px;
  background: linear-gradient(135deg, #2c3440, #1e242c);
  border-radius: 6px;
  border-top: 2px solid #384252;
}

.bell {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bell-top {
  width: 8px;
  height: 6px;
  background-color: #eab308;
  border-radius: 4px 4px 0 0;
}

.bell-body {
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, #facc15, #ca8a04);
  border-radius: 20px 20px 4px 4px;
}

.bell-clapper {
  width: 10px;
  height: 4px;
  background-color: #a16207;
  border-radius: 0 0 4px 4px;
}

.heart-badge {
  position: absolute;
  top: 2px;
  right: 18px;
  z-index: 3;
  background-color: #60a5fa;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #222832;
}
/* ==========================================================
   PROGRAMME DETAIL PAGES (public/work/*.html)
   Added for the premium programme-detail template — purely
   additive, does not alter any rule above this point.
   ========================================================== */

/* sixth photo-tile tone, for the 6th programme (the other 5
   tones are already defined earlier in this file) */
.photo-tile.tone-goldlight{ background-color: var(--gold); }

/* hero icon badge above the eyebrow on programme pages */
.hero-icon-badge{
  width: 58px; height: 58px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color:#fff;
}
.hero-icon-badge svg{ width: 28px; height: 28px; }

/* hero quick-stat chips row */
.hero-stat-row{ display:flex; gap: 28px; flex-wrap:wrap; margin-top: 34px; }
.hero-stat{ min-width: 110px; }
.hero-stat strong{
  display:block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold);
  line-height:1;
}
.hero-stat span{
  font-size:.76rem; text-transform:uppercase; letter-spacing:.07em; font-weight:700;
  color: rgba(255,255,255,.7);
}

/* pull-quote / highlight info card used beside the Overview text */
.info-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.info-card .info-card-icon{
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sage-pale); color: var(--sage-deep);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.info-card .info-card-icon svg{ width: 24px; height: 24px; }
.info-card .info-card-figure{
  font-family: var(--font-display); font-size: 2.4rem; color: var(--navy);
  line-height: 1; margin-bottom: 6px;
}
.info-card .info-card-label{
  font-size:.78rem; text-transform:uppercase; letter-spacing:.07em; font-weight:800;
  color: var(--sage-deep); margin-bottom: 14px;
}
.info-card p{ color: var(--ink-soft); font-size:.94rem; margin:0; }
.info-card::before{
  content:"";
  position:absolute; top:-10px; left:28px;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  z-index:-1;
  opacity:.18;
}

/* programme index pill, e.g. "Programme 2 of 6" */
.programme-pill{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.76rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.programme-pill svg{ width:14px; height:14px; }

/* mini related-programme cards ("Explore other programmes") */
.related-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .related-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .related-grid{ grid-template-columns: 1fr; } }
.related-card{
  display:flex; flex-direction:column; gap:10px;
  padding: 22px 22px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.related-card .tile-icon{ margin-bottom: 4px; }
.related-card h4{ font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin:0; }
.related-card p{ font-size:.86rem; color: var(--ink-soft); margin:0; }
.related-card .link-label{ margin-top: auto; font-size:.82rem; }

/* animated counters (driven by main.js IntersectionObserver, see data-counter) */
[data-counter]{ font-variant-numeric: tabular-nums; }

/* prev/next programme footer nav */
.programme-pager{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.pager-link{
  display:flex; flex-direction:column; gap:4px; max-width: 46%;
}
.pager-link.next{ text-align:right; margin-left:auto; align-items:flex-end; }
.pager-link .pager-label{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; color: var(--ink-soft);
}
.pager-link .pager-title{ font-family: var(--font-display); font-size:1.05rem; color: var(--navy); }
.pager-link:hover .pager-title{ color: var(--sage-deep); }
@media (max-width: 560px){ .pager-link{ max-width:100%; } }

/* =========================================================
   Scrollytelling module (pinned stat panel + chapters)
   Used on insights/year-in-review-2025.html; reusable for
   any long-form report that has 3-5 "chapters" of narrative.
   ========================================================= */
.scrolly-wrap{
  display:grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 56px;
  align-items:start;
}
.scrolly-sticky{
  position: sticky;
  top: 110px;
  align-self:start;
}
.scrolly-panel{
  border-radius: var(--radius);
  padding: 40px 30px;
  color:#fff;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: background 0.6s ease;
  overflow:hidden;
  position:relative;
}
.scrolly-panel::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 60%);
  pointer-events:none;
}
.scrolly-panel[data-tone="sage"]{ background: linear-gradient(150deg, var(--sage-deep), var(--sage)); }
.scrolly-panel[data-tone="navy"]{ background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.scrolly-panel[data-tone="gold"]{ background: linear-gradient(150deg, var(--gold-deep), var(--gold)); }

.scrolly-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:12px;
  background: rgba(255,255,255,.16);
  margin-bottom: 22px;
}
.scrolly-icon svg{ width:22px; height:22px; stroke:#fff; fill:none; stroke-width:1.8; }

.scrolly-figure{
  display:block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height:1;
  font-variant-numeric: tabular-nums;
}
.scrolly-figure-label{
  display:block;
  margin-top:10px;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:700;
  color: rgba(255,255,255,.78);
}
.scrolly-caption{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.22);
  font-size:.95rem;
  color: rgba(255,255,255,.92);
}
.scrolly-progress{
  display:flex; gap:6px; margin-top:24px;
}
.scrolly-progress span{
  height:4px; flex:1; border-radius:2px;
  background: rgba(255,255,255,.25);
  transition: background .4s ease;
}
.scrolly-progress span.done{ background: #fff; }

.scrolly-chapters{ display:flex; flex-direction:column; gap:14vh; }
.scrolly-chapter{
  opacity:.35;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--line);
}
.scrolly-chapter.is-active{
  opacity:1;
  transform:none;
  border-left-color: var(--gold);
}
.scrolly-chapter:last-child{ padding-bottom: 6vh; }
.scrolly-chapter h2{ margin-top:.3em; }

@media (max-width: 860px){
  .scrolly-wrap{ grid-template-columns: 1fr; }
  .scrolly-sticky{ position: static; margin-bottom: 32px; }
  .scrolly-chapters{ gap: 44px; }
  .scrolly-chapter{ opacity:1; transform:none; }
}

/* =========================================================
   STORY SCROLL — "How we walk with a student" (home page)
   ========================================================= */
.story-scroll-section .section-header p{ margin-top:8px; }

.story-scroll-mobile{
  display: grid;
  gap: 28px;
}
.story-scroll-card{
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.story-scroll-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.story-scroll-card-body{ padding: 22px 24px 26px; }

.story-scroll-desktop{ display: none; }

.story-scroll-num{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: .04em;
  margin-bottom: 10px;
  font-size: .95rem;
}

@media (min-width: 900px){
  .story-scroll-mobile{ display: none; }

  .story-scroll-desktop{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  .story-scroll-sticky{
    position: sticky;
    top: 96px;
    height: 66vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

  .story-scroll-images{
    position: relative;
    width: 100%;
    height: 100%;
  }

  .story-scroll-img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
  }
  .story-scroll-img.is-active{ opacity: 1; }

  .story-scroll-track{
    display: flex;
    flex-direction: column;
    gap: 38vh;
    padding: 20vh 0 26vh;
  }

  .story-scroll-step{
    opacity: .32;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
    max-width: 46ch;
  }
  .story-scroll-step h3{ margin: 0 0 10px; }
  .story-scroll-step p{ color: var(--ink-soft); margin: 0; }
  .story-scroll-step.is-active{
    opacity: 1;
    transform: none;
  }
}

/* ---- EN / SW language toggle ---- */
.lang-toggle{
  display:flex; align-items:center; gap:2px;
  border:1px solid var(--line, rgba(0,0,0,.14)); border-radius:999px;
  padding:3px; margin-left:14px; flex-shrink:0;
}
.lang-toggle .lang-opt{
  border:none; background:transparent; cursor:pointer;
  font-family: var(--font-body, inherit); font-weight:700; font-size:.74rem;
  letter-spacing:.03em; padding:5px 10px; border-radius:999px; color: var(--ink-soft, #666);
  transition: background .15s ease, color .15s ease;
}
.lang-toggle .lang-opt.active{ background: var(--navy); color:#fff; }
.lang-toggle .lang-opt:not(.active):hover{ color: var(--navy); }
@media (max-width: 900px){
  .lang-toggle{ margin: 10px auto 0; }
}

/* =========================================================
   TRANSPARENCY PAGE — subtle gold wireframe scroll accent
   ========================================================= */
.scene-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.scene-bg canvas{
  display: block;
  width: 100%;
  height: 100%;
}

/* Let the accent show through the plain (cream) sections only —
   the navy/sage sections stay solid so the page keeps its rhythm. */
body.has-scene-bg .section:not(.section-navy):not(.section-sage){
  background: transparent;
}

@media (max-width: 700px){
  /* Skip the WebGL layer on small/likely low-bandwidth mobile devices */
  .scene-bg{ display: none; }
}
