/* Mobile Menu Styles */

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
    .main-menu {
        display: none !important;
    }
    
    .header-btn {
        display: none !important;
    }
}

/* Custom Mobile Menu Styles */
.custom-hamburger {
    display: flex;
    flex-direction: column;
}

.custom-hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#custom-mobile-menu:hover {
    background: #cc0000 !important;
    transform: scale(1.05);
}

.custom-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.custom-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.custom-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -7px);
}

/* Mobile menu overlay */
.custom-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}



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

.custom-mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure menu list has proper spacing */
.custom-mobile-menu-list {
    min-height: 100px;
    padding-bottom: 100px;
}

.custom-mobile-overlay.active .custom-mobile-menu-container {
    transform: translateX(0);
}

.custom-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.custom-mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

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

.custom-mobile-menu-list li {
    margin-bottom: 15px;
}

.custom-mobile-menu-list a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.custom-mobile-menu-list a:hover {
    color: #FF0000;
}

/* Submenu styles */
.custom-submenu {
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    margin-left: 15px;
    border-radius: 5px;
}

.custom-submenu.active {
    max-height: 2000px !important;
}

.custom-submenu-section {
    padding: 10px 15px;
}

.custom-submenu-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #FF0000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-submenu-section h5 a {
    color: #FF0000 !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    border: none !important;
    padding: 5px 0 !important;
}

.custom-submenu-section h5 a:hover {
    opacity: 0.8;
}

.custom-submenu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-submenu-section ul li {
    margin-bottom: 5px;
}

.custom-submenu-section ul li a {
    font-size: 14px !important;
    color: #666 !important;
    padding: 8px 0 !important;
    border: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: block !important;
}

.custom-submenu-section ul li a:hover {
    color: #FF0000 !important;
    padding-left: 10px !important;
}

.custom-menu-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.custom-menu-item.active .custom-menu-arrow {
    transform: rotate(180deg);
    color: #FF0000;
}

/* Fixed Header Mobile Menu */
.fixed-header-overlay {
    position: relative;
}

#custom-mobile-menu-fixed {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
}

/* Make sure fixed header has proper positioning context */
.fixed-header-overlay .navbar {
    position: relative;
}
