/* --------------------------------------------- */
/* RESET */
/* --------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1.5rem; /* small side padding for breathing room */
}

/* --------------------------------------------- */
/* HEADER + NAV */
/* --------------------------------------------- */

.site-header {
  background-color: #0f5c33;
  color: #ffffff;
  overflow: visible;     /* allows logo to float outside */
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 4rem 0.15rem 4rem; /* shallower header, equal side padding */
  width: 100%;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: #0c4425;
}

.main-nav a.active {
  background-color: #ffffff;
  color: #0f5c33;
  font-weight: 600;
}

/* Special button */
.nav-cta {
  background-color: #7c3aed; /* purple */
  color: #ffffff !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px; /* pill-shaped */
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.nav-cta:hover {
  background-color: #6d28d9;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 0.9rem;
}

.nav-toggle:hover {
  background-color: #0c4425;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Header image directly below nav */
.header-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-top: 0.1rem;        /* very small gap below menu */
}

.header-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

/* --------------------------------------------- */
/* HERO SECTION */
/* --------------------------------------------- */

.hero {
  background-color: #f4f4f4;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  min-height: 360px;
}

.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45), transparent);
}

.hero-text-panel {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero headings */
.hero-heading-large {
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.hero-heading-wrapper {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #ffffff;
}

/* Page title */
.page-title-main {
  font-size: 2.1rem;
  font-weight: 700;
  color: #0f5c33;
  margin-bottom: 1rem;
}

.highlight-text {
  color: #15803d;
  font-weight: 700;
}

/* Button */
.btn-primary {
  display: inline-block;
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.2rem;
}

.btn-primary:hover {
  background-color: #15803d;
}

/* --------------------------------------------- */
/* SECTIONS & CONTENT */
/* --------------------------------------------- */

.section {
  padding: 2.5rem 6rem 3rem 4rem;
}

.section h2 {
  font-size: 1.6rem;
  color: #15803d;
  margin-bottom: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.link-gallery-btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #15803d;
  background-color: #ffffff;
  color: #15803d;
  cursor: pointer;
}

.link-gallery-btn:hover {
  background-color: #15803d;
  color: #ffffff;
}

/* Two-column layouts */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 2rem;
}

.two-column img {
  width: 50%;
  height: auto;
  border-radius: 4px;
}

.support-layout {
  grid-template-columns: 25% 60% 15%; /* image 25%, text 60%, empty 15% */
  align-items: flex-start;
}

.support-image-wrap img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

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

  .support-layout .support-image-wrap {
    order: 2;
    margin-top: 1.25rem;
  }
}

/* How it started story layout */
.story-with-image {
  font-size: 1rem;
}

.story-with-image p + p {
  margin-top: 0.9rem;
}

.story-image-right {
  float: right;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.story-figure {
  margin-top: 1.25rem;
}

@media (max-width: 600px) {
  .story-figure img.story-image-left {
    max-width: 70%;
    height: auto;
  }
}

/* Bank details */
.bank-details {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #f4f4f4;
  border-left: 4px solid #0f5c33;
  font-size: 0.95rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.contact-card,
.contact-follow-card {
  background-color: #f9fafb;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.contact-follow-card h3 {
  margin-bottom: 0.75rem;
  color: #0f5c33;
}

.contact-follow-card a {
  color: #16a34a;
  text-decoration: none;
}

.contact-follow-card a:hover {
  text-decoration: underline;
}

.contact-image-card {
  text-align: center;
}

.contact-image {
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #16a34a;
  text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Leadership */
.leadership-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.leader-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
}

.leader-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

/* Gallery */
.gallery-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

/* Gallery lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.lightbox-close {
  top: -2.5rem;
  right: 0;
}

.lightbox-prev {
  left: -2.5rem;
}

.lightbox-next {
  right: -2.5rem;
}

/* Home intro 2-column layout */
.home-intro-grid {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 75% / 25% approx */
  gap: 2rem;
  align-items: flex-start;
}

.home-intro-main {
  max-width: 960px; /* keeps text readable on very wide screens */
}

.home-intro-news {
  background-color: #f4f4f4;
  padding: 1.25rem 1rem;
  border-radius: 4px;
}

.home-intro-news h3 {
  font-size: 1.1rem;
  color: #0f5c33;
  margin-bottom: 0.75rem;
}

.news-tiles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-tile {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}

.news-tile-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.news-tile-meta {
  font-size: 0.8rem;
  color: #555;
}

/* --------------------------------------------- */
/* HOME: LATEST NEWS (match site palette) */
/* --------------------------------------------- */

.home-intro-news {
  background-color: #f4f4f4;
  padding: 1.25rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 92, 51, 0.08);
}

.home-intro-news h3 {
  font-size: 1.1rem;
  color: #0f5c33;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.news-tiles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tile */
.news-tile {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  font-size: 0.92rem;
  border: 1px solid rgba(15, 92, 51, 0.10);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.news-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.55); /* #16a34a */
  box-shadow: 0 10px 18px rgba(0,0,0,0.10);
  text-decoration: none;
}

.news-tile-title {
  font-weight: 700;
  color: #0f5c33;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.news-tile-meta {
  font-size: 0.82rem;
  color: #555;
}

/* Optional: make emoji titles not push height too much */
.news-tile-title,
.news-tile-meta {
  word-break: break-word;
}


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

/* --------------------------------------------- */
/* FOOTER */
/* --------------------------------------------- */
.site-footer {
  background-color: #0f5c33;
  color: #ffffff;
  padding: 1rem;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 2rem;
}

/* --------------------------------------------- */
/* MARGINS */
/* --------------------------------------------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* --------------------------------------------- */
/* RESPONSIVE */
/* --------------------------------------------- */

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

  .hero-heading-wrapper {
    position: static;
    padding: 1.5rem 1rem 0.5rem;
    background: #0f5c33;
  }

  .hero-heading-large {
    font-size: 1.9rem;
  }

  .hero-text-panel {
    padding: 1.75rem 1.5rem 2rem;
  }

  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 1.5rem 2.5rem 1.5rem;
  }

  .page-title-main {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .home-intro-news {
    margin-top: 1.5rem;
  }

  .story-image-right {
    float: none;
    display: block;
    margin: 1rem auto 1rem auto;
  }

  .contact-image {
    max-width: 100%;
  }
}

