/* ==========================================
   Foundation of Hope and Care - Main Stylesheet
   ========================================== */

/* ----- CSS Custom Properties ----- */
:root {
  --primary: #1B3A4B;
  --primary-dark: #0F2430;
  --primary-light: #2C5F7C;
  --secondary: #C0392B;
  --secondary-dark: #922B21;
  --accent: #E67E22;
  --accent-dark: #CC7000;
  --accent-light: #F0A04B;
  --success: #27AE60;
  --light: #F7F9FC;
  --light-alt: #FFF8F0;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text: #2C3E50;
  --text-light: #6c757d;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

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

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

ul { list-style: none; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-tag::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  margin-left: 12px;
  vertical-align: middle;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  line-height: 1.8;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ----- Header / Navigation ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 0;
  height: var(--header-height);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.header.scrolled::before {
  display: none;
}

.header.scrolled .nav-link { color: var(--text); }
.header.scrolled .nav-link:hover { color: var(--secondary); }
.header.scrolled .logo-text { color: var(--primary); }
.header.scrolled .logo img { border-color: var(--primary-light); }
.header.scrolled .logo-tagline { color: var(--primary-light); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo img {
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  transition: var(--transition);
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  transition: var(--transition);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
}

.nav-donate {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600;
}

.nav-donate:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.header.scrolled .menu-toggle span {
  background: var(--primary-dark);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--primary-dark);
  overflow: hidden;
  padding: calc(var(--header-height) + 60px) 0 100px;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

.hero-dot:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.3);
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge i {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--accent);
  position: relative;
}

.hero-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* ==========================================
   ABOUT SECTION (Home)
   ========================================== */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 450px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 40px;
  text-align: center;
}

.about-image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.about-image-placeholder p {
  font-size: 1.1rem;
  opacity: 0.7;
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--secondary);
  color: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-experience-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-text {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 4px;
}

.about-text .section-title {
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.5rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.about-feature i {
  color: var(--success);
  font-size: 1rem;
}

/* ==========================================
   PROGRAMS SECTION (Home)
   ========================================== */
.programs-section {
  background: var(--light);
  position: relative;
}

.programs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.programs-header .section-subtitle {
  margin: 0 auto;
}

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

.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.program-card:hover .program-card-image img {
  transform: scale(1.1);
}

.program-card-image .program-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: var(--transition);
  margin: 0;
}

.program-card:hover .program-card-image .program-icon {
  background: var(--secondary);
  color: var(--white);
}

.program-card-body {
  padding: 20px 20px 24px;
  text-align: center;
}

.program-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.program-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================
   IMPACT SECTION (Home)
   ========================================== */
.impact-section {
  background: var(--primary-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(192, 57, 43, 0.08) 0%, transparent 50%);
}

.impact-section .container {
  position: relative;
  z-index: 1;
}

.impact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.impact-header .section-tag {
  color: var(--accent);
}

.impact-header .section-tag::after {
  background: var(--accent);
}

.impact-header .section-title {
  color: var(--white);
}

.impact-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
}

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

.impact-item {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.impact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.impact-item-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.impact-item-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.impact-item-number span {
  color: var(--accent);
}

.impact-item-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(230,126,34,0.15) 0%, transparent 50%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo-text {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.footer-about .logo-tagline {
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 4px;
  width: 16px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================
   PAGE BANNER
   ========================================== */
.page-banner {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 80px;
  background: var(--primary-dark);
  overflow: hidden;
  text-align: center;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(27, 58, 75, 0.92) 0%, rgba(15, 36, 48, 0.88) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: var(--accent);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 60px 0;
}

.mission-card,
.vision-card {
  padding: 40px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.mission-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.vision-card {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
}

.mission-card i,
.vision-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.mission-card h3,
.vision-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.mission-card p,
.vision-card p {
  opacity: 0.9;
  line-height: 1.7;
}

/* Core Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.value-card {
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-icon {
  width: 60px;
  height: 60px;
  background: var(--light-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--secondary);
  color: var(--white);
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==========================================
   PROGRAMS PAGE
   ========================================== */
.programs-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.program-detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.program-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-detail-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.program-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.program-detail-body {
  padding: 28px;
}

.program-detail-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.program-detail-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.program-detail-body .btn {
  font-size: 0.85rem;
  padding: 10px 20px;
}

/* ==========================================
   GALLERY PAGE
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.gallery-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
}

.gallery-placeholder-content span {
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1rem;
  text-align: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,0.1);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ==========================================
   IMPACT STORIES PAGE
   ========================================== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.story-image {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.story-body {
  padding: 28px;
}

.story-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--light-alt);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.story-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.story-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.story-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.story-meta i {
  margin-right: 4px;
}

/* ==========================================
   GET INVOLVED PAGE
   ========================================== */
.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.involved-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.involved-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.involved-icon {
  width: 80px;
  height: 80px;
  background: var(--light-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: var(--secondary);
  transition: var(--transition);
}

.involved-card:hover .involved-icon {
  background: var(--secondary);
  color: var(--white);
}

.involved-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.involved-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--light-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 58, 75, 0.1);
}

.form-control.error {
  border-color: var(--secondary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ==========================================
   DONATE PAGE
   ========================================== */
.donate-section {
  background: var(--light);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.donate-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.donate-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.donate-amount {
  padding: 16px;
  text-align: center;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  transition: var(--transition);
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--text);
}

.donate-amount:hover {
  border-color: var(--secondary);
  background: rgba(192, 57, 43, 0.05);
}

.donate-amount.active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

.donate-custom {
  margin-bottom: 24px;
}

.donate-custom .form-control {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

.donate-form .btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 16px 32px;
}

.donate-benefits {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.donate-benefits h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.donate-benefits li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.donate-benefits li i {
  color: var(--success);
  margin-top: 4px;
}

/* ==========================================
   REPORTS / RESOURCES
   ========================================== */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.report-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.report-icon {
  width: 50px;
  height: 50px;
  background: var(--light-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.report-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.report-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.report-info a {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

.report-info a:hover {
  color: var(--secondary-dark);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-dark);
  transform: translateY(-4px);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-page-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .involved-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 4px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    overflow-y: auto;
  }

  .nav.active { right: 0; }

  .nav-link {
    color: var(--text);
    padding: 12px 16px;
    width: 100%;
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--secondary);
    background: var(--light);
  }

  .nav-donate {
    margin-top: 12px;
    text-align: center;
  }

  .header.scrolled .menu-toggle span {
    background: var(--primary-dark);
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.active { display: block; }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-text { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 2.5rem; }
  .hero-stat-number { font-size: 1.8rem; }

  .hero-arrow { width: 40px; height: 40px; font-size: 1rem; opacity: 1; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .hero-dots { bottom: 100px; gap: 8px; }
  .hero-dot { width: 10px; height: 10px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image { min-height: 300px; }
  .about-experience { bottom: 0; right: 0; }

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

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }

  .donate-grid { grid-template-columns: 1fr; }
  .donate-amounts { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .mission-vision { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }

  .team-grid { grid-template-columns: 1fr; }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .programs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .programs-page-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .involved-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .about-features { grid-template-columns: 1fr; }
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}
