/* Base Styles & Variables */
:root {
  --terracotta: #CC5500;
  --sand: #E6CCB3;
  --deep-brown: #602800;
  --sage: #7F8C7D;
  --cream: #F9F3E6;
  --dark-text: #333333;
  --light-text: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #CCCCCC;
  --dark-gray: #666666;
  --border-radius: 5px;
  --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e35;
  background: linear-gradient(135deg, #fefcfa 0%, #f9f6f2 50%, #f6f2ec 100%);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Expanded container specifically for projects */
.projects .container,
.projects-intro .container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--deep-brown);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--deep-brown);
}

ul {
  list-style: none;
}

section {
  padding: 2rem 0;
}

/* Flash Messages */
.flash-messages {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.flash {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--light-gray);
}

.flash.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Header and Navigation */
header {
  background: rgba(249, 243, 230, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 140, 125, 0.1);
  padding: 1rem;
  box-shadow: 0 2px 20px rgba(127, 140, 125, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000; /* Ensure header stays above everything */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--deep-brown);
  text-decoration: none;
  z-index: 1001; /* Ensure logo text stays above page-hero */
}

.logo-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--deep-brown);
  font-weight: 600;
  padding: 0.5rem;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--terracotta);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--terracotta);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.donate-btn {
  background-color: var(--terracotta);
  color: var(--light-text) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.donate-btn:hover {
  background-color: var(--deep-brown);
}

.donate-btn::after {
  display: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--deep-brown);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }
  
  nav {
    position: relative;
    z-index: 1002; /* Higher z-index than header to ensure dropdown appears on top */
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: rgba(249, 243, 230, 0.98); /* Add background to ensure text is readable */
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(127,140,125,0.1);
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .nav-toggle:checked ~ nav {
    max-height: 300px;
  }
}

/* Footer */
footer {
  background: linear-gradient(135deg, rgba(96,40,0,0.95) 0%, rgba(44,62,53,0.9) 100%);
  color: var(--light-text);
  padding: 3rem 2rem 1rem;
  backdrop-filter: blur(5px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

footer h3 {
  color: var(--sand);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--light-text);
}

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

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--light-text);
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: var(--sand);
}

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Hero Sections */
/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--light-text);
  margin-top: 60px; /* Account for fixed header */
}

.hero-carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--light-text);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.page-hero {
  position: relative;
  background-color: var(--terracotta);
  background-size: cover;
  background-position: center;
  padding: 10rem 2rem 5rem;  /* Increased top padding to prevent overlap with header */
  text-align: center;
  color: var(--light-text);
  margin-bottom: 2rem;
  overflow: hidden;
  margin-top: 0; /* Reset any margin that might cause positioning issues */
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65); /* Slightly darker overlay for better text contrast */
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h2 {
  color: var(--light-text);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Stronger text shadow for better readability */
  line-height: 1.2;
}

.page-hero p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Enhanced text shadow for paragraph text */
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}
  transition: var(--transition);
}

.prev-slide:hover, .next-slide:hover {
  color: var(--sand);
}

.hero-cta {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
  color: var(--light-text);
}

