/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* iOS Safari viewport fix */
    min-height: -webkit-fill-available;
}

html {
    /* iOS Safari viewport fix */
    height: -webkit-fill-available;
}

/* iOS Safari viewport height CSS variable */
:root {
    --vh: 1vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: white;
    color: #3E5F44;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #3E5F44;
    transition: all 250ms ease;
    box-shadow: 0 4px 15px rgba(62, 95, 68, 0.1);
}
.back-btn:hover {
    background: #3E5F44;
    color: white;
    transform: translate3d(0, -2px, 0);
    -webkit-transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 25px rgba(62, 95, 68, 0.2);
}

.back-btn i {
    font-size: 0.8rem;
    transition: transform 250ms ease;
}

.back-btn:hover i {
    transform: translate3d(-3px, 0, 0);
    -webkit-transform: translate3d(-3px, 0, 0);
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 300ms ease, box-shadow 300ms ease, background-color 250ms ease, color 250ms ease;
    -webkit-transition: -webkit-transform 300ms ease, box-shadow 300ms ease, background-color 250ms ease, color 250ms ease;
    border: 2px solid transparent;
    cursor: pointer;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: #3E5F44;
    color: white;
    border-color: #3E5F44;
}

.btn-primary:hover {
    background-color: #5E936C;
    border-color: #5E936C;
    transform: translate3d(0, -2px, 0);
    -webkit-transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #3E5F44;
    border-color: #3E5F44;
}

.btn-secondary:hover {
    background-color: #3E5F44;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 250ms ease, box-shadow 250ms ease;
    /* border-bottom: 1px solid #93DA97; */
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3E5F44;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 200ms ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #3E5F44;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3E5F44;
    transition: width 250ms ease;
}

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

