.testimonials-section {
    overflow-x: hidden;
}

.testimonials-container {
    padding: 0;
}

.testimonials__intro-content {
    margin-bottom: 25px;
    text-align: center;

    h2:only-child {
        margin-bottom: 0;
    }
}

.testimonials__wrap {
    position: relative;
}

.testimonials-slider {
    overflow: hidden;
}

.testimonials__wrap .swiper-slide {
    width: 100%;
    height: auto !important;
    align-items: stretch;
}

.testimonial {
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 34px 33px;
}

.testimonial__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    height: 100%;
}

.testimonial__quote-icon {
    flex-shrink: 0;
    font-size: 49px;
    line-height: 30px;
    color: var(--primary-color);
}

.testimonial__text {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-color);
    flex: 1;
}

.testimonial__text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.testimonial__author {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--paragraph-text-color);
    line-height: 1.2;
}

.testimonial__separator {
    color: #c0c0c0;
    margin: 0 0.25em;
}

.testimonials__navigation {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    gap: 20px;
}

.testimonials__link {
    color: var(--white);
}

.testimonials__link::after {
    color: var(--primary-color);
}

.testimonials__arrows {
    display: flex;
    gap: 20px;
}

.testimonials__arrows .swiper-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 59px;
    height: 59px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__arrows .swiper-btn i {
    font-size: 16px;
}

.testimonials__arrows .swiper-btn.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonials__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-gray);
}

.testimonials-stacked__item + .testimonials-stacked__item {
    margin-top: 32px;
}

.testimonials-section.bg-dark :where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6),
.testimonials-section.bg-darkest :where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6) {
    color: var(--white);
}

.testimonials-section.bg-dark .testimonial__text p,
.testimonials-section.bg-darkest .testimonial__text p {
    color: var(--paragraph-text-color);
}

.testimonials-section.bg-white .testimonial {
    background: var(--medium);
}

@media ( max-width: 767px ) {
    .testimonial__text {
        display: flex;
        align-items: center;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .testimonials__heading {
        font-size: 40px;
    }

    .testimonials__wrap .swiper-slide {
        width: 506px;
    }

    .testimonials-slider {
        margin: 0 -52px 0 0;
    }

    .testimonials__intro-content {
        text-align: left;
    }

    .testimonials__navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: unset;
        margin-top: 32px;
    }

    .testimonials-stacked__item + .testimonials-stacked__item {
        margin-top: 0;
    }

     .testimonials-stacked__item:nth-child(n+3) {
        margin-top: 32px;
     }
}

/* Desktop */
@media (min-width: 1200px) {
    .testimonials-slider {
        margin: 0;
        overflow: unset;
    }

    .testimonial__author {
        font-size: 20px;
    }

    .testimonials__arrows .swiper-btn:hover {
        background: var(--primary-hover);
        color: var(--secondary-color);
    }

    .testimonials-section.bg-dark .testimonials__arrows .swiper-btn:hover,
    .testimonials-section.bg-darkest .testimonials__arrows .swiper-btn:hover {
        background: var(--white);
        color: var(--secondary-color);
    }

    .testimonials__link:hover {
        color: var(--white);
    }

    .testimonials__link:hover::before {
        width: 100%;
        transition: all ease-in-out 0.3s;
    }

     .testimonials-stacked__item:nth-child(n+3) {
        margin-top: 0;
     }

      .testimonials-stacked__item:nth-child(n+4) {
        margin-top: 32px;
     }
}
