/* HopeSpring Foundation International */
/* Colors from Brand Kit */
:root {
  --primary-dark: #195429;
  --primary-green: #179917;
  --light-green: #b5c577;
  --accent-orange: #f78226;
  --light-bg: #f2f2f2;
  --dark-gray: #545454;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 15px 50px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'ITC Avant Garde Gothic', 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  background: rgba(25, 84, 41, 0.1);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
}

.btn-primary:hover {
  background: #e06e15;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 130, 38, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-white:hover {
  background: var(--light-bg);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header .container {
  max-width: 100%;          /* Allows container to expand end-to-end */
  width: 100%;              /* Ensures full width execution */
  padding: 0 24px;          /* Prevents content from touching raw screen edges */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0;
  min-height: 72px;
} */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Spreads items out evenly */
  flex: 1;                         /* Takes up all remaining width in the header */
  padding: 10px 0;
  min-height: 72px;
}

/* Logo — left side, never shrinks */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: 190px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--dark-gray);
  letter-spacing: 0.4px;
}

/* Nav links — centered on desktop, evenly spaced */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-green);
  background: rgba(23, 153, 23, 0.08);
}

/* Donate button — right side */
.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 11px 22px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hamburger button (hidden on desktop) */
.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(25, 84, 41, 0.08);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  position: relative;
  transition: background 0.25s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Open state — turns into X */
.mobile-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ========== RESPONSIVE — HEADER ========== */

/* Large tablets / small desktops — tighten nav spacing */
@media (max-width: 1100px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  /* .logo-text {
    font-size: 0.95rem;
  } */

  .logo-text span {
    font-size: 0.6rem;
  }
}

/* Tablets (portrait & landscape) */
@media (max-width: 992px) {
  .nav {
    gap: 16px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }
  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .logo img {
    height: 40px;
    width: 40px;
  }
}

/* Mobile & small tablets — hamburger menu */
@media (max-width: 768px) {
  .nav {
    min-height: 64px;
    padding: 10px 0;
    gap: 12px;
  }
  .logo img {
    height: 80px;
    width: 120px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .logo-text span {
    font-size: 0.58rem;
  }

  /* Hide desktop nav links, show as slide-down panel */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    gap: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(23, 153, 23, 0.1);
  }

  /* Keep Donate button visible on mobile (compact) */
  .nav-cta {
    display: flex;
    margin-left: auto;
  }
  .nav-cta .btn {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 0.82rem;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .nav {
    gap: 8px;
  }
  .logo-text span {
    display: none; /* hide long subtitle on very small screens */
  }
  .nav-cta .btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .logo-text {
    font-size: 0.85rem;
  }
  .nav-cta .btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }
}

/* Tablets landscape — keep desktop-style nav when wide enough */
@media (min-width: 769px) and (max-width: 992px) {
  .nav-links {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* ========== PROGRAM DETAIL PAGES ========== */
.program-hero {
  padding: 120px 0 60px;
  background: var(--light-bg);
}

.program-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.program-breadcrumb a {
  color: var(--primary-green);
  font-weight: 500;
}

.program-breadcrumb a:hover {
  color: var(--accent-orange);
}

.program-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.program-hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.program-meta span i {
    color: var(--accent-orange);
}

.program-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.program-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.program-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(25, 84, 41, 0.15);
  object-fit: cover;
  max-height: 420px;
}

.program-stats {
  padding: 40px 0;
  background: var(--primary-dark);
  color: var(--white);
}

.program-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.program-stat .num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.program-stat .lbl {
  font-size: 0.9rem;
  opacity: 0.9;
}

.program-story {
  padding: 80px 0;
  background: var(--white);
}

.program-story-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.program-story-main h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
  color: var(--text-dark);
}

.program-story-main p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.program-highlight-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.program-highlight-box h3 {
  font-size: 0.95rem;
  color: var(--primary-green);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-highlight-box p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.05rem;
}

.program-impact-quote {
  margin: 32px 0 0;
  padding: 0;
  border: none;
}

.program-impact-quote p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.program-aside-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.program-aside-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.program-aside-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.program-aside-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.program-aside-card li:last-child {
  border-bottom: none;
}

.program-aside-card li strong {
  color: var(--text-dark);
}

.program-aside-cta {
  background: var(--primary-dark);
  color: var(--white);
  border: none;
}

.program-aside-cta h3 {
  color: var(--white);
}

.program-aside-cta p {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.5;
}

.program-aside-cta .program-aside-card-btn {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.program-aside-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.program-aside-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.program-series {
  padding: 64px 0 80px;
  background: var(--light-bg);
}

.program-series-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.program-series-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.program-series-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.series-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.series-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-3px);
}

.series-card.is-current {
  border-color: var(--primary-green);
  background: rgba(23, 153, 23, 0.06);
}

.series-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.series-card strong {
  font-size: 0.92rem;
  color: var(--text-dark);
}

.series-card span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .program-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .program-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-story-grid {
    grid-template-columns: 1fr;
  }
  .program-series-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .program-hero {
    padding: 100px 0 48px;
  }
  .program-stats {
    padding: 32px 0;
  }
  .program-story {
    padding: 56px 0;
  }
  .program-series-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .program-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .program-stat .num {
    font-size: 1.4rem;
  }
  .program-series-grid {
    grid-template-columns: 1fr;
  }
  .program-hero-actions {
    flex-direction: column;
  }
  .program-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== FINAL CTA ========== */
.final-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(25, 84, 41, 0.92) 0%, rgba(23, 153, 23, 0.88) 100%),
    url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600&q=80') center/cover no-repeat;
  z-index: 0;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta .section-label {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.final-cta-content > p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.final-cta-actions .btn {
  min-width: 180px;
  justify-content: center;
}

.final-cta-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  letter-spacing: 0.2px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .final-cta {
    padding: 72px 0;
  }
  .final-cta-content > p {
    font-size: 1rem;
  }
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .final-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .final-cta {
    padding: 56px 0;
  }
  .final-cta h2 {
    font-size: 1.7rem;
  }
}


/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 40px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-brand .logo-image {
  width: 320px;
  height: 120px;
  margin-bottom: 16px;
}

.footer-brand .logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.footer-brand p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-brand .tax-info {
  font-size: 0.6rem;
  opacity: 0.8;
  font-style: italic;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-orange);
}

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-orange);
}

.newsletter p {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
}

.newsletter-form button {
  background: var(--accent-orange);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #e06e15;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-box {
    grid-column: span 2;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .causes-grid,
  .programs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-card {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 40px;
    max-width: 100%;
  }
  .testimonials {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-cta .btn {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }
  .hero-card,
  .watch-story {
    display: none;
  }
  .about-grid,
  .why-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-images {
    height: 360px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .trust-box {
    grid-column: auto;
  }
  .causes-grid,
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 20px;
  }
}