/* Color Variables */
:root {
    /* Primary Colors */
    --primary-color: #4CAF50;       /* Main green */
    --primary-dark: #388E3C;        /* Dark green */
    --primary-light: #C8E6C9;       /* Light green */
    --primary-color-rgb: 76, 175, 80;

    /* Text Colors */
    --text-color: #333333;          /* Full opacity black */
    --text-light: #777777;          /* Medium gray */
    --text-lighter: #999999;  
    --text-dark: #2c3e50;
    --text-medium: #555;
    --text-light: #f8f9fa;      /* Light gray */
    
    /* Backgrounds */
    --light-color: #f5f5f5;
    --dark-color: #333333;
    
    /* Navbar Scroll */
    --navbar-scroll-bg: rgba(255, 255, 255, 0.95);
    --navbar-scroll-text: var(--primary-color);
    --navbar-scroll-hover: var(--primary-dark);
    --navbar-scroll-active-bg: rgba(76, 175, 80, 0.1);

     /* Spacing */
     --section-padding: 5rem 0;
     --section-padding-md: 4rem 0;
     --section-padding-sm: 3rem 0;
}

/* Base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 0;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ===== UNIFIED NAVBAR STYLES ===== */

/* Modernized Navbar Styles - FIXED FOR ALL PAGES */
.navbar {
  background-color: transparent;
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1030;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

/* Ensure no horizontal scroll */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.container.main-content {
    margin-top: 0;
}

/* Navbar when scrolled - green theme */
.navbar.scrolled {
  background-color: rgba(76, 175, 80, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  padding: 0.6rem 1.5rem;
}

/* Navbar at hero section - transparent with white text */
.navbar.at-hero {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: blur(5px);
}

.navbar.at-hero .nav-item a,
.navbar.at-hero .brand-name,
.navbar.at-hero .menu-toggle {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar.at-hero .nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Navbar when scrolled - green theme with white text */
.navbar.scrolled .nav-item a,
.navbar.scrolled .brand-name,
.navbar.scrolled .menu-toggle {
  color: white;
  text-shadow: none;
}

.navbar.scrolled .nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-shadow: none;
}

/* Brand/Logo - FIXED POSITIONING */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
  flex-shrink: 0;
}

.brand-logo {
  width: 140px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* Modern spinning animation */
@keyframes gentle-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.brand-logo {
  animation: gentle-spin 8s linear infinite;
}

.brand-logo:hover {
  animation-play-state: paused;
}

.brand-name {
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Modern Menu Toggle - FIXED POSITIONING */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  flex-shrink: 0;
  margin: 0;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.menu-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

/* Nav Container - PROPERLY CONTAINED */
.nav-container {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

/* Nav List - FIXED ALIGNMENT */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* Modern Nav Items */
.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-item a:hover::before {
  left: 100%;
}

/* Active page indicator */
.nav-item.active a {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hover effects */
.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Modern Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10;
  top: 100%;
  left: 0;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  color: white;
  padding: 0.9rem 1.2rem;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  padding-left: 1.5rem;
  transform: translateX(5px);
}

/* Dropdown arrow */
.dropdown > a::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Modern Close Button */
.menu-close {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1003;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.menu-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Modern Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: blur(0px);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(5px);
}

/* ========== MOBILE STYLES - FIXED POSITIONING ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .menu-toggle {
    display: block;
    position: relative;
    right: 0;
  }
  
  /* Hide desktop nav items */
  .nav-container .nav-list {
    display: none;
  }
  
  /* Nav container slides from LEFT */
  .nav-container.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.98), rgba(56, 142, 60, 0.95));
    z-index: 1001;
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
    transform: translateX(0);
  }
  
  .nav-container:not(.active) {
    display: flex;
  }
  
  .nav-container.active .nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    height: 100%;
    overflow-y: auto;
    gap: 0;
    width: 100%;
  }
  
  .nav-container.active .nav-item {
    width: 100%;
    margin: 0.3rem 0;
  }
  
  .nav-container.active .nav-item a {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
  }
  
  .nav-container.active .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-container.active .dropdown.active .dropdown-content {
    display: block;
    animation: slideDownMobile 0.3s ease;
  }
  
  @keyframes slideDownMobile {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 300px;
    }
  }
  
  .menu-close {
    display: block;
  }
  
  .brand-logo {
    width: 120px;
    max-height: 60px;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.7rem 0.8rem;
  }
  
  .brand-logo {
    width: 100px;
    max-height: 50px;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .menu-toggle {
    font-size: 1.6rem;
    padding: 0.4rem;
  }
  
  .nav-container.active {
    width: 90%;
  }
}
  

