/*

Plugin Name: Multi Drop Down Mobile menu
version: 1.0
Author: Abdul Rabby
Desc: 



*/




/*Base css*/

*{
    margin: 0;
    padding: 0;
}
body{
    font-size: 16px;
    font-family: "Figtree", sans-serif;
}

a, a:hover{
    outline: none;
    text-decoration: none;
}

ul, li{
    list-style: none;
}




/*Menu Css*/

.mobile-logo a{
    font-size: 20px;
    font-weight: 500;
    color: #161616;
    text-decoration: none;
}


.mobile-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 17px 0;
    z-index: 9;
    
}

.mobile-header-elements {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-icon {
    font-size: 23px;
    border: 1px solid;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #161616;
}



.mobile-sidebar {
    position: fixed;
    height: 100%;
    width: 100%;
    background:#F6F6EC;
    z-index: 99;
    padding: 40px 30px;
    left: -100%;
    top: 0;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    
    
}

.mobile-sidebar .contact-icon{
    background: #161616;
}


.mobile-sidebar.mobile-menu-active{
    left: 0;
    visibility: visible;
    opacity: 1;
    transition: all .3s;
    overflow-y:scroll ;
}

.menu-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 25px;
    color: #161616;
    cursor: pointer;
}

.mobile-nav li a {
    font-size: 18px;
    line-height: 24px;
    color: #161616;
    padding: 10px 0;
    display: block;
    font-family: "Figtree", sans-serif;
    font-weight: 500 !important;
}


ul.mobile-nav-list {
    margin-top: 30px;
}


li.has-children {
    position: relative;
    z-index: 2;
}

span.mobile-nav-menu-icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    color: #161616;
}

ul.mobile-menu-sub {
    display: none;
    position: relative;
    left: 0;
    padding-left: 10px;
    transition: all .3s;
}

ul.mobile-menu-sub.sub-menu-active{
    display: block;
    position: relative;
    transition: all .3s;
}



.mobile-nav li {
    position: relative;
    z-index: 2;
}



span.multi-drop-icon {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 100%;
    top: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


ul.mobile-nav-list {
    max-height: 100%;
    overflow-y: auto;
}

/* ===== IMPROVED MOBILE MENU STYLES ===== */

/* Larger touch targets for mobile users */
.mobile-nav li a {
    min-height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(22, 22, 22, 0.08);
    transition: all 0.3s ease;
}

.mobile-nav li a:active,
.mobile-nav li a:hover {
    background-color: rgba(22, 22, 22, 0.05);
    padding-left: 8px;
}

/* Submenu button improvements */
span.submenu-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

span.submenu-button:before,
span.submenu-button:after {
    position: absolute;
    content: "";
    background: #161616;
    transition: all 0.3s ease;
}

span.submenu-button:before {
    width: 16px;
    height: 2px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

span.submenu-button:after {
    width: 2px;
    height: 16px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

span.submenu-button.submenu-opened:after {
    display: none;
}

span.submenu-button.submenu-opened:before {
    width: 16px;
}


/* Submenu styling */
.sub-menu {
    display: none;
    padding-left: 20px;
    background-color: rgba(22, 22, 22, 0.03);
    animation: slideDown 0.3s ease;
}

.sub-menu.open-sub {
    display: block;
}

.sub-menu li a {
    font-size: 15px;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: 1px solid rgba(22, 22, 22, 0.05);
}

.sub-menu li a:before {
    content: '→';
    margin-right: 10px;
    color: #6B63B5;
    font-weight: bold;
}

/* Mobile menu container */
.mobile-nav {
    padding-bottom: 30px;
}

/* Contact section at bottom */
.allmobilesection {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(22, 22, 22, 0.1);
}

.mobile-nav-icon {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-icon:active {
    background-color: rgba(22, 22, 22, 0.08);
}

.menu-close {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-close:hover {
    color: #6B63B5;
    transform: rotate(90deg);
}

/* Animation for submenu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar styling for mobile */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(22, 22, 22, 0.05);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 22, 0.2);
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 22, 22, 0.3);
}

@media (max-width: 991px) {
    .images-content-area .content-area h5,
    .images-content-area .content-area a.text,
    .images-content-area .content-area p {
        color: #000 !important;
    }
}

/* Mobile header improvements */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #F6F6EC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Body overlay when menu is active */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    pointer-events: none;
}

.body-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 98;
}