/* Professional homepage visuals — transparent WebP, responsive and layout-safe. */
.moein-home .category-card > h3,
.moein-home .category-card > p,
.moein-home .category-card > b,
.moein-home .category-visual {
    position: relative;
    z-index: 1;
}

.moein-home .category-card {
    min-height: 272px;
}

.moein-home .category-visual {
    display: block;
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    margin: -10px 0 10px;
    transition: transform .24s ease;
}

.moein-home .category-visual img,
.moein-home .service-visual img,
.mg-footer-benefits .footer-benefit-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.moein-home .category-card:hover .category-visual {
    transform: translateY(-3px) scale(1.04);
}

.moein-home .service-grid > div > i.service-visual {
    display: block;
    width: 82px;
    height: 82px;
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.mg-footer-benefits > div > .footer-benefit-visual {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin: -7px -4px -7px 4px;
}

@media (max-width: 820px) {
    .moein-home .category-card {
        min-height: 258px;
    }

    .moein-home .category-visual {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .moein-home .service-grid > div > i.service-visual {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 620px) {
    .moein-home .category-card {
        min-height: 250px;
    }

    .moein-home .category-visual {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        margin-top: -8px;
    }

    .moein-home .service-grid > div > i.service-visual {
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
    }

    .mg-footer-benefits > div > .footer-benefit-visual {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        margin-block: -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .moein-home .category-visual {
        transition: none;
    }
}
