/* ==========================================================================
   SBS Kenya Foundation - Phase 1 prototype stylesheet
   ========================================================================== */

:root {
  --navy: #102C57;
  --navy-dark: #1A365D;
  --green: #006E36;
  --green-dark: #2E7D32;
  --red: #CE1212;
  --red-dark: #D32F2F;
  --gold: #ffc107;
  --gold-light: #E8C77A;
  --menu-green: #00944A;

  --ink: #1E2430;
  --ink-soft: #5B6472;
  --paper: #FFFFFF;
  --paper-soft: #F6F7F9;
  --border: #E4E7EC;

  --font-heading: "Montserrat", "Inter", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-eyebrow: "Caveat", cursive;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 44, 87, 0.12);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.text-white { color: var(--paper); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.78); }
.section--green { background: var(--green); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green p { color: rgba(255,255,255,0.85); }
.section--soft { background: var(--paper-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-eyebrow);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 8px;
}
.section--navy .eyebrow,
.hero .eyebrow { color: var(--gold-light); }

.section-head { text-align: center; max-width: 840px; margin: 0 auto 48px; }
.accent { color: var(--red); }
.accent-gold { color: var(--gold); }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { box-shadow: 0 8px 20px rgba(206,18,18,0.35); }
.btn--outline { background: transparent; border-color: currentColor; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Utility bar + nav ------------------------------------------------------ */
.utility-bar {
  background: var(--green);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
}
.utility-bar__contact { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.utility-bar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar__contact a:hover { color: var(--gold-light); }
.utility-bar__tagline { display: flex; align-items: center; gap: 8px; font-style: italic; color: rgba(255,255,255,0.75); }
.utility-bar__social { display: flex; gap: 14px; align-items: center; }
.utility-bar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}
.utility-bar__social a svg { width: 16px; height: 16px; fill: currentColor; }
.utility-bar__social a:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .utility-bar__tagline { display: none; }
  .utility-bar .container { justify-content: center; text-align: center; }
  .utility-bar__contact, .utility-bar__social { justify-content: center; }
}

.navbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(16,44,87,0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.navbar__logo { display: flex; align-items: center; gap: 10px; }
.navbar__logo img { height: 44px; }

/* Green pill nav menu, Charifund-style, with a call-us badge as the last item */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
  background: var(--menu-green);
  border-radius: 50px;
  padding: 8px 8px 8px 22px;
}
.navbar__menu a {
  color: #fff;
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
}
.navbar__menu a:hover, .navbar__menu a.is-active { color: var(--gold-light); }

/* Call-us badge sits in normal flex flow as the last menu item - never overlaps links */
.navbar__phone {
  display: none;
  align-items: center;
  gap: 8px;
  border:0px;
  background: var(--red);
  color: #fff;
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  font-size: 0.68rem;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar__phone-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.navbar__phone strong { display: block; font-size: 0.8rem; }

.navbar__cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 1220px) {
  .navbar__phone { display: flex; }
}
@media (max-width: 900px) {
  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--menu-green);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    border-radius: 16px;
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__toggle { display: block; }
}

/* Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,148,74,0.88),rgba(0,110,54,0.98));
  /* solid navy overlay (not a color gradient effect) */
}
.hero__content { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero h1 .accent { color: var(--red-dark); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.hero--split .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero--split .hero__content { max-width: none; }
.hero--split .hero__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 90%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}
.hero--banner { padding: 40px 0; text-align: center; }
.hero--banner .hero__content { max-width: 750px; margin: 0 auto; }

@media (max-width: 860px) {
  .hero--split .container { grid-template-columns: 1fr; }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2rem; }
  .hero--split .hero__photo img { width: 100%; }
}

/* Decorative squiggle ---------------------------------------------------- */
.decor-heart {
  width: 70px;
  height: 70px;
  color: var(--gold);
  opacity: 0.8;
}

/* Trust / partner strip -------------------------------------------------- */
.trust-strip { padding: 32px 0; background: var(--paper-soft); }
.trust-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.trust-strip__item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; filter: grayscale(1); opacity: 0.75; }

