.testimonials {
    position: relative;
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials__buttons {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.testimonials__slider::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--darkest);
	opacity: 0.70;
    z-index: 1;
}

.testimonials__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* z-index: -1;
    opacity: 0.3; */
}

.testimonials__reviews {
    width: 235px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 9px;
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: linear-gradient(172deg, rgba(0, 0, 0, 0.03) 5.32%, rgba(0, 0, 0, 0.01) 93.56%);
}

.testimonials__reviews__image {
    width: 51px;
}

.testimonials__reviews__details {
    width: calc(100% - 51px);
    padding-left: 0;
    text-align: left;
}

.testimonials__reviews__details h5 {
    font-size: 16px;
    font-family: var(--font-raleway);
    margin-bottom: 0;
}

.testimonials__reviews__description {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    line-height: 1em;
    color: #FEA500;
}

.testimonials__reviews__description span {
    color: var(--headline);
    font-size: 21px;
    padding-right: 3px;
    font-weight: 700;
}

.bg-dark .testimonials__reviews__description span {
    color: var(--white);
}

.testimonials__reviews__description i {
    padding-top: 4px;
}

.testimonial-flex {
    justify-content: center;
}

.testimonial-item {
    padding-top: 32px;
}

.testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    border-radius: 15px 30px;
    background: var(--light);
    padding: 32px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.testimonial__star {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    line-height: 1em;
    color: #FEA500;
    justify-content: center;
    margin-bottom: 20px;
}

.testimonial__bottom {
    padding-top: 32px;
    color: var(--body-color);
}

.testimonial__bottom h4 {
    font-size: 20px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.bg-light .testimonial {
    background: var(--white);
}

.testimonial__description p {
    color: var(--body-color);
}

.testimonial__description p a {
    color: var(--primary-color);
    background: none;
}

.mobile-testimonial-controls.hidden-lg {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .testimonials__headlines {
        margin-bottom: 30px;
    }
}

.testimonials__slider .testimonials__headlines {
    text-align: center;
    margin-bottom: 32px;
}

.testimonials__slider .testimonials__buttons {
    justify-content: center;
    gap: 32px;
}

.testimonial-slider {
    margin: 0 -16px;
    padding-top: 50px;
}

.testimonial-slider .testimonial-item {
    padding-left: 16px;
    padding-right: 16px;
}

.testimonial-slider .slick-arrow {
    bottom: auto;
    top: 0;
}

.testimonial-slider .slick-track {
    display: flex !important;
}

.testimonial-slider .slick-slide {
    height: inherit !important;
}

.testimonial-slider .slick-slide div {
    height: 100%;
}

.testimonial-slider .slick-slide .testimonial div {
    height: auto;
}

.testimonials__titles {
    flex: 1;
}

.testimonials__titles h2 {
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .testimonials__slider .testimonials__buttons {
        justify-content: space-between;
        gap: 0;
    }

    .testimonial-slider {
        padding-top: 0;
    }

    .testimonial-slider .slick-arrow {
        top: -98px;
    }
}

@media (min-width: 1200px) {
    .testimonials__slider .testimonials__headlines {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .testimonials__titles h2 {
        margin-bottom: 0;
    }

    .testimonials__slider .testimonials__buttons {
        width: 664px;
    }

    .testimonial-slider {
        padding-top: 0;
    }

    .testimonial-slider .slick-next {
        margin: 0;
        right: 290px;
    }

    .testimonial-slider .slick-prev {
        left: auto;
        margin: 0;
        right: 355px;
    }
}

.testimonial-slider-overflow {
    margin: 0 -16px;
    padding-top: 50px;
    z-index: 2;
}

.testimonial-slider-overflow .testimonial-item {
    padding-left: 16px;
    padding-right: 16px;
}

.testimonial-slider-overflow .slick-arrow {
    bottom: auto;
    top: 0;
}

.testimonial-slider-overflow .slick-track {
    display: flex !important;
}

.testimonial-slider-overflow .slick-slide {
    height: inherit !important;
}

.testimonial-slider-overflow .slick-slide div {
    height: 100%;
}

.testimonial-slider-overflow .slick-slide .testimonial div {
    height: auto;
}

.testimonial-slider-overflow .testimonial {
    width: 331px;
}

@media (min-width: 768px) {
    .testimonial-slider-overflow .testimonial {
        width: 400px;
    }

    .testimonial-slider-overflow {
        padding-top: 0;
    }

    .testimonial-slider-overflow .slick-arrow {
        top: -98px;
    }
}

@media (min-width: 1200px) {
    .testimonial-slider-overflow .slick-prev {
        left: auto;
        right: 418px;
        margin: 0;
    }

    .testimonial-slider-overflow .slick-next {
        left: auto;
        right: 353px;
        margin: 0;
    }
}

@media (min-width: 1366px) {
    .testimonial-slider-overflow .slick-prev {
        left: auto;
        right: 50%;
        margin-right: -248px;
    }

    .testimonial-slider-overflow .slick-next {
        left: auto;
        right: 50%;
        margin-right: -313px;
    }
}

@media (min-width: 1367px) {
    .testimonial-slider-overflow .slick-prev {
        margin-right: -288px;
    }

    .testimonial-slider-overflow .slick-next {
        margin-right: -353px;
    }

    .testimonials--cta-only {
        .testimonial-slider-overflow .slick-prev {
            margin-right: -488px;
        }
    
        .testimonial-slider-overflow .slick-next {
            margin-right: -553px;
        }
    }
}

.testimonial-short-text,
.testimonial-full-text {
    margin-bottom: 0;
}

.testimonial-read-more,
.testimonial-read-less {
    display: inline-block;
}

.testimonials__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.testimonial-slider,
.testimonial-slider-overflow {
    .slick-arrow {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .testimonials__button {
        flex-direction: row;
        align-items: center;
    }
}

.testimonial-slider__button {
    font-size: 0;
    line-height: 1px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 50px;
    height: 50px;
    cursor: pointer;
    outline: none;
    z-index: 9;
    text-align: center;
    color: var(--white);
    transition: all ease-in 0.3s;
    bottom: 0;
    z-index: 1;
    border: none;
    background: var(--primary-color);
    font-size: 25px;
    line-height: 1em;
    margin: 0 5px;
}

.testimonial-slider__button--prev {
    border-radius: 5px 15px;
}

.testimonial-slider__button--next {
    border-radius: 15px 5px;
}

.testimonial-slider__button:hover {
    background: var(--darkest);
}