/*
================================================================
Component Stylesheet: Main Navigation (Solid Black Header)
================================================================
*/

/* --- Header & Navigation Container --- */
.site-header {
    background-color: #000000; /* Solid dark background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Make logo and hamburger icon white on the dark background 
.nav-logo a,
.nav-toggle {
    color: #ffffff;
}
*/

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Base style for both links and buttons in the nav */
.main-nav .nav-link {
    color: #cccccc; /* Light grey for readability */
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
    display: block;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: 5px;
}

/* NEW HOVER EFFECT: Just darken the text, no background */
.main-nav a.nav-link:hover,
.main-nav button.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover background */
}

/* "GIVE" Button Specifics */
.nav-give-btn {
    background-color: #38a745;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none; /* Remove border from the solid version */
}

.nav-give-btn:hover {
    background-color: #2f855a !important; /* Keep background on hover */
    color: #ffffff !important;
}

/* --- Dropdown Menu (Desktop) --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 0px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px;
    font-weight: 700;
    color: #555555; /* Dark text for light dropdown */
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s, background-color 0.3s;
}

/* NEW HOVER for dropdown items */
.dropdown-content a:hover {
    color: #2d3748;
    background-color: #f0f0f0; /* Keep a subtle background for dropdown items */
}

/* --- Mobile Menu --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff; /* White lines for the dark header */
    border-radius: 3px;
}


@media (max-width: 991px) {
    .main-nav {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }

    .main-nav.mobile-menu-active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1c1c1c;
        padding: 100px 20px 20px 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    
    .main-nav.mobile-menu-active .nav-link {
        text-align: left;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        color: #ffffff;
    }
    
    .main-nav.mobile-menu-active .nav-give-btn {
        text-align: center;
        margin-top: 10px;
        border-radius: none;
        color: #ffffff !important;
        background-color: #38a745;
    }

    .main-nav.mobile-menu-active .dropdown-content {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
        background-color: rgba(0,0,0,0.2);
        padding: 0 0 0 15px;
        flex-direction: column; 
    }
    
    .main-nav.mobile-menu-active .dropdown-content a {
        padding-left: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #cccccc;
    }

    .main-nav.mobile-menu-active .dropdown-content.submenu-active {
        display: flex;
    }
}

/* --- Text Logo Style --- */
.nav-logo a {
    font-size: 20px; /* Increased font size */
    font-weight: 700;  /* A strong, but not overly heavy bold */
    color: #ffffff; 
    text-decoration: none;
    letter-spacing: 0.5px; /* Adds a little breathing room */
}
