/* ============================================
   MOBILE NAVBAR - For screens < 992px
   ============================================ */

/* Toggle button - Hamburger only */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondaryColor);
    margin: 3px 0;
    border-radius: 2px;
}

/* Mobile sidebar menu */
.mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 999;
    overflow: hidden;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

/* Mobile Menu Header */
.mobile-menu-header {
    background: var(--themeColor);
    border-bottom: 1px solid rgba(41, 172, 56, 0.1);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.mobile-menu-logo img {
    height: 40px;
    display: block;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--secondaryColor);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

/* Mobile menu items */
.mobile-menu-item {
    color: var(--textcolor);
    text-decoration: none;
    display: block;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(41, 172, 56, 0.08);
    border-left-color: var(--themeColor);
    color: var(--themeColor);
}

/* Mobile dropdown */
.mobile-dropdown {
    border-bottom: 1px solid rgba(41, 172, 56, 0.1);
}

.mobile-dropdown-toggle {
    color: var(--textcolor);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-dropdown-toggle:hover {
    background: rgba(41, 172, 56, 0.08);
    color: var(--themeColor);
    border-left-color: var(--themeColor);
}
.mobile-dropdown-toggle.active{
    background: rgba(41, 172, 56, 0.08);
    color: var(--themeColor);
    border-left-color: var(--themeColor);
}
.mobile-dropdown-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left:4px;
}

.mobile-dropdown-toggle.active::after {
    transform: rotate(45deg);
}

/* Dropdown submenu */
.mobile-dropdown-menu {
    display: none;
    background: rgba(41, 172, 56, 0.05);
    border-left: 4px solid var(--themeColor);
}

.mobile-dropdown-menu.show {
    display: block;
}

.mobile-dropdown-item {
    color: var(--textcolor);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(41, 172, 56, 0.12);
    color: var(--themeColor);
}

/* Media query to show mobile menu on small screens */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Hide desktop menu */
    .nav-menu {
        display: none !important;
    }

    .navbar-bottom {
        display: none !important;
    }
}

/* Desktop - hide mobile menu */
@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}
