/*
Theme Name: Redemption Children's Home
Description: A beautiful, responsive WordPress theme for charitable organizations, specifically designed for children's homes and orphanages. Features donation management, child sponsorship, program showcases, and impact statistics. Converted from a modern React application.
Version: 1.0.0
Author: Your Name
Author URI: https://your-website.com
Tags: charity, nonprofit, children, donation, sponsorship, responsive, modern
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redemption-theme
Domain Path: /languages
*/
/* =============================================================================
   CUSTOM CSS VARIABLES - Matching Original Design
   ============================================================================= */
:root {
  /* Colors from original design */
  --hope-orange: 15, 78%, 54%;
  --care-teal: 168, 76%, 42%;
  --warm-beige: 32, 25%, 96%;
  --success-green: 142, 76%, 36%;
  --gentle-pink: 340, 55%, 88%;
  
  /* WordPress-compatible colors */
  --primary: hsl(var(--hope-orange));
  --secondary: hsl(var(--care-teal));
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(32, 45%, 15%);
  --muted: hsl(32, 15%, 94%);
  --muted-foreground: hsl(32, 25%, 45%);
  --border: hsl(32, 20%, 88%);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(var(--hope-orange)), hsl(var(--care-teal)));
  --gradient-warm: linear-gradient(180deg, hsl(var(--warm-beige)), hsl(var(--background)));
  --gradient-card: linear-gradient(145deg, hsl(var(--background)), hsl(var(--muted)));
  
  /* Shadows */
  --shadow-gentle: 0 4px 20px hsl(var(--hope-orange) / 0.1);
  --shadow-card: 0 8px 32px hsl(var(--care-teal) / 0.08);
  --shadow-donate: 0 8px 25px hsl(var(--hope-orange) / 0.25);
  
  /* NEW: Container widths for responsive design */
  --container-max-width: 1200px;
  --container-padding: 1rem;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  overflow-x: hidden; /* Prevent horizontal scrolling */
}
/* WordPress specific resets */
.wp-block-group {
  margin: 0;
}
.entry-content {
  margin: 0;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  word-wrap: break-word; /* Prevent long words from breaking layout */
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
/* Utility Classes */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%; /* Ensure container doesn't overflow */
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap; /* Prevent button text from wrapping */
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-donate);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gentle);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-hero {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
.btn-block {
  width: 100%;
  text-align: center;
}
.card {
  background: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
  height: 100%; /* Ensure cards in grid have equal height */
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gentle);
}
.card.animate-in {
  opacity: 1;
  transform: translateY(0);
}
/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
  width: 100%; /* Ensure grid doesn't overflow */
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* NEW: Improved responsive grid system */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}
/* Hero Section */
.hero-section {
  min-height: 90vh;
  background: url('assets/images/hero-children.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 1rem; /* Add padding for small screens */
  width: 100%; /* Ensure content doesn't overflow */
}
.hero-verse {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.verse-text {
  font-size: 1.125rem;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.verse-reference {
  font-weight: 600;
  color: hsl(var(--hope-orange));
  opacity: 0.9;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  word-wrap: break-word; /* Prevent long words from breaking layout */
}
.hero-title .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--hope-orange));
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: white;
  border-radius: 2px;
  animation: scroll 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}
/* Section Styles */
.section {
  padding: 5rem 0;
}
.section-warm {
  background: var(--gradient-warm);
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  word-wrap: break-word; /* Prevent long words from breaking layout */
}
.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-footer {
  text-align: center;
  margin-top: 3rem;
}
.section-footer .btn {
  margin: 0 0.5rem;
}
/* Mission Cards */
.mission-card {
  text-align: center;
  background: var(--gradient-card);
  border: none;
}
.mission-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}
/* Children Stories */
.child-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}
.child-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gentle);
}
.child-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
}
.child-info {
  padding: 1.5rem;
  flex-grow: 1; /* Allow info section to expand */
  display: flex;
  flex-direction: column;
}
.child-info h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
}
.child-story {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1; /* Allow story to expand */
}
.child-needs {
  background: var(--muted);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
/* Programs */
.featured-program {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 3rem;
}
.program-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
}
.program-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem;
}
.program-overlay h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.program-card {
  background: var(--gradient-card);
  border: none;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}
