/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links > li {
    position: relative;
    margin-left: 30px;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-links > li > a:hover {
    color: var(--primary);
}

.nav-links > li > a i {
    margin-left: 5px;
    font-size: 0.9rem;
}

/* Dropdown Styles */
.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown a:last-child {
    border-bottom: none;
}

/* Navigation Actions (Login button and hamburger menu) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2a75f0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.mobile-menu-btn.active {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {            
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links > li {
        margin: 10px 0;
        width: 100%;
    }
    
    /* Dropdown styles for mobile */
    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
        margin-top: 10px;
        margin-left: 20px;
        background-color: #f9f9f9;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    
    .has-dropdown .dropdown.active {
        display: block;
    }
    
    .dropdown a {
        padding: 10px 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-links > li > a {
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Rotate chevron when dropdown is open */
    .has-dropdown.open > a i {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

/* Ensure smooth transitions */
* {
    transition: all 0.3s ease;
}