/* ==========================================================================
   Perfect Edifiers Foundation — Stylesheet
   No gradients anywhere. Solid colors, photography, whitespace, subtle
   borders and shadows only, per brand guidelines.
   ========================================================================== */

:root{
  /* Brand palette — derived from the Perfect Edifiers logo */
  --red-900:#5C1420;
  --red-800:#7C1B2A;   /* primary deep red/burgundy */
  --red-700:#932233;
  --red-100:#F7E7E9;

  --gold-700:#9C7A22;
  --gold-600:#B8912B;
  --gold-500:#D4A934;  /* primary gold accent */
  --gold-400:#E6BE4E;  /* brighter gold, for use on dark backgrounds */
  --gold-100:#FBF1DC;

  --charcoal-900:#221D1B;
  --charcoal-800:#2C2623;
  --charcoal-600:#4B423C;
  --charcoal-400:#75695F;

  --cream-50:#FFFEFB;
  --cream-100:#FBF6EC;
  --cream-200:#F3EADA;
  --border-color:#E7DCC7;

  --green-800:#204D3E;
  --blue-800:#1D3A55;

  --white:#FFFFFF;

  --font-heading:"Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-w:1240px;
  --radius-sm:4px;
  --radius-md:8px;
  --shadow-sm:0 1px 3px rgba(34,29,27,0.08);
  --shadow-md:0 6px 20px rgba(34,29,27,0.10);
  --shadow-lg:0 14px 40px rgba(34,29,27,0.16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--charcoal-900);
  background:var(--cream-50);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family:var(--font-heading); font-weight:600; line-height:1.15; margin:0 0 .5em; color:var(--charcoal-900); }
p{ margin:0 0 1em; }

.container{ max-width:var(--container-w); margin:0 auto; padding:0 24px; }

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

.hp-field{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Flash messages (PHP-rendered success/error banners) ---------- */
.flash-stack{ position:sticky; top:0; z-index:900; }
.flash-msg{
  padding:14px 24px; text-align:center; font-size:.92rem; font-weight:600;
  border-bottom:1px solid var(--border-color);
}
.flash-success{ background:var(--green-800); color:var(--white); }
.flash-error{ background:var(--red-800); color:var(--white); }
.flash-info{ background:var(--charcoal-800); color:var(--white); }

.skip-link{
  position:absolute; left:12px; top:-60px; background:var(--red-800); color:var(--white);
  padding:10px 18px; border-radius:var(--radius-sm); z-index:1000; transition:top .2s ease;
}
.skip-link:focus{ top:12px; }

:focus-visible{ outline:3px solid var(--gold-500); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:var(--radius-sm); font-weight:700; font-size:.92rem;
  letter-spacing:.03em; text-transform:uppercase; border:2px solid transparent;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--red-800); color:var(--white); }
.btn-primary:hover{ background:var(--red-900); }
.btn-gold{ background:var(--gold-500); color:var(--charcoal-900); }
.btn-gold:hover{ background:var(--gold-400); }
.btn-outline-light{ background:transparent; color:var(--white); border-color:var(--white); }
.btn-outline-light:hover{ background:var(--white); color:var(--charcoal-900); }
.btn-ghost{ background:transparent; color:var(--red-800); border-color:var(--red-800); }
.btn-ghost:hover{ background:var(--red-100); }
.btn-donate{ background:var(--gold-500); color:var(--charcoal-900); padding:11px 22px; }
.btn-donate:hover{ background:var(--gold-400); }
.btn-small{ padding:9px 16px; font-size:.78rem; }
.btn-lg{ padding:17px 36px; font-size:1rem; }
.btn-block{ display:flex; width:100%; margin-top:10px; }
.btn:disabled{ background:var(--cream-200); color:var(--charcoal-400); border-color:var(--border-color); cursor:not-allowed; transform:none; }
.btn:disabled:hover{ background:var(--cream-200); transform:none; }

/* ---------- Header ---------- */
.site-header{ position:sticky; top:0; z-index:500; }
.site-header.is-scrolled .navbar{ box-shadow:var(--shadow-sm); }
.topbar{ background:var(--charcoal-900); color:var(--cream-200); font-size:.82rem; }
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:8px 24px; gap:16px; }
.topbar-verse{ margin:0; font-style:italic; opacity:.9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-links{ display:flex; gap:10px; align-items:center; white-space:nowrap; flex-shrink:0; }
.topbar-links a:hover{ color:var(--gold-400); }
.topbar-right{ display:flex; align-items:center; gap:18px; flex-shrink:0; }
.topbar-account{ display:flex; align-items:center; gap:14px; padding-left:18px; border-left:1px solid rgba(255,255,255,.2); white-space:nowrap; }
.topbar-account a{ font-weight:600; }
.topbar-account a:hover{ color:var(--gold-400); }
.topbar-signup{ color:var(--gold-400); }
@media (max-width:700px){ .topbar-verse{ display:none; } .topbar-inner{ justify-content:flex-end; } }
@media (max-width:360px){ .topbar-links{ display:none; } .topbar-account{ border-left:none; padding-left:0; } }

.navbar{ background:var(--white); border-bottom:1px solid var(--border-color); }
.navbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:12px 24px; gap:24px; }

.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand-logo{ border-radius:50%; object-fit:cover; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family:var(--font-heading); font-weight:700; font-size:1.2rem; color:var(--red-800); }
.brand-tagline{ font-size:.66rem; letter-spacing:.14em; color:var(--gold-600); font-weight:700; }
@media (max-width:420px){
  .navbar-inner{ padding:10px 14px; gap:10px; }
  .brand{ gap:8px; }
  .brand-logo{ width:38px; height:38px; }
  .brand-name{ font-size:1rem; }
  .brand-tagline{ font-size:.58rem; }
  .btn-donate{ padding:9px 12px; font-size:.72rem; }
  .navbar-actions{ gap:8px; }
}

