/* ============================================================
   IOES Services Grid block
   Card style matches the client-provided services page mockup:
   white rounded card, square image on the left, a numbered teal
   badge next to the title, blurb paragraph, and an
   "Explore {title} ->" teal link. This file owns the card markup
   entirely (no dependency on legacy webflow.css classes). It adds:
     1. Category heading spacing
     2. The 2-across (desktop/tablet) / 1-across (mobile) grid layout
     3. The card itself: media, numbered badge, title, blurb, link
   ============================================================ */

.ioes-services-grid-block {
    width: 100%;
}

.ioes-services-grid-category {
    margin-bottom: 60px;
}

.ioes-services-grid-category:last-child {
    margin-bottom: 0;
}

.ioes-services-grid-heading {
    margin-bottom: 24px;
    color: var(--ioes-navy, #181c48);
}

/* ── Grid: 2 across on desktop/tablet ── */
.ioes-services-grid-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}

.ioes-services-grid-cell {
    width: 100%;
}

/* ── Card ── */
.ioes-services-grid-card {
    display: flex;
    align-items: stretch;
    gap: 24px;
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(24, 28, 72, .05);
    text-decoration: none;
    -webkit-transition: box-shadow 250ms ease, transform 250ms ease;
    transition: box-shadow 250ms ease, transform 250ms ease;
}

.ioes-services-grid-card:hover {
    box-shadow: 0 10px 28px rgba(24, 28, 72, .12);
    transform: translateY(-2px);
}

.ioes-services-grid-card__media {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    background: #f2effb;
}

.ioes-services-grid-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.ioes-services-grid-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ioes-services-grid-card__heading-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.ioes-services-grid-card__number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ioes-teal, #0cb9a2);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ioes-services-grid-card__title {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    color: var(--ioes-navy, #181c48);
}

.ioes-services-grid-card__blurb {
    margin: 0 0 12px;
    color: #3f4a60;
    line-height: 1.6;
    font-size: 15px;
}

.ioes-services-grid-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ioes-teal, #0cb9a2);
    font-weight: 600;
    font-size: 14px;
}

.ioes-services-grid-card__arrow {
    -webkit-transition: transform 200ms ease;
    transition: transform 200ms ease;
}

.ioes-services-grid-card:hover .ioes-services-grid-card__arrow {
    transform: translateX(4px);
}

/* ── Mobile: 1 across, stack media above body ── */
@media screen and (max-width: 767px) {
    .ioes-services-grid-row {
        grid-template-columns: 1fr;
        grid-row-gap: 20px;
    }

    .ioes-services-grid-category {
        margin-bottom: 40px;
    }

    .ioes-services-grid-heading {
        margin-bottom: 16px;
    }

    .ioes-services-grid-card {
        flex-direction: column;
    }

    .ioes-services-grid-card__media {
        width: 100%;
        height: 180px;
    }
}
