/* FEATURE: module 2 - Horizontal Steps Block */
.horizontal-steps {
    padding: 60px 0;
}

.horizontal-steps .wrapper {
    max-width: 1110px;
}

.horizontal-steps__header {
    text-align: center;
    margin-bottom: 50px;
}

.horizontal-steps__counter {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 32px 32px 0;
    background: linear-gradient(90deg, #020C0E 0%, rgba(2, 12, 14, 0) 100%), linear-gradient(180deg, #4EB564 0%, #81CDD5 100%);
    color: #fff;
    border-radius: 12px;
    font-family: AmpleSoft, sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 36px;
    letter-spacing: 0%;
    text-align: center;
}

.horizontal-steps--shadow .horizontal-steps__counter,
.horizontal-steps--small .horizontal-steps__counter,
.horizontal-steps--large .horizontal-steps__counter {
    margin-bottom: 24px;
}

.horizontal-steps__title {
    margin-bottom: 16px;
}

.horizontal-steps__subtitle {
    color: #666;
}

.horizontal-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 95px 36px;
}

.horizontal-steps__item {
    position: relative;
}

.horizontal-steps__item:not(:last-child):before {
    width: calc(100% - 80px);
    position:  absolute;
    top: 23px;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background-color: #D9D9D9;
    display: block;
    content: '';
}

.horizontal-steps--bordered .horizontal-steps__item .horizontal-steps__content {
    border: 1px solid #D9D9D9;
    border-radius: 13px;
    padding: 20px;
    background-color: #FFFFFF;
}

.horizontal-steps--shadow .horizontal-steps__item .horizontal-steps__content {
    box-shadow: 0px 0px 20px 0px #0000004D;
    border-radius: 13px;
    padding: 20px;
    background-color: #FFFFFF;
}

.horizontal-steps__image {
    margin-bottom: 16px;
    border-radius: 13px;
    overflow:  hidden;
}

.horizontal-steps--small .horizontal-steps__image {
    background-color: #F5F5F5;
    margin-bottom: 13px;
}

.horizontal-steps--small .horizontal-steps__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 200/117;
    object-fit: contain;
}

.horizontal-steps--large .horizontal-steps__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.horizontal-steps__item-title {
    font-family: AmpleSoft, sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: 0%;
    color: #3F3F3F;
    margin-bottom: 16px;
}

.horizontal-steps__text {
    font-family: Open Sans, sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 27px;
    letter-spacing: 0%;
    color: #777777;
}

.horizontal-steps__link {
    font-family: Open Sans, sans-serif;
    font-weight: 500;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 27px;
    letter-spacing: 0%;
    color: #1264A3;
    display: inline-block;
    margin-top: 20px;
}

.horizontal-steps__link:hover {
    color: currentColor;
}

.horizontal-steps__button {
    display: inline-block;
    margin-top: 16px;
}

/* Mobile responsive - single column */
@media (max-width: 768px) {
    .horizontal-steps__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .horizontal-steps__item {
        display: flex;
    }

    .horizontal-steps__counter {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        font-size: 24px;
        line-height: 28px;
        border-radius: 6px;
    }

    .horizontal-steps--small .horizontal-steps__counter,
    .horizontal-steps--large .horizontal-steps__counter {
        margin: 0 15px 0 0;
    }

    .horizontal-steps--shadow .horizontal-steps__counter,
    .horizontal-steps--bordered .horizontal-steps__counter {
        margin: 0 9px 0 0;
    }

    .horizontal-steps__item:not(:last-child):before {
        height: calc(100% - 56px);
        top: 56px;
        left: 15px;
        width: 2px;
    }

    .horizontal-steps__item-title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 9px;
    }

    .horizontal-steps__text {
        font-size: 16px;
        line-height: 24px;
    }

    .horizontal-steps__link {
        font-size: 16px;
        line-height: 24px;
        margin-top: 16px;
        display: inline-block;
    }

    .horizontal-steps__content {
        padding: 3px 0;
    }

    .horizontal-steps--shadow .horizontal-steps__item .horizontal-steps__content {
        padding: 19px;
    }

    .horizontal-steps--large .horizontal-steps__item,
    .horizontal-steps--small .horizontal-steps__item {
        display: grid;
        grid-template-columns: 32px 1fr;
        gap: 8px;
    }

    .horizontal-steps--large .horizontal-steps__content,
    .horizontal-steps--small .horizontal-steps__content {
        grid-column: 2/3;
        padding: 0 8px;
    }

    .horizontal-steps--large .horizontal-steps__image {
        margin-bottom: 7px;
    }

    .horizontal-steps--small .horizontal-steps__image {
        margin-bottom: 3px;
    }
}
