/* Navigation Bar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #004aad;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #343a40;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #004aad;
}

.nav-link.active {
    color: #004aad;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #004aad;
    border-radius: 2px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.login-btn i {
    font-size: 16px;
}

.login-btn:hover {
    background-color: #003580;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.overlay.active {
    display: block;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001; /* Ensure toggle stays above the menu */
    }
    
    .nav-menu {
        position: fixed;
        flex-direction: column;
        top: 0;
        right: 0;
        bottom: 0;
        background: white;
        width: 270px;
        padding: 100px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.03);
        z-index: 1000; /* Ensure menu is below toggle button but above other content */
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    /* Fix for body when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Overlay to capture clicks and close menu */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}