.main-nav{ display:none; }
@media (min-width: 1024px){ .main-nav{ display:block; } }
.main-nav > ul{ display:flex; gap:6px; }
.main-nav > ul > li{ position:relative; }
.main-nav > ul > li > a,
.nav-link-btn{
  display:flex; align-items:center; gap:4px; padding:10px 14px; font-weight:600; font-size:.92rem;
  color:var(--charcoal-800); background:transparent; border:none; border-radius:var(--radius-sm);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active,
.nav-link-btn:hover{ color:var(--red-800); background:var(--cream-100); }
.chevron{ width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-top:-3px; }

.dropdown{
  position:absolute; top:100%; left:0; min-width:240px; background:var(--white);
  border:1px solid var(--border-color); border-radius:var(--radius-md); box-shadow:var(--shadow-md);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown li a{ display:block; padding:10px 12px; border-radius:var(--radius-sm); font-size:.9rem; color:var(--charcoal-800); }
.dropdown li a:hover{ background:var(--cream-100); color:var(--red-800); }

.navbar-actions{ display:flex; align-items:center; gap:16px; }

.hamburger{
  display:flex; flex-direction:column; justify-content:center; gap:5px; width:40px; height:36px;
  background:transparent; border:none; padding:0;
}
@media (min-width: 1024px){ .hamburger{ display:none; } }
.hamburger span{ display:block; height:2px; width:100%; background:var(--charcoal-900); border-radius:2px; transition:transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-nav{ background:var(--white); border-top:1px solid var(--border-color); max-height:80vh; overflow-y:auto; }
@media (min-width: 1024px){ .mobile-nav{ display:none !important; } }
.mobile-nav ul{ padding:12px 24px 24px; }
.mobile-nav > ul > li > a{ display:block; padding:13px 4px; font-weight:600; border-bottom:1px solid var(--border-color); }
.mobile-group-toggle{
  width:100%; display:flex; justify-content:space-between; align-items:center; padding:13px 4px;
  background:transparent; border:none; border-bottom:1px solid var(--border-color); font-weight:600; font-size:1rem; color:var(--charcoal-900);
}
.mobile-submenu{ display:none; padding-left:14px; }
.mobile-group.is-open .mobile-submenu{ display:block; }
.mobile-submenu li a{ display:block; padding:10px 4px; font-size:.92rem; color:var(--charcoal-600); }
.mobile-divider{ height:10px; }

/* ---------- Hero ---------- */
.hero{ position:relative; height:82vh; min-height:560px; max-height:760px; overflow:hidden; }
.hero-slide{ position:absolute; inset:0; }
.hero-slide[hidden]{ display:block !important; visibility:hidden; pointer-events:none; }
.hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 25%; z-index:1; }
.hero-overlay{ position:absolute; inset:0; background:rgba(20,16,14,0.52); z-index:2; }
.hero-content{
  position:absolute; inset:0; z-index:3; width:100%;
  display:flex; flex-direction:column; justify-content:center;
  color:var(--white);
}
.hero-content > *{ max-width:820px; }
.hero-eyebrow{ color:var(--gold-400); font-weight:700; letter-spacing:.14em; font-size:.8rem; margin-bottom:14px; }
.hero-content h1{ color:var(--white); font-size:clamp(1.9rem, 5vw, 3.6rem); margin-bottom:20px; }
.hero-sub{ font-size:1.1rem; max-width:640px; opacity:.95; margin-bottom:30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; max-width:none; }

@media (max-width:640px){
  .hero{ height:78vh; min-height:520px; max-height:640px; }
  .hero-actions{ flex-direction:column; align-items:stretch; gap:12px; }
  .hero-actions .btn{ width:100%; text-align:center; }
  .hero-sub{ font-size:1rem; }
}

.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:20; width:48px; height:48px;
  border-radius:50%; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,.5); color:var(--white);
  font-size:1rem; display:flex; align-items:center; justify-content:center;
}
.hero-arrow:hover{ background:rgba(255,255,255,0.3); }
.hero-arrow-prev{ left:20px; }
.hero-arrow-next{ right:20px; }
@media (max-width:640px){ .hero-arrow{ display:none; } }

.hero-controls{ position:absolute; bottom:28px; left:0; right:0; display:flex; align-items:center; justify-content:center; gap:18px; z-index:20; }
.hero-dots{ display:flex; gap:10px; }
.hero-dot{ position:relative; width:11px; height:11px; border-radius:50%; background:rgba(255,255,255,.4); border:1px solid rgba(255,255,255,.7); padding:0; flex:0 0 auto; }
.hero-dot::before{ content:""; position:absolute; top:50%; left:50%; width:40px; height:40px; transform:translate(-50%,-50%); }
.hero-dot.is-active{ background:var(--gold-400); border-color:var(--gold-400); }
.hero-playpause{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.5); display:flex; align-items:center; justify-content:center; }
.icon-pause{ width:9px; height:11px; border-left:3px solid var(--white); border-right:3px solid var(--white); }
.hero-playpause[aria-pressed="true"] .icon-pause{ width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; border-left:9px solid var(--white); border-right:none; }

.hero-scroll-cue{ position:absolute; bottom:26px; right:32px; z-index:20; display:none; }
@media (min-width: 900px){ .hero-scroll-cue{ display:block; } }
.hero-scroll-cue span{ display:block; width:26px; height:42px; border:2px solid rgba(255,255,255,.7); border-radius:20px; position:relative; }
.hero-scroll-cue span::before{ content:""; position:absolute; top:8px; left:50%; width:4px; height:8px; background:var(--gold-400); border-radius:2px; transform:translateX(-50%); animation:scrollcue 1.8s infinite; }
@keyframes scrollcue{ 0%{ opacity:1; top:8px;} 100%{ opacity:0; top:22px;} }

/* ---------- Editorial split ---------- */
.split-section{ display:grid; grid-template-columns:1fr; }
@media (min-width: 900px){ .split-section{ grid-template-columns:1fr 1fr; min-height:640px; } }
.split-media{ height:340px; overflow:hidden; }
@media (min-width: 900px){ .split-media{ height:auto; } }
.split-media img{ width:100%; height:100%; object-fit:cover; }
.split-text{ background:var(--cream-100); display:flex; align-items:center; }
.split-text-inner{ padding:56px 24px; max-width:560px; margin:0 auto; }
@media (min-width: 900px){ .split-text-inner{ padding:56px 64px; } }
.split-text-inner h2{ font-size:clamp(1.7rem, 3vw, 2.4rem); }

.eyebrow{ text-transform:uppercase; letter-spacing:.14em; font-weight:700; font-size:.78rem; color:var(--red-800); margin-bottom:12px; }
.eyebrow-light{ color:var(--gold-400); }

.text-link{ display:inline-flex; align-items:center; gap:6px; font-weight:700; color:var(--red-800); border-bottom:2px solid var(--gold-500); padding-bottom:2px; }
.text-link:hover{ color:var(--red-900); }

/* ---------- Generic sections ---------- */
.section{ padding:88px 0; }
.section-white{ background:var(--white); }
.section-cream{ background:var(--cream-100); }
.section-charcoal{ background:var(--charcoal-900); }
.light-heading{ color:var(--white); }

.section-heading{ max-width:720px; margin:0 auto 48px; text-align:center; }
.section-heading-row{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; text-align:left; max-width:none; gap:16px; }
.section-lede{ font-size:1.08rem; color:var(--charcoal-600); }
.section-heading h2{ font-size:clamp(1.8rem, 3.4vw, 2.6rem); }
.section-note{ text-align:center; font-size:.84rem; color:var(--charcoal-400); font-style:italic; margin-top:20px; }

/* ---------- What We Do cards ---------- */
.work-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:28px; }
.work-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); transition:box-shadow .2s ease, transform .2s ease; }
.work-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.work-card-img{ height:190px; overflow:hidden; }
.work-card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.work-card:hover .work-card-img img{ transform:scale(1.05); }
.work-card-body{ padding:26px; }
.work-icon{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:var(--red-100); color:var(--red-800); font-size:1.15rem; margin-bottom:14px; }

/* ---------- Statement sections (Vision / Mission) ---------- */
.statement-section{ position:relative; padding:120px 0; text-align:center; }
.statement-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.statement-overlay{ position:absolute; inset:0; background:rgba(28,20,18,0.72); }
.statement-content{ position:relative; max-width:820px; }
.statement-quote{ font-family:var(--font-heading); color:var(--white); font-size:clamp(1.4rem, 3vw, 2.1rem); line-height:1.45; margin-bottom:28px; }
.statement-mission{ background:var(--red-800); }

