/* Mobile Menu Widget CSS */

.mobile-menu-wrapper {
    position: relative;
    z-index: 9999;
}

/* Hamburger Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 11px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

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

/* Mobile Menu Content */
.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #eee;
    color: #333;
}

/* Mobile Menu Body */
.mobile-menu-body {
    padding: 20px;
}

.mobile-menu-nav {
    position: relative;
    overflow: hidden;
    min-height: 500px; /* Fixed height for sub menu positioning */
}

.mobile-menu-main-level,
.mobile-menu-sub-level {
    width: 100%;
}

.mobile-menu-sub-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
}


.mobile-menu-section-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    padding: 0 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

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

.mobile-menu-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    position: relative;
}

.mobile-menu-list a {
    display: block;
    flex: 1;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.mobile-menu-list a:hover {
    background: #f5f5f5;
    color: #007cba;
}

/* Menu Arrow */
.mobile-menu-arrow {
    font-size: 15px;
    color: #000000;
    transition: all 0.3s ease;
    padding: 0px 6px;
    cursor: pointer;
    user-select: none;
    border-radius: 38px;
    margin-left: 5px;
    border: solid 1px #000;
}

.mobile-menu-arrow svg {
    width: 11px;
    height: 11px;
}


/* Sub Menu */
.mobile-sub-menu {
    display: none !important;
}

/* Menu items with sub menu */
.mobile-menu-list a.has-submenu {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.mobile-menu-list a.has-submenu:hover {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Back Button */
.mobile-menu-back-button {
    margin-bottom: 20px;
    border-bottom: 1px solid #FFE9D7;
    padding-bottom: 15px;
}

.mobile-menu-back {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFE9D7;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.mobile-menu-header-right{
    display: flex;
}

.mobile-menu-social-icon{
    margin-right: 10px;
}

.mobile-menu-header-right  svg{
    width: 15px;
    height: 15px;
}

.mobile-menu-back:hover {
    background: #FFE9D7;
    color: #000;
    transform: translateX(-2px);
}

.back-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-arrow svg{
    width: 15px;
    height: 15px;
}

.mobile-menu-back:hover .back-arrow {
    transform: translateX(-5px);
}

.back-text {
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Multi-level arrow styling */
.mobile-menu-arrow[data-depth="1"],
.mobile-menu-arrow[data-depth="2"],
.mobile-menu-arrow[data-depth="3"] {
    font-size: 16px;
    opacity: 0.8;
}

.mobile-menu-list a[data-depth="1"],
.mobile-menu-list a[data-depth="2"],
.mobile-menu-list a[data-depth="3"] {
    font-size: 15px;
    padding-left: 25px;
}

/* No Content Message */
.mobile-menu-no-content {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.mobile-menu-no-content p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .mobile-menu-content {
        width: 60%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-content {
        width: 90%;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-menu-body {
        padding: 15px;
    }
}

/* Animation for smooth transitions */
.mobile-menu-wrapper * {
    box-sizing: border-box;
}

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

.mobile-menu-button{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0px;
}

.mobile-menu-button-link{
    background: #000;
    color: #fff;
    padding: 13px 30px;
    border-radius: 50px;
}