/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
}

.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-wrapper.active {
    right: 0;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.mobile-menu-header .logo {
    max-width: 150px;
}

.mobile-menu-header .logo img {
    max-width: 100%;
    height: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    color: #333;
}

.mobile-menu-close i {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    font-size: 20px;
}

.mobile-menu-close:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.mobile-menu-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

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

.mobile-menu-item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item:nth-child(odd) {
    background-color: #f9f9f9;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    width: calc(100% - 40px);
}

.mobile-menu-item a:hover {
    color: #007bff;
}

.mobile-menu-toggle {
    position: absolute;
    right: 15px;
    top: 0;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s;
    background: transparent;
}

.mobile-menu-toggle i {
    font-size: 16px;
    transition: transform 0.3s;
    color: #444;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

.mobile-menu-item.active .mobile-menu-toggle i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.mobile-menu-item.active .mobile-submenu {
    display: block;
    max-height: 500px; /* Adjust as needed */
    transition: max-height 0.3s ease-in;
}

.mobile-menu-item.active > a {
    color: #007bff;
    font-weight: 600;
}

.mobile-submenu-item a {
    padding: 12px 20px 12px 35px;
    font-size: 14px;
    font-weight: normal;
    color: #555;
}

/* Body fix */
body.mobile-menu-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .btn-menu {
        display: none;
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Fix for Font Awesome icons */
.fa,
.fas,
.far,
.fab {
    display: inline-block !important;
    font: normal normal normal 14px/1 FontAwesome !important;
    font-size: inherit !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