/* ---------- Translation ---------- */
.translation-grid{ display:grid; grid-template-columns:1fr; gap:40px; align-items:center; margin-bottom:10px; }
@media (min-width: 900px){ .translation-grid{ grid-template-columns:1fr 1.1fr; } }
.translation-map-card{ background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:32px; text-align:center; }
.nigeria-map, .africa-map{ width:100%; max-width:220px; margin:0 auto; }
.nigeria-map path, .africa-map path{ fill:var(--gold-100); stroke:var(--red-800); stroke-width:2; }
.map-pin{ fill:var(--red-800); stroke:var(--white); stroke-width:1.5; }
.translation-map-caption{ font-size:.82rem; color:var(--charcoal-400); font-style:italic; margin:14px 0 0; }
.language-cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:16px; }
.language-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; }
.language-card h3{ font-size:1.05rem; margin-bottom:4px; }
.language-card p{ font-size:.86rem; color:var(--charcoal-400); margin-bottom:10px; }
.language-status{ display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:4px 10px; border-radius:20px; background:var(--gold-100); color:var(--gold-700); }
.translation-note{ text-align:center; font-size:.84rem; color:var(--charcoal-400); font-style:italic; margin:24px 0 0; }
.center-cta{ text-align:center; margin-top:32px; }

/* ---------- Impact stats ---------- */
.stats-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:32px 20px; text-align:center; }
@media (min-width: 780px){ .stats-grid{ grid-template-columns:repeat(5,1fr); } }
.stat-number{ font-family:var(--font-heading); font-size:clamp(2.2rem,5vw,3.2rem); font-weight:700; color:var(--gold-400); }
.stat-plus{ font-family:var(--font-heading); font-size:clamp(1.6rem,4vw,2.2rem); font-weight:700; color:var(--gold-400); }
.stat-label{ color:var(--cream-200); font-size:.92rem; margin-top:6px; }
.stats-note{ text-align:center; color:var(--charcoal-400); font-size:.82rem; font-style:italic; margin:36px auto 0; max-width:560px; }

/* ---------- Resources ---------- */
.filter-bar{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:36px; }
.filter-bar select{
  padding:11px 16px; border-radius:var(--radius-sm); border:1px solid var(--border-color); background:var(--white);
  font-family:inherit; font-size:.88rem; color:var(--charcoal-800);
}
.resource-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:26px; }
.resource-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.resource-cover{ position:relative; height:170px; overflow:hidden; }
.resource-cover img{ width:100%; height:100%; object-fit:cover; }
.resource-tag{ position:absolute; top:12px; left:12px; background:var(--red-800); color:var(--white); font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 10px; border-radius:20px; }
.resource-body{ padding:20px; }
.resource-body h3{ font-size:1.05rem; margin-bottom:8px; }
.resource-meta{ font-size:.78rem; color:var(--charcoal-400); text-transform:uppercase; letter-spacing:.03em; margin-bottom:10px; }
.resource-desc{ font-size:.9rem; color:var(--charcoal-600); }
.resource-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.resource-cover-flat{ position:relative; height:170px; display:flex; flex-direction:column; justify-content:flex-end; padding:18px 16px; color:var(--white); overflow:hidden; }
.resource-cover-flat.has-image{ background:var(--charcoal-800); }
.resource-cover-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.resource-cover-overlay{ position:absolute; inset:0; background:rgba(20,16,14,.5); z-index:0; }
.resource-cover-icon{ position:absolute; top:14px; right:16px; font-size:1.9rem; opacity:.85; line-height:1; }
.resource-cover-title{ position:relative; z-index:1; font-family:var(--font-heading); font-weight:700; font-size:1.02rem; line-height:1.3; max-width:88%; }
.cv-red{ background:var(--red-800); }
.cv-gold{ background:var(--gold-600); color:var(--charcoal-900); }
.cv-charcoal{ background:var(--charcoal-800); }
.cv-green{ background:var(--green-800); }
.cv-blue{ background:var(--blue-800); }

/* ---------- Interior page banner ---------- */
.page-hero{ position:relative; min-height:300px; display:flex; align-items:center; overflow:hidden; }
.page-hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.page-hero-overlay{ position:absolute; inset:0; background:rgba(20,16,14,0.6); }
.page-hero-content{ position:relative; z-index:2; color:var(--white); padding:88px 0 52px; max-width:760px; }
.breadcrumb{ font-size:.82rem; opacity:.9; margin-bottom:14px; }
.breadcrumb a{ color:var(--gold-400); font-weight:600; }
.page-hero-content h1{ color:var(--white); font-size:clamp(2rem,4vw,2.8rem); margin-bottom:14px; }
.page-hero-content p{ opacity:.95; margin:0; font-size:1.05rem; }

/* ---------- Resource library toolbar / pagination ---------- */
.library-section{ padding-top:56px; }
.library-toolbar{ display:flex; flex-direction:column; gap:16px; margin-bottom:6px; }
.library-search input{
  width:100%; padding:14px 18px; border:1px solid var(--border-color); border-radius:var(--radius-sm);
  font-family:inherit; font-size:.95rem; background:var(--white);
}
.library-count{ font-size:.85rem; color:var(--charcoal-400); margin:18px 0 22px; }
.library-empty{ text-align:center; padding:48px 20px; color:var(--charcoal-400); font-style:italic; }
.pagination{ display:flex; justify-content:center; align-items:center; gap:8px; margin-top:44px; flex-wrap:wrap; }
.pagination-num, .pagination-arrow{
  display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 14px;
  border-radius:var(--radius-sm); border:1px solid var(--border-color); background:var(--white);
  font-weight:600; font-size:.88rem; color:var(--charcoal-800);
}
.pagination-num.is-active{ background:var(--red-800); border-color:var(--red-800); color:var(--white); }
.pagination-num:hover, .pagination-arrow:hover{ border-color:var(--red-800); color:var(--red-800); }
.pagination-arrow[aria-disabled="true"]{ opacity:.4; pointer-events:none; }

/* ---------- Training Centre ---------- */
.how-it-works{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:28px; }
.hiw-step{ text-align:left; }
.hiw-num{
  display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%;
  background:var(--red-800); color:var(--white); font-family:var(--font-heading); font-weight:700; margin-bottom:14px;
}
.hiw-step h3{ font-size:1.05rem; margin-bottom:8px; }
.hiw-step p{ font-size:.9rem; color:var(--charcoal-600); margin:0; }
.hiw-step a{ color:var(--red-800); font-weight:700; border-bottom:1px solid var(--gold-500); }

.program-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:28px; }
.program-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.program-img{ position:relative; height:180px; overflow:hidden; }
.program-img img{ width:100%; height:100%; object-fit:cover; }
.program-format{ position:absolute; top:12px; left:12px; background:var(--charcoal-900); color:var(--white); font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 10px; border-radius:20px; }
.program-body{ padding:22px; }
.program-body h3{ font-size:1.1rem; margin-bottom:8px; }
.program-meta{ font-size:.78rem; color:var(--charcoal-400); text-transform:uppercase; letter-spacing:.03em; margin-bottom:10px; }
.program-body p:not(.program-meta){ font-size:.9rem; color:var(--charcoal-600); }

