/* Custom Mobile Menu - No Elementor Dependencies */
.custom-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.custom-mobile-menu.active {
    left: 0;
}

.custom-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.custom-mobile-overlay.active {
    opacity: 1;
}

.custom-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--e-global-color-vamtam_accent_1);
}

.custom-menu-logo img {
    height: 40px;
    width: auto;
}

.custom-menu-close {
    background: none !important;
    border: none !important;
    font-size: 30px !important;
    color: #fff !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-menu-body {
    padding: 0;
}

.custom-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-menu-list > li {
    border-bottom: 1px solid #f0f0f0;
}

.custom-menu-list a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.custom-menu-list a:hover {
    background: #f5f5f5;
}

/* Dropdown Styles */
.custom-menu-item-has-children > a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-menu-item-has-children > a::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

.custom-menu-item-has-children.open > a::after {
    content: '−';
}

.custom-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition: max-height 0.3s ease-in-out;
}

.custom-menu-item-has-children.open > .custom-submenu {
    max-height: 1000px;
}

.custom-submenu li {
    border-bottom: 1px solid #eee;
}

.custom-submenu li:last-child {
    border-bottom: none;
}

.custom-submenu a {
    padding: 12px 20px 12px 35px;
    font-size: 15px;
    font-weight: 400;
    color: #555;
}

/* Nested Submenu (Level 2) */
.custom-submenu .custom-menu-item-has-children > a {
    padding-left: 35px;
}

.custom-submenu .custom-submenu {
    background: #f0f0f0;
}

.custom-submenu .custom-submenu a {
    padding-left: 50px;
    font-size: 14px;
}

/* Mobile Menu Toggle Button */
.custom-mobile-toggle {
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    color: #fff !important;
    cursor: pointer !important;
    padding: 10px !important;
}
.custom-mobile-toggle:focus{
    outline: none !important;
}

/* Show mobile menu on tablet and mobile */
@media (max-width: 1024px) {
    .custom-mobile-menu {
        display: block;
    }
    
    .custom-mobile-toggle {
        display: block;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Home Icon Styling */
.custom-menu-list .menu-home-icon {
    font-size: 20px;
    color: #333;
}

/* Active State */
.custom-menu-list .active > a {
    background: #f0f0f0;
    color: #0066cc;
}

/* Custom Menu Item Wrapper */
.custom-menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.custom-menu-item-wrapper > a {
    flex: 1;
    padding: 12px 15px;
    color: inherit;
    text-decoration: none;
}

/* Toggle Button */
.custom-submenu-toggle {
    background: transparent;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
    transition: transform 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.custom-submenu-toggle:focus {
    outline: none !important;
}

.custom-submenu-toggle i {
    transition: transform 0.3s ease;
}

.custom-menu-item-has-children.active > .custom-menu-item-wrapper .custom-submenu-toggle i {
    transform: rotate(180deg);
}

.custom-submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-submenu-toggle:active {
    transform: scale(0.95);
}
