.wp-block-jm-steps {
    width: 100%;
}

.jm-steps {
    display: grid;
    gap: 34px;
}

.jm-steps__heading {
    margin: 0;
    color: #356f79;
    font-size: clamp(2rem, 2vw + 1.3rem, 3.2rem);
    line-height: 1.1;
    font-weight: 400;
    text-align: center;
    overflow-wrap: anywhere;
}

.jm-steps__items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0;
}

.jm-steps__item-wrap {
    display: flex;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 0;
}

.jm-steps__item {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.jm-steps__badge {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #356f79;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.jm-steps__item-title {
    margin: 0;
    color: #356f79;
    font-size: clamp(
        var(--jm-steps-title-min, 1.3rem),
        0.9vw + var(--jm-steps-title-fluid-base, 0.95rem),
        var(--jm-steps-title-max, 1.9rem)
    );
    line-height: 1.2;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.jm-steps__item-text {
    color: #51575b;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.jm-steps__item-text p {
    margin: 0;
}

.jm-steps__arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 8px 0;
    color: #356f79;
    flex-shrink: 0;
}

.jm-steps__arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 900px) {
    .jm-steps__items {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .jm-steps__item-wrap {
        flex-direction: column;
        align-items: center;
    }

    .jm-steps__arrow {
        margin: 4px 0;
        transform: rotate(90deg);
    }
}