/* ---------- Student / User Dashboard ---------- */
.dashboard-shell{ display:grid; grid-template-columns:260px 1fr; align-items:start; }
@media (max-width:860px){ .dashboard-shell{ grid-template-columns:1fr; } }
.dashboard-sidebar{ background:var(--charcoal-900); color:var(--cream-200); padding:40px 26px; }
.dash-user{ text-align:center; margin-bottom:28px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,.12); }
.dash-avatar{ width:64px; height:64px; border-radius:50%; background:var(--gold-500); color:var(--charcoal-900); display:flex; align-items:center; justify-content:center; font-family:var(--font-heading); font-weight:700; font-size:1.3rem; margin:0 auto 14px; }
.dash-user h3{ color:var(--white); font-size:1.05rem; margin-bottom:4px; }
.dash-user p{ font-size:.82rem; color:var(--charcoal-400); margin:0; }
.dash-nav{ display:flex; flex-direction:column; gap:2px; }
.dash-nav a{ padding:11px 14px; border-radius:var(--radius-sm); font-size:.92rem; font-weight:600; color:var(--cream-200); }
.dash-nav a:hover{ background:rgba(255,255,255,.08); }
.dash-nav a.is-active{ background:var(--red-800); color:var(--white); }
.dash-nav a.dash-logout{ margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); color:var(--charcoal-400); }

.dashboard-main{ padding:44px 32px 64px; background:var(--cream-100); min-height:600px; }
@media (max-width:860px){ .dashboard-main{ padding:32px 20px 48px; } }
.dash-welcome h1{ font-size:1.8rem; margin-bottom:6px; }
.dash-welcome p{ color:var(--charcoal-600); margin:0; }
.dash-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin:28px 0 40px; }
.dash-stat{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; text-align:center; font-size:.85rem; color:var(--charcoal-600); }
.dash-stat span{ display:block; font-family:var(--font-heading); font-size:2rem; font-weight:700; color:var(--red-800); margin-bottom:4px; }

.dash-section{ margin-bottom:40px; }
.dash-section-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.dash-section-head h2{ font-size:1.25rem; margin:0; }
.dash-section.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
@media (max-width:700px){ .dash-section.two-col{ grid-template-columns:1fr; } }

.dash-course-list{ display:flex; flex-direction:column; gap:16px; }
.dash-course{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; display:flex; flex-wrap:wrap; align-items:center; gap:18px; justify-content:space-between; }
.dash-course-info{ flex:1; min-width:220px; }
.dash-course-info h3{ font-size:1rem; margin-bottom:8px; }
.dash-progress{ background:var(--cream-200); border-radius:20px; height:8px; overflow:hidden; width:100%; max-width:320px; }
.dash-progress-bar{ height:100%; background:var(--gold-500); border-radius:20px; }
.dash-progress-label{ font-size:.78rem; color:var(--charcoal-400); margin-top:6px; }

.dash-list{ list-style:none; margin:0; padding:0; background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; }
.dash-list li{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; font-size:.88rem; border-bottom:1px solid var(--border-color); flex-wrap:wrap; }
.dash-list li:last-child{ border-bottom:none; }
.dash-list a{ color:var(--red-800); font-weight:700; font-size:.82rem; flex-shrink:0; }
.dash-status{ background:var(--green-800); color:var(--white); font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:4px 10px; border-radius:20px; flex-shrink:0; }

.dash-cert-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:22px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.dash-cert-icon{ font-size:2.2rem; }
.dash-cert-card h3{ font-size:1.02rem; margin-bottom:4px; }
.dash-cert-card p{ font-size:.82rem; color:var(--charcoal-400); margin:0; }
.dash-cert-card .btn{ margin-left:auto; }

/* ---------- Certificate Generator ---------- */
.cert-layout{ display:grid; grid-template-columns:360px 1fr; gap:40px; align-items:start; }
@media (max-width:900px){ .cert-layout{ grid-template-columns:1fr; } }
.cert-form{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:28px; box-shadow:var(--shadow-sm); }
.cert-form h2{ font-size:1.2rem; margin-bottom:6px; }
.cert-form label{ display:block; font-size:.82rem; font-weight:700; color:var(--charcoal-700); margin:16px 0 6px; }
.cert-form label:first-of-type{ margin-top:16px; }
.cert-form input, .cert-form select{
  width:100%; padding:11px 14px; border:1px solid var(--border-color); border-radius:var(--radius-sm);
  font-family:inherit; font-size:.9rem; background:var(--cream-50); color:var(--charcoal-900);
}
.cert-form-actions{ margin-top:18px; }
.cert-download-actions{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.cert-download-actions .btn{ flex:1; }
.cert-preview-wrap{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px; box-shadow:var(--shadow-sm); position:sticky; top:90px; }
#cert-canvas{ width:100%; height:auto; display:block; border-radius:4px; }
@media (max-width:900px){ .cert-preview-wrap{ position:static; } }

/* ---------- Live Streaming ---------- */
.live-layout{ display:grid; grid-template-columns:1fr 340px; gap:32px; align-items:start; }
@media (max-width:960px){ .live-layout{ grid-template-columns:1fr; } }

.live-player-wrap{ background:var(--charcoal-900); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-md); }
.live-player{ position:relative; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; background:var(--charcoal-800); }
.live-player-icon{ width:74px; height:74px; border-radius:50%; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.35); display:flex; align-items:center; justify-content:center; }
.live-player-icon::before{ content:""; border-left:20px solid var(--white); border-top:12px solid transparent; border-bottom:12px solid transparent; margin-left:5px; }
.live-player-caption{ position:absolute; bottom:20px; left:20px; right:20px; color:var(--cream-200); font-size:.85rem; }
.live-player-caption strong{ color:var(--white); display:block; font-family:var(--font-heading); font-size:1.1rem; margin-bottom:4px; }

.live-status-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:18px 22px; border-bottom:1px solid rgba(255,255,255,.1); }
.live-status-badge{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-heading); font-weight:700; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; padding:7px 14px; border-radius:20px; }
.live-status-badge.is-live{ background:var(--red-800); color:var(--white); }
.live-status-badge.is-live .live-dot{ width:8px; height:8px; border-radius:50%; background:var(--white); animation:live-pulse 1.6s infinite; }
.live-status-badge.is-offline{ background:rgba(255,255,255,.12); color:var(--cream-200); }
.live-status-badge.is-offline .live-dot{ width:8px; height:8px; border-radius:50%; background:var(--charcoal-400); }
@keyframes live-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.live-status-text{ color:var(--cream-200); font-size:.88rem; margin:0; }

.live-countdown-wrap{ padding:22px; }
.live-countdown-label{ color:var(--cream-200); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; margin:0 0 14px; }
.live-countdown{ display:flex; gap:14px; flex-wrap:wrap; }
.live-countdown-unit{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius-sm); padding:14px 18px; text-align:center; min-width:72px; }
.live-countdown-num{ display:block; font-family:var(--font-heading); font-size:1.8rem; font-weight:700; color:var(--gold-400); line-height:1; }
.live-countdown-unit-label{ display:block; font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--cream-200); margin-top:6px; }

.live-sidebar-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:24px; box-shadow:var(--shadow-sm); margin-bottom:24px; }
.live-sidebar-card h2{ font-size:1.05rem; margin-bottom:16px; }
.live-platform-links{ display:flex; flex-direction:column; gap:10px; }
.live-platform-link{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 16px; border:1px solid var(--border-color); border-radius:var(--radius-sm); font-weight:700; font-size:.9rem; color:var(--charcoal-800); }
.live-platform-link:hover{ border-color:var(--red-800); color:var(--red-800); background:var(--cream-100); }

