* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    /* background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); */
    background-color: var(--color-bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.navbar-brand {
    text-decoration: none;
    color: rgb(48, 48, 48);
    font-weight: bold;
    font-size: 1.5rem;
}

.brand-text {
    color: rgb(48, 48, 48);
    font-family: 'Arial', sans-serif;
}

.navbar-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: rgb(48, 48, 48);
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dropdown-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #2a5298;
    padding-left: 25px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.toggle-bar {
    width: 25px;
    height: 3px;
    background-color: rgb(48, 48, 48);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Styles */
@media (max-width: 1300px) {
    .mobile-toggle {
        display: flex;
    }
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        overflow-y: scroll;
        background-color: var(--color-bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        gap: 0;
    }

    .navbar-menu.active {
        left: 0;
    }

    .menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-link {
        width: 100%;
        padding: 15px 0;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 !important;
        /* margin-left: 20px; */
    }

    .dropdown.active .dropdown-menu {
        max-height: max-content;
        /* padding: 10px 0; */
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-link {
        color: rgba(63, 63, 63, 0.9);
        /* padding: 10px 0; */
    }

    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(63, 63, 63, 0.9);
        padding-left: 5px;
    }

    /* Mobile toggle animation */
    .mobile-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 15px;
    }

    .brand-text {
        font-size: 1.3rem;
    }
}