/* Blob cards -------------------------------------------------------------- */
.blob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blob-card {
  border: 2px dashed var(--border);
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  padding: 44px 30px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.blob-card:hover { border-color: var(--gold); }
.blob-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}
.blob-card:nth-child(1) .blob-card__icon { background: var(--gold); }
.blob-card:nth-child(2) .blob-card__icon { background: var(--green); }
.blob-card:nth-child(3) .blob-card__icon { background: var(--red); }
.blob-card h3 { font-size: 1.15rem; }

@media (max-width: 860px) {
  .blob-grid { grid-template-columns: 1fr; }
}

/* Photo collage ----------------------------------------------------------- */
.collage-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.collage {
  position: relative;
  height: 420px;
}
.collage img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.collage img:nth-child(1) { width: 62%; height: 80%; top: 0; left: 0; }
.collage img:nth-child(2) { width: 48%; height: 55%; bottom: 0; right: 0; border: 6px solid #fff; }
.collage-tag {
  position: absolute;
  top: 30px;
  left: -18px;
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  writing-mode: vertical-rl;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  z-index: 2;
}
.collage-copy ul,.donation-module__body ul { margin: 20px 0; }
.collage-copy li, .donation-module__body li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-soft); }
.collage-copy li::before, .donation-module__body li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.collage-stat { display: flex; align-items: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.collage-stat strong { font-family: var(--font-heading); font-size: 1.8rem; color: var(--red); display: block; }

@media (max-width: 860px) {
  .collage-section .container { grid-template-columns: 1fr; }
  .collage { height: 320px; margin-bottom: 20px; }
}

/* Cause / program cards --------------------------------------------------- */
.cause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.cause-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.cause-card__media { position: relative; }
.cause-card__media img { height: 190px; width: 100%; object-fit: cover; }
.cause-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cause-card h3 { font-size: 1.1rem; }
.cause-card__body p { flex: 1; font-size: 0.92rem; }
.progress {
  margin: 14px 0;
}
.progress__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.progress__labels .raised { color: var(--gold); font-weight: 700; }
.progress__track {
  height: 8px;
  border-radius: 50px;
  background: var(--border);
  overflow: hidden;
}
.progress__fill { height: 100%; background: var(--gold); border-radius: 50px; }
.progress__note { font-size: 0.7rem; color: var(--ink-soft); font-style: italic; margin-top: 4px; }

/* Carousel (simple, JS-driven) --------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 300px; scroll-snap-align: start; }
.carousel__controls { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 20px; }
.carousel__btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1.1rem;
}
.carousel__btn--next { background: var(--gold); }

/* Split CTA banner with torn divider ---------------------------------------- */
.split-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.split-cta::before { content: ""; position: absolute; inset: 0; background: rgba(16,44,87,0.82); }
.split-cta__divider { color: var(--paper); display: block; width: 100%; height: 40px; }
.split-cta__divider--top { transform: rotate(180deg); }
.split-cta .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding: 70px 24px;
}
.split-cta__half { padding: 0 30px; }
.split-cta__half + .split-cta__half { border-left: 1px solid rgba(255,255,255,0.25); }
.split-cta h3 { color: #fff; font-size: 1.5rem; }

@media (max-width: 700px) {
  .split-cta .container { grid-template-columns: 1fr; gap: 40px; }
  .split-cta__half + .split-cta__half { border-left: none; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 40px; }
}

/* Team grid ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.team-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-card img { height: 280px; object-fit: cover; width: 100%; }
.team-card__info {
  padding: 16px;
  background: #fff;
  text-align: center;
}
.team-card__info h4 { margin: 0 0 4px; font-size: 1.05rem; }
.team-card__info span { color: var(--green); font-size: 0.85rem; font-weight: 600; }

/* Donation module -------------------------------------------------------- */
.donation-module {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.donation-module__media img { height: 100%; object-fit: cover; }
.donation-module__body { padding: 36px; }
.donation-module--full { grid-template-columns: 1fr; }
.payment-methods { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 22px; font-size: 0.9rem; }
.payment-methods label { display: flex; align-items: center; gap: 6px; }
.donation-type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 20px; }
.donation-type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background: #fff;
}
.donation-type-option input { width: auto; }
.donation-type-option:has(input:checked) { border-color: var(--gold); background: rgba(201,150,44,0.08); color: var(--gold); }
.in-kind-field { display: none; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 18px; }
.checkbox-field input { width: auto; }
.donate-appeal { margin-bottom: 24px; font-size: 1.05rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .donation-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .donation-type-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .donation-module { grid-template-columns: 1fr; }
  .donation-module__media img { width: 100%; height: 220px; }
}

