/* 
 * HEAVEN ON EARTH FOUNDATION (HOEF) - Masterpiece Styling Sheet
 * File: style.css (Top Level)
 * Custom design tokens, transitions, typography overlays, and custom elements.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ==========================================
   1. DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
  /* Colors */
  --primary-rgb: 12, 45, 34;         /* Royal Dark Green */
  --primary: rgb(var(--primary-rgb));
  --primary-light: #205540;        /* Forest Emerald */
  --primary-dark: #072217;         /* Deep Obsidian Green */
  
  --secondary-rgb: 212, 175, 55;   /* Antique Liquid Gold */
  --secondary: rgb(var(--secondary-rgb));
  --secondary-light: #f1d585;
  --secondary-dark: #b69234;       /* Warm Bronze */
  
  --bg-cream: #fbfaf7;             /* Delicate Linen/Ivory */
  --bg-white: #ffffff;
  --bg-dark-rgb: 9, 17, 14;        /* Rich Pitch Green */
  --bg-dark: rgb(var(--bg-dark-rgb));
  --bg-card: #ffffff;

  /* Attention Accent Colors (Popup Color) */
  --attention: #ff6f00;            /* Vibrant Sunset Amber Orange */
  --attention-light: #ffa040;
  --attention-dark: #c43e00;
  --grad-attention: linear-gradient(135deg, var(--attention-light), var(--attention));
  --shadow-attention: 0 8px 25px rgba(255, 111, 0, 0.35);

  --text-main: #272e2a;            /* Soft Charcoal */
  --text-muted: #57655e;           /* Sage Grey */
  --text-light: #8fa096;

  /* Font Families */
  --font-header: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Gradients */
  --grad-emerald: linear-gradient(135deg, var(--primary), var(--primary-light));
  --grad-gold: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  --grad-dark: linear-gradient(135deg, var(--primary-dark), #101613);
  --grad-overlay: #ffff0038;
  --grad-card-hover: linear-gradient(to bottom, rgba(212, 175, 55, 0.05), transparent);

  /* Borders & Spacing */
  --container-width: 1240px;
  --border-radius-sm: 8px;
  --border-radius-md: 20px;
  --border-radius-lg: 40px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 20px rgba(12, 45, 34, 0.02);
  --shadow-md: 0 15px 40px rgba(12, 45, 34, 0.05);
  --shadow-lg: 0 25px 60px rgba(12, 45, 34, 0.12);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  color: rgb(0, 0, 0);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

main {
  animation: pageContentEntry 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

button, input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Dynamic Scroll indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(to right, var(--secondary), var(--attention));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================
   3. LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-padding {
  padding: 48px 0;
}

.text-center {
  text-align: center;
}

.section-header {
  max-width: 750px;
  margin: 0 auto 70px auto;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-dark);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.05);
  animation: tagPulse 3s infinite alternate;
}

@keyframes tagPulse {
  0% {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.03);
  }
  100% {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.08);
  }
}

.section-title {
  font-size: 25px;
  font-weight: 850;
  margin-bottom: 11px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--grad-gold);
  margin: 20px auto 0 auto;
  border-radius: 2px;
  display: none;
}

.section-header-left {
  text-align: left;
  margin-bottom: 40px;
}

.section-header-left .section-title::after {
  margin: 20px 0 0 0;
}

/* ==========================================
   4. BUTTON STYLING
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 36px;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-emerald);
  color: var(--bg-cream);
  box-shadow: 0 6px 20px rgba(12, 45, 34, 0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 6px 20px rgba(12, 45, 34, 0.15);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: rgb(0, 0, 0);
  color: var(--bg-white);
  box-shadow: 0 8px 25px rgba(12, 45, 34, 0.35);
  transform: translateY(-2px);
}

.btn-text {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-text:hover {
  color: var(--primary);
  gap: 14px;
}

.btn-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================
   5. STICKY NAVBAR HEADER WITH DROPDOWNS
   ========================================== */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-top {
  background-color: #FFF4CC;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  padding: 10px 0;
  font-family: var(--font-body);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.header-top a {
  color: rgba(0, 0, 0, 0.7);
  margin-right: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-top a:hover {
  color: var(--secondary-light);
}

.header-top .social-links a {
  margin-left: 20px;
  margin-right: 0;
}

.navbar-container {
  padding: 13px 0;
  background-color: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(12, 45, 34, 0.03);
  transition: var(--transition-smooth);
}

.header-scrolled .navbar-container {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--shadow-lg);
}

.header-scrolled .navbar-container .logo img {
}

.header-scrolled .navbar-container .nav-menu > li > a {
  color: rgba(12, 45, 34, 0.96);
}

.header-scrolled .navbar-container .nav-menu > li > a:hover {
  color: var(--secondary);
}

.header-scrolled .navbar-container .nav-menu .active > a {
  color: var(--secondary);
}

.header-scrolled .hamburger-btn {
  color: #000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 58px;
  width: auto;
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 0;
  display: block;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.nav-menu > li > a:hover::after,
.nav-menu .active > a::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-menu > li > a:hover {
  color: var(--primary-light);
}

.nav-menu .active > a {
  color: var(--primary-light);
}

/* Dropdown Menu (Restored) */
.nav-menu li .dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 350px;
  display: block;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  border-top: 3px solid var(--secondary);
}

.nav-menu li:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu li .dropdown-menu a {
  color: var(--text-main);
  display: block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.nav-menu li .dropdown-menu a::after {
  display: none;
}

.nav-menu li .dropdown-menu a:hover {
  background-color: var(--bg-cream);
  color: #000;
  padding-left: 35px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.hamburger-btn {
  display: none;
  font-size: 26px;
  color: var(--primary);
  background: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* ==========================================
   6. MOBILE NAVIGATION DRAWER
   ========================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--primary-dark);
  z-index: 2000;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 50px 35px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 34, 23, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  margin-bottom: 50px;
}

.mobile-drawer-close {
  background: none;
  color: var(--bg-cream);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-drawer-close:hover {
  color: var(--secondary);
}

.mobile-logo-img {
  max-width: 140px;
  filter: brightness(0) invert(1);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
  overflow-y: auto;
}

.mobile-menu-links a {
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu-links .mobile-sub-link {
  padding-left: 20px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  text-transform: none;
  font-weight: 500;
  margin-top: -10px;
}

.mobile-menu-links a:hover,
.mobile-menu-links .mobile-sub-link:hover {
  color: var(--secondary);
}

.mobile-drawer-contact {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  margin-top: 20px;
}

.mobile-drawer-contact h4 {
  color: var(--secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.mobile-drawer-contact p {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ==========================================
   7. HERO SLIDER / SLIDESHOW
   ========================================== */
.hero-slider-container {
  position: relative;
  height: 95vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide.active .slide-bg {
  animation: kenBurnsEffect 20s ease-in-out infinite alternate;
}

@keyframes kenBurnsEffect {
  0% {
    transform: scale(1.0) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(-2%, -1%);
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffff001f;
  z-index: 2;
}

.slide-content-box {
  position: relative;
  z-index: 3;
  color: var(--bg-cream);
  max-width: 100%;
  padding: 0 40px;
}

.slide-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 5px;
  display: inline-block;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-tag {
  animation: slideInUp 1s forwards 0.3s;
}

.slide-title {
  font-size: 4.8rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.15;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(35px);
  text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.slide.active .slide-title {
  animation: slideInUp 1.2s forwards 0.5s;
}

.slide-desc {
  font-size: 1.35rem;
  margin-bottom: 45px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
}

.slide.active .slide-desc {
  animation: slideInUp 1.2s forwards 0.7s;
}

.slide-btns {
  display: flex;
  gap: 24px;
  opacity: 0;
  transform: translateY(25px);
}

.slide.active .slide-btns {
  animation: slideInUp 1.2s forwards 0.9s;
}

.slider-nav {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 15px;
}

.slider-indicator {
  width: 40px;
  height: 4px;
  background-color: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-indicator.active {
  background-color: var(--secondary);
  width: 65px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.06);
  color: var(--bg-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.15);
}

.slider-arrow:hover {
  background: var(--grad-gold);
  color: var(--primary-dark);
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.slider-arrow-prev {
  left: 50px;
}

.slider-arrow-next {
  right: 50px;
}

/* ==========================================
   8. ETHOS & MOTIVATIONAL QUOTES DISPLAY
   ========================================== */
.ethos-quote-card {
  background: linear-gradient(135deg, var(--bg-white), rgba(212, 175, 55, 0.03));
  padding: 50px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.ethos-quote-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(12, 45, 34, 0.05), 0 0 25px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
}

.ethos-quote-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 30px;
  font-family: var(--font-header);
  font-size: 10rem;
  color: rgba(212, 175, 55, 0.1);
  line-height: 1;
}

.ethos-text {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--primary);
  margin-bottom: 24px;
}

.ethos-author {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--secondary-dark);
}

/* ==========================================
   9. FOUNDER'S STORY SECTION (NARRATIVE JOURNAL)
   ========================================== */
.journal-layout {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 60px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(12, 45, 34, 0.03);
}

.journal-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.journal-content p {
  margin-bottom: 24px;
}

.journal-content p:last-child {
  margin-bottom: 0;
}

.journal-pullquote {
  font-family: var(--font-header);
  font-size: 2.2rem;
  line-height: 1.35;
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
  margin: 40px 0;
  padding: 0 40px;
  border-left: 5px solid var(--secondary);
}

/* ==========================================
   10. NUMBERED FAITH GRID (STATEMENT OF FAITH)
   ========================================== */
.faith-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.faith-card {
  background-color: var(--bg-white);
  padding: 40px 45px 40px 100px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 45, 34, 0.03);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faith-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,175,55,0.15);
}

.faith-number {
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: var(--font-header);
  font-size: 4rem;
  font-weight: 850;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
}

.faith-card:hover .faith-number {
  color: rgba(212, 175, 55, 0.35);
  transform: scale(1.1);
}

.faith-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   11. STAGGERED PROJECTS GRID
   ========================================== */
.project-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(12, 45, 34, 0.05);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 45px rgba(12, 45, 34, 0.08), 0 0 35px rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.35);
}

.project-card-header {
  background: var(--grad-emerald);
  padding: 24px 30px;
  color: var(--bg-cream);
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 2px solid var(--secondary);
}

.project-card-header i {
  font-size: 24px;
  color: var(--secondary);
}

.project-card-header h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card-body {
  padding: 30px;
  flex-grow: 1;
}

.project-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.project-detail-list {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
  margin-top: 10px;
}

.project-detail-list h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  margin-bottom: 12px;
  font-weight: 700;
}

.project-detail-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.project-detail-list li::before {
  content: '♦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-dark);
}

/* ==========================================
   12. TESTIMONIAL CAROUSEL (BENEFICIARIES)
   ========================================== */
.testimonials-section {
  background-color: var(--bg-white);
  color: var(--text-main);
  position: relative;
}

.testimonials-section::before {
  display: none;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

.testimonial-slider {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  min-height: 380px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-icon {
  font-size: 3.5rem;
  color: var(--secondary-dark);
  margin-bottom: 25px;
}

.testimonial-text {
  font-family: var(--font-header);
  font-size: 1.65rem;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 35px;
  font-weight: 400;
  color: var(--text-main);
}

.testimonial-meta {
  font-family: var(--font-body);
  text-align: center;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 5px;
}

.testimonial-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(12, 45, 34, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-dot.active {
  background-color: var(--primary);
  transform: scale(1.25);
}

/* ==========================================
   13. TABBED LOCATIONS / MAPS
   ========================================== */
.maps-tab-container {
  margin-top: 50px;
}

.maps-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.maps-tab-btn {
  background-color: var(--bg-white);
  border: 1px solid rgba(12, 45, 34, 0.08);
  padding: 16px 36px;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.maps-tab-btn:hover {
  border-color: var(--primary-light);
  background-color: rgba(12, 45, 34, 0.02);
}

.maps-tab-btn.active {
  background: var(--grad-emerald);
  color: var(--bg-cream);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.maps-content-pane {
  display: none;
  height: 450px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.maps-content-pane.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   14. IMPACT STATS BANNER
   ========================================== */
.stats-banner {
  background: var(--grad-emerald);
  padding: 100px 0;
  color: var(--bg-cream);
  position: relative;
  border: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item h3 {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-item p {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
}

/* ==========================================
   15. COOPERATIVE PARTNERSHIP ELEMENTS
   ========================================== */
.partner-benefit-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.partner-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-benefit-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.partner-benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   16. BREADCRUMB HEADER
   ========================================== */
.breadcrumb-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 180px 0 100px 0;
  color: var(--bg-white);
  text-align: center;
}

.breadcrumb-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 34, 23, 0.92), rgba(12, 45, 34, 0.75));
  z-index: 1;
}

.breadcrumb-content {
  position: relative;
  z-index: 2;
}

.breadcrumb-content h1 {
  color: var(--bg-white);
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.breadcrumb-links {
  display: inline-flex;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
}

.breadcrumb-links a {
  color: var(--secondary-light);
}

.breadcrumb-links a:hover {
  color: var(--bg-white);
}

/* ==========================================
   17. FAQ / ACCORDION
   ========================================== */
.faq-accordion {
  margin-top: 35px;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(12, 45, 34, 0.03);
}

.faq-item summary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 22px 28px;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--primary-light);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  color: var(--secondary-dark);
}

.faq-item summary:hover {
  background-color: rgba(12, 45, 34, 0.02);
  color: var(--primary-light);
}

.faq-content {
  padding: 0 28px 24px 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  border-top: 1px solid rgba(12, 45, 34, 0.03);
  padding-top: 18px;
  animation: fadeIn 0.5s ease-out;
}

/* ==========================================
   18. FORM CONTROLS & GLASSMORPHISM
   ========================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  padding: 45px;
}

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

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  background-color: var(--bg-cream);
  border: 1px solid rgba(12, 45, 34, 0.08);
  padding: 16px 22px;
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  background-color: var(--bg-white);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(32, 85, 64, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================
   19. INTERACTIVE DONATION INTERFACE
   ========================================== */
.donation-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
}

.donate-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.donate-option-btn {
  background-color: var(--bg-white);
  border: 2px solid rgba(12, 45, 34, 0.08);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.25rem;
  padding: 20px 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.donate-option-btn:hover {
  background-color: rgba(12, 45, 34, 0.04);
  border-color: var(--primary-light);
}

.donate-option-btn.active {
  background: var(--grad-emerald);
  color: var(--secondary);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(12, 45, 34, 0.2);
}

.donate-custom-input-wrapper {
  position: relative;
  margin-bottom: 35px;
}

.donate-currency-symbol {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.donate-custom-input {
  width: 100%;
  background-color: var(--bg-white);
  border: 2px solid rgba(12, 45, 34, 0.08);
  padding: 18px 24px 18px 50px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.donate-custom-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 5px rgba(32, 85, 64, 0.15);
}

.impact-preview-box {
  background-color: rgba(32, 85, 64, 0.04);
  border-left: 4px solid var(--secondary);
  padding: 24px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-bottom: 35px;
}

.impact-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.impact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.donor-info-section {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 35px;
  margin-top: 35px;
}

.donor-info-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.donation-summary-card {
  background: linear-gradient(135deg, rgba(7, 34, 23, 0.95), rgba(16, 22, 19, 0.95));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--bg-cream);
  padding: 45px 35px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(212, 175, 55, 0.08);
  align-self: flex-start;
  position: sticky;
  top: 130px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: var(--transition-smooth);
}

.donation-summary-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg), 0 15px 40px rgba(212, 175, 55, 0.15);
}

.donation-summary-card h3 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.summary-row.total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg-white);
  border-top: 1px dashed rgba(255,255,255,0.15);
  padding-top: 20px;
  margin-top: 30px;
}

.summary-row.total span {
  color: var(--secondary);
}

/* ==========================================
   20. CURVED FOOTER (WATERAID STYLE)
   ========================================== */
.curved-footer {
  position: relative;
  background-color: #F8E7A1;
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 0 0;
  margin-top: 0; /* Align directly against preceding section content */
  z-index: 10;
}

.footer-wave {
  position: absolute;
  top: 1px; /* Overlap footer by 1px to prevent sub-pixel gaps */
  left: 0;
  width: 100%;
  height: 80px;
  transform: translateY(-100%);
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 768px) {
  .footer-wave {
    height: 45px;
  }
}

.footer-wave svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: block;
}

.footer-wave .wave-back {
  animation: waveMoveSlow 16s linear infinite;
  z-index: 1;
}

.footer-wave .wave-front {
  animation: waveMoveFast 10s linear infinite;
  z-index: 2;
}

@keyframes waveMoveFast {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes waveMoveSlow {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 50px;
}

.footer-logo-main {
  height: 58px;
  width: auto;
}

.btn-footer-donate {
  background-color: var(--primary-dark);
  color: var(--secondary);
  border: none;
  padding: 12px 28px;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-footer-donate:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.footer-grid {
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #000;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

/* Horizontal Sub-links Bar */
.footer-sub-links-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  font-size: 0.85rem;
}

.footer-sub-links-bar a {
  color: rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
}

.footer-sub-links-bar a:hover {
  color: var(--secondary);
}

.sub-link-dot {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: #000;
  opacity: 0.9;
}

.sub-link-dot::after {
  content: '\f043';
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
  background-color: #000;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social-links-bar {
  display: flex;
  gap: 12px;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.social-circle-btn:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.25);
}

.footer-copyright-info {
  text-align: right;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-copyright-info p {
  margin-bottom: 2px;
}

.footer-copyright-info p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   21. SCROLL REVEAL & KEYFRAME ANIMATIONS
   ========================================== */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.slide-left {
  transform: translateX(-40px);
}

.reveal.slide-left.active {
  transform: translateX(0);
}

.reveal.slide-right {
  transform: translateX(40px);
}

.reveal.slide-right.active {
  transform: translateX(0);
}

.reveal.zoom-in {
  transform: scale(0.95);
}

.reveal.zoom-in.active {
  transform: scale(1.0);
}

/* Keyframes */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ==========================================
   22. RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .slide-title {
    font-size: 3.6rem;
  }
  
  .donation-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 25px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .header-right .btn-gold {
    display: none;
  }
  
  .hamburger-btn {
    display: block;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Responsive Footer overrides */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-top-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-sub-links-bar {
    justify-content: center;
    text-align: center;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-copyright-info {
    text-align: center;
  }
  
  /* Restored image constraints for mobile */
  .about-intro-media {
    height: auto;
    position: relative;
    margin-bottom: 20px;
  }

  .about-image-main {
    position: relative;
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    left: auto;
    top: auto;
    transform: none !important;
  }
  
  .about-image-offset {
    display: none;
  }
  
  .hero-slider-container {
    height: 80vh;
  }
  
  .slide-title {
    font-size: 2.6rem;
  }
  
  .slide-desc {
    font-size: 1.15rem;
    margin-bottom: 35px;
  }
  
  .slide-btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .slider-arrow {
    display: none;
  }
  
  .donate-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faith-grid {
    grid-template-columns: 1fr;
  }
  
  .faith-card {
    padding: 30px 30px 30px 80px;
  }
}

/* Staggered About Media Grid (Desktop) */
.about-intro-media {
  position: relative;
  height: 480px;
  width: 100%;
}

.about-image-main {
  width: 78%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 6px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: var(--transition-smooth);
}

.about-image-offset {
  width: 65%;
  height: 270px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 6px solid var(--bg-white);
  box-shadow: var(--shadow-md);
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  transition: var(--transition-smooth);
}

.about-intro-media:hover .about-image-main {
  transform: translateY(-8px) scale(1.02);
}

.about-intro-media:hover .about-image-offset {
  transform: translate(8px, 8px);
}

#about-main-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 6px solid var(--bg-white);
  box-shadow: var(--shadow-md);
}

#vision-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  border: 6px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

#vision-img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 10px 20px rgba(0,0,0,0.15);
}

/* ==========================================
   23. ADDITIONAL DESIGN, IMAGE & ANIMATION FIXES
   ========================================== */

/* Project Card Image & Hover Zoom */
.project-card-media {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  border-bottom: 3px solid var(--secondary);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-card-media img {
  transform: scale(1.1);
}

/* Dark elegant gradient overlay on hover */
.project-card-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(12, 45, 34, 0.5));
  opacity: 0.8;
  transition: var(--transition-smooth);
  z-index: 1;
}

.project-card:hover .project-card-media::after {
  opacity: 1;
  background: linear-gradient(to bottom, transparent 30%, rgba(212, 175, 55, 0.25));
}

/* Directional Fade Reveals */
.reveal.fade-up {
  transform: translateY(40px);
}
.reveal.fade-left {
  transform: translateX(-40px);
}
.reveal.fade-right {
  transform: translateX(40px);
}
.reveal.zoom-in {
  transform: scale(0.94);
}

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Reveal Delays */
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }

/* Interactive Presets Glow Pulse */
.donate-option-btn {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.donate-option-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.donate-option-btn.active {
  animation: activePulse 2s infinite alternate;
  transform: translateY(-2px);
}

@keyframes activePulse {
  0% {
    box-shadow: 0 6px 15px rgba(12, 45, 34, 0.25);
    border-color: var(--primary);
  }
  100% {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    border-color: var(--secondary);
  }
}

/* Forms glow hover details */
.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

/* Premium micro-transition on standard cards */
.ethos-quote-card, .partner-benefit-card, .faith-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.btn {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, color 0.4s ease;
}
.btn:hover {
  transform: translateY(-3px);
}

/* Hero scroll down indicator bounce */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--bg-cream);
  font-size: 1.5rem;
  animation: bounceIndicator 2s infinite;
  cursor: pointer;
  opacity: 0.7;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  color: var(--secondary);
}

@keyframes bounceIndicator {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Dark, Immersive Storytelling Vision Section */
#vision.dark-theme {
  background-color: #1F7A3E;
  color: rgba(255, 255, 255, 0.85) !important;
  position: relative;
  overflow: hidden;
  border: none !important;
}

#vision.dark-theme .section-title {
  color: var(--secondary) !important;
}

#vision.dark-theme .section-tag {
  color: var(--secondary-light) !important;
}

