/* 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;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Navbar container */
.navbar {
  background-color: rgba(76, 175, 80, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1030;
  transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
    color: #4CAF50 !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link:focus {
    color: #388E3C !important;
}

.navbar.scrolled .nav-link.active {
    background-color: var(--navbar-scroll-active-bg);
}

/* Brand/Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
  width: 150px;        /* Adjust based on your preference */
  height: auto;        /* Maintain aspect ratio */
  max-height: 70px;    /* Prevent excessive height */
  object-fit: contain;  /* Avoid distortion */
  transition: all 0.3s ease; /* Smooth hover effect (optional) */
}
/* Optional: Hover effect for interactivity */
.brand-logo:hover {
  transform: scale(1.05); 
}
/* Existing responsive logo styles (keep these) */
.brand-logo {
  width: 150px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Add spinning animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Apply spin to logo */
.brand-logo {
  animation: spin 5s linear infinite; /* 5s = 1 full rotation */
}

/* Pause spin on hover (optional) */
.brand-logo:hover {
  animation-play-state: paused;
}

/* Responsive adjustments (keep these) */
@media (max-width: 768px) {
  .brand-logo {
    width: 120px;
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 100px;
    max-height: 50px;
  }
}

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

.navbar.scrolled .brand-name {
    color: var(--primary-color);
}
/* Color adaptation for scrolled state */
.navbar.scrolled .brand-logo {
    color: #4CAF50;
  }
  /* Ensure text remains visible */
.brand-logo text {
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
  }

/* Nav list */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1rem;
}

/* Nav items */
.nav-item {
    position: relative;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
}

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

/* Hover effects */
.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled .nav-item a {
    color: #4CAF50;
  }
  
  .navbar.scrolled .nav-item a:hover {
    color: #388E3C;
  }
  

/* Dropdown/More menu */
.dropdown {
    position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(76, 175, 80, 0.98);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
  top: 100%;
  left: 0;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Delay for better UX */
.dropdown-content {
    transition-delay: 0.1s;
}

.dropdown-content a {
  color: white;
  padding: 0.75rem 1rem;
  display: block;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    padding-left: 25px;
}

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

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

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

/* Mobile off-canvas styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.4s ease-in-out;
    font-size: 1.5rem;
    padding: 0.5rem;
}
.menu-toggle[aria-expanded="true"] {
    transform: rotate(360deg);
  }
  /* Optional: Add some hover effects */
.menu-toggle:hover {
    opacity: 0.8;
  }

.navbar.scrolled .menu-toggle {
    color: var(--primary-color);
}

.menu-close {
 display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1002;
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s visibility 0.3s;
  }
  /* When menu is active */
.navbar.active .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
  /* Active states */
.nav-container[aria-hidden="false"] {
  transform: translateX(-100%);
}
.nav-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
  
/* Header/Hero Sections */
.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--section-padding);
    margin-top: 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

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

.page-header h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
    
    .nav-container {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background-color: rgba(76, 175, 80, 0.98);
      z-index: 1000;
      transition: right 0.3s ease;
    }
    .brand-logo {
        width: 120px;         /* Slightly smaller for tablets */
        max-height: 60px;
      }
    
    .nav-list {
      flex-direction: column;
      align-items: flex-start;
      padding: 4rem 1.5rem 2rem;
      height: 100%;
      overflow-y: auto;
    }
    
    .nav-item {
      width: 100%;
      margin: 0.5rem 0;
    }
    
    .nav-item a {
      width: 100%;
      padding: 0.75rem;
    }
    
    .dropdown-content {
      position: static;
      display: none;
      width: 100%;
      box-shadow: none;
      background-color: rgba(0, 0, 0, 0.2);
      margin-top: 0.5rem;
    }
    
    .dropdown.active .dropdown-content {
      display: block;
    }
    
    .menu-close {
      display: block;
    }
    
    .nav-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }
    
    .nav-container.active {
      right: 0;
    }
    
    /* Scrolled state adjustments */
    .navbar.scrolled .nav-container {
      background-color: rgba(255, 255, 255, 0.98);
    }
    
    .navbar.scrolled .nav-item a {
      color: #4CAF50;
    }
    
    .navbar.scrolled .dropdown-content {
      background-color: rgba(255, 255, 255, 0.95);
    }
    
    .navbar.scrolled .dropdown-content a {
      color: #4CAF50;
    }
    
    .navbar.scrolled .menu-close {
      color: #4CAF50;
    }
    [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  }
  @media (max-width: 480px) {
    .brand-logo {
    width: 100px;         /* Compact for mobile */
    max-height: 50px;
  }
  .brand-name {
    font-size: 0.9rem;   /* Optional: Adjust text size if needed */
  }
  }
  

/* ===== 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 */
.hero-section, .about-header, .programs-header, 
.impact-header, .support-header, .showcase-header, 
.news-header, .contact-header, .faq-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--header-image);
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    margin-top: -56px;
    color: white;
    text-align: center;
    
}
/*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;
    }
}