.live-chat-placeholder{ background:var(--cream-100); border:1px dashed var(--border-color); border-radius:var(--radius-md); padding:28px 20px; text-align:center; }
.live-chat-placeholder p{ margin:0; font-size:.86rem; color:var(--charcoal-400); font-style:italic; }

.schedule-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:22px; }
.schedule-card{ background:var(--white); border:1px solid var(--border-color); border-left:4px solid var(--red-800); border-radius:var(--radius-md); padding:22px; box-shadow:var(--shadow-sm); }
.schedule-day{ font-family:var(--font-heading); font-weight:700; color:var(--red-800); font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.schedule-card h3{ font-size:1.05rem; margin-bottom:6px; }
.schedule-time{ font-size:.86rem; color:var(--charcoal-600); font-weight:600; margin-bottom:8px; }
.schedule-card p:not(.schedule-time):not(.schedule-day){ font-size:.86rem; color:var(--charcoal-600); margin:0; }

.replay-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:26px; }
.replay-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.replay-thumb{ position:relative; height:170px; overflow:hidden; }
.replay-thumb img{ width:100%; height:100%; object-fit:cover; }
.replay-duration{ position:absolute; bottom:10px; right:10px; background:rgba(20,16,14,0.78); color:var(--white); font-size:.72rem; font-weight:700; padding:3px 9px; border-radius:4px; }
.replay-play{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:48px; height:48px; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; }
.replay-play::before{ content:""; border-left:14px solid var(--red-800); border-top:9px solid transparent; border-bottom:9px solid transparent; margin-left:4px; }
.replay-body{ padding:18px 20px; }
.replay-body h3{ font-size:.98rem; margin-bottom:6px; }
.replay-meta{ font-size:.78rem; color:var(--charcoal-400); text-transform:uppercase; letter-spacing:.03em; }

/* ---------- Events ---------- */
.events-toolbar{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:8px; }
.events-tab{
  padding:12px 22px; border-radius:var(--radius-sm); border:1px solid var(--border-color); background:var(--white);
  font-weight:700; font-size:.9rem; color:var(--charcoal-800);
}
.events-tab:hover{ border-color:var(--red-800); color:var(--red-800); }
.events-tab.is-active{ background:var(--red-800); border-color:var(--red-800); color:var(--white); }

.event-upcoming-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:28px; }
.event-card{
  display:flex; flex-direction:column; background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md);
  overflow:hidden; box-shadow:var(--shadow-sm); transition:box-shadow .2s ease, transform .2s ease;
}
.event-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.event-img{ position:relative; height:180px; overflow:hidden; background:var(--cream-200); }
.event-img img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.event-card:hover .event-img img{ transform:scale(1.05); }
.event-date-badge{
  position:absolute; top:14px; left:14px; width:60px; height:64px; background:var(--red-800); color:var(--white);
  border-radius:var(--radius-sm); box-shadow:var(--shadow-md);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
.event-date-badge .event-day{ font-family:var(--font-heading); font-size:1.35rem; font-weight:700; line-height:1; }
.event-date-badge .event-month{ font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-top:3px; }
.event-body{ flex:1; min-width:0; padding:22px; display:flex; flex-direction:column; }
.event-format-tag{ display:inline-block; align-self:flex-start; font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-700); background:var(--gold-100); padding:4px 10px; border-radius:20px; margin-bottom:10px; }
.event-body h3{ font-size:1.1rem; margin-bottom:8px; }
.event-meta-row{ display:flex; flex-wrap:wrap; gap:4px 14px; font-size:.82rem; color:var(--charcoal-400); margin-bottom:10px; }
.event-desc{ font-size:.9rem; color:var(--charcoal-600); margin-bottom:14px; }
.event-body .btn{ margin-top:auto; align-self:flex-start; }

.past-events-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:26px; }
.past-event-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.past-event-img{ position:relative; height:210px; overflow:hidden; }
.past-event-img img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.past-event-card:hover .past-event-img img{ transform:scale(1.05); }
.past-event-category{ position:absolute; top:12px; left:12px; background:var(--charcoal-900); color:var(--white); font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 10px; border-radius:20px; }
.past-event-body{ padding:20px; }
.past-event-body h3{ font-size:1.02rem; margin-bottom:6px; }
.past-event-meta{ font-size:.78rem; color:var(--charcoal-400); text-transform:uppercase; letter-spacing:.03em; }

/* ---------- Partners ---------- */
.partner-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:20px; }
.partner-badge{ display:flex; align-items:center; justify-content:center; height:110px; background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); font-family:var(--font-heading); font-weight:700; color:var(--charcoal-600); font-size:1.05rem; text-align:center; padding:0 16px; }
.partner-badge-add{ border-style:dashed; color:var(--charcoal-400); font-weight:600; font-size:.9rem; }

/* ---------- Stories ---------- */
.stories-grid{ display:grid; grid-template-columns:1fr; gap:26px; }
@media (min-width: 900px){ .stories-grid{ grid-template-columns:1.3fr 1fr 1fr; } }
.story-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.story-img{ height:190px; overflow:hidden; }
.story-card-lg .story-img{ height:280px; }
.story-img img{ width:100%; height:100%; object-fit:cover; }
.story-body{ padding:22px; }
.story-category{ display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--red-800); margin-bottom:10px; }
.story-body h3{ font-size:1.15rem; margin-bottom:8px; }
.story-card-lg .story-body h3{ font-size:1.4rem; }
.story-meta{ font-size:.78rem; color:var(--charcoal-400); margin-bottom:10px; }

/* ---------- Testimonials ---------- */
.testimonial-track{ display:grid; grid-template-columns:1fr; gap:24px; }
@media (min-width: 900px){ .testimonial-track{ grid-template-columns:repeat(3,1fr); } }
.testimonial-card{ background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:28px; margin:0; }
.testimonial-card p{ font-style:italic; color:var(--charcoal-800); font-size:1rem; }
.testimonial-card footer{ display:flex; flex-direction:column; }
.testimonial-name{ font-weight:700; }
.testimonial-role{ font-size:.82rem; color:var(--charcoal-400); }

/* ---------- Get involved ---------- */
.involve-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(190px,1fr)); gap:20px; }
.involve-card{ background:var(--charcoal-800); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-md); padding:28px 22px; text-align:center; transition:background-color .2s ease, transform .2s ease; }
.involve-card:hover{ background:var(--red-800); transform:translateY(-3px); }
.involve-icon{ display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:var(--gold-500); color:var(--charcoal-900); font-size:1.3rem; margin-bottom:16px; }
.involve-card h3{ color:var(--white); font-size:1.1rem; margin-bottom:8px; }
.involve-card p{ color:var(--cream-200); font-size:.86rem; margin:0; }

/* ---------- Donate banner ---------- */
.donate-banner{ background:var(--gold-100); border-top:1px solid var(--border-color); border-bottom:1px solid var(--border-color); padding:56px 0; }
.donate-banner-inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; }
.donate-banner-inner h2{ font-size:clamp(1.4rem,2.6vw,1.9rem); margin-bottom:8px; }
.donate-banner-inner p{ margin:0; color:var(--charcoal-600); max-width:520px; }