#vision.dark-theme .journal-layout {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#vision.dark-theme .journal-content {
  color: rgba(255, 255, 255, 0.75) !important;
}

#vision.dark-theme .journal-pullquote {
  color: var(--secondary-light) !important;
  border-left-color: var(--secondary) !important;
  font-size: 1.8rem;
  line-height: 1.4;
  margin: 30px 0;
  padding: 0 25px;
}

#vision.dark-theme #vision-img {
  width: 100%;
  height: 100%;
  min-height: 550px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

/* Storytelling Timeline Layout */
.timeline-story-container {
  margin-top: 50px;
}

.story-chapter {
  margin-bottom: 80px;
}

.story-chapter:last-child {
  margin-bottom: 0;
}

.story-text {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.story-text:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(212, 175, 55, 0.1);
  transform: translateY(-5px);
}

.story-text p {
  margin-bottom: 18px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.story-text p:last-of-type {
  margin-bottom: 0;
}

.story-media {
  height: 320px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.story-media:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.story-chapter:hover .story-media img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .story-chapter {
    display: flex;
    flex-direction: column !important;
    gap: 30px;
    margin-bottom: 60px;
  }
  
  .story-media {
    width: 100%;
    height: 250px;
    order: -1 !important; /* Always display image above text on mobile */
  }
  
  .story-text {
    order: 1 !important;
  }
}

/* ==========================================
   24. PROJECTS FILTERING & ACCORDION STYLES
   ========================================== */
.projects-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  margin-top: -20px;
}

