/* Navigation Styles - Professional & Normal Height */
.main-navigation {
    background: linear-gradient(135deg, #0864af 0%, #0a4d8c 100%);
    box-shadow: 0 2px 10px rgba(8, 100, 175, 0.3);
    position: relative;
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    z-index: 1000;
}

.main-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 64px;
}

.nav-brand {
    color: #ffffff;
    font-size: 1rem;
    padding: auto;
    font-weight: 600;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-right: auto;
    margin-left: -100px;
    /* padding-right: 250px; */
    order: -1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 20px;
    /* margin-right: auto; */
    padding-right: 400px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-transform: none;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    white-space: nowrap;
}

.nav-link:hover:not(.active):not(.disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Active state */
.nav-link.active {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    border-bottom: 3px solid #ffffff;
    border-radius: 0;
    box-shadow: none;
}

/* Icons styling */
.nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: #ffffff !important;
    min-width: 20px;
    text-align: center;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    list-style: none;
    margin: 5px 0 0 0;
    padding: 8px 0;
    border: 1px solid #e2e8f0;
    display: block !important;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: #f7fafc;
    color: #0864af;
    text-decoration: none;
}

.dropdown-link i {
    margin-right: 10px;
    font-size: 1rem;
    color: #0864af !important;
    min-width: 18px;
}

/* Login button special styling */
.nav-item.login-item .nav-link:not(.active) {
    background: transparent;
    border: none;
    margin-left: 10px;
}

.nav-item.login-item .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: none;
}

.nav-item.login-item .nav-link:not(.active):hover i {
    color: #ffffff !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-brand {
        margin-left: 0 !important;
        font-size: 0.9rem !important;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0864af 0%, #0a4d8c 100%);
        flex-direction: column;
        padding: 20px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        padding-right: 0 !important;
    }
    
    .nav-menu.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 18px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 32px;
    }
    
    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        border-left: 4px solid #ffffff;
        font-weight: 600;
    }
    
.nav-item:last-child .nav-link {
margin-left: 0;
}
    
/* Show dropdown menus as expanded on mobile */
.dropdown-menu {
position: static;
box-shadow: none;
background: #1e5ae7 !important;
border: 2px solid rgba(255, 255, 255, 0.5) !important;
border-radius: 8px;
margin: 10px 20px 0 20px;
padding: 12px 8px;
opacity: 0;
visibility: hidden;
transform: none;
display: none;
max-height: 0;
overflow: hidden;
transition: all 0.3s ease;
}
    
.dropdown.open .dropdown-menu {
opacity: 1;
visibility: visible;
display: block;
max-height: none;
overflow: visible;
}
    
.dropdown-link {
padding: 14px 24px;
color: #ffffff !important;
font-size: 0.95rem;
font-weight: 600 !important;
transition: all 0.3s ease;
display: flex !important;
opacity: 1 !important;
visibility: visible !important;
background: rgba(255, 255, 255, 0.25) !important;
border-radius: 6px;
margin: 4px 8px;
border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
    
.dropdown-link:hover {
background: rgba(255, 255, 255, 0.15);
color: #ffffff;
}
    
.dropdown-link i {
color: #ffffff !important;
font-size: 1rem;
}
    .dropdown-link i {
        color: #ffffff !important;
        font-size: 1rem;
    }
}