/* ---------- Newsletter ---------- */
.newsletter-section{ background:var(--red-800); padding:56px 0; }
.newsletter-inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; }
.newsletter-inner h2{ color:var(--white); font-size:clamp(1.3rem,2.4vw,1.7rem); margin-bottom:8px; }
.newsletter-inner p{ color:var(--red-100); margin:0; }
.newsletter-form{ display:flex; flex-wrap:wrap; gap:10px; }
.newsletter-form input{
  padding:13px 16px; border-radius:var(--radius-sm); border:1px solid rgba(255,255,255,.3); min-width:200px;
  font-family:inherit; font-size:.9rem; background:var(--white);
}
.newsletter-form .btn-primary{ background:var(--charcoal-900); }
.newsletter-form .btn-primary:hover{ background:var(--charcoal-800); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--charcoal-900); color:var(--cream-200); padding-top:64px; }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:40px; padding-bottom:48px; }
@media (min-width: 720px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr; } }
@media (min-width: 1024px){ .footer-grid{ grid-template-columns:1.5fr 1fr 1fr 1fr 1.2fr; } }
.footer-brand p{ color:var(--charcoal-400); font-size:.9rem; margin:16px 0 20px; max-width:300px; }
.footer-brand .brand-name{ color:var(--gold-400); }
.social-links{ display:flex; gap:10px; }
.social-links a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; color:var(--cream-200); }
.social-links a:hover{ background:var(--red-800); border-color:var(--red-800); color:var(--white); }
.social-links svg{ width:16px; height:16px; fill:currentColor; }
.footer-col h4{ color:var(--white); font-size:.95rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{ color:var(--charcoal-400); font-size:.9rem; }
.footer-col ul li a:hover{ color:var(--gold-400); }
.footer-contact address{ font-style:normal; color:var(--charcoal-400); font-size:.9rem; margin-bottom:10px; }
.footer-contact p{ margin-bottom:8px; font-size:.9rem; }
.footer-contact a:hover{ color:var(--gold-400); }
.footer-donate{ margin-top:8px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:20px 0; }
.footer-bottom-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; font-size:.8rem; color:var(--charcoal-400); }
.footer-scripture{ font-style:italic; }
.footer-legal-links a{ color:var(--charcoal-400); }
.footer-legal-links a:hover{ color:var(--gold-400); }

/* ---------- Legal pages (Terms of Use / Privacy Policy) ---------- */
.legal-content{ max-width:820px; margin:0 auto; }
.legal-content .legal-updated{ font-size:.85rem; color:var(--charcoal-400); font-style:italic; margin-bottom:32px; }
.legal-content h2{ font-size:1.25rem; margin:0 0 14px; padding-top:28px; border-top:1px solid var(--border-color); }
.legal-content section:first-of-type h2{ border-top:0; padding-top:0; }
.legal-content p{ color:var(--charcoal-600); line-height:1.75; font-size:1rem; margin:0 0 14px; }
.legal-content ul{ padding-left:22px; margin:0 0 16px; }
.legal-content ul li{ color:var(--charcoal-600); line-height:1.75; margin-bottom:8px; }
.legal-content a{ color:var(--red-800); font-weight:600; }

/* ---------- About ---------- */
.value-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:24px; }
.value-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:26px; text-align:center; box-shadow:var(--shadow-sm); }
.value-icon{ display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background:var(--red-100); color:var(--red-800); font-size:1.2rem; margin-bottom:14px; }
.value-card h3{ font-size:1.02rem; margin-bottom:8px; }
.value-card p{ font-size:.88rem; color:var(--charcoal-600); margin:0; }

.leader-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:28px; }
.leader-card{ text-align:center; }
.leader-photo{ width:132px; height:132px; border-radius:50%; overflow:hidden; margin:0 auto 16px; border:3px solid var(--gold-100); }
.leader-photo img{ width:100%; height:100%; object-fit:cover; }
.leader-card h3{ font-size:1.02rem; margin-bottom:2px; }
.leader-role{ font-size:.8rem; color:var(--red-800); font-weight:700; margin-bottom:8px; }
.leader-card p:not(.leader-role){ font-size:.86rem; color:var(--charcoal-600); }

/* ---------- Service lists (Translation / Leadership detail pages) ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(270px,1fr)); gap:24px; }
.service-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:26px; box-shadow:var(--shadow-sm); }
.service-card h3{ font-size:1.02rem; margin-bottom:14px; padding-bottom:12px; border-bottom:2px solid var(--gold-500); }
.service-card ul{ display:flex; flex-direction:column; gap:10px; }
.service-card ul li{ font-size:.87rem; color:var(--charcoal-600); padding-left:20px; position:relative; }
.service-card ul li::before{ content:"\2713"; position:absolute; left:0; color:var(--red-800); font-weight:700; }

.focus-list{ display:flex; flex-direction:column; gap:20px; }
.focus-item{ display:flex; gap:18px; padding:22px; background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); box-shadow:var(--shadow-sm); }
.focus-num{ flex-shrink:0; width:42px; height:42px; border-radius:50%; background:var(--red-800); color:var(--white); font-family:var(--font-heading); font-weight:700; display:flex; align-items:center; justify-content:center; }
.focus-item h3{ font-size:1.02rem; margin-bottom:6px; }
.focus-item p{ font-size:.9rem; color:var(--charcoal-600); margin:0; }

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; border-top:1px solid var(--border-color); }
.faq-item{ border-bottom:1px solid var(--border-color); padding:18px 4px; }
.faq-item summary{ cursor:pointer; font-weight:700; font-size:.96rem; color:var(--charcoal-900); list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:1.3rem; color:var(--red-800); font-weight:400; flex-shrink:0; }
.faq-item[open] summary::after{ content:"\2212"; }
.faq-item p{ margin:12px 0 0; font-size:.89rem; color:var(--charcoal-600); }

/* ---------- Contact ---------- */
.contact-layout{ display:grid; grid-template-columns:1fr; gap:36px; }
@media (min-width: 900px){ .contact-layout{ grid-template-columns:1fr 1.2fr; } }
.contact-info-card{ background:var(--charcoal-900); color:var(--cream-200); border-radius:var(--radius-md); padding:34px; }
.contact-info-card h2{ color:var(--white); font-size:1.3rem; margin-bottom:22px; }
.contact-info-row{ display:flex; gap:14px; margin-bottom:22px; }
.contact-info-icon{ flex-shrink:0; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; color:var(--gold-400); font-size:1rem; }
.contact-info-row h4{ color:var(--white); font-size:.88rem; margin-bottom:4px; }
.contact-info-row p, .contact-info-row a{ font-size:.86rem; color:var(--charcoal-400); margin:0; }
.contact-info-row a:hover{ color:var(--gold-400); }
.contact-map-placeholder{ margin-top:22px; height:150px; border-radius:var(--radius-sm); background:rgba(255,255,255,.06); border:1px dashed rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:.8rem; color:var(--charcoal-400); text-align:center; padding:16px; }

.contact-form-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:34px; box-shadow:var(--shadow-sm); }
.form-row{ display:grid; grid-template-columns:1fr; gap:18px; margin-bottom:18px; }
@media (min-width: 560px){ .form-row.two-col{ grid-template-columns:1fr 1fr; } }
.form-field label{ display:block; font-size:.82rem; font-weight:700; color:var(--charcoal-700); margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border-color); border-radius:var(--radius-sm);
  font-family:inherit; font-size:.9rem; background:var(--cream-50); color:var(--charcoal-900);
}
.form-field textarea{ resize:vertical; min-height:120px; }

