:root {
    --earth-green: #2C7A4B;
    --warm-terracotta: #D9733B;
    --soft-beige: #F6F2EC;
    --dark-text: #1F2D2E;
    --light-text: #5A6C6D;
    --white: #FFFFFF;
    --shadow: rgba(44, 122, 75, 0.1);
    --card-bg: #FFFFFF;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--earth-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--earth-green);
}

.nav-menu a.active {
    color: var(--earth-green);
}

.nav-menu a.active:after,
.nav-menu a:hover:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--earth-green);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--earth-green);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--earth-green);
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #F3F8F5;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-contact,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-contact h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--warm-terracotta);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 12px;
    color: var(--earth-green);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--earth-green);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #bfbfbf;
    line-height: 1.6;
    margin-top: 12px;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .programs-hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .program-container {
        gap: 40px;
    }

    .gallery-slider {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* Mobile Dropdown overrides */
    .dropdown {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        margin-top: 10px;
        display: none;
        /* Hide initially */
        padding: 10px 0;
    }

    /* Prevent mobile tap hover state from keeping it open */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown-content a {
        padding: 10px 20px;
        display: block;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .dropdown.active-dropdown .dropdown-content {
        display: block;
        /* Show when 'More' is clicked */
    }
}

/* Donate link color change animation */
@keyframes donateRainbowColors {

    0%,
    100% {
        color: red;
    }

    14.28% {
        color: orange;
    }

    28.57% {
        color: yellow;
    }

    42.85% {
        color: green;
    }

    57.14% {
        color: blue;
    }

    71.42% {
        color: indigo;
    }

    85.71% {
        color: violet;
    }
}

.nav-menu a[href*="donate"] {
    animation: donateRainbowColors 7s infinite;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--dark-text) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--earth-green) !important;
}

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