/* Root */
.step-card-section {
    position: relative;
    z-index: 2;
}

.step-card-section--homepage {
    padding-bottom: 35px;
}

.step-card-section--homepage h2 {
    color: #00807F;
}

/* Slider */
.step-card-section--homepage .slick-arrow {
    color: #00807F;
}

/* Step Card */
.step-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-top: 17px;
}

.step-card__img-container {
    flex: 1 0 auto;
    width: calc(100% - 27px);
    height: 250px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.step-card__img-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.step-card__img.object-fit--contain {
    padding: 20px;
}

.step-card-section .fx-slider-slide{
    padding-top: 0;
}

.step-card__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -20px;
    padding: 20px;
    width: calc(100% - 27px);
    height: 100%;
    transform: translate(27px, 0);
    position: relative;
    z-index: 2;
    border-radius: 25px;
    border: 1px solid #F0F0F0;
    background: #FFFFFF;
    box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.10);
}

.step-card__details h4 {
    margin-bottom: 5px;
}

.step-card-section--homepage .step-card__details h4 {
    color: #00807F;
}

.step-card__details p {
    letter-spacing: 0.03em;
}

.step-card__btn {
    margin-top: auto;
}

:where(.bg-white, .bg-purple) .step-card__btn {
    color: #A5420A;
}

.step-card-section--homepage .step-card__btn {
    color: #4D47B3;
}

/* Step Count Badge */
.step-count {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 5px 0;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #DCDAED;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    font-family: "Caveat", cursive;
    font-size: 50px;
    line-height: 1em;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #4D47B3;
}

.bg-white .step-count,
.bg-purple .step-count {
    background: #DCF1ED;
    color: #00807F;
}

.step-card-section--homepage .step-count {
    background-color: #DCDAED;
    color: #4D47B3;
}

.step-card-section--homepage .step-card__btn {
    color: #4D47B3;
}

@media (min-width: 768px) {
    /* Root */
    .step-card-section--homepage {
        padding-bottom: 15px;
    }

    /* Slider */
    .step-card-slider {
        margin-right: -52px;
    }

    .step-card-section .fx-slider-slide{
        padding-top: 35px;
    }

    .step-card-slider-slide {
        position: relative;
        padding-right: 32px;
        padding-left: 0;
    }

    .step-card-slider-slide::after {
        content: '\e912';
        font-family: 'cotton-creations';
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(-7px, 225px);
        color: #DCDAED;
        font-size: 45px;
        line-height: 1em;
    }

    .bg-white .step-card-slider-slide::after,
    .bg-purple .step-card-slider-slide::after {
        color: #DCF1ED;
    }

    .step-card-section--homepage .step-card-slider-slide::after {
        color: #DCDAED;
    }

    .slick-slide:nth-child(2n) .step-card-slider-slide::after {
        content: '\e913';
        transform: translate(-7px, 235px);
    }

    .step-card-slider .fx-slider-nav {
        margin-left: -52px;
    }

    /* Step Card */
    .step-card {
        width: 316px;
    }
    
    .step-card__img-container {
        height: 243px;
    }

    .step-card__details h4 {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    /* Root */
    .step-card-section--homepage {
        padding-bottom: 30px;
    }

    /* Slider */
    .step-card-slider {
        margin-right: -58px;
        margin-left: -58px;
    }

    .step-card-slider-slide {
        padding-right: 58px;
        padding-left: 58px;
        padding-top: 55px;
    }

    .step-card-slider-slide::after {
        content: '\e913';
        transform: translate(35px, 240px);
        font-size: 85px;
    }

    .slick-slide:nth-child(2n) .step-card-slider-slide::after {
        content: '\e912';
        display: block;
        transform: translate(35px, 235px);
    }

    .step-card-slider-slide:last-child::after {
        display: none;
    }

    .slick-slide .step-card-slider-slide:last-child::after {
        display: block;
    }

    .slick-slide .step-card-slider-slide:last-child::after {
        display: none;
    }

    .slick-current .step-card-slider-slide:last-child::after {
        display: block;
    }

    .slick-current + .slick-active .step-card-slider-slide:last-child::after {
        display: block;
    }

    .step-card-slider .fx-slider-nav {
        margin-left: 0;
    }

    .step-card-section--homepage .slick-arrow:hover {
        color: #79C3B3;
    }

    /* Step Card */
    .step-card {
        width: 100%;
    }

    .step-card__img-container {
        width: calc(100% - 20px);
        height: 259px;
    }

    .step-card__details {
        width: calc(100% - 20px);
        transform: translate(20px, 0);
    }

    .step-card__details h4 {
        font-size: 25px;
    }

    /* Step Count Badge */
    .step-count {
        width: 78px;
        height: 78px;
    }
}

@media (min-width: 1600px) {
    /* Step Card Item */
    .step-card-slider-slide {
        padding-right: 92px;
        padding-left: 92px;
    }

    .step-card-slider-slide::after {
        transform: translate(13px, 220px);
        font-size: 104px;
    }

    .slick-slide:nth-child(2n) .step-card-slider-slide::after {
        transform: translate(13px, 215px);
    }

    /* Step Card */
    .step-card {
        padding-top: 15px;
    }

    .step-card__img-container {
        height: 347px;
        width: calc(100% - 51px);
        border-radius: 65px;
    }

    .step-card__details {
        margin-top: -51px;
        padding: 25px 35px;
        width: calc(100% - 51px);
        transform: translate(51px, 0);
    }

    /* Step Count Badge */
    .step-count {
        padding-right: 17px;
        width: 109px;
        height: 109px;
        top: 0;
        right: 36px;
        font-size: 75px;
    }
}