/* ===== CSS Variables ===== */
:root {
  /* New Vibrant Color Palette */
  --primary-green: #1e8449;
  --dark-green: #14532d;
  --light-green: #ebf7ee;
  --accent-gold: #f59e0b;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #1e293b;
  --text-dark: #0f172a;

  /* Spacing */
  --section-padding: 6rem 0;
  --container-width: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--light-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-green);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.section-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-medium);
  border: 2px solid transparent;
  gap: 0.5rem;
  text-align: center;
}

.btn-donate {
  background: var(--primary-green);
  color: var(--white);
}

.btn-donate:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-volunteer {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
}

.btn-volunteer:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-contact {
  background: var(--accent-gold);
  color: var(--white);
}

.btn-contact:hover {
  background: var(--white);
  color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-learn-more {
  background: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-learn-more:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-view-all {
  background: var(--dark-green);
  color: var(--white);
  margin-top: 2rem;
}

.btn-view-all:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.btn-gallery {
  background: var(--dark-green);
  color: var(--white);
  margin-top: 2rem;
}

.btn-gallery:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.btn-donate-nav {
  background: var(--accent-gold);
  color: var(--white);
  padding: 0.5rem 0.6rem !important;
  margin-left: 1rem;
  border-radius: 0.3rem;
}

.btn-donate-nav:hover {
  background: var(--white);
  color: var(--accent-gold);
}

.subscribe {
  background: #1e8449;
  color: #ffffff;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem;
}

.subscribe:hover {
  background:#14532d;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-text {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

.pulse {
  animation: pulse 2s infinite;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-gray);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Floating Contact */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.contact-box i {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.contact-box span {
  position: absolute;
  left: 40px;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition-medium);
  font-size: 0.9rem;
  color: var(--white);
}

.contact-box:hover {
  width: 220px;
  border-radius: 50px;
  justify-content: flex-start;
}

.contact-box:hover i {
  margin-left: 15px;
}

.contact-box:hover span {
  opacity: 1;
}

.phone-box {
  background: var(--primary-green);
}

.email-box {
  background: var(--accent-gold);
}

/* Header */
.header {
  background: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-medium);
}

.header.shrink {
  padding: 0.2rem 0;
  box-shadow: var(--shadow-md);
}

.header.shrink .logo img {
  height: 50px;
}

.header.shrink .navbar a {
  padding: 0.3rem 0 !important;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  transition: var(--transition-medium);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 70px;
  transition: var(--transition-medium);
}

.logo span {
  font-weight: 700;
  color: var(--dark-green);
  font-size: 1.1rem;
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: var(--transition-medium);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a.active {
  color: var(--primary-green);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-green);
}

/* Hero Section */
.hero {
   background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/frontpage.png');
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 12rem 0 8rem;
  position: relative;
  margin-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #e2e8f0;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-wave.hide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* ===== Impact Stats ===== */
.impact-stats {
  background: var(--light-green);
  padding: 4rem 0;
  text-align: center;
}

.impact-stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  padding: 2rem 1rem;
  position: relative;
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-green);
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-weight: 500;
  color: var(--dark-gray);
}

/* ===== Mission Section ===== */
.mission {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.mission .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.mission-content {
  flex: 1;
}

.mission-image {
  flex: 1;
}

.image-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  height: auto;
  transition: var(--transition-medium);
}

.image-frame:hover img {
  transform: scale(1.03);
}


.image-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.mission-highlights {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.highlight-item {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-item i {
  color: var(--primary-green);
  font-size: 1.2rem;
}

/* ===== Programs Section ===== */
.programs {
  padding: var(--section-padding);
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: var(--light-green);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-medium);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.program-card:hover::before {
  opacity: 1;
}

.program-card:hover .program-icon {
  background: var(--white);
  color: var(--primary-green);
}

.program-card:hover .program-link {
  color: var(--white);
}

.program-card:hover h3 {
  color: var(--white);
}

.program-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-medium);
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-green);
  transition: var(--transition-medium);
}

.program-card p {
  margin-bottom: 1.5rem;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--primary-green);
  transition: var(--transition-medium);
}

.program-link i {
  font-size: 0.8rem;
  transition: var(--transition-medium);
}

.program-link:hover {
  gap: 0.5rem;
}

/* ===== Success Stories ===== */
.success-stories {
  padding: var(--section-padding);
  background: var(--light-green);
}

.stories-slider {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.story-slide {
  margin-bottom: 2rem;
}

.story-content {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  width: 100%;
  height: 100%;
}

.story-slide:hover .story-content {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.story-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.story-slide:hover .story-image img {
  transform: scale(1.05);
}

.story-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.story-text {
  padding: 1.5rem;
}

.story-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-green);
}

.story-text p {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.story-text p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-green);
  opacity: 0.3;
  line-height: 1;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.story-category {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: var(--section-padding);
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--light-green);
  padding: 1.5rem;
  border-radius: 10px;
  transition: var(--transition-medium);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green);
}

.testimonial-author h4 {
  font-size: 1.2rem;
  color: var(--dark-green);
  margin-bottom: 0.2rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.testimonial-body p {
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-body p::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--primary-green);
  opacity: 0.3;
  line-height: 1;
}

