.departments__item {
    position: relative;
}

.departments__item--hover .departments__item-menu {
    display: block;
}

.departments__item-menu {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 2;
    display: none;
    min-height: 100%;
}

.departments__item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.departments__item-icon {
    width: 22px;
    text-align: center;
    color: #ef4444;
    flex-shrink: 0;
    font-size: 14px;
}

.departments__item-title {
    flex: 1;
    min-width: 0;
}

.departments__item-count {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.4;
    flex-shrink: 0;
}

.departments__item--hover .departments__item-count {
    background: #fee2e2;
    color: #b91c1c;
}

.departments__item-arrow {
    right: 12px;
    color: #9ca3af;
    font-size: 10px;
}

.departments-megamenu__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.departments-megamenu__image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.departments-megamenu__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef2f2, #fff);
    border: 1px solid #fecaca;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.departments-megamenu__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.departments-megamenu__title:hover {
    color: #ef4444;
}

.departments-megamenu__meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.departments-megamenu__meta-sep {
    margin: 0 4px;
}

.departments-megamenu__children {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 4px 12px;
}

.departments-megamenu__child-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.departments-megamenu__child-link:hover {
    background: #f9fafb;
    color: #ef4444;
}

.departments-megamenu__child-icon {
    width: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.departments-megamenu__child-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
}

.departments-megamenu__child-count {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 7px;
    flex-shrink: 0;
}

.departments-megamenu__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
}

.departments-megamenu__cta:hover {
    color: #b91c1c;
}

.mobile-cat-menu {
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}

.mobile-cat-menu__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.mobile-cat-menu__list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}

.mobile-cat-menu__item + .mobile-cat-menu__item {
    border-top: 1px solid #f3f4f6;
}

.mobile-cat-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.mobile-cat-menu__icon {
    width: 20px;
    text-align: center;
    color: #ef4444;
}

.mobile-cat-menu__count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 8px;
}

.mobile-cat-menu__children {
    list-style: none;
    margin: 0 0 8px 30px;
    padding: 0;
}

.mobile-cat-menu__child-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
}

.mobile-cat-menu__child-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
}