/* Forms ------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid--single { grid-template-columns: 1fr; }
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-soft);
}
textarea { resize: vertical; min-height: 110px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 16px; }
.file-field {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-soft);
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Testimonials -------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testimonial-card__stars { color: var(--gold); margin-bottom: 10px; }
.testimonial-card__person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card__person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-card__person strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-card__person span { font-size: 0.8rem; color: var(--ink-soft); }

/* Stats over photo -------------------------------------------------------- */
.stats-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-photo img { width: 100%; height: 420px; object-fit: cover; }
.stats-photo__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(16,44,87,0.9);
  color: #fff;
  padding: 20px 26px;
  border-radius: var(--radius);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.stats-photo__badge .stat strong { display: block; font-size: 1.6rem; font-family: var(--font-heading); color: var(--gold-light); }
.stats-photo__badge .stat span { font-size: 0.78rem; }
.stats-photo__note { font-size: 0.7rem; font-style: italic; color: rgba(255,255,255,0.6); }

/* Counters (impact grid) -------------------------------------------------- */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.counter-grid .counter strong {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  display: block;
  color: #fff;
}
.counter-grid .counter span { font-size: 0.85rem; opacity: 0.85; }
@media (max-width: 860px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Latest / stories cards -------------------------------------------------- */
.latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.latest-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}
.latest-card img { height: 200px; width: 100%; object-fit: cover; }
.latest-card__body { padding: 20px; }
.latest-card__tag { color: var(--gold); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.latest-card h3 { font-size: 1.05rem; margin: 8px 0; }
.latest-card__link {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Story modal ----------------------------------------------------------- */
.story-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(16,44,87,0.75);
  padding: 24px;
}
.story-modal.is-open { display: flex; }
.story-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
}
.story-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--paper-soft);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.story-modal__close:hover { background: var(--border); }
.story-modal__content h3 { margin-right: 30px; }

/* Gallery ------------------------------------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { border-radius: 10px; height: 220px; object-fit: cover; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Masonry gallery ------------------------------------------------------ */
.gallery-grid--masonry { display: block; column-count: 3; column-gap: 16px; }
.gallery-grid--masonry img { height: auto; border-radius: 10px; margin: 0 0 16px; break-inside: avoid; }
@media (max-width: 860px) { .gallery-grid--masonry { column-count: 2; } }
@media (max-width: 560px) { .gallery-grid--masonry { column-count: 1; } }

/* Icon box grid (values/pillars) ------------------------------------------ */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.icon-grid--4 { grid-template-columns: repeat(4, 1fr); }
.icon-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.icon-box__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}
@media (max-width: 860px) { .icon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .icon-grid { grid-template-columns: 1fr; } }

/* Timeline ------------------------------------------------------------ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -40px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item time { color: var(--red); font-weight: 700; font-size: 0.85rem; }

/* Tabs (DHI pillars) ------------------------------------------------------ */
.tabs__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs__btn {
  border: 2px solid var(--border);
  background: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.88rem;
}
.tabs__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.tabs__panel img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px) { .tabs__panel.is-active { grid-template-columns: 1fr; } }