/* --------------------------------------------- */
/* BLOG PAGES */
/* --------------------------------------------- */

.blog-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.blog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-back-link {
  color: #15803d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.blog-back-link:hover {
  text-decoration: underline;
}

.blog-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(15, 92, 51, 0.10);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
}

.blog-kicker {
  padding: 1.1rem 1.2rem 0;
  color: #555;
  font-size: 0.95rem;
}

.blog-title {
  padding: 0.25rem 1.2rem 0.25rem;
  color: #0f5c33;
  font-size: 2rem;
  line-height: 1.2;
}

.blog-meta {
  padding: 0.5rem 1.2rem 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 92, 51, 0.14);
  background: #f4f4f4;
  font-size: 0.85rem;
  color: #0f5c33;
}

.blog-cover img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.blog-content {
  padding: 1.25rem 1.2rem 1.35rem;
}

.blog-content p + p {
  margin-top: 0.9rem;
}

.blog-content h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  color: #15803d;
  font-size: 1.4rem;
}

.blog-content h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  color: #0f5c33;
  font-size: 1.05rem;
}

.blog-content ul {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.blog-quote {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #16a34a;
  background: #f4f4f4;
  border-radius: 6px;
  color: #222;
}

.blog-cta {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  background: #f9fafb;
  border: 1px solid rgba(15, 92, 51, 0.10);
  border-radius: 8px;
}

.blog-cta-lead {
  margin-bottom: 0.6rem;
  color: #0f5c33;
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.blog-outline-btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  border: 1px solid #15803d;
  color: #15803d;
  text-decoration: none;
  font-weight: 600;
  background: #ffffff;
}

.blog-outline-btn:hover {
  background: #15803d;
  color: #ffffff;
}

.blog-muted {
  color: #555;
  font-size: 0.92rem;
}

.blog-footer-line {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: #555;
  font-size: 0.95rem;
}


@media (max-width: 600px) {
  .header-inner {
    padding-bottom: 3rem;
  }

  .logo-area {
    bottom: -55px;
  }

  .logo-area img {
    height: 80px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    background-color: #0f5c33;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem 0.75rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    padding-top: 0.2rem;
    padding-bottom: 0.1rem;
  }

  .nav-cta {
    padding: 0.55rem 1.5rem;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  }
}

/* --------------------------------------------- */
/* DONATION CARD (PayFast) */
/* --------------------------------------------- */

.donation-card {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(15, 92, 51, 0.10);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.donation-title {
  color: #0f5c33;
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.donation-subtitle {
  color: #444;
  margin-bottom: 1rem;
}

.donation-form {
  display: grid;
  gap: 0.65rem;
}

.donation-label {
  font-weight: 700;
  color: #0f5c33;
}

.donation-amount-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  max-width: 360px;
}

.donation-currency {
  font-weight: 800;
  color: #0f5c33;
}

.donation-amount {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: #222;
  background: transparent;
}

.donation-amount:focus {
  outline: none;
}

.donation-hint {
  font-size: 0.9rem;
  color: #555;
}

.donation-actions {
  margin-top: 0.35rem;
}

.payfast-button {
  max-width: 260px;
  height: auto;
}

.donation-secure-note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #666;
}

/* --------------------------------------------- */
/* SUPPORT PAGE 3-COLUMN LAYOUT */
/* --------------------------------------------- */

.support-grid {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  gap: 2rem;
  align-items: flex-start;
}

/* Keep image nice */
.support-image-wrap img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* Donation column sticks slightly for better UX */
.donation-column {
  position: sticky;
  top: 100px;
}

/* Responsive: collapse to 1 column */
@media (max-width: 1000px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .donation-column {
    position: static;
  }
}
