@media (max-width: 921px) {
    
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-inner,
    .ast-mobile-popup-content,
    .main-header-menu.toggled,
    .ast-mobile-menu-buttons,
    #ast-mobile-popup,
    .ast-mobile-header-content.content-align-flex-start,
    .ast-mobile-header-content .ast-builder-menu-mobile,
    .ast-mobile-header-content .main-header-menu,
    .toggled .ast-mobile-header-content {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9998;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .custom-mobile-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        background-color: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px 0;
    }
    
    .custom-mobile-menu.active {
        left: 0;
    }
    
    .custom-mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .custom-mobile-menu-close::before,
    .custom-mobile-menu-close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #333;
    }
    
    .custom-mobile-menu-close::before {
        transform: rotate(45deg);
    }
    
    .custom-mobile-menu-close::after {
        transform: rotate(-45deg);
    }
    
    .custom-mobile-menu-content {
        margin-top: 40px;
    }
    
    .custom-mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .custom-mobile-menu > .custom-mobile-menu-content > ul {
        padding: 0 20px;
    }
    
    .custom-mobile-menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .custom-mobile-menu li:last-child {
        border-bottom: none;
    }
    
    .custom-mobile-menu a {
        display: block;
        padding: 15px 0;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .custom-mobile-menu a:hover {
        color: #666;
    }
    
    .custom-mobile-menu .menu-item-has-children {
        position: relative;
    }
    
    .custom-mobile-menu .menu-item-has-children > a {
        padding-right: 40px;
    }
    
    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 50px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    
    .submenu-toggle:hover {
        background-color: #f0f0f0;
    }
    
    .submenu-toggle::after {
        content: '';
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #666;
        transition: transform 0.3s ease;
    }
    
    .submenu-toggle.active::after {
        transform: rotate(180deg);
    }
    
    .custom-mobile-menu .sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 20px;
        background-color: #f9f9f9;
    }
    
    .custom-mobile-menu .sub-menu.active {
        max-height: 1000px;
    }
    
    .custom-mobile-menu .sub-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .custom-mobile-menu .sub-menu a {
        padding: 12px 0;
        font-size: 14px;
    }
    
    body.mobile-menu-open {
        overflow: hidden;
    }
}
