.ecc-horizontal-carousel {
    position: relative;
    width: 100%;
    background-color: #3A5D91;
    transition: background-color 0.6s ease;
}

.ecc-horizontal-carousel .pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    overflow: hidden;
}

.ecc-horizontal-carousel .track {
    display: flex;
    align-items: center;
    gap: 8vw;
    padding: 0 30vw;
    will-change: transform;
}

.ecc-horizontal-carousel .slide {
    flex: 0 0 auto;
    text-align: center;
    box-sizing: border-box;
    max-width: 500px;
}

.ecc-horizontal-carousel .slide img {
    /* max-width: 100%; */
    height: auto;
    margin-bottom: 0;
    border-radius: 8px;
    width: 11rem;
    display: inline;
}

.ecc-horizontal-carousel .step {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.8;
    color: #fff;
    text-transform: uppercase;
    margin-left: 2px;
    margin-right: 2px;
    font-style: normal;
    transition: color 0.6s ease;
}

.ecc-horizontal-carousel h2 {
    margin: 10px 0;
    font-size: 36px !important;
    color: #fff;
    font-weight: 500 !important;
    line-height: 36px !important;
    letter-spacing: 2px !important;
    margin-bottom: 10px !important;
    transition: color 0.6s ease;
}

.ecc-horizontal-carousel p {
    max-width: 500px;
    margin: 0 auto;
    line-height: 18px;
    font-size: 15px;
    font-style: normal;
    color: #efedf7;
    transition: color 0.6s ease;
}

.ecc-horizontal-carousel .progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    transition: color 0.6s ease, background-color 0.6s ease;
}

.ecc-carousel-heading {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    max-width: 800px;
    z-index: 5;
    transition: color 0.6s ease;
}

.ecc-carousel-heading p{
    font-size: 24px;
    transition: color 0.6s ease;
}

/* When "end" state is active */
.ecc-horizontal-carousel.end-state .ecc-carousel-heading,
.ecc-horizontal-carousel.end-state .ecc-carousel-heading h2,
.ecc-horizontal-carousel.end-state .ecc-carousel-heading h3,
.ecc-horizontal-carousel.end-state .ecc-carousel-heading h4,
.ecc-horizontal-carousel.end-state .ecc-carousel-heading p,
.ecc-horizontal-carousel.end-state .slide h2,
.ecc-horizontal-carousel.end-state .slide p,
.ecc-horizontal-carousel.end-state .slide .step {
    color: #000 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .ecc-horizontal-carousel .track {
        gap: 6vw;
        padding: 0 20vw;
    }

    .ecc-horizontal-carousel h2 {
        font-size: 28px !important;
        line-height: 32px !important;
    }

    .ecc-carousel-heading p {
        font-size: 20px;
    }

    .ecc-horizontal-carousel p {
        font-size: 14px;
        line-height: 20px;
    }

    .ecc-horizontal-carousel .slide img {
        width: 9rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ecc-horizontal-carousel .track {
        gap: 4vw;
        padding: 0 10vw;
    }

    .ecc-horizontal-carousel h2 {
        font-size: 22px !important;
        line-height: 26px !important;
    }

    .ecc-carousel-heading {
        top: 10%;
        max-width: 90%;
        padding: 0 10px;
    }

    .ecc-carousel-heading p {
        font-size: 16px;
    }

    .ecc-horizontal-carousel p {
        font-size: 13px;
        line-height: 18px;
    }

    .ecc-horizontal-carousel .slide {
        max-width: 280px;
    }

    .ecc-horizontal-carousel .slide img {
        width: 7rem;
    }

    .ecc-horizontal-carousel .step {
        font-size: 12px;
    }

    .ecc-horizontal-carousel .progress {
        font-size: 12px;
        bottom: 10px;
        padding: 3px 8px;
    }
}
