/* --- BASE HEADER STYLES --- */
#section-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0; /* Added to ensure alignment */
    width: 100%; /* Ensure it covers full width */
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    box-sizing: border-box; /* Ensures padding doesn't push width over 100% */
}

/* --- HOMEPAGE OVERLAP OVERRIDES --- */
@media (min-width: 769px) {
    #section-header.home-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 25px 0;
    }
}
/* --- SCROLLED STATE (Fixes the width issue) --- */
#section-header.scrolled {
    position: fixed !important; /* Forces fixed on all pages when scrolling */
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    background-color: #ffffff !important;
    padding: 10px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
/* --- NAVIGATION & LAYOUT --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-main {
    width: 80px;
}
.logo-cert {
    width: 60px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #333; /* Default dark color */
    transition: color 0.3s ease;
    text-decoration: none;
}

/* Home-specific link color (If hero is dark, use #fff) */
.home-header:not(.scrolled) .nav-link {
    color: #000; /* Change to #fff if your hero image is very dark */
}

.nav-link.selected_header,
.nav-link:hover {
    color: #01733b !important;
}

.nav-separator {
    height: 20px;
}

/* --- DROPDOWN SYSTEM --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown-menu a.sub-active {
    background-color: #e6f1ec !important;
    color: #01733b !important;
    font-weight: 600;
    border-left: 4px solid #01733b;
    padding-left: 12px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .site-header {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .nav-separator {
        display: none;
    }
}
