/*
 * Mobile Navigation Styles - Rebuilt
 * Pure white dropdown, window blind effect, side-by-side items.
 */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: #4A7AAB;
    border: none;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    outline: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    position: relative;
    z-index: 1001;
    text-align: center;
}

/* Remove scrollbar for mobile */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    html::-webkit-scrollbar, body::-webkit-scrollbar {
        display: none;
    }
    
    /* Header container layout */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Mobile-specific styles for the toggle button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: auto;
    }
    
    /* Mobile menu toggle hover and active states */
    .mobile-menu-toggle:hover {
        background-color: #2C4C6B;
    }
    
    .mobile-menu-toggle.open {
        background-color: #2C4C6B;
    }
    
    /* Navigation dropdown */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        
        /* Window blind effect */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.4s ease, 
                    opacity 0.3s ease, 
                    visibility 0s linear 0.4s;
    }
    
    /* Open state for nav */
    nav.open {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease, 
                    opacity 0.3s ease, 
                    visibility 0s linear 0s;
    }
    
    /* Navigation list layout */
    nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        list-style: none;
        padding: 15px 10px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Navigation items */
    nav ul li {
        margin: 0 5px;
        display: flex;
        align-items: center;
    }
    
    /* Navigation links */
    nav ul li a {
        display: flex;
        align-items: center;
        padding: 8px;
        text-decoration: none;
        color: #1D3557;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* Avatar icons in navigation */
    nav ul li a .nav-avatar,
    nav ul li a img.nav-avatar {
        width: 30px;
        height: 30px;
        display: inline-block;
    }
    
    /* Student login button */
    nav ul li a.btn-login {
        background-color: white;
        color: #4A7AAB !important;
        padding: 8px 12px !important;
        border-radius: 4px;
        font-weight: 600;
        border: 2px solid #4A7AAB;
    }
    
    /* Hide desktop nav on mobile */
    .desktop-nav { 
        display: none !important;
    }
    
    /* Fix for nav-icon-item */
    .nav-icon-item {
        display: flex;
        align-items: center;
    }
    
    /* Ensure images in nav are displayed properly */
    nav ul li a img {
        display: inline-block;
        max-width: 30px;
        height: auto;
    }
}