/* Pillar cards (DHI model) -------------------------------------------------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar-card {
  border-radius: 40% 60% 55% 45% / 45% 55% 45% 55%;
  border: 2px dashed var(--border);
  padding: 30px 22px;
  text-align: center;
}
.pillar-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.pillar-card__letter {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 10px;
}
@media (max-width: 960px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Budget table -------------------------------------------------------- */
.budget-list { max-width: 560px; margin: 0 auto; }
.budget-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.budget-row span:first-child { font-weight: 600; color: var(--navy); }
.budget-row .amount { color: var(--gold); font-weight: 700; }
.budget-row--total { border-bottom: none; padding-top: 20px; font-size: 1.15rem; }
.budget-row--total span:first-child { color: var(--red); }

/* Accordion (FAQ) -------------------------------------------------------- */
.accordion-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.accordion-item__head {
  width: 100%;
  background: #fff;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}
.accordion-item__body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 22px; }
.accordion-item.is-open .accordion-item__body { max-height: 240px; padding: 0 22px 18px; }
.accordion-item.is-open .accordion-item__head { color: var(--red); }

/* Footer (Charifund-style: newsletter row + 4-column grid + bottom bar) ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-decor {
  position: absolute;
  width: 90px; height: 90px;
  color: var(--gold);
  opacity: 0.5;
}
.footer-decor--tl { top: 40px; left: 5%; }
.footer-decor--br { bottom: 90px; right: 5%; color: #fff; opacity: 0.15; }

.newsletter-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.newsletter-row h3 { color: #fff; margin-bottom: 4px; font-size: 1.4rem; }
.newsletter-row p { margin: 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.newsletter-row form { display: flex; gap: 10px; max-width: 460px; width: 100%; }
.newsletter-row input { border-radius: 50px; border: none; }
.newsletter-row button {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%; border: none;
  background: var(--gold); color: var(--navy);
  font-weight: 700; cursor: pointer; font-size: 1.1rem;
}
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 0; position: relative; z-index: 1; }

.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 40px 0; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.footer-grid h4::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  background: var(--gold);
  margin: 10px 0 18px;
  border-radius: 2px;
}
.footer-grid li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-grid li a { display: inline-flex; align-items: center; gap: 8px; }
.footer-grid li a::before { content: "\2197"; color: var(--gold); font-size: 0.8rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 50px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social a:first-child { background: var(--gold); color: var(--navy); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li::before { content: "\25CF"; color: var(--gold); font-size: 0.6rem; margin-top: 6px; }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 0.82rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid h4::after { margin-left: auto; margin-right: auto; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-grid li a { justify-content: center; }
  .footer-contact li { justify-content: center; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* Generic responsive grid helpers ----------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Sidebar (donate page) --------------------------------------------------- */
.donate-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.sidebar-card h4 { font-size: 1rem; margin-bottom: 14px; }
.mini-cause { display: flex; gap: 12px; margin-bottom: 14px; }
.mini-cause img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.mini-cause .raised { color: var(--gold); font-weight: 700; font-size: 0.8rem; }
.ad-banner { background: var(--green); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; }
.ad-banner h4 { color: #fff; }

@media (max-width: 900px) {
  .donate-layout { grid-template-columns: 1fr; }
}

/* Opportunity / list cards ------------------------------------------------- */
.opportunity-card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.opportunity-card img { height: 100%; object-fit: cover; }
.opportunity-card__body { padding: 24px; }
.opportunity-card__status { display: inline-block; background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; margin-bottom: 10px; }
@media (max-width: 700px) { .opportunity-card { grid-template-columns: 1fr; } .opportunity-card img { height: 200px; } }

/* Contact page ------------------------------------------------------- */
.contact-info { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.contact-info__item { display: flex; align-items: center; gap: 12px; }
.contact-info__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 0; width: 100%; height: 420px; }

/* Multi-step form (corporate CSR) ---------------------------------------- */
.steps { display: flex; gap: 10px; margin-bottom: 30px; }
.steps__step {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--paper-soft);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 2px solid var(--border);
}
.steps__step.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Illustrative note badge ------------------------------------------------- */
.illustrative-note {
  display: inline-block;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--ink-soft);
  background: var(--paper-soft);
  padding: 4px 10px;
  border-radius: 50px;
  margin-top: 8px;
}
