.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transition: all 0.3s ease;
    z-index: 1050;
    position: relative;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.navbar-brand {
    font-size: 26px;
    font-weight: 700;
    color: #0066CC !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #FF6B35 !important;
}

.navbar-logo {
    height: 40px;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.8;
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    color: #333333 !important;
    padding: 8px 12px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    background-color: transparent;
}

/* Underline effect - only for non-dropdown links */
.nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FF6B35;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Hover state - only when actually hovering */
.nav-link:hover:not(.active):not(.dropdown-toggle) {
    color: #0066CC !important;
    background-color: rgba(0, 102, 204, 0.05);
}

.nav-link:hover:not(.active):not(.dropdown-toggle)::after {
    width: 80%;
}

/* Hover state for dropdown toggle */
.nav-link.dropdown-toggle:hover:not(.active) {
    color: #0066CC !important;
    background-color: rgba(0, 102, 204, 0.05);
}

/* Active state - only when class is present */
.nav-link.active {
    color: #0066CC !important;
    background-color: rgba(0, 102, 204, 0.1);
}

.nav-link.active::after {
    width: 80%;
}

/* Hover on active link */
.nav-link.active:hover {
    background-color: rgba(0, 102, 204, 0.15);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu styles */
.navbar-nav .dropdown {
    position: relative;
}

/* Show dropdown on hover */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding: 8px 0;
    z-index: 1060;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 200px;
}

.navbar-nav .dropdown-item {
    padding: 8px 20px;
    color: #333333;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
    color: #0066CC;
}

/* Dropdown arrow icon - replace Bootstrap's default */
.navbar-nav .dropdown-toggle::after {
    content: "\25BC"; /* Unicode down arrow (▼) */
    margin-left: 6px;
    font-size: 0.65em;
    vertical-align: middle;
    border: none !important;
    display: inline-block;
    background: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
}

/* Remove underline effect for dropdown toggle */
.navbar-nav .dropdown-toggle {
    position: relative;
}

.navbar-nav .dropdown-toggle::after {
    /* Override the underline ::after from .nav-link */
    content: "\25BC" !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 10px 15px !important;
    }
    
    .nav-link::after {
        display: none;
    }
}

