@media (max-width: 991.98px) {
    .home-categories-section .home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-categories-section .home-wide-banner {
        min-height: 220px;
        padding: 28px 30px;
    }

    .home-categories-section .home-wide-banner-visual {
        flex-basis: 290px;
    }

    .home-categories-section .home-wide-banner-visual img {
        max-width: 280px;
    }
}

@media (max-width: 767.98px) {
    .home-categories-section {
        padding: 40px 0 45px;
    }

    .home-categories-section .home-section-head {
        align-items: flex-start;
        margin-bottom: 19px;
    }

    .home-categories-section .home-section-head h2 {
        font-size: 20px;
    }

    .home-categories-section .home-section-subtitle {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .home-categories-section .home-section-link {
        padding-top: 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    .home-categories-section .home-categories-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .home-categories-section .home-category-card {
        min-height: 88px;
        padding: 13px;
        border-radius: 14px;
    }

    .home-categories-section .home-category-icon {
        flex-basis: 47px;
        width: 47px;
        height: 47px;
        border-radius: 13px;
        font-size: 23px;
    }

    .home-categories-section .home-category-content strong {
        font-size: 14px;
    }

    .home-categories-section .home-category-content small {
        font-size: 10px;
    }

    .home-categories-section .home-category-badge {
        font-size: 9px;
    }

    /* بنر در موبایل: متن بالا، تصویر پایین */
    .home-categories-section .home-wide-banner {
        display: block;
        min-height: auto;
        margin-top: 13px;
        padding: 22px 18px 0;
        border-radius: 17px;
    }

    .home-categories-section .home-wide-banner-content h3 {
        font-size: 19px;
    }

    .home-categories-section .home-wide-banner-content p {
        margin-bottom: 14px;
        font-size: 11px;
        line-height: 1.9;
    }

    .home-categories-section .home-wide-banner-content b {
        padding: 9px 13px;
        font-size: 11px;
    }

    .home-categories-section .home-wide-banner-visual {
        display: flex;
        width: 100%;
        height: 142px;
        margin-top: -10px;
        justify-content: flex-start;
    }

    .home-categories-section .home-wide-banner-visual::before {
        left: 0;
        width: 155px;
        height: 155px;
    }

    .home-categories-section .home-wide-banner-visual img {
        max-width: 220px;
        max-height: 145px;
    }
}
