/* Navbar base styles */
nav {
    flex-wrap: nowrap;
    width: 100%;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-left { 
    gap: 1rem; 
}

@media (min-width: 992px) {
    .nav-left {
        gap: 1.5rem;
    }
}

/* Logo and search icon sizing */
.bkimg {
    height: 32px;
    width: auto;
}

.searchimg {
    height: 44px;
    width: auto;
    cursor: pointer;
}

/* Navigation items styling for desktop */
.nav-items-desktop a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.nav-items-desktop a:hover {
    opacity: 0.8;
}

/* Hamburger menu styles */
.nav-hamburger-toggle {
    display: none;
}

.nav-hamburger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 4px;
}

.nav-hamburger-icon span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: currentColor; /* Inherits text color from parent */
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 5px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.nav-dropdown-menu a,
.nav-dropdown-menu p {
    margin: 0;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu p:hover {
    background-color: #f8f8f8;
    border-radius: 6px;
}

.nav-dropdown-menu img {
    width: 22px;
    height: 22px;
    margin-right: 0.6rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-dropdown-item span {
    font-size: 14px;
    color: #333;
}

/* Show dropdown when checkbox is checked */
.nav-hamburger-toggle:checked ~ .nav-dropdown-menu {
    display: flex;
}

/* Desktop (lg and up) - Full navbar visible */
@media (min-width: 992px) {
    .nav-hamburger-icon {
        display: none !important;
    }
    
    .nav-dropdown-menu {
        display: none !important;
    }
    
    .nav-items-desktop {
        display: flex !important;
    }
}

/* Below laptop width (md and down) - Hamburger menu */
@media (max-width: 991px) {
    .nav-items-desktop {
        display: none !important;
    }
    
    .nav-hamburger-icon {
        display: flex;
    }
    
    nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .bkimg {
        height: 28px;
    }
    
    .searchimg {
        height: 28px;
    }
}

@media (max-width: 768px) {
    nav {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .bkimg {
        height: 26px;
    }
    
    .searchimg {
        height: 25px;
    }
    
    .btn1, .btn2 {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 420px) {
    nav {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .nav-left {
        gap: 0.5rem !important;
    }
    
    .bkimg {
        height: 24px;
    }
    
    .searchimg {
        height: 22px;
    }
    
    .nav-hamburger-icon span {
        width: 20px;
        height: 2px;
    }
    
    .btn1, .btn2 {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}