/* Enhanced CTA Button with Vibrant Colors */
.cta-button {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #FF6B35, #D32F2F);
  border: 3px solid #FF8A65;
  color: white;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 
    0 12px 40px rgba(255, 107, 53, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.08);
  background: linear-gradient(135deg, #FF8A65, #E53935);
  border-color: #FFAB91;
  box-shadow: 
    0 20px 50px rgba(255, 107, 53, 0.6),
    inset 0 3px 0 rgba(255, 255, 255, 0.3);
}





/* Secondary CTA Button Style */
.cta-button.secondary {
  background: linear-gradient(135deg, #FF7043, #E91E63);
  border: 3px solid #FF8A65;
  color: white;
}

.cta-button.secondary:hover {
  background: linear-gradient(135deg, #FF8A65, #F06292);
  border-color: #FFAB91;
  box-shadow: 
    0 20px 50px rgba(255, 112, 67, 0.6),
    inset 0 3px 0 rgba(255, 255, 255, 0.3);
}

/* Pulse Effect for Extra Attention */
.cta-button:focus {
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0% {
    box-shadow: 
      0 12px 40px rgba(255, 107, 53, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(255, 138, 101, 0.7);
  }
  70% {
    box-shadow: 
      0 12px 40px rgba(255, 107, 53, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.2),
      0 0 0 15px rgba(255, 138, 101, 0);
  }
  100% {
    box-shadow: 
      0 12px 40px rgba(255, 107, 53, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(255, 138, 101, 0);
  }
}

/* Removed duplicate page-hero definition */

/* Mission Section */
.mission {
  text-align: center;
  padding: 3rem 0;
}

.mission-text {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.highlight-card {
  padding: 2rem;
  background-color: var(--light-text);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card i {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Project Preview */
.project-preview {
  background-color: var(--light-gray);
  padding: 3rem 0;
  text-align: center;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.preview-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.preview-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: var(--deep-brown);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.card-content p {
  color: var(--dark-text);
  margin-bottom: 1.2rem;
  flex: 1;
  line-height: 1.6;
}
}
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.learn-more:hover {
  background-color: var(--deep-brown);
  transform: translateY(-2px);
}
}

.learn-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 1rem;
  color: var(--terracotta);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-card:hover .card-image img {
  transform: scale(1.05);
}

  padding: 3rem 0;
  text-align: center;
}

blockquote {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.3rem;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-style: normal;
}

/* Newsletter */
.newsletter {
  background-color: var(--sand);
  padding: 3rem 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 400px;
  border: none;
  border-radius: var(--border-radius);
}

/* Projects Page */
.projects-intro {
  padding: 5rem 0 7rem 0;
  background: linear-gradient(135deg, var(--cream) 0%, #f6f0e4 100%);
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100vw;
  margin-top: 0;
}

.projects-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E6CCB3" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
  z-index: 1;
}

.projects-header {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0rem 0rem 0 0rem;
  box-sizing: border-box;
}

.projects-header h2 {
  font-size: 2.5rem;
  color: var(--deep-brown);
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--deep-brown), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: calc(100vw - 4rem);
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
  display: block;
  width: fit-content;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

.projects-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: rgba(249, 243, 230, 0.4);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.stat-highlight {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(249,243,230,0.7));
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(127,140,125,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(127,140,125,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sage));
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-highlight:hover::before {
  transform: translateX(0);
}

.stat-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--terracotta), var(--deep-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--dark-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.projects {
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(249,246,242,0.8) 0%, rgba(249,243,230,0.6) 100%);
}

.accordion {
  margin: 2rem 0;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.accordion-item {
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(127,140,125,0.1);
  transition: all 0.5s ease;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(127, 140, 125, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
}

.accordion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion-item:hover::before {
  opacity: 1;
}

.accordion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 2.5rem;
  background: linear-gradient(135deg, var(--sand) 0%, #dcc4a5 100%);
  color: var(--deep-brown);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  z-index: 100;
  width: 100%;
  border: none;
  text-align: left;
  overflow: hidden;
}

.accordion-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.accordion-header:hover::before {
  left: 100%;
}

.accordion-header:hover {
  background: linear-gradient(135deg, var(--terracotta) 0%, #e6661a 100%);
  color: var(--light-text);
  transform: translateY(-2px);
}

.accordion-header i {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: inherit;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: var(--light-text);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 2.5rem;
  border-top: 4px solid var(--terracotta);
  background: linear-gradient(135deg, #f9f6f2 0%, #f4ede4 100%);
}

.accordion-item.active .accordion-header {
  background: linear-gradient(135deg, var(--terracotta) 0%, #e6661a 100%);
  color: var(--light-text);
  box-shadow: 0 4px 12px rgba(204, 85, 0, 0.3);
}

.accordion-item.active .accordion-header i {
  transform: rotate(45deg);
}
.project-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  padding: 0;
  position: relative;
}

/* Enhanced Project Layouts with Desert Theme - Expanded */
.newborn-project, .malnutrition-project, .outreach-project, .training-project, .weaving-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 700px;
  max-height: 700px;
  background: linear-gradient(135deg, #f2ebe2 0%, #ede0d3 100%);
  border-radius: 25px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(139, 115, 85, 0.15);
  width: 100%;
  max-width: none;
}

.project-section {
  display: flex;
  flex-direction: column;
  height: 700px;
}

.section-border {
  border: 3px solid var(--terracotta);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  background: linear-gradient(135deg, #f4ede4 0%, #ede0d3 50%, #e8d7c3 100%);
  box-shadow: 0 8px 32px rgba(139, 115, 85, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.section-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--terracotta), var(--sage), var(--deep-brown));
}

.project-images-section .section-border {
  border-color: var(--sage);
  margin-right: 1.5rem;
  background: linear-gradient(135deg, #f0f4f0 0%, #e8f0e8 50%, #dde8dd 100%);
}

.project-details-section .section-border {
  border-color: var(--terracotta);
  margin-left: 1.5rem;
  background: linear-gradient(135deg, #f4ede4 0%, #ede0d3 50%, #e8d7c3 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(204, 85, 0, 0.1);
}

.section-header h4 {
  font-size: 1.6rem;
  color: var(--deep-brown);
  margin: 0;
  background: linear-gradient(135deg, var(--deep-brown), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.project-content::after {
  content: "";
  display: table;
  clear: both;
}

.project-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Float image for text wrapping */
.float-image {
  float: left;
  margin: 0 20px 10px 0;
}

.float-right {
  float: right;
  margin: 0 0 10px 20px;
}

/* Stacked images container */
.project-images-container {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Enhanced Images Container for All Projects */
.newborn-project .project-images-container,
.malnutrition-project .project-images-container,
.outreach-project .project-images-container,
.training-project .project-images-container,
.weaving-project .project-images-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: none;
  margin: 0;
  height: calc(100% - 90px); /* Account for header only */
}

.newborn-project .project-image,
.malnutrition-project .project-image,
.outreach-project .project-image,
.training-project .project-image,
.weaving-project .project-image {
  flex: 1;
  height: calc(50% - 0.75rem);
  min-height: 260px;
  max-height: 320px;
}

.newborn-project .project-image img,
.malnutrition-project .project-image img,
.outreach-project .project-image img,
.training-project .project-image img,
.weaving-project .project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.image-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-style: italic;
  margin-top: 0.3rem;
  padding: 0.5rem;
  background: rgba(249, 243, 230, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.impact-highlight {
  background: linear-gradient(135deg, var(--terracotta), var(--deep-brown));
  color: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 6px 20px rgba(204, 85, 0, 0.3);
  flex-shrink: 0;
}

.impact-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.impact-text {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
}

.project-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(204, 85, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-image:hover::before {
  opacity: 1;
}

.project-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-image:hover img {
  transform: scale(1.05);
}

.project-details {
  flex: 2;
  min-width: 300px;
  position: relative;
}

/* Enhanced Project Details for All Projects */
.newborn-project .project-details,
.malnutrition-project .project-details,
.outreach-project .project-details,
.training-project .project-details,
.weaving-project .project-details {
  flex: 1;
  min-width: auto;
  max-width: none;
  margin: 0;
  height: calc(100% - 90px); /* Account for header */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  line-height: 1.7;
}

.newborn-project .project-details > p:first-of-type {
  margin-bottom: 1rem;
}

.newborn-project .project-details > p:nth-of-type(2) {
  margin-bottom: 1rem;
}

.newborn-project .project-details h5 {
  color: var(--deep-brown);
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--deep-brown), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.key-services, .program-impact, .success-story {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(244, 237, 228, 0.4);
  border-radius: 8px;
  border-left: 3px solid var(--sage);
}

.key-services {
  border-left-color: var(--terracotta);
}

.program-impact {
  border-left-color: var(--sage);
}

.success-story {
  border-left-color: var(--deep-brown);
  margin-bottom: 0;
}

.newborn-project .project-details p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.newborn-project .project-details ul {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: transparent;
  border-radius: 0;
  border-left: none;
}

.newborn-project .project-details li {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  padding-left: 1.5rem;
}

.project-details p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--dark-text);
  font-size: 1.05rem;
}

/* Strong text for emphasis */
.project-details p strong {
  font-weight: 700;
  color: var(--deep-brown);
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--deep-brown), var(--terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-details ul {
  margin: 2rem 0;
  padding-left: 0;
  background: linear-gradient(135deg, rgba(230, 204, 179, 0.1), transparent);
  border-radius: 15px;
  padding: 1.5rem;
  border-left: 4px solid var(--terracotta);
}

.project-details li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
  line-height: 1.7;
  font-size: 1.02rem;
}

.project-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--terracotta);
  font-weight: bold;
  font-size: 1.2rem;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--terracotta), var(--deep-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Additional project images */
.project-additional-image {
  margin: 2rem 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-additional-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.project-additional-image img:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 0.8rem;
  font-style: italic;
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.4;
}
.project-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-image:hover img {
  transform: scale(1.05);
}

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-stat {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.impact-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.impact-stat i {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.impact-stat h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--deep-brown);
}

.impact-stat p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-gray);
}
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* About Page */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.mission-box, .vision-box {
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.mission-box {
  background-color: var(--terracotta);
  color: var(--light-text);
}

.mission-box h2 {
  color: var(--light-text);
}

.vision-box {
  background-color: var(--sage);
  color: var(--light-text);
}

.vision-box h2 {
  color: var(--light-text);
}

.history {
  margin-bottom: 3rem;
}

.timeline {
  margin-top: 2rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--terracotta);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.year {
  background-color: var(--terracotta);
  color: var(--light-text);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  min-width: 80px;
  text-align: center;
  z-index: 1;
}

.timeline-content {
  background-color: var(--light-text);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 50%;
  max-width: 400px;
  margin-left: 2rem;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

/* Enhanced Cascading Timeline Styles */
.history-section {
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.history-section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--deep-brown);
  background: linear-gradient(135deg, var(--terracotta), var(--deep-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-intro {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.intro-expandable, .bubble-content {
  position: relative;
}

.hidden {
  display: none;
}

.read-more-btn, .read-less-btn {
  background: linear-gradient(135deg, var(--terracotta), var(--deep-brown));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.read-more-btn:hover, .read-less-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cascading-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 100px;
}

.cascading-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--terracotta), var(--sage), var(--deep-brown));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
  align-items: center;
  min-height: 250px;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .year-badge {
  left: auto;
  right: -80px;
}

.year-badge {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--terracotta), var(--deep-brown));
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 4px solid white;
  min-width: 100px;
  text-align: center;
}

.timeline-bubble {
  width: 48%;
  position: relative;
  margin: 0 1.5rem;
  padding: 2.5rem;
  border-radius: 25px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  min-height: 200px;
}

.timeline-bubble:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.timeline-bubble h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--deep-brown);
}

/* Cascading Bubble Styles */
.bubble-style-1 .timeline-bubble {
  background: linear-gradient(135deg, rgba(230, 204, 179, 0.9), rgba(255, 255, 255, 0.8));
  border-left: 5px solid var(--terracotta);
}

.bubble-style-2 .timeline-bubble {
  background: linear-gradient(135deg, rgba(152, 152, 101, 0.9), rgba(255, 255, 255, 0.8));
  border-left: 5px solid var(--sage);
}

.bubble-style-3 .timeline-bubble {
  background: linear-gradient(135deg, rgba(204, 85, 0, 0.9), rgba(255, 255, 255, 0.8));
  border-left: 5px solid var(--terracotta);
}

.bubble-style-4 .timeline-bubble {
  background: linear-gradient(135deg, rgba(96, 40, 0, 0.9), rgba(255, 255, 255, 0.8));
  border-left: 5px solid var(--deep-brown);
}

.bubble-style-5 .timeline-bubble {
  background: linear-gradient(135deg, rgba(230, 204, 179, 0.9), rgba(152, 152, 101, 0.8));
  border-left: 5px solid var(--sage);
}

.bubble-style-6 .timeline-bubble {
  background: linear-gradient(135deg, rgba(204, 85, 0, 0.8), rgba(230, 204, 179, 0.9));
  border-left: 5px solid var(--terracotta);
}

.bubble-style-7 .timeline-bubble {
  background: linear-gradient(135deg, rgba(152, 152, 101, 0.8), rgba(96, 40, 0, 0.9));
  border-left: 5px solid var(--deep-brown);
}

/* Bubble Arrow Styles */
.timeline-item:nth-child(odd) .timeline-bubble::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid rgba(255, 255, 255, 0.8);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.timeline-item:nth-child(even) .timeline-bubble::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 15px solid rgba(255, 255, 255, 0.8);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cascading-timeline {
    padding: 2rem 20px;
  }
  
  .cascading-timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-bubble {
    width: calc(100% - 140px);
    margin-left: 100px;
  }
  
  .year-badge {
    left: 10px !important;
    right: auto !important;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
    min-width: 70px;
  }
  
  .timeline-item:nth-child(even) .timeline-bubble::after {
    display: none;
  }
  
  .timeline-item:nth-child(odd) .timeline-bubble::after {
    right: auto;
    left: -15px;
    border-left: none;
    border-right: 15px solid rgba(255, 255, 255, 0.8);
  }
}

/* Board Members Section */
.board-members {
  margin-bottom: 4rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(165, 128, 100, 0.1), rgba(148, 148, 134, 0.1));
  border-radius: 20px;
}

.board-members h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--deep-brown);
  position: relative;
}

.board-members h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sage));
  border-radius: 2px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 0 1rem;
}

.board-member {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.board-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--deep-brown), var(--terracotta), var(--sand));
  border-radius: 20px;
  z-index: -1;
  margin: -3px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.board-member:hover::before {
  opacity: 1;
}

.board-member:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.board-member .member-photo {
  height: 220px;
  background-color: var(--sage);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.board-member .member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(0.95) contrast(1.1);
}

.board-member:hover .member-photo img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.board-member-content {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.board-member h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: var(--deep-brown);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.board-member .member-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.board-member .member-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  font-weight: 400;
}

.team {
  margin-bottom: 4rem;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(232, 207, 185, 0.1), rgba(182, 159, 134, 0.1));
  border-radius: 20px;
}