.filter-tab-btn {
  background-color: var(--bg-white);
  border: 1px solid rgba(12, 45, 34, 0.08);
  padding: 12px 28px;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.filter-tab-btn:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.filter-tab-btn.active {
  background: var(--grad-emerald);
  color: var(--bg-cream);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Accordion for Project Card Details */
.project-details-accordion {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 15px;
  margin-top: 15px;
}

.project-details-accordion summary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.project-details-accordion summary::-webkit-details-marker {
  display: none;
}

.project-details-accordion summary::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--primary-light);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-details-accordion[open] summary::after {
  transform: rotate(180deg);
  color: var(--secondary-dark);
}

.project-details-accordion summary:hover {
  color: var(--secondary-dark);
}

.project-details-accordion .accordion-content {
  padding-top: 15px;
  animation: filterFadeIn 0.4s ease-out;
}

.project-details-accordion ul {
  padding-left: 0;
  margin-top: 10px;
}

.project-details-accordion li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.project-details-accordion li::before {
  content: '♦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-dark);
}

/* Animations for Filtering & Scroll Reveal */
@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-card.active:not(.is-hidden) {
  animation: cardPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-card.is-hidden {
  display: none !important;
}

/* ==========================================
   25. DYNAMIC POPUP COLORS, BADGES & SUCCESS MODALS
   ========================================== */

/* Page entrance animation keyframe */
@keyframes pageEntry {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsing Badge for Urgent Priority Project Items */
.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--grad-attention);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: var(--shadow-attention);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulsing-attention {
  animation: badgeAttentionPulse 2s infinite alternate;
}

@keyframes badgeAttentionPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.65);
  }
}