.program-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.program-icon {
  width: 3rem;
  height: 3rem;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 1rem;
  font-size: 1.25rem;
}
.program-impact {
  background: hsl(var(--secondary) / 0.1);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}
/* Impact Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--gradient-card);
  border-radius: 1rem;
  border: none;
  height: 100%; /* Ensure cards have equal height */
}
.stat-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.impact-highlight {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  padding: 3rem;
  border-radius: 1rem;
  margin-top: 3rem;
}
.impact-highlight h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.impact-item {
  text-align: center;
}
.impact-amount {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.impact-description {
  font-size: 0.875rem;
  opacity: 0.9;
}
/* Donation Form */
.donation-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}
.donation-form h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--foreground);
}
.amount-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.amount-btn {
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 1.125rem;
}
.amount-btn.active,
.amount-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}
.amount-input {
  position: relative;
}
.currency {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}
.amount-input input {
  padding-left: 2rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.frequency-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.frequency-btn {
  padding: 0.75rem;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.frequency-btn.active,
.frequency-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.donation-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
/* Donation Impact Display */
.donation-impact h3 {
  margin-bottom: 2rem;
  color: var(--foreground);
}
.current-impact {
  background: hsl(var(--primary) / 0.1);
  border: 2px solid hsl(var(--primary) / 0.2);
  margin-bottom: 2rem;
  text-align: center;
}
.current-impact .impact-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}
.current-impact h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.impact-levels {
  margin-bottom: 2rem;
}
.impact-level {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: var(--muted);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.impact-level i {
  color: var(--secondary);
  margin-right: 1rem;
  margin-top: 0.25rem;
  width: 1.5rem;
  text-align: center;
}
.trust-indicator {
  background: hsl(var(--success-green) / 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  color: var(--success-green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.trust-badge i {
  margin-right: 0.5rem;
}
/* Get Involved */
.involvement-card {
  text-align: center;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}
.involvement-card.card-highlight {
  border: 2px solid var(--primary);
  position: relative;
}
.involvement-card.card-highlight::before {
  content: 'FEATURED';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.involvement-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}
.involvement-card .involvement-icon {
  background: var(--secondary);
}
.involvement-card.card-highlight .involvement-icon {
  background: var(--primary);
}
/* Newsletter */
.newsletter-signup {
  background: var(--gradient-card);
  border: none;
  text-align: center;
  margin-top: 3rem;
}
.newsletter-form {
  margin-top: 1.5rem;
}
.form-inline {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
.form-inline input {
  flex: 1;
}
/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.site-logo,
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}
.logo-icon {
  font-size: 2rem;
  color: var(--primary);
}
.logo-text .site-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}
.logo-text .site-tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1;
}
.site-navigation .nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-navigation .nav-menu a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}
.site-navigation .nav-menu a:hover {
  color: var(--primary);
}
.header-buttons {
  display: flex;
  gap: 1rem;
}
/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60; /* Ensure toggle is above other elements */
}
.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  margin: 3px 0;
  transition: all 0.3s;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
.mobile-navigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  z-index: 55; /* Ensure mobile nav is below toggle but above content */
}
.mobile-navigation.active {
  display: block;
}
.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav-menu li {
  margin: 0;
}
.mobile-nav-menu a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-menu a:hover {
  background: var(--muted);
  color: var(--primary);
}
.mobile-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Footer */
.site-footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h3,
.footer-section h4,
.footer-section h5 {
  color: white;
  margin-bottom: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-logo i {
  color: var(--primary);
  font-size: 2rem;
}
.footer-logo h3 {
  margin: 0;
}
.footer-logo p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}
.footer-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--primary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-item i {
  color: var(--primary);
  width: 1.25rem;
  text-align: center;
}
.social-media {
  margin-top: 1.5rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s;
}
.social-icon:hover {
  background: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between; /* Fixed typo from 'between' to 'space-between' */
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}
.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
}
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-item i {
  color: var(--primary);
}
/* Forms */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: hsl(0, 84%, 60%);
}
.field-error {
  color: hsl(0, 84%, 60%);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
}
.notification.show {
  transform: translateX(0);
}
.notification-success {
  background: hsl(var(--success-green));
}
.notification-error {
  background: hsl(0, 84%, 60%);
}
/* Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}
/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .program-featured-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .site-navigation {
    display: none;
  }
  
  .header-buttons {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .form-inline {
    flex-direction: column;
  }
  
  .amount-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .frequency-buttons {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .footer-buttons {
    flex-direction: column;
  }
  
  .program-featured-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .verse-text {
    font-size: 1rem;
  }
  
  .amount-buttons {
    grid-template-columns: 1fr;
  }
  
  .program-featured-image {
    height: 250px;
  }
}
/* WordPress Alignment Classes */
.alignwide {
  margin-left: auto;
  margin-right: auto;
  clear: both;
}
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: auto;
  max-width: 1000%;
}
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* WordPress Blocks Support */
.wp-block-button__link {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}
.wp-block-quote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--muted-foreground);
}
/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .donation-form,
  .newsletter-signup,
  .mobile-menu-toggle,
  .btn {
    display: none !important;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border: hsl(0, 0%, 0%);
    --muted: hsl(0, 0%, 90%);
  }
  
  .btn-outline {
    border-width: 3px;
  }
  
  .card {
    border: 2px solid var(--border);
  }
}
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card {
    opacity: 1;
    transform: none;
  }
  
  .scroll-indicator {
    animation: none;
  }
  
  .scroll-mouse::before {
    animation: none;
  }
}
/* Focus Styles for Accessibility */
.btn:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}
/* Additional Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-foreground); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }

/* NEW: Additional responsive improvements */
.responsive-image {
  max-width: 100%;
  height: auto;
}

