/* Mobile Menu Fixes for Custom Walker */
@media only screen and (max-width: 991px) {
    .main-menu .dropdown {
        display: none;
        /* padding-left: 20px; */
        list-style: none;
    }

    .main-menu .has-dropdown,
    .main-menu .dropdown-item.has-sub {
        position: relative;
    }

    .main-menu .dropdown-item a {
        font-size: 14px;
        font-weight: 400;
        color: #000;
        text-transform: capitalize;
        display: block;
        padding-bottom: 5px;
        margin-bottom: 5px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .main-menu .dropdown-item:last-child a {
        border-bottom: none;
    }

    /* Target the menu-expand span precisely */
    .main-menu .has-dropdown>.menu-expand,
    .main-menu .has-sub>.menu-expand {
        position: absolute;
        right: 0;
        top: 0;
        cursor: pointer;
        z-index: 2;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .main-menu .menu-open>.menu-expand {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    .main-menu .menu-open>.menu-expand i {
        color: #000;
    }

    /* Ensure sub-menu items fit properly */
    .dropdown-item {
        margin: 5px 0;
    }

    .dropdown-arrow,
    .sub-arrow {
        display: none !important;
    }
}