.steps__headlines,
.steps__right {
    width: 100%;
}

.steps__headlines {
    padding: 0 22px 30px;
}

.steps__right {
    display: flex;
    flex-wrap: wrap;
}

.step {
    width: 33.33%;
    height: 274px;
    position: relative;
    cursor: pointer;
    /* order: 2; */
}

.step img {
    object-position: top;
}

.step__details {
    position: absolute;
    bottom: 0;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.step__count {
    color: #fff;
    font-size: 50px;
    line-height: 0.7333em;
    font-weight: 300;
    cursor: pointer;
}

.step__hover {
    display: none;
}

.step--active {
    width: 100%;
    height: auto;
    /* order: 1; */
   
}

.step--active .step__hover {
    display: block;
}

.step--active .step__details {
    position: relative;
    padding: 30px 22px 60px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    margin-top: -155px;
    text-align: left;
}

.step--active img {
    height: 468px;
}

.step__details::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    height: 103px;
    bottom: 0;
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.75) 100%);
    z-index: -1;
}

.step--active .step__details::after {
    display: none;
}

.step--active .step__count {
    position: relative;
    font-size: 45px;
    font-weight: 100;
    z-index: 1;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #EF4024;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-right: 10px;
    padding-bottom: 3px;
    overflow: hidden;
}

.step__hover {
    margin-top: 20px;
}

.step__title {
    margin-bottom: 15px;
    color: var(--color-black);
    font-size: 20px;
    line-height: 1.4em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.step:first-child img {
    border-radius: 8px 0 0 8px;
}

.step:first-child .step__details::after {
    border-radius: 0 0 0 8px;
}

.step__hover p {
    font-size: 16px;
    line-height: 1.875em;
    margin-bottom: 20px;
}

.step__cta {
    letter-spacing: 0.25em;
    line-height: 1.25em;
    font-weight: 600;
}

.step-button .btn {
    padding: 7px 0;
    padding-right: 46px;
}

.step-button .btn::before {
    content: '\e901';
    font-size: 22px;
    color: #fff;
    z-index: 1;
    right: 5px;
}

.step-button .btn::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    background: #EF3D23;
    margin-top: -2px;
}

.step__count > span {
    display: block;
    position: relative;
    top: 3px;
    right: -3px;
}

.step[data-step-id="2"] .step__count > span {
    top: 1px;
    right: 2px;
}


@media (min-width: 768px) {
        
    .steps {
        padding-left: 52px;
        padding-right: 52px;
        border-top: 1px solid rgba(0,0,0,0.25);
        padding-top: var(--section-margins);
    }

    .steps__headlines {
        padding: 0;
        padding-bottom: 40px;
        padding-top: var(--section-padding);
    }

    .steps__right {
        margin-right: -52px;
        width: calc(100% + 52px);
    }

    .step {
        width: 97px;
        height: 559px;
        margin-bottom: 35px;
    }
    

    .step--active  {
        width: calc(100% - 291px);
        /* order: 2; */
        height: 559px;
    }

    .step__details {
        text-align: left;
    }

    .step--active img {
        height: 100%;
    }
    
    .step--active .step__details::before {
        content: '';
        position: absolute;
        width: calc(100% + 15px);
        left: -15px;
        height: calc(100% + 70px);
        bottom: -35px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(10px);
        z-index: -1;
    }

    .step--active .step__details {
        position: absolute;
        padding: 0;
        background: none;
        backdrop-filter: inherit;
        margin-top: -0;
        width: calc(100% - 24px);
        padding-right: 34px;
        text-align: left;
        padding-right: 34px;
    }
    
}


@media (min-width: 1200px) {
        
    .steps {
        padding-left: 0;
        padding-right: 0;
        align-items: center;
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    .lotus {
        position: absolute;
        left: 0;
        bottom: -287px;
        z-index: -1;
        overflow: hidden;
    }

    .steps__headlines {
        padding: 0;
        padding-top: var(--section-padding);
        width: calc(50% - 92px);
        padding-right: 32px;
        padding-left: 21px;
    }

    .steps__headlines__wrap {
        max-width: 507px;
        margin-left: auto;
    }

    .steps__headlines__wrap p {
        max-width: 398px;
    }

    .steps__right {
        margin-right: 0;
        width: calc(50% + 92px);
    }

    .step {
        height: 858px;
        margin-bottom: 25px;
    }
    
    .step--active  {
        height: 858px;
    }

    .step--active .step__details::before {
        width: calc(100% + 25px);
        left: -25px;
        height: calc(100% + 50px);
        bottom: -25px;
    }

    .step--active .step__details {
        width: calc(100% - 54px);
        padding: 22px 42px 22px 10px;
    }

    .step__title {
        font-size: 24px;
    }

    .step__hover p {
        font-size: 18px;
    }

    .step-button .btn {
        padding-right: 67px;
    }

    .step-button .btn::before {
        font-size: 29px;
    }

    .step-button .btn::after {
        width: 37px;
        height: 37px;
    }

    .step__count {
        font-size: 100px;
        font-weight: 100;
    }

    .step--active .step__count {
        font-size: 85px;
        width: 95px;
        height: 95px;
        padding-right: 15px;
        align-items: self-start;
        padding-bottom: 0;
        padding-top: 29px;
    }
    
}

@media (min-width: 1600px) {
    .step {
        width: 144px;
    }
    
    .step--active  {
        width: calc(100% - 432px);
    }
}

.step-heading {
    padding: 18px 15px;
    display: flex;
    align-items: center;

    .step__title {
        margin-bottom: 0;
        flex: 1;
        padding-left: 15px;
        padding-right: 10px;
        font-size: 16px;
    }

    .step__count {
        position: relative;
        font-size: 25px;
        font-weight: 100;
        z-index: 1;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #EF4024;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        padding-right: 10px;
        padding-bottom: 3px;
        overflow: hidden;
    }
}

.step__arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
    -webkit-text-stroke: 1px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-pink);
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.step__cta--prev {
    padding-right: 0;
    padding-left: 38px;

    &:before {
        left: 8px;
        right: auto;
        transform: translate(0,-50%) scale(-1, 1);
    }

    &:after {
        right: auto;
        left: 0;
    }
}

@media (max-width: 767px) {
    .step__hover {
        margin-top: 0;
    }

    .step {
        width: 100%;
        height: auto;
        border-top: 1px solid rgba(0,0,0,0.1);

        &:last-child {
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        > img,
        > .step__details {
            display: none;
        }

        > img {
            height: 220px;
            object-fit: cover;
            object-position: center;
            border-radius: 0px !important;
        }

        > .step__details {
            position: relative;
            margin-top: 0;
            padding: 20px 22px;
        }

        .step__hover p:last-of-type {
            margin-bottom: 0;
        }
    }

    .step--active {
        > img,
        > .step__details {
            display: block;
        }

        .step__arrow {
            transform: rotate(180deg);
        }
    }

    .step-button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 15px;

        .step__cta {
            text-align: right;
        }

        .step__cta--prev {
            text-align: left;
        }

        .btn {
            margin-top: 0;
        }
    }
}