.rating {
  color: var(--accent-gold);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(rgba(30, 132, 73, 0.9), rgba(30, 132, 73, 0.9)), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 0L0 0 892.25 114.72 1200 0z" fill="%23ffffff"></path></svg>');
  background-size: cover;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Gallery Preview ===== */
.gallery-preview {
  padding: var(--section-padding);
  background: var(--light-green);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 132, 73, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
}

/* ===== Featured Organizations ===== */
.featured-orgs {
  padding: var(--section-padding);
  background: var(--white);
}

.orgs-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.org-logo {
  width: 12%;
  transition: var(--transition-medium);
}

.org-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition-medium);
}

.Aghosh_logo {
  width:15%;
  transition: var(--transition-medium);
}

.Aghosh_logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition-medium);
}

.Aghosh_logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.org-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 5rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 0L0 0 892.25 114.72 1200 0z" fill="%23ebf7ee"></path></svg>');
  background-size: cover;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 70px;
  margin-bottom: 1.5rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.footer-social a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-gold);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
  transform: translateX(5px);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  opacity: 0.8;
}

.footer-contact i {
  margin-top: 3px;
  color: var(--accent-gold);
}

.footer-newsletter input {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  opacity: 0.7;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-5px);
}

/* ===== Popup Styles ===== */
.aghosh-popup {
  position: fixed;
  top: 30%;
  right: 30px;
  width: 320px;
  min-height: 100px;
  background: #f0f8ff;
  color: #003366;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  z-index: 9999;
  animation: slideInRight 0.6s ease;
  font-family: 'Poppins', sans-serif;
  border: 2px solid #003366;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 24px;
  font-weight: 900;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: #003366;
  background-color: #ffffffb0;
  border-radius: 50%;
  z-index: 10000;
  user-select: none;
}

.popup-close:hover {
  background-color: #ffffff;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.popup-icon {
  font-size: 22px;
  margin-bottom: 5px;
  color: #0056b3;
  animation: pulse 1.5s infinite;
}

.popup-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 5px;
}

.popup-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #003366;
  min-height: 45px;
  transition: opacity 0.4s ease;
}

.popup-arrow {
  position: absolute;
  bottom: -18px;
  right: 32px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid #f0f8ff;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  .org-logo {
    width: 15%;
  }
  .Aghosh_logo {
    width: 18%;
  }
}

@media (max-width: 992px) {
  .mission .container {
    flex-direction: column;
  }
  
  .mission-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .navbar {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;

    background: var(--white);
    padding: 2rem;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
    z-index: 999;
    overflow-y: auto;
  }
  
  .navbar.active {
    left: 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar a {
    padding: 0.2rem 0;
    display: block;
    font-size: 1.1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .org-logo {
    width: 20%;
  }
  .Aghosh_logo {
    width: 25%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }
  
  .header .container {
    padding: 0.5rem 0;
  }
  
  .logo span {
    display: none;
  }
  
  .hero {
    padding: 8rem 0 6rem;
    margin-top: 70px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .section-title,.maintitle {
    font-size: 2rem;
  }
    .maintitle::after {
 
  left: 50%;

}
  
  
  .impact-stats .container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  

  
  .orgs-container {
    gap: 2rem;
  }
  
  .org-logo {
    width: 30%;
  }
  .Aghosh_logo {
    width: 35%;
  }
  
  .aghosh-popup {
    right: 15px;
    width: calc(100% - 30px);
    max-width: 320px;
  }




    .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: -12px;
  }
  .footer-content {
 
  gap: 1rem;
  margin-bottom: 3rem;
}
  .cta-content h2{
    font-size: 36px;
  }
   .cta-content p{
    font-size: 18px;
   }
   .cta-buttons a{
    font-size: 13px;
    padding: 10px !important;
   }

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 0L0 0 892.25 114.72 1200 0z" fill="%23ebf7ee"></path></svg>');
  background-size: cover;
}
.footer {
 
  padding: 2.3rem 0 0;
  
}
.cta-section {
  padding: 2.3rem 0;

}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 0L0 0 892.25 114.72 1200 0z" fill="%23ffffff"></path></svg>');
  background-size: cover;
}


/* Hero Section with Parallax */
.parallax-hero {
  background: url('../images/frontpage.png'); /* Replace with your image path */
  
  background-size: cover;
  background-position:left ;
  color: var(--white);
  text-align: center;
  padding: 12rem 0 8rem;
  position: relative;
 
}
.hero h1 {
    font-size: 2rem;
    margin-top: -7%;
  }

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -5px;
 margin-bottom:-22%;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height:0px;
 background-size: cover;
  background-repeat: no-repeat;
  display: none;
}

.hero-wave.hide {
 display: none;
}
.footer-newsletter{
  margin-bottom: -7%;
}
.btn-donate{
   padding: 8px;
 font-size: 12px !important;
}
.btn-volunteer {
 padding: 10px;
 font-size: 12px !important;
}






}

@media (max-width: 576px) {
  .impact-stats .container {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .stories-slider {
    grid-template-columns: 1fr;
  }
  
  .org-logo {
    width: 40%;
  }
  .Aghosh_logo {
    width: 45%;
  }
  
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title,.maintitle {
    font-size: 1.7rem;
  }
  .maintitle::after {
 
  left: 50%;

}
  
  .mission-highlights {
    flex-direction: column;
  }
  
  .org-logo {
    width: 50%;
  }
  .Aghosh_logo {
    width: 60%;
  }
}