.ahangar-mega-menu {
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
}

.ahangar-mega-menu *,
.ahangar-mega-menu *::before,
.ahangar-mega-menu *::after {
    box-sizing: border-box;
}

.ahangar-mega-menu__desktop {
    display: grid;
    align-items: start;
}

.ahangar-mega-menu__column {
    min-width: 0;
}

.ahangar-mega-menu__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

.ahangar-mega-menu__heading::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(225deg);
    flex: 0 0 auto;
}

.ahangar-mega-menu__category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ahangar-mega-menu__category-item {
    margin: 0;
    min-width: 0;
}

.ahangar-mega-menu__link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    text-decoration: none;
    line-height: 1.8;
    overflow-wrap: anywhere;
    transition: color 160ms ease;
}

.ahangar-mega-menu__link:hover,
.ahangar-mega-menu__link:focus-visible {
    text-decoration: none;
}

.ahangar-mega-menu__link:focus-visible,
.ahangar-mega-menu__mobile-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.ahangar-mega-menu__mobile {
    display: none;
}

.ahangar-mega-menu__mobile-tab {
    border-bottom: 1px solid #e5e7eb;
}

.ahangar-mega-menu__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 14px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 1.7;
    text-align: inherit;
}

.ahangar-mega-menu__arrow {
    width: 9px;
    height: 9px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(225deg);
    transition: transform 180ms ease;
    flex: 0 0 auto;
}

.ahangar-mega-menu__mobile-toggle[aria-expanded="true"] .ahangar-mega-menu__arrow {
    transform: rotate(135deg);
}

.ahangar-mega-menu__mobile-panel {
    padding: 0 0 16px;
}

@media (max-width: 767px) {
    .ahangar-mega-menu__desktop {
        display: none;
    }

    .ahangar-mega-menu__mobile {
        display: block;
    }
}
