/* Mobile Menu Overlap Fix - Additional Styles */

/* Ensure mobile menu appears above all content */
@media only screen and (max-width: 991px) {
    header .navigation {
        z-index: 9999 !important;
        background-color: #fff !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15) !important;
    }
    
    .overlaybg {
        z-index: 9998 !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
    }
    
    /* Banner section should stay below mobile menu */
    #banner-section {
        z-index: 1 !important;
        position: relative !important;
    }
    
    /* Mobile menu header styling */
    header nav .nav-toggle {
        background-color: #f8f9fa !important;
        border-bottom: 1px solid #eee !important;
        padding: 15px 20px !important;
        color: #333 !important;
    }
    
    /* Mobile menu items styling */
    header .navigation .mainmenu>li>a {
        padding: 15px 20px !important;
        color: #333 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        transition: all 0.3s ease !important;
    }
    
    header .navigation .mainmenu>li>a:hover {
        background-color: #f8f9fa !important;
        color: #007bff !important;
        padding-left: 25px !important;
    }
    
    /* Menu wrapper padding */
    .menu-wrapper {
        padding-top: 60px !important;
    }
    
    /* Ensure proper menu width on smaller screens */
    @media only screen and (max-width: 768px) {
        header .navigation {
            width: 280px !important;
        }
    }
    
    @media only screen and (max-width: 480px) {
        header .navigation {
            width: 100% !important;
        }
    }
}

/* Additional mobile menu improvements */
@media only screen and (max-width: 991px) {
    /* Smooth transitions */
    header .navigation {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* Menu open state */
    .navigation.menuopen {
        left: 0 !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    /* Overlay show when menu is open */
    .menuopen .overlaybg {
        display: block !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }
}