.team h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--deep-brown);
  position: relative;
}

.team h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sage));
  border-radius: 2px;
}



.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 0 1rem;
}

.team-member {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--terracotta), var(--sage), var(--sand));
  border-radius: 20px;
  z-index: -1;
  margin: -3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover::before {
  opacity: 1;
}

.team-member:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.member-photo {
  height: 220px;
  background-color: var(--sage);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
}

.member-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

.member-photo i {
  font-size: 3rem;
  color: var(--light-text);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  border-radius: 17px 17px 0 0;
}

.team-member:hover .member-photo img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.team-member-content {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.team-member h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: var(--deep-brown);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.member-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.member-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
}

.member-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-gray);
  margin: 0;
}

/* Board Members and Team Responsive Design */
@media (max-width: 768px) {
  .board-members {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }
  
  .board-members h2 {
    font-size: 2rem;
  }
  
  .board-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .board-member {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .board-member .member-photo {
    height: 200px;
  }
  
  .board-member-content {
    padding: 1.2rem;
  }
  
  .board-member h3 {
    font-size: 1.3rem;
  }
  
  .board-member .member-title {
    font-size: 0.9rem;
  }
  
  .board-member .member-bio {
    font-size: 0.9rem;
  }

  .team {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }
  
  .team h2 {
    font-size: 2rem;
  }
  

  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .team-member {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .member-photo {
    height: 200px;
  }
  
  .team-member-content {
    padding: 1.2rem;
  }
  
  .team-member h3 {
    font-size: 1.3rem;
  }
  
  .member-title {
    font-size: 0.9rem;
  }
  
  .member-bio {
    font-size: 0.9rem;
  }
}

/* Map Page Styles */
.map-content {
  padding: 2rem 0;
}

.map-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.map-intro h2 {
  color: var(--deep-brown);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dark-gray);
}

.map-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-bottom: 3rem;
  height: 600px;
}