.donate-btn {
    background-color: #3E5F44;
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.donate-btn:hover {
    background-color: #5E936C;
    transform: translate3d(0, -2px, 0);
    -webkit-transform: translate3d(0, -2px, 0);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

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

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -10px, 0);
    -webkit-transform: translate3d(0, -10px, 0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: #f0f9ff;
    color: #3E5F44;
}

.hamburger { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.bar { width: 25px; height: 3px; background-color: #333; margin: 3px 0; transition: 0.3s; }

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background-color: #E8FFD7;
    
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-title { font-size: 3rem; font-weight: 800; color: #1e293b; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.2rem; color: #64748b; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.hero-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: box-shadow 1s ease;
  will-change: transform, box-shadow;
}
.hero-card:hover { 
    transform: translate3d(0, -8px, 0);
    -webkit-transform: translate3d(0, -8px, 0);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    transition: box-shadow 1s ease;
    -webkit-transition: box-shadow 1s ease;
}
.hero-card:nth-child(3) { grid-column: span 2; }
.hero-card i { font-size: 2.5rem; color: #3E5F44; margin-bottom: 1rem; }
.hero-card h3 { font-size: 1.3rem; color: #1e293b; margin-bottom: 0.5rem; }
.hero-card p { color: #64748b; font-size: 0.9rem; margin-bottom: 0; }

/* CTA strip */
.cta-strip { padding: 60px 0;  }
.cta-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.cta-inner h2 { color: #1e293b; margin-bottom: 0.5rem; }
.cta-inner p { color: #64748b; margin-bottom: 1.2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Highlights */
.highlights { padding: 70px 0; background: #fff; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.highlight-card { background: #E8FFD7; border: 1px solid #e2e8f0; padding: 2rem; border-radius: 16px; text-align: center; transition: transform 200ms ease; }
.highlight-card:hover { 
    transform: translate3d(0, -6px, 0);
    -webkit-transform: translate3d(0, -6px, 0);
}
.highlight-card i { color: #3E5F44; font-size: 1.6rem; margin-bottom: 0.6rem; }
.highlight-card h3 { margin-bottom: 0.25rem; font-size: 1.2rem; color: #1e293b; }
.highlight-card p { margin-bottom: 0; color: #64748b; }

/* Flow */
.flow { padding: 80px 0; background: #f8fafc; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.flow-step { background: #fff; border: 1px solid #e2e8f0; padding: 2rem; border-radius: 16px; background: #E8FFD7;}
.step-num { width: 40px; height: 40px; border-radius: 50%; background: #3E5F44; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 0.8rem; }

/* Story */
.story { padding: 80px 0; background: #fff; }
.story-card { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; border: 1px solid #e2e8f0; border-radius: 16px; padding: 2rem; background: #E8FFD7; align-items: center; }
.story-quote i { color: #3E5F44; }
.story-quote p { font-size: 1.1rem; color: #1f2937; margin: 0.8rem 0; }
.story-quote span { color: #64748b; font-style: italic; }
.story-cta h3 { color: #1e293b; margin-bottom: 0.5rem; }
.story-cta p { color: #64748b; margin-bottom: 1rem; }

/* Partners */
.partners { padding: 70px 0; background: #fff; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; justify-items: center; }
.partner-badge { border: 2px dashed #3E5F44; color: #3E5F44; padding: 0.8rem 1.2rem; border-radius: 999px; font-weight: 600; background: #E8FFD7; }

/* Newsletter */
.newsletter { padding: 80px 0; background: #E8FFD7; }
.newsletter-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.newsletter-inner h2 { color: #1e293b; }
.newsletter-inner p { color: #64748b; margin-bottom: 1rem; }
.newsletter form { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.newsletter input { padding: 0.9rem 1rem; border: 2px solid #e2e8f0; border-radius: 10px; min-width: 260px; font-family: 'Montserrat', sans-serif; }
.newsletter input:focus { outline: none; border-color: #3E5F44; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { color: #1e293b; margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: #64748b; max-width: 600px; margin: 0 auto; }

/* About */
.about { padding: 80px 0; background-color: white; }
.about-text { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 3rem; }
.values-grid h3 { text-align: center; color: #1e293b; margin-bottom: 2.5rem; font-size: 2rem; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.value-item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; background-color: #E8FFD7; border-radius: 15px; transition: transform 250ms ease; }
.value-item:hover { 
    transform: translate3d(0, -5px, 0);
    -webkit-transform: translate3d(0, -5px, 0);
}
.value-icon { width: 60px; height: 60px; background-color: #3E5F44; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; flex: 0 0 60px; line-height: 60px; }
.value-content h4 { color: #1e293b; margin-bottom: 0.5rem; }
.value-content p { color: #64748b; font-size: 0.9rem; margin-bottom: 0; }

/* Mission & Vision */
.mission-vision { padding: 80px 0; background-color: #E8FFD7; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 3rem; }
.vision-card, .mission-card { background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); text-align: center; }
.card-icon { width: 80px; height: 80px; background-color: #3E5F44; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; }
.card-icon i { font-size: 2rem; color: white; }
.vision-card h3, .mission-card h3 { color: #1e293b; font-size: 1.8rem; margin-bottom: 1.5rem; }
.vision-card p { font-size: 1.2rem; font-style: italic; color: #3E5F44; font-weight: 500; }
.mission-card ul { list-style: none; text-align: left; }
.mission-card li { padding: 0.8rem 0; border-bottom: 1px solid #e2e8f0; color: #64748b; }
.mission-card li:last-child { border-bottom: none; }
.mission-card strong { color: #1e293b; }

/* Objectives & Lists */
.objectives .impact-grid { align-items: stretch; }
.objectives .impact-card ul { margin: 0; padding-left: 1.2rem; text-align: left; }
.objectives .impact-card li { margin: 0.4rem 0; line-height: 1.6; }

/* Strategic Approach & Legal */
.about .about-text ul { list-style: disc; padding-left: 1.2rem; margin: 0 auto; max-width: 900px; text-align: left; }
.about .about-text li { margin: 0.4rem 0; }

/* Align section headers with lists in specific sections */
.strategy-section .section-header,
.legal-section .section-header { text-align: left; max-width: 900px; margin: 0 auto 2rem; }
.strategy-section .section-header p,
.legal-section .section-header p { margin-left: 0; }

/* Programs */
.programs { padding: 80px 0; background-color: white; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.program-card { background: #E8FFD7; padding: 2.5rem; border-radius: 20px; text-align: center; transition: transform 250ms ease, box-shadow 250ms ease; border: 1px solid #e2e8f0; }
.program-card:hover { 
    transform: translate3d(0, -8px, 0);
    -webkit-transform: translate3d(0, -8px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.program-icon { width: 80px; height: 80px; background-color: #3E5F44; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.program-icon i { font-size: 2rem; color: white; }
.program-card h3 { color: #1e293b; margin-bottom: 1rem; }
.program-card p { color: #64748b; margin-bottom: 1.5rem; line-height: 1.6; }
.program-features { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.feature { background-color: #dbeafe; color: #1e40af; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; font-weight: 500; }

/* Impact */
.impact { padding: 80px 0; background-color: #E8FFD7; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.impact-card { background: white; padding: 3rem 2rem; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: transform 250ms ease; }
.impact-card:hover { 
    transform: translate3d(0, -8px, 0);
    -webkit-transform: translate3d(0, -8px, 0);
}
.impact-number { font-size: 3rem; font-weight: 800; color: #3E5F44; margin-bottom: 0.5rem; }
.impact-label { font-size: 1.2rem; font-weight: 600; color: #1e293b; margin-bottom: 1rem; }
.impact-card p { color: #64748b; font-size: 0.9rem; margin-bottom: 0; }

/* Governance */
.governance { padding: 80px 0; background-color: white; }
.governance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.governance-item { text-align: center; padding: 2rem; }
.governance-icon { width: 80px; height: 80px; background-color: #E8FFD7; border: 2px solid #3E5F44; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.governance-icon i { font-size: 2rem; color: #3E5F44; }
.governance-item h3 { color: #1e293b; margin-bottom: 1rem; }
.governance-item p { color: #64748b; margin-bottom: 0; }

/* Contact */
.contact { padding: 80px 0; background-color: #E8FFD7; }
.contact-grid { display: flex; flex-direction:column; align-items:center; justify-content:center; }
.contact-info h3, .contact-form h3 { color: #1e293b; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.contact-item i { width: 50px; height: 50px; background-color: #3E5F44; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-item h4 { color: #1e293b; margin-bottom: 0.2rem; }
.contact-item p { color: #64748b; margin-bottom: 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: 2px solid #e2e8f0; border-radius: 10px; font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: border-color 200ms ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #3E5F44; }

/* Donation */
.donation { padding: 80px 0; background-color: white; text-align: center; }
.donation-content h2 { color: #1e293b; margin-bottom: 1.5rem; }
.donation-content > p { font-size: 1.1rem; color: #64748b; max-width: 600px; margin: 0 auto 3rem; }
.funding-sources h3 { color: #1e293b; margin-bottom: 2rem; }
.funding-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.funding-item { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 1rem; background-color: #E8FFD7; border-radius: 10px; font-weight: 500; color: #1e293b; }
.funding-item i { color: #3E5F44; font-size: 1.2rem; }
.donation-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background-color: #E8FFD7; color: black; padding: 60px 60px 20px 60px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.footer-logo h3 { color: #3E5F44; font-size: 1.8rem; margin-bottom: 0.5rem; }
.footer-tagline { color: #000000; font-style: italic; margin-bottom: 1rem; }
.footer-logo p { color: #000000; line-height: 1.6; }
.footer-section h4 {  margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.8rem; }
.footer-section ul li a { color: #000000; text-decoration: none; transition: color 200ms ease; }
.footer-section ul li a:hover { color: #3E5F44; }
.footer-section p { color: #000000; margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 40px; height: 40px; background-color: #3E5F44; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color 200ms ease; }
.footer-social a:hover { background-color: #3E5F44; }
.footer-bottom p { color: #000000; margin-bottom: 0; }

/* Reveal Animations (accessible) */
.reveal { 
    opacity: 0; 
    transform: translate3d(0, 16px, 0);
    -webkit-transform: translate3d(0, 16px, 0);
    transition: opacity 500ms ease, transform 500ms ease;
    -webkit-transition: opacity 500ms ease, -webkit-transform 500ms ease;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.reveal.visible { 
    opacity: 1; 
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .hero-card:hover, .program-card:hover, .impact-card:hover { transform: none !important; box-shadow: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { 
        display: flex; 
        z-index: 1001;
        position: relative;
    }
    
    /* Enhanced hamburger animation */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        -webkit-transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        -webkit-transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Modern mobile menu */
    .nav-menu { 
        position: fixed; 
        left: -100%; 
        top: 0;
        flex-direction: column; 
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%; 
        height: 100vh;
        text-align: left; 
        transition: left 300ms cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-transition: left 300ms cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1); 
        padding: 3rem 1rem;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        gap: 0;
        z-index: 1000;
    }
    
    .nav-menu.active { 
        left: 0; 
    }
    
    .nav-menu li { 
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(147, 218, 151, 0.2);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #1e293b;
        transition: all 200ms ease;
        width: 90vw;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(232, 255, 215, 0.5);
        color: #3E5F44;
        padding-left: 2.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Mobile dropdown styles */
    .nav-item.dropdown {
        position: relative;
    }
    
    /* Mobile dropdown styles - Accordion */
    .nav-item.dropdown .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        background-color: #f0f9f2; /* Light green, more opaque */
        margin: 0;
        padding: 0;
        width: 100%;
        border-radius: 0;
        list-style: none;
    }
    
    .nav-item.dropdown.active .dropdown-menu {
        max-height: 600px; /* Adjust as needed */
        padding: 0.5rem 0;
        box-shadow: inset 0 4px 8px -4px rgba(0,0,0,0.05);
    }
    
    .nav-item.dropdown .dropdown-menu li {
        margin: 0;
        padding: 0;
        border-bottom: none;
    }
    
    .nav-item.dropdown .dropdown-menu a {
        padding: 0.8rem 2rem 0.8rem 3rem;
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        font-weight: 500;
        color: #475569;
        background-color: transparent;
        position: relative;
        transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
    }
    
    .nav-item.dropdown .dropdown-menu a::before {
        content: "·";
        position: absolute;
        left: 2rem;
        font-weight: 900;
        color: var(--chinivar-pale-green);
        transition: color 0.2s ease;
    }
    
    .nav-item.dropdown .dropdown-menu a:hover,
    .nav-item.dropdown .dropdown-menu a.active {
        background-color: #e8f5e9;
        color: var(--chinivar-green);
        padding-left: 3.2rem;
    }

    .nav-item.dropdown .dropdown-menu a:hover::before,
    .nav-item.dropdown .dropdown-menu a.active::before {
        color: var(--chinivar-light-green);
    }
    
    /* Highlight active dropdown toggle */
    .nav-item.dropdown.active > .nav-link {
        background-color: rgba(232, 255, 215, 0.7);
        color: var(--chinivar-green);
    }

    .nav-item.dropdown .dropdown-icon {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .nav-item.dropdown.active .dropdown-icon {
        transform: rotate(90deg); /* 90 degrees for a cleaner look */
        -webkit-transform: rotate(90deg);
    }
    
    .nav-item.dropdown .nav-link {
        cursor: pointer;
        user-select: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 300ms ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Navbar adjustments */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .hero-image { grid-template-columns: 1fr; }
    .hero-card:nth-child(3) { grid-column: span 1; }
    .mv-grid, .contact-grid, .footer-content { grid-template-columns: 1fr; }
    .story-card { grid-template-columns: 1fr; text-align: center; }
    .story-cta { margin-top: 1rem; }
    .footer{
        padding: 20px 10px 20px 10px;
    }
    .footer-content { gap: 1rem; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .funding-grid { grid-template-columns: 1fr; }
    .donation-buttons { flex-direction: column; align-items: center; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
    h2 { font-size: 2rem; }
    .programs-grid, .impact-grid, .governance-grid, .values, .mv-grid { grid-template-columns: 1fr; }
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }
