/* ===== COMPLETE WORKING NAVBAR - NO EXTERNAL DEPENDENCIES ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #244855;
    border-bottom: 2px solid #874F41;
    z-index: 9999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    color: #FBE9D0;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #FBE9D0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: #874F41;
    border-radius: 999px;
}

.apply-btn {
    background: #874F41;
    padding: 8px 20px;
    border-radius: 50px;
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
}

.login-btn {
    background: transparent;
    color: #FBE9D0;
    border: 2px solid #6EC1E4;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: #6EC1E4;
    color: #244855;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #1a3540;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #874F41;
    z-index: 10000;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #FBE9D0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #874F41;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 10000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #FBE9D0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== MOBILE RESPONSIVE (BELOW 768px) ===== */
@media (max-width: 768px) {
    /* Show hamburger */
    .hamburger {
        display: flex !important;
    }
    
    /* Mobile menu - hidden off-screen initially */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        width: 280px !important;
        height: 100% !important;
        background: #244855 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 80px 25px 30px !important;
        transition: right 0.3s ease !important;
        z-index: 9998 !important;
        gap: 0 !important;
        display: flex !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3) !important;
    }
    
    /* Mobile menu - visible when active */
    .nav-menu.active,
    .nav-menu.is-open {
        right: 0 !important;
        left: auto !important;
    }
    
    /* Mobile menu links */
    .nav-menu a {
        width: 100% !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.15) !important;
        font-size: 16px !important;
    }
    
    .apply-btn {
        text-align: center !important;
        margin: 10px 0 !important;
    }
    
    /* Mobile login dropdown */
    .login-dropdown {
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    .login-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .dropdown-content {
        position: static !important;
        width: 100% !important;
        margin-top: 10px !important;
        background: rgba(255,255,255,0.1) !important;
    }
    
    .dropdown-content::before {
        display: none !important;
    }
    
    /* Hamburger to X animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px) !important;
    }
}

/* Desktop (Above 768px) */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        flex-direction: row !important;
        gap: 30px !important;
        box-shadow: none !important;
    }
}