/* ===== CONTENT PROTECTION ===== */
/* Ensures all content areas maintain full opacity */
.container, 
.container-fluid,
section, 
.card-body, 
.timeline-content,
.testimonial-card {
    color: var(--text-color) !important;
    opacity: 1 !important;
}


/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}
.btn-primary:hover{
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Content Sections */
.content-section {
    padding: var(--section-padding);
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

/* Section Padding */
section {
    padding: 80px 0;
}

/* Header Styles */
/* ===== PAGE HEADER FIXES ===== */
/* Fix for page header spacing with transparent navbar */
.about-header, .programs-header, 
.impact-header, .support-header, .showcase-header, 
.news-header, .contact-header, .faq-header {
    margin-top: 0 !important;
    padding: 180px 0 80px !important;
    position: relative;
    z-index: 1;
}

/* Add top spacing to account for fixed navbar */
body {
    padding-top: 0;
}

/* Ensure content starts below navbar */
.container.main-content {
    margin-top: 0;
}

/* Specific fix for hero section (index.html) - keep as is */
.hero-section {
    margin-top: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Responsive adjustments for page headers */
@media (max-width: 991.98px) {
    .about-header, .programs-header, 
    .impact-header, .support-header, .showcase-header, 
    .news-header, .contact-header, .faq-header {
        padding: 150px 0 60px !important;
    }
}

@media (max-width: 767.98px) {
    .about-header, .programs-header, 
    .impact-header, .support-header, .showcase-header, 
    .news-header, .contact-header, .faq-header {
        padding: 130px 0 50px !important;
    }
}

@media (max-width: 576px) {
    .about-header, .programs-header, 
    .impact-header, .support-header, .showcase-header, 
    .news-header, .contact-header, .faq-header {
        padding: 120px 0 40px !important;
    }
}

/* Ensure navbar doesn't create horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Fix for any potential margin collapse */
main {
    display: block;
}
/*Testmonial Section*/


.hero-section {
    --header-image: url('images/IMG-20250407-WA0439.jpg');
}

.about-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.programs-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.impact-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.support-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.showcase-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.news-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.contact-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

.faq-header {
    --header-image: url('images/IMG-20250407-WA0445.jpg');
}

/* Testimonial Styles */
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
}
.testimonial-img-container img
{
    display: block;
    align-items: center;
    justify-content: center;
    position:relative;
    margin:0 auto;
    width: 150px;
    left: 10rem;
    object-fit: cover;
    height: 150px;
    border-radius: 50%;
    margin-left: 0;

}
.testimonial-item img {
    border: 3px solid var(--primary-light);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Gallery Styles */
.gallery-item {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

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

.gallery-preview {
    position: relative;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(76, 175, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Counter Styles */
.counter-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}


/* ===== FOOTER FIXES ===== */
/* ===== FOOTER STYLES ===== */
footer {
    background-color: #2E7D32 !important; /* Dark green background */
    color: white !important;
}

/* Force white text for all child elements */
footer *:not(.form-control, .btn) {
    color: inherit !important;
}

/* Links styling */
footer a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #C8E6C9 !important; /* Light green hover */
    text-decoration: underline;
}

/* Social icons */
.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Form elements */
footer .form-control {
    color: #333 !important; /* Dark text for input */
    background-color: white !important;
    border: none;
}

footer .btn {
    color: #2E7D32 !important; /* Dark green text */
    background-color: white !important;
    font-weight: 500;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    footer .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    footer .col-md-4, 
    footer .col-md-2,
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Social icons */
.social-icons a {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
}

/* Copyright text */
footer small {
    opacity: 0.8 !important; /* Slightly transparent */
    display: block;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }

    .hero-section, .about-header, .programs-header, 
    .impact-header, .support-header, .showcase-header, 
    .news-header, .contact-header, .faq-header {
        padding: 100px 0;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0;
    }
    .testimonial-img-container img
{
    display: block;
    align-items: center;
    justify-content: center;
    position:relative;
    margin: auto;
    width: 100%;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 50%;
    width: 150px;
    height: 150px;
}

}

@media (max-width: 767.98px) {
    section {
        padding: 50px 0;
    }
}
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-sm);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header .lead {
        font-size: 1.2rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
}