.interactive-map {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.map-legend {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  height: fit-content;
}

.map-legend h3 {
  color: var(--deep-brown);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.legend-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.legend-marker.main-clinic {
  background-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.3);
}

.legend-marker.outreach-area {
  background-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(182, 159, 134, 0.3);
}

.legend-marker.community-health {
  background-color: var(--deep-brown);
  box-shadow: 0 0 0 3px rgba(139, 112, 82, 0.3);
}

/* Custom map markers */
.custom-marker {
  background: white;
  border: 2px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.main-clinic-marker {
  border-color: var(--terracotta);
  color: var(--terracotta);
  width: 35px;
  height: 35px;
  font-size: 16px;
}

.outreach-marker {
  border-color: var(--sage);
  color: var(--sage);
  width: 25px;
  height: 25px;
  font-size: 12px;
}

.community-marker {
  border-color: var(--deep-brown);
  color: var(--deep-brown);
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.custom-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Map popup styles */
.map-popup {
  font-family: var(--font-primary);
  min-width: 200px;
}

.map-popup h4 {
  color: var(--deep-brown);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.map-popup p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.map-popup strong {
  color: var(--terracotta);
}

/* Project stats grid */
.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2.2rem;
  color: var(--deep-brown);
  margin: 0 0 0.3rem 0;
  font-weight: 700;
}

.stat-content p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin: 0 0 0.2rem 0;
  font-weight: 600;
}

.stat-content span {
  font-size: 0.9rem;
  color: var(--sage);
  font-style: italic;
}

/* Location details */
.location-details {
  margin-top: 3rem;
}

.location-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.location-header {
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.location-coordinates {
  font-family: monospace;
  font-size: 0.9rem;
  opacity: 0.9;
}

.location-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.location-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 200px;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-info h4 {
  color: var(--deep-brown);
  margin: 0 0 1rem 0;
}

.location-info p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services-list h5,
.impact-metrics h5 {
  color: var(--terracotta);
  margin: 1.5rem 0 0.8rem 0;
  font-size: 1.1rem;
}

.services-list ul {
  list-style: none;
  padding: 0;
}

.services-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.services-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  text-align: center;
  padding: 1rem;
  background: rgba(182, 159, 134, 0.1);
  border-radius: var(--border-radius);
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  color: var(--deep-brown);
  margin-bottom: 0.3rem;
}

.metric span {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* Enhanced Values Section Styles */
.values {
  margin: 4rem 0;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.05), rgba(182, 159, 134, 0.08));
  border-radius: var(--border-radius);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  display: inline-block;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.3s ease;
}

.section-header h2:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.section-header h2::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--terracotta), var(--sage), var(--deep-brown));
  border-radius: 50px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
}