/* ---------- Auth (Login / Signup) ---------- */
.auth-shell{ display:flex; justify-content:center; padding:70px 0; }
.auth-card{ width:100%; max-width:440px; background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:40px 36px; box-shadow:var(--shadow-md); }
.auth-card h1{ font-size:1.5rem; margin-bottom:6px; text-align:center; }
.auth-sub{ text-align:center; color:var(--charcoal-600); font-size:.9rem; margin-bottom:28px; }
.auth-foot{ text-align:center; font-size:.88rem; color:var(--charcoal-600); margin-top:22px; }
.auth-foot a{ color:var(--red-800); font-weight:700; }
.auth-checkbox-row{ display:flex; align-items:center; justify-content:space-between; font-size:.85rem; margin-bottom:20px; flex-wrap:wrap; gap:8px; }
.auth-checkbox-row label{ display:flex; align-items:center; gap:8px; color:var(--charcoal-600); }
.auth-checkbox-row a{ color:var(--red-800); font-weight:600; }

/* ---------- Donate ---------- */
.donate-layout{ display:grid; grid-template-columns:1fr; gap:36px; }
@media (min-width: 960px){ .donate-layout{ grid-template-columns:1.1fr 1fr; } }
.donate-form-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:34px; box-shadow:var(--shadow-sm); }
.donate-freq-toggle{ display:flex; border:1px solid var(--border-color); border-radius:var(--radius-sm); overflow:hidden; margin-bottom:24px; }
.donate-freq-toggle button{ flex:1; padding:13px; background:var(--white); font-weight:700; font-size:.88rem; border:none; color:var(--charcoal-600); }
.donate-freq-toggle button.is-active{ background:var(--red-800); color:var(--white); }
.donate-amount-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:20px; }
.donate-amount{ padding:16px 8px; text-align:center; border:1px solid var(--border-color); border-radius:var(--radius-sm); font-weight:700; background:var(--white); color:var(--charcoal-800); }
.donate-amount.is-active{ border-color:var(--red-800); background:var(--red-100); color:var(--red-800); }
.donate-purpose-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:22px; }
.donate-purpose-list label{ display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--border-color); border-radius:var(--radius-sm); font-size:.87rem; color:var(--charcoal-700); cursor:pointer; }

.donate-method-toggle{ display:flex; border:1px solid var(--border-color); border-radius:var(--radius-sm); overflow:hidden; margin-bottom:26px; flex-wrap:wrap; }
.donate-method-toggle button{ flex:1 1 33%; min-width:120px; padding:13px 8px; background:var(--white); font-weight:700; font-size:.84rem; border:none; border-left:1px solid var(--border-color); color:var(--charcoal-600); }
.donate-method-toggle button:first-child{ border-left:none; }
.donate-method-toggle button.is-active{ background:var(--red-800); color:var(--white); }

.donate-bank-panel{ background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:26px; margin-bottom:22px; }
.donate-bank-panel h3{ font-size:1rem; margin-bottom:16px; }
.bank-detail-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border-color); }
.bank-detail-row:last-of-type{ border-bottom:none; }
.bank-detail-label{ font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--charcoal-600); }
.bank-detail-value{ font-size:1rem; font-weight:700; color:var(--charcoal-800); text-align:right; }
.bank-copy-btn{ display:inline-flex; align-items:center; gap:6px; margin-top:4px; padding:7px 14px; border:1px solid var(--red-800); border-radius:var(--radius-sm); background:var(--white); color:var(--red-800); font-size:.78rem; font-weight:700; }
.bank-copy-btn.is-copied{ background:var(--red-800); color:var(--white); }
.donate-bank-note{ font-size:.82rem; color:var(--charcoal-600); margin-top:14px; }

.donate-side-card{ background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:30px; margin-bottom:20px; }
.donate-side-card h3{ font-size:1.02rem; margin-bottom:10px; }
.donate-side-card p{ font-size:.88rem; color:var(--charcoal-600); margin:0 0 14px; }
.donate-tax-note{ background:var(--gold-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px 22px; font-size:.85rem; color:var(--charcoal-700); }

/* ---------- Partner logos ---------- */
.partner-logo-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:22px; }
.partner-logo-card{ background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); height:126px; display:flex; align-items:center; justify-content:center; padding:20px; box-shadow:var(--shadow-sm); transition:box-shadow .2s ease, transform .2s ease; }
.partner-logo-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); }
.partner-logo-card img{ max-width:100%; max-height:100%; object-fit:contain; }

/* ---------- Partner logo marquee (homepage, one continuous line) ---------- */
.partner-marquee{ position:relative; }
.marquee-viewport{ overflow:hidden; width:100%; }
.marquee-track{
  display:flex; align-items:center; gap:28px; width:max-content;
  animation:partner-marquee-scroll 34s linear infinite;
}
.marquee-viewport:hover .marquee-track,
.partner-marquee.is-paused .marquee-track{ animation-play-state:paused; }
.marquee-logo{
  flex:0 0 auto; width:168px; height:94px; display:flex; align-items:center; justify-content:center;
  background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md);
  padding:18px 22px; box-shadow:var(--shadow-sm);
}
.marquee-logo img{ max-width:100%; max-height:100%; object-fit:contain; }
.marquee-controls{ display:flex; justify-content:center; margin-top:20px; }
.marquee-playpause{
  width:34px; height:34px; border-radius:50%; background:var(--cream-100);
  border:1px solid var(--border-color); display:flex; align-items:center; justify-content:center;
}
.marquee-playpause:hover{ background:var(--cream-200); }
.icon-pause-dark{ width:9px; height:11px; border-left:3px solid var(--charcoal-600); border-right:3px solid var(--charcoal-600); }
.marquee-playpause[aria-pressed="true"] .icon-pause-dark{ width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; border-left:9px solid var(--charcoal-600); border-right:none; }

@keyframes partner-marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@media (max-width:640px){
  .marquee-logo{ width:128px; height:76px; padding:12px 16px; }
  .marquee-track{ gap:18px; }
}

/* ---------- Reduced-motion / touch target minimums ---------- */
a, button, select, input{ min-height:2px; }
@media (hover:none){
  .btn, .hamburger, .hero-arrow{ min-height:44px; }
}

