/* Mobile Menu Wrapper */
.mobile-menu-wrapper {
    position: relative;
    display: inline-block;
}

/* Hamburger Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle i {
    font-size: 24px;
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-wrapper.active .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-wrapper.active .mobile-menu-drawer {
    transform: translateX(0);
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 10px;
    /* Moved higher */
    left: 10px;
    /* Moved more to the left */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    z-index: 10000;
    transition: all 0.3s ease;
    /* Added transition for hover effects */
}

/* Drawer Content */
.mobile-menu-drawer-content {
    padding: 60px 40px 40px 40px;
    /* Top padding to clear close button */
    overflow-y: auto;
    height: 100%;
}

/* Menu Styles */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 15px;
}

.mobile-menu-list li a {
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: color 0.3s ease;
}

/* Submenus */
.mobile-menu-list .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
    /* Hidden by default, can be toggled via JS if needed, or just shown */
}

/* Simple submenu handling for now - show on hover or always? 
   Let's make them always visible for simplicity in this version, 
   or we could add a toggle. For now, let's just indent them.
*/
.mobile-menu-list .sub-menu {
    display: block;
}