/* Navigation Styles */
.main-nav {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    height: 80px; /* Fixed height for consistency */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.tagline {
    margin-left: 10px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.2;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #006b41;
}

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

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    min-width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #006b41;
}

/* Donate button */
.donate-btn {
    background-color: #006b41;
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 4px;
    transition: background-color 0.3s ease !important;
}

.donate-btn:hover {
    background-color: #005234;
    color: white !important;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 20px;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.bar:first-child {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:last-child {
    bottom: 0;
}

/* Base styles for mobile */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Height of fixed header */
    }
    
    .content-section {
        padding: 2rem 5%;
    }
    
    /* Prevent zoom on input focus (iOS) */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        min-width: 48px;
        padding: 0.5rem;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        max-height: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem 5%;
        transition: left 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        z-index: 1000;
    }

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

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links a {
        padding: 1.2rem 1rem;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        transition: background-color 0.2s ease;
    }
    
    .nav-links a:active {
        background-color: rgba(0, 107, 65, 0.1);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 0 1.5rem;
        width: 100%;
        border-radius: 0;
        background-color: #f5f5f5;
        margin: 0.25rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 1000px;
        padding: 0.5rem 0 0.5rem 1.5rem;
        border-left: 3px solid #006b41;
    }

    /* This is now handled in the previous block */

    .dropdown-toggle {
        position: relative;
        padding-right: 2rem;
    }
    
    .dropdown-toggle::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}
