/* AZMoney Service Cards - LCP-safe fallback v5
 * Removes scroll container / scroll-snap / paint-heavy effects during initial render.
 * Keeps the same card look in a responsive grid.
 */
.az5-home-services {
    padding-top: 25px;
    padding-bottom: 18px;
}

.az5-service-slider {
    position: relative;
    width: 100%;
    padding: 0;
}

.az5-service-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    overflow: visible;
    padding: 4px 0 13px;
}

.az5-service-mini {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 5px 17px rgba(0,0,0,.045);
    text-decoration: none;
}

.az5-service-mini__media {
    display: grid;
    place-items: center;
    aspect-ratio: 1.18 / 1;
    padding: 12px;
    overflow: hidden;
    background: linear-gradient(180deg,#fff,#f6f6f4);
}

.az5-service-mini__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.az5-service-mini strong {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 9px 8px 10px;
    color: #151515;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.28;
}

/* Disable carousel controls in the diagnostic-safe fallback. */
.az5-slider-arrow {
    display: none !important;
}

.az5-service-slider--related {
    margin-top: -4px;
}

@media (max-width: 980px) {
    .az5-service-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .az5-section-title {
        margin-bottom: 16px;
    }

    .az5-service-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding-bottom: 9px;
    }

    .az5-service-mini {
        border-radius: 12px;
    }

    .az5-service-mini__media {
        padding: 9px;
    }

    .az5-service-mini strong {
        min-height: 40px;
        padding: 6px 4px 7px;
        font-size: 9.5px;
    }
}

@media (max-width: 390px) {
    .az5-service-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
}
