/* =====================================================
   NAVBAR STYLES - Extracted from styles.css
   ===================================================== */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 25px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex: 1;
    justify-content: space-around;
    padding-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: rgba(33, 124, 118, 1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgba(33, 124, 118, 1);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

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

/* Invisible bridge for hover state */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px; /* The gap size */
}

/* Ensure dropdown is completely hidden by default - prevent flash */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px); /* Start slightly lower and perfectly centered */
    background-color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    min-width: 200px;
    z-index: 1001;
    text-align: center; /* Center align dropdown text */
    /* Triple-layer hiding to prevent any flash */
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, display 0.25s;
    pointer-events: none !important; /* Prevent interaction when hidden */
}

/* Only show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translate(-50%, 0); /* Move to final position */
    pointer-events: auto !important; /* Allow interaction when visible */
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center; /* Center align dropdown link text */
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: rgba(33, 124, 118, 0.1);
    color: rgba(33, 124, 118, 1);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a.active {
    background-color: rgba(33, 124, 118, 0.15);
    color: rgba(33, 124, 118, 1);
    font-weight: 600;
}

/* Ensure dropdowns are hidden during page load */
.nav-menu .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.dropdown.active .dropdown-menu, .dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translate(-50%, 0);
    pointer-events: auto !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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