/* ---------- Resource Detail ---------- */
.resource-detail-layout{ display:grid; grid-template-columns:340px 1fr; gap:40px; align-items:start; }
@media (max-width:900px){ .resource-detail-layout{ grid-template-columns:1fr; } }
.resource-detail-cover{
  height:360px; border-radius:var(--radius-md); display:flex; flex-direction:column; justify-content:flex-end;
  padding:24px; color:var(--white); box-shadow:var(--shadow-md); position:sticky; top:110px; overflow:hidden;
}
.resource-detail-cover.has-image{ background:var(--charcoal-800); }
@media (max-width:900px){ .resource-detail-cover{ position:relative; height:240px; } }
.resource-detail-cover .resource-cover-icon{ font-size:2.4rem; margin-bottom:auto; }
.resource-detail-cover .resource-tag{ position:relative; z-index:1; align-self:flex-start; margin-bottom:12px; }
.resource-detail-title{ position:relative; z-index:1; font-family:var(--font-heading); font-weight:700; font-size:1.3rem; line-height:1.25; }
.resource-detail-meta-list{ list-style:none; margin:24px 0; padding:0; border-top:1px solid var(--border-color); }
.resource-detail-meta-list li{ display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--border-color); font-size:.9rem; }
.resource-detail-meta-list li span:first-child{ color:var(--charcoal-400); text-transform:uppercase; font-size:.75rem; letter-spacing:.04em; font-weight:700; }
.resource-detail-meta-list li span:last-child{ color:var(--charcoal-900); font-weight:600; text-align:right; }
.resource-detail-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:28px; }
.resource-detail-desc{ font-size:1.02rem; color:var(--charcoal-600); margin-bottom:28px; }
.resource-audio-wrap{ background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; margin-bottom:28px; }
.resource-audio-wrap audio{ width:100%; }
.resource-video-wrap{ background:var(--charcoal-900); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-md); margin-bottom:28px; aspect-ratio:16/9; }
.resource-video-wrap iframe{ width:100%; height:100%; border:0; display:block; }
.resource-coming-soon{ background:var(--cream-100); border:1px dashed var(--border-color); border-radius:var(--radius-md); padding:26px 20px; text-align:center; color:var(--charcoal-400); font-style:italic; margin-bottom:28px; }
.share-buttons{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.share-buttons span{ font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; font-weight:700; color:var(--charcoal-400); }
.share-btn{
  width:36px; height:36px; border-radius:50%; background:var(--cream-100); border:1px solid var(--border-color);
  display:flex; align-items:center; justify-content:center; font-size:.85rem; font-weight:700; color:var(--charcoal-800);
}
.share-btn:hover{ background:var(--cream-200); }
.save-btn{ display:inline-flex; align-items:center; gap:8px; }
.save-btn[aria-pressed="true"]{ background:var(--gold-500); color:var(--charcoal-900); border-color:var(--gold-500); }
.related-heading{ margin:56px 0 24px; padding-top:40px; border-top:1px solid var(--border-color); }

/* ---------- Paid resources (Christian Books etc.) ---------- */
.resource-price-badge{ position:absolute; top:12px; right:12px; font-size:.7rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 10px; border-radius:20px; }
.resource-price-badge.is-free{ background:var(--green-800); color:var(--white); }
.resource-price-badge.is-paid{ background:var(--gold-600); color:var(--charcoal-900); }
.resource-detail-cover .resource-price-badge{ position:static; align-self:flex-start; margin-bottom:10px; }
.resource-detail-meta-list .resource-price-badge{ position:static; display:inline-block; }
.resource-buy-box{ background:var(--cream-100); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:20px; margin-bottom:28px; }
.resource-buy-box .resource-buy-price{ font-family:var(--font-heading); font-weight:800; font-size:1.4rem; color:var(--red-800); margin-bottom:6px; }
.resource-buy-box p{ font-size:.9rem; color:var(--charcoal-600); margin-bottom:14px; }
.resource-owned-badge{ display:inline-flex; align-items:center; gap:8px; background:var(--green-800); color:var(--white); font-size:.78rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; padding:8px 14px; border-radius:20px; margin-bottom:16px; }

/* ---------- Translation Portal ---------- */
.tp-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
@media (max-width:760px){ .tp-steps{ grid-template-columns:1fr; } }
.tp-step{ text-align:center; }
.tp-step-num{
  width:48px; height:48px; margin:0 auto 18px; border-radius:50%;
  background:var(--red-800); color:var(--white); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-heading); font-weight:800; font-size:1.1rem;
}
.tp-step h3{ font-size:1.05rem; margin-bottom:6px; }

.tp-lang-pill-grid{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.tp-lang-pill{
  background:var(--cream-100); border:1px solid var(--border-color); border-radius:999px;
  padding:9px 18px; font-size:.86rem; font-weight:600; color:var(--charcoal-800);
}

.tp-plan-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; align-items:stretch; }
@media (max-width:900px){ .tp-plan-grid{ grid-template-columns:1fr; max-width:460px; margin:0 auto; } }
.tp-plan-card{
  position:relative; display:flex; flex-direction:column; text-align:center;
  background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md);
  padding:40px 30px 32px; box-shadow:var(--shadow-sm);
}
.tp-plan-card.is-featured{ border:2px solid var(--red-800); box-shadow:var(--shadow-md); }
.tp-plan-badge{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--gold-500); color:var(--charcoal-900); font-size:.7rem; font-weight:800;
  text-transform:uppercase; letter-spacing:.06em; padding:6px 16px; border-radius:999px;
}
.tp-plan-card h3{ font-size:1.15rem; margin-bottom:6px; }
.tp-plan-price{ font-family:var(--font-heading); font-weight:800; font-size:2.2rem; color:var(--red-800); margin:14px 0 24px; }
.tp-plan-price span{ font-size:.82rem; font-weight:600; color:var(--charcoal-400); }
.tp-plan-features{ text-align:left; flex-grow:1; margin-bottom:28px; }
.tp-plan-features li{
  position:relative; padding:9px 0 9px 26px; border-bottom:1px solid var(--border-color);
  font-size:.86rem; color:var(--charcoal-600);
}
.tp-plan-features li:last-child{ border-bottom:none; }
.tp-plan-features li::before{ content:"\2713"; position:absolute; left:0; top:9px; color:var(--green-800); font-weight:800; }

.tp-usage-meter{
  background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md);
  padding:22px 26px; margin-bottom:32px; box-shadow:var(--shadow-sm);
}
.tp-usage-meter.is-near-limit{ border-color:var(--gold-500); }
.tp-usage-meter.is-over-limit{ border-color:var(--red-800); }
.tp-usage-bar{ height:8px; border-radius:999px; background:var(--cream-200); overflow:hidden; margin-top:12px; }
.tp-usage-bar-fill{ height:100%; background:var(--green-800); border-radius:999px; }
.tp-usage-meter.is-near-limit .tp-usage-bar-fill{ background:var(--gold-600); }
.tp-usage-meter.is-over-limit .tp-usage-bar-fill{ background:var(--red-800); }

.tp-dropzone{
  display:block; border:2px dashed var(--border-color); border-radius:var(--radius-md);
  padding:40px 20px; text-align:center; cursor:pointer; background:var(--cream-50);
  transition:border-color .15s ease, background .15s ease;
}
.tp-dropzone:hover, .tp-dropzone.is-dragover{ border-color:var(--red-800); background:var(--cream-100); }
.tp-dropzone-icon{ font-size:2.2rem; display:block; margin-bottom:10px; }
.tp-dropzone input[type="file"]{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}
.tp-paste-area textarea{
  width:100%; min-height:220px; padding:16px; border:1px solid var(--border-color);
  border-radius:var(--radius-sm); font-family:inherit; font-size:.92rem; resize:vertical;
}

.tp-job-list{ display:flex; flex-direction:column; gap:14px; }
.tp-job-row{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  background:var(--white); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:18px 22px;
}
.tp-job-row-info h3{ font-size:.98rem; margin:0 0 4px; }
.tp-job-row-info p{ font-size:.82rem; color:var(--charcoal-400); margin:0; }

.tp-status-badge{
  display:inline-block; padding:5px 14px; border-radius:999px; font-size:.72rem; font-weight:800;
  text-transform:uppercase; letter-spacing:.04em; white-space:nowrap;
}
.tp-status-queued{ background:var(--cream-200); color:var(--charcoal-600); }
.tp-status-processing{ background:var(--blue-800); color:var(--white); }
.tp-status-completed{ background:var(--green-800); color:var(--white); }
.tp-status-failed{ background:var(--red-800); color:var(--white); }