/* Required Form Indicator Asterisk styling */
.form-required {
  color: var(--attention);
  margin-left: 4px;
  font-weight: 700;
}

/* Animated Success Modal overlay and card styling */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 34, 23, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

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

.success-modal {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 70px rgba(7, 34, 23, 0.15), var(--shadow-attention);
  border-radius: var(--border-radius-md);
  padding: 50px 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-modal-overlay.open .success-modal {
  transform: scale(1);
}

.success-checkmark-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--grad-emerald);
  margin: 0 auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(32, 85, 64, 0.25);
  animation: scaleCheckmark 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
  opacity: 0;
  transform: scale(0);
}

.success-checkmark-wrapper i {
  font-size: 38px;
  color: var(--secondary);
}

@keyframes scaleCheckmark {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-modal h3 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.success-modal p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Slide Icons dynamically on button hovers */
.btn i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover i.fa-arrow-right, .btn:hover i.fa-chevron-right {
  transform: translateX(5px);
}

.btn:hover i.fa-heart, .btn:hover i.fa-gift {
  transform: scale(1.2);
}

/* ==========================================
   23. DONATION PAGE LAYOUT OVERHAUL
   ========================================== */

/* Donation Hero Banner */
.donation-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 120px 0;
  color: var(--bg-white);
  text-align: center;
  overflow: hidden;
}

