/* Scoped homepage category showcase — dynamic, adaptive layout */
.home-category-showcase {
    padding: 34px 0 18px;
}

.home-category-showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.home-category-showcase__title {
    margin: 0;
    font-weight: 900;
    color: #071b52;
    font-size: 28px;
}

.home-category-showcase__subtitle {
    margin: 10px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.9;
}

.home-category-showcase__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(7, 27, 82, 0.14);
    text-decoration: none;
    font-weight: 900;
    color: #071b52;
    white-space: nowrap;
}

.home-category-showcase__all:hover,
.home-category-showcase__all:focus-visible {
    background: rgba(255, 184, 0, 0.10);
}

.home-category-showcase__grid-wrap {
    width: 100%;
}

.home-category-showcase__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.home-category-showcase__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-category-showcase__single {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Card */
.home-category-card {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 33, 71, 0.10);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(15, 33, 71, 0.10);
    text-decoration: none;
    color: inherit;
    padding: 18px 18px;
    min-height: 132px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-category-card:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .home-category-card {
        transition: none !important;
    }

    .home-category-card:hover {
        transform: none;
    }
}

.home-category-card:focus-visible {
    outline: 3px solid rgba(255, 184, 0, 0.55);
    outline-offset: 3px;
}

.home-category-card__media {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: rgba(255, 184, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-category-card__media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.home-category-card__icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c99200;
}

.home-category-card__icon-fallback i {
    font-size: 24px;
}

.home-category-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

.home-category-card__title {
    font-weight: 900;
    color: #071b52;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.home-category-card__count {
    font-weight: 900;
    color: #071b52;
    font-size: 14px;
    margin-bottom: 6px;
}

.home-category-card__desc {
    color: #6f7d98;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.home-category-card__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #071b52;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.home-category-card__cta i {
    color: #071b52;
    font-size: 18px;
    transform: translateX(-1px);
}

/* Single featured */
.home-category-card--single {
    max-width: 620px;
    min-height: 170px;
    border-radius: 24px;
    padding: 20px 22px;
}

.home-category-card--single .home-category-card__media {
    width: 92px;
    height: 92px;
    border-radius: 22px;
}

.home-category-card--single .home-category-card__title {
    font-size: 22px;
}

.home-category-card--single .home-category-card__cta {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive grid */
@media (max-width: 991.98px) {
    .home-category-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-category-showcase__grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-category-showcase {
        padding: 24px 0 10px;
    }

    .home-category-showcase__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .home-category-showcase__title {
        font-size: 22px;
    }

    .home-category-showcase__grid {
        grid-template-columns: 1fr;
    }

    .home-category-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 16px 16px;
        gap: 12px;
    }

    .home-category-card__media {
        width: 74px;
        height: 74px;
    }

    .home-category-card__cta {
        width: 100%;
        justify-content: flex-start;
    }

    .home-category-card--single {
        max-width: none;
        width: 100%;
        border-radius: 20px;
        padding: 18px 16px;
    }
}

