
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / var(--carousel-sets, 2)));
    }
}

.logo-text-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.logo-text-carousel-slider {
    display: flex;
    animation: slide 50s linear infinite;
    width: max-content;
    will-change: transform;
}

.logo-text-carousel-slider:hover {
    animation-play-state: paused;
}

.logo-text-carousel--Logo {
    padding: 65px 0 35px;
}

.logo-text-carousel__heading .sub-heading {
    margin: 0 0 5px;
    font-size: 18px;
}

.logo-carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.logo-carousel-link {
    background: none;
}

.logo-carousel-link img {
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 200px;
}

@media(min-width: 768px) {
    .logo-text-carousel--Logo {
        padding: 80px 0 20px;
    }

    .logo-text-carousel__heading .sub-heading {
        margin: 0;
        font-size: 22px;
        margin-bottom: 15px;
    }
}

@media(min-width: 1200px) {
    .logo-text-carousel--Logo {
        padding: 100px 0 60px;
    }

    a.logo-carousel-link:hover {
        opacity: 0.7;
        background: none;
    }
}

/* Text Carousel */

.text-carousel {
    margin-top: 20px;
}

.text-carousel-item {
    position: relative;
    width: 280px;
    padding: 0 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-carousel-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    height: 1.5px;
    width: 38px;
    background: #D2232A;
}

.text-carousel-item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    height: 1.5px;
    width: 38px;
    background: #D2232A;
}

.text-carousel-item p {
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.5em;
    font-weight: normal;
    color: #000000;
    font-style: italic;
    text-transform: uppercase;
    font-family: "Roboto Condensed", sans-serif;
    text-align: center;
}

@media (min-width: 1200px) {
    .text-carousel {
        margin-top: 45px;
    }
}