.donation-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 34, 23, 0.9) 0%, rgba(12, 45, 34, 0.75) 50%, rgba(7, 34, 23, 0.95) 100%);
  z-index: 1;
}

.donation-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.donation-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.donation-hero-content .hero-subtext {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.donation-hero-content .hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .donation-hero-banner {
    padding: 120px 0 80px 0;
  }
  .donation-hero-content h1 {
    font-size: 2.2rem;
  }
  .donation-hero-content .hero-subtext {
    font-size: 1.15rem;
  }
}

/* Choose How You Give Cards */
.give-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.give-card {
  background: var(--bg-white);
  border: 1px solid rgba(12, 45, 34, 0.06);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.give-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 10px 20px rgba(12, 45, 34, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.give-card .give-icon-box {
  margin-bottom: 25px;
}

.give-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.give-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.give-card .btn {
  width: 100%;
  padding: 12px 0;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .give-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .give-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Infographic Section */
.infographic-wrapper {
  background: var(--bg-white);
  border: 1px solid rgba(12, 45, 34, 0.06);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: 50px;
  margin-bottom: 50px;
}

.infographic-img-container {
  max-width: 450px;
  margin: 0 auto 40px auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--bg-white);
}

.infographic-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Quote Callout styling */
.mission-quote-callout {
  background: var(--bg-white);
  border-left: 6px solid var(--secondary);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  text-align: center;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.mission-quote-callout blockquote {
  font-family: var(--font-header);
  font-size: 2rem;
  font-style: italic;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.mission-quote-callout p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

.vm-card{
    background:#fff;
    border-radius:20px;
    border:1px solid #e9ecef;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    transition:all .35s ease;
}

.vm-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

.vm-icon{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:50%;
    background:#d9b544;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:36px;
    box-shadow:0 10px 20px rgba(13,110,253,.25);
}

.vm-card h3{
    color:#222;
    font-size:28px;
}

.vm-card p{
    color:#6c757d;
    font-size:17px;
    line-height:1.8;
}

.btn.btn-gold {
  background: #1F7A3E;
  color: white;
}
