/* Final Navbar Fix - Overrides conflicts */
.main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: box-shadow 0.3s ease;
}

/* Remove body padding conflicts */
body {
    padding-top: 80px !important;
}

/* Mobile menu - Desktop-like design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1.5rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
        overflow-y: auto;
        gap: 0.8rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        max-width: 300px;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.3s ease forwards;
        position: relative;
    }
    
    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-item a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        color: #333;
        background: #f8f9fa;
        border-radius: 8px;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        text-transform: uppercase;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
    }
    
    .nav-item a:hover,
    .nav-item a:focus {
        background: #2E86AB;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(14, 50, 98, 0.2);
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown > a {
        position: relative;
    }
    
    .dropdown > a::after {
        content: '▼';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: white;
        margin: 0.5rem 0 0 0;
        border-radius: 8px;
        padding: 0;
        border: 1px solid #e9ecef;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a {
        background: transparent;
        border: none;
        padding: 0.8rem 1.5rem;
        margin: 0;
        font-size: 0.9rem;
        color: #666;
        text-transform: none;
        border-radius: 0;
    }
    
    .dropdown-menu a:hover {
        background: #f8f9fa;
        color: #2E86AB;
        transform: none;
        box-shadow: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(14, 50, 98, 0.1);
    }
    
    .mobile-menu-toggle:focus {
        outline: 2px solid #2E86AB;
        outline-offset: 2px;
        background: #2E86AB;
    }
    
    .nav-buttons {
        margin-top: 1rem;
        opacity: 0;
        transform: translateY(20px);
        width: 100%;
        max-width: 280px;
    }
    
    .nav-menu.active .nav-buttons {
        animation: slideInUp 0.3s ease 0.6s forwards;
    }
    
    .nav-buttons .btn {
        background: #2E86AB;
        border: 2px solid #2E86AB;
        padding: 1rem 2rem;
        border-radius: 4px;
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .nav-buttons .btn:hover {
        background: #2E86AB;
        border-color: #2E86AB;
        transform: translateY(-2px);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop dropdown keyboard support */
@media (min-width: 769px) {
    .dropdown a:focus + .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-buttons {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}