.section-header h2::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid rgba(255, 255, 255, 0.3);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dark-gray);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(218, 165, 32, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid rgba(255, 255, 255, 0.9);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

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

.value-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.value-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.value-card:hover .value-image img {
  transform: scale(1.05);
}

.value-content {
  padding: 2rem;
}

.value-content h3 {
  color: var(--deep-brown);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.value-content p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Enhanced Partners Section Styles */
.partners {
  margin: 4rem 0;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(182, 159, 134, 0.05), rgba(139, 112, 82, 0.08));
  border-radius: var(--border-radius);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.partner-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

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

.partner-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.partner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-image img {
  transform: scale(1.05);
}

.partner-content {
  padding: 2rem;
}

.partner-content h3 {
  color: var(--deep-brown);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.partner-type {
  color: var(--terracotta);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.partner-content p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Projects Page Responsive Design */
@media (max-width: 768px) {
  .projects-header h2 {
    font-size: 2.2rem;
  }
  
  .section-intro {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
  }
  
  .projects-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-highlight {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .accordion-header {
    padding: 1.5rem 1.8rem;
    font-size: 1.1rem;
  }
  
  .accordion-item.active .accordion-content {
    padding: 2rem;
  }
  
  .project-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .project-images-container,
  .project-details {
    min-width: 100%;
    max-width: 100%;
  }
  
  .project-details li {
    padding-left: 2rem;
  }
  
  .project-details ul {
    padding: 1.2rem;
  }
  
  /* Newborn Project Mobile Layout */
  .newborn-project {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  .project-images-section .section-border,
  .project-details-section .section-border {
    margin: 0;
  }
  
  .section-border {
    padding: 1.5rem;
  }
  
  .impact-number {
    font-size: 2.5rem;
  }
}

/* Enhanced sections responsive design */
@media (max-width: 768px) {
  .values-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    transform: none;
  }
  
  .section-header h2:hover {
    transform: translateY(-3px);
  }
  
  .section-subtitle {
    padding: 1.2rem 1.8rem;
    font-size: 1rem;
  }
  
  .value-content,
  .partner-content {
    padding: 1.5rem;
  }
}

/* Responsive design for map page */
@media (max-width: 1024px) {
  .map-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .interactive-map {
    height: 500px;
  }
  
  .location-content {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .interactive-map {
    height: 400px;
  }
  
  .location-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.values {
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.partners {
  margin-bottom: 3rem;
}

.partners p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.partner {
  background-color: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.partner:hover {
  transform: translateY(-5px);
}

.partner i {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.join-us {
  background-color: var(--sand);
  padding: 3rem 0;
  text-align: center;
}

/* Blog Page */
.blog-content {
  padding: 2rem 0;
}

.blog-content .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
}

.post-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-content {
  padding: 1.5rem;
  flex: 1;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-summary {
  margin-bottom: 1rem;
}

.post-details {
  margin-top: 1rem;
}

.post-details summary {
  cursor: pointer;
  color: var(--terracotta);
  font-weight: 600;
}

.post-details summary:hover {
  text-decoration: underline;
}

.blog-post:hover .post-image img {
  transform: scale(1.05);
}
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background-color: var(--light-text);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.sidebar-section h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--terracotta);
}

.category-list, .recent-posts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-list li, .recent-posts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--medium-gray);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscribe-form input {
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
}

.subscribe-btn {
  background-color: var(--terracotta);
  color: var(--light-text);
  border: none;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-btn:hover {
  background-color: var(--deep-brown);
}

/* Donation Page */
.donate-content {
  margin-bottom: 3rem;
}

.donation-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.impact-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.impact-example {
  background-color: var(--light-text);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.impact-example h3 {
  color: var(--terracotta);
  font-size: 1.8rem;
}

.donation-form-wrapper {
  max-width: 800px;
  margin: 0 auto 3rem;
  background-color: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 2rem;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: var(--deep-brown);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.half {
  flex: 1;
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.amount-option {
  flex: 1;
  min-width: 80px;
}

.amount-option input[type="radio"] {
  display: none;
}

.amount-option label {
  display: block;
  padding: 0.75rem;
  text-align: center;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.amount-option input[type="radio"]:checked + label {
  background-color: var(--terracotta);
  color: var(--light-text);
}

/* Enhanced Modern Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 68px;
  height: 36px;
  margin-right: 12px;
  vertical-align: middle;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch label {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
}

.toggle-switch label:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 3px;
  top: 3px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.2),
    0 1px 2px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.8);
}

.toggle-switch label:hover {
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.1),
    0 2px 8px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + label {
  background: linear-gradient(135deg, var(--terracotta) 0%, #e85d00 100%);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.15),
    0 1px 3px rgba(204, 85, 0, 0.3);
}

.toggle-switch input:checked + label:before {
  transform: translateX(32px);
  background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
  box-shadow: 
    0 3px 8px rgba(204, 85, 0, 0.3),
    0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:focus + label {
  outline: 2px solid rgba(204, 85, 0, 0.4);
  outline-offset: 2px;
}

/* Recurring donation section enhancement */
.form-group:has(.toggle-switch) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group:has(.toggle-switch) > label:first-child {
  font-weight: 600;
  color: var(--deep-brown);
  margin-bottom: 8px;
}

.recurring-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--cream) 0%, #faf7f2 100%);
  border-radius: 8px;
  border: 1px solid rgba(127, 140, 125, 0.2);
  transition: all 0.3s ease;
}

.recurring-toggle-container:hover {
  background: linear-gradient(135deg, #faf7f2 0%, #f5f1ea 100%);
  border-color: rgba(204, 85, 0, 0.3);
  box-shadow: 0 2px 8px rgba(204, 85, 0, 0.1);
}

.toggle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label {
  font-weight: 600;
  color: var(--deep-brown);
  font-size: 0.95rem;
  line-height: 1.2;
}

.toggle-info .help-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sage);
  line-height: 1.3;
}

.help-text {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-top: 0.5rem;
}

.payment-options {
  display: flex;
  gap: 2rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.secure-notice {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.other-ways {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.way-card {
  background-color: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.way-card:hover {
  transform: translateY(-5px);
}

.way-card i {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }
  
  .year {
    position: absolute;
    left: 0;
    top: 0;
  }
  
  .timeline-content {
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .blog-content .container {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    min-height: 400px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .preview-cards, .highlight-card {
    grid-template-columns: 1fr;
  }
  
  .mission-vision {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .amount-options {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  header {
  position: relative;
  z-index: 100;
    padding: 1rem;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .logo-placeholder {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .hero-slide {
    min-height: 300px;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  blockquote {
    font-size: 1.1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .payment-options {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Impact Statistics Row Style */
.impact-stats {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem;
  margin: 0.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--deep-brown);
}

.stat-description {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-gray);
}

@media (max-width: 768px) {
  .stats-row {
    flex-direction: column;
  }
  
  .stat-item {
    margin: 0.5rem 0;
  }
}

/* Social Share Buttons Styles */
.social-share {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-share-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-email {
  background-color: #ea4335;
}

.share-whatsapp {
  background-color: #25d366;
}
/* Base Styles & Variables */
:root {
  --terracotta: #CC5500;
  --sand: #E6CCB3;
  --deep-brown: #602800;
  --sage: #7F8C7D;
  --cream: #F9F3E6;
  --dark-text: #333333;
  --light-text: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #CCCCCC;
  --dark-gray: #666666;
  --border-radius: 5px;
  --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--cream);
}

/* Add this new CSS class */
.float-image {
  float: left;
  margin: 0 20px 10px 0;
}

/* Add styles for stronger first paragraph */
.project-details p strong {
  font-weight: 700;
  color: var(--deep-brown);
}

/* Enhanced Responsive Design for Expanded Projects */
@media (min-width: 1200px) {
  .projects .container {
    width: 95%;
    max-width: 1800px;
  }
  
  .accordion {
    max-width: 1700px;
  }
  
  .newborn-project, .malnutrition-project, .outreach-project, .training-project, .weaving-project {
    min-height: 750px;
    max-height: 750px;
  }
  
  .project-section {
    height: 750px;
  }
}

@media (max-width: 768px) {
  .projects .container,
  .projects-intro .container {
    width: 98%;
    max-width: none;
    padding: 1rem 0.5rem;
  }
  
  .projects-header h2 {
    font-size: 2.2rem;
    padding: 0 1rem;
  }
  
  .accordion {
    max-width: none;
    margin: 1rem 0;
  }
  
  .newborn-project, .malnutrition-project, .outreach-project, .training-project, .weaving-project {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    padding: 1rem;
  }
  
  .project-section {
    height: auto;
    min-height: 400px;
  }
  
  .section-border {
    padding: 1.5rem;
    margin: 0 0 1rem 0 !important;
  }
}