.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.responsive-video iframe,
.responsive-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* NEW: Improved table responsiveness */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table table {
  width: 100%;
  min-width: 600px; /* Minimum width before horizontal scrolling */
}

/* NEW: Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* NEW: Focus visible for better keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
    box-shadow: var(--shadow-gentle);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Post Card Styles */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gentle);
}

.post-image {
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-format-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-gentle);
}

.post-title {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta i {
    color: var(--primary);
}

.post-excerpt {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
    flex-grow: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--muted);
    color: var(--muted-foreground);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.archive-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 800px;
    margin: 0 auto;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    color: var(--foreground);
    text-decoration: none;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.pagination-wrapper .nav-prev-text,
.pagination-wrapper .nav-next-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Posts Styles */
.no-posts {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-posts-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.no-posts-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.no-posts-message {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
}

.no-posts-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.search-form-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.search-form-wrapper .search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form-wrapper .search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
}

.search-form-wrapper .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.back-home .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-image img {
        height: 250px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pagination-wrapper .nav-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .no-posts {
        padding: 2rem 1rem;
    }
}

/* Single Post Styles */
.post-content {
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--primary);
}

.post-meta a {
    color: var(--muted-foreground);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--primary);
}

.child-meta,
.program-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.child-meta span,
.program-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.program-icon-circle {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.post-title {
    font-size: 3rem;
    color: var(--foreground);
    margin-bottom: 0;
    line-height: 1.2;
}

.post-featured-image {
    margin-bottom: 3rem;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-body h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.child-details,
.program-details {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.child-needs,
.child-story {
    background: hsl(var(--primary) / 0.1);
    border: 2px solid hsl(var(--primary) / 0.2);
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
}

.child-needs h3,
.child-story h3,
.program-details h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sponsor-action,
.program-action {
    text-align: center;
    background: var(--gradient-warm);
    padding: 2rem;
    border-radius: 1rem;
}

.program-stat {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--primary);
}

.post-tags a {
    background: var(--muted);
    color: var(--foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

.edit-link {
    text-align: right;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.edit-link a:hover {
    color: var(--primary);
}

.post-navigation {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: var(--foreground);
    padding: 1.5rem;
    transition: all 0.3s;
}

.nav-link:hover {
    transform: translateY(-4px);
    color: var(--foreground);
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.nav-previous .nav-direction {
    justify-content: flex-start;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-title {
    font-weight: 600;
    line-height: 1.3;
}

.nav-previous .nav-title {
    text-align: left;
}

.nav-next .nav-title {
    text-align: right;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.related-post {
    text-align: center;
}

.related-post-image {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post h4 {
    margin-bottom: 0.75rem;
}

.related-post h4 a {
    color: var(--foreground);
    text-decoration: none;
}

.related-post h4 a:hover {
    color: var(--primary);
}

.post-comments {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta,
    .child-meta,
    .program-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .related-posts .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-content {
        padding: 2rem 0;
    }
    
    .post-header {
        padding-bottom: 1.5rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .program-details .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Page-specific styles */
.page-content {
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 3rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.page-excerpt {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-featured-image {
    margin-bottom: 3rem;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.page-body h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-body h3 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body ul,
.page-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body blockquote {
    background: var(--muted);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.page-links a:hover {
    background: var(--secondary);
}

.page-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.edit-link a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.edit-link a:hover {
    color: var(--primary);
}

.page-comments {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.related-pages {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-pages h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.related-page {
    text-align: center;
    transition: transform 0.3s ease;
}

.related-page:hover {
    transform: translateY(-5px);
}

.related-page-image {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.related-page-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-page:hover .related-page-image img {
    transform: scale(1.05);
}

.related-page h4 {
    margin-bottom: 0.75rem;
}

.related-page h4 a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.related-page h4 a:hover {
    color: var(--primary);
}

.related-page p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-excerpt {
        font-size: 1.125rem;
    }
    
    .page-body {
        font-size: 1rem;
    }
    
    .page-content {
        padding: 2rem 0;
    }
    
    .page-header {
        margin-bottom: 2rem;
    }
    
    .related-pages .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 1.5rem 0;
    }
    
    .page-header {
        padding-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-excerpt {
        font-size: 1rem;
    }
    
    .page-body {
        font-size: 0.95rem;
    }
    
    .page-body ul,
    .page-body ol {
        padding-left: 1.5rem;
    }
}

.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-illustration {
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 3rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.error-message {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-search {
    background: var(--muted);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.error-search h2 {
    color: var(--foreground);
    margin-bottom: 1rem;
    text-align: center;
}

.error-suggestions {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.error-suggestions li:last-child {
    border-bottom: none;
}

.error-suggestions a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.error-suggestions a:hover {
    text-decoration: underline;
}

.error-search-form {
    margin-bottom: 2rem;
}

.error-search-form h3 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.error-cta {
    background: var(--gradient-warm);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
}

.error-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--foreground);
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-404 {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-search {
        padding: 1.5rem;
    }
    
    .error-cta {
        padding: 1.5rem;
    }
    
    .error-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .error-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 1.5rem 0;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .error-icon {
        font-size: 2rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
    
    .error-message {
        font-size: 0.95rem;
    }
    
    .error-search {
        padding: 1rem;
    }
    
    .error-cta {
        padding: 1rem;
    }
    
    .error-cta p {
        font-size: 1rem;
    }
}

/* Logo Styles */
.site-logo,
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--foreground);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(255, 126, 69, 0.2);
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-navigation {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.site-navigation .nav-menu {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation .nav-menu a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s;
}

.site-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.site-navigation .nav-menu a:hover {
    color: var(--primary);
}

.site-navigation .nav-menu a:hover::after,
.site-navigation .nav-menu a.current-menu-item::after {
    width: 100%;
}

.site-navigation .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-card);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.site-navigation .nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-navigation .nav-menu .sub-menu li {
    margin: 0;
}

.site-navigation .nav-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

.site-navigation .nav-menu .sub-menu a:last-child {
    border-bottom: none;
}

.site-navigation .nav-menu .sub-menu a:hover {
    background: var(--muted);
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--foreground);
    margin: 3px 0;
    transition: all 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 1rem;
    z-index: 55;
}

.mobile-navigation.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.mobile-nav-menu a:hover {
    background: var(--muted);
    color: var(--primary);
}

.mobile-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .site-navigation .nav-menu {
        gap: 1.5rem;
        font-size: 0.95rem;
    }
    
    .header-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-navigation {
        display: none;
    }
    
    .header-buttons {
        display: none;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .logo-main {
        font-size: 1.125rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 0.75rem 0;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .logo-main {
        font-size: 1rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
}

/* Proper Menu Alignment Fix */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0; /* Reduced padding */
    min-height: 60px; /* Smaller header height */
}

.site-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    padding: 0.5rem 0; /* Reduced padding */
    display: block;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
}

/* Remove gap between header and hero section */
.site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no body margins interfere */
body {
    margin: 0;
    padding: 0;
}

/* Remove any default spacing */
.main-content {
    margin-top: 0 !important;
}

/* If there's still a gap, try this more aggressive approach */
.site-header + * {
    margin-top: 0 !important;
}

/* Hero Statistics Styling - No Color Change */
.stat-number,
.hero-stats .stat-number {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 36px !important;
    line-height: 40px !important;
}

/* If the numbers are in a different class, try these alternatives */
.hero-stats .stat-item .stat-number,
.stat-value {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 36px !important;
    line-height: 40px !important;
}

/* Make sure the container doesn't interfere */
.hero-stats .stat-item {
    text-align: center;
}

/* Keep stat descriptions on one line */
.stat-label,
.hero-stats .stat-label,
.stat-description {
    white-space: nowrap !important; /* Prevents text wrapping */
    font-size: 14px !important; /* Make text smaller if needed */
    text-align: center !important;
}

/* Ensure the stat number stays centered */
.stat-number,
.hero-stats .stat-number {
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Alternative: If you need even more space */
.hero-stats .stat-item {
    min-width: 200px; /* Give more width to each stat container */
    text-align: center;
}

/* For mobile responsiveness, allow wrapping on very small screens */
@media (max-width: 480px) {
    .stat-label,
    .hero-stats .stat-label,
    .stat-description {
        white-space: normal !important; /* Allow wrapping on mobile */
        font-size: 12px !important;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem; /* Increased gap from 2rem to 3rem */
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    margin-bottom: 1rem; /* Added margin between stat items */
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--hope-orange));
    margin-bottom: 1rem; /* Increased margin between number and label */
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.2; /* Adjusted line height for better control */
    white-space: nowrap; /* Prevents text from wrapping */
    min-width: 100px; /* Ensures the label has enough width to stay on one line */
    margin: 0 auto; /* Centers the label within the available width */
}

/* Center the hero statistics container */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 600px;
    margin: 4rem auto 0 auto !important; /* Centers horizontally and adds top margin */
    justify-items: center; /* Centers each grid item */
}

/* Alternative: If the above doesn't work, try this */
.hero-content {
    text-align: center; /* Centers all content in hero section */
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 600px;
    margin: 4rem auto !important;
    width: 100%; /* Ensures full width usage */
    justify-content: center; /* Centers the grid */
}


/* Mission Cards Grid - Perfect for 4 columns */
.mission-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Mission Cards using involvement-card class (which already works) */
.involvement-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.involvement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.involvement-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.involvement-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.involvement-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Responsive design for mission cards */
@media (max-width: 1024px) {
    .mission-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mission-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .involvement-card {
        padding: 1.5rem;
    }
    
    .involvement-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
}

.header-buttons .btn.btn-outline:hover {
    background-color: #ecf7f4 !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
}

/* Hero section button hover effects */

/* Learn Our Story button - white fill with black text on hover */
.hero-buttons .btn.btn-hero:hover {
    background-color: white !important;
    color: black !important;
    border-color: white !important;
}

/* Sponsor a Child Today button - lift up effect on hover */
.hero-buttons .btn.btn-primary:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}