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

.image-testimonials__image {
    position: absolute;
    width: 100%;
    height: 471px;
    right: 0;
    bottom: 0;
    object-fit: cover;
    z-index: -1;
}

.testimonial-heading {
    text-align: center;
    padding-bottom: 25px;
}

.testimonial-heading .btn-group {
    justify-content: center;
}

.reviews {
    margin: 0 auto 0;
    width: 280px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 15px;
}

.reviews--slider {
    margin-top: 25px;
}

.reviews--grid {
    margin-bottom: 25px;
}

.reviews__image {
	width: 43px;
	height: 43px;
	display: flex;
}

.reviews__image img {
    width: 100%;
    height: 100%;
}

.reviews__details {
    width: calc(100% - 43px);
    padding-left: 8px;
}

.reviews__details h4 {
    font-size: 16px;
    margin-bottom: 4px;
    text-align: left;
}

.reviews__description {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    line-height: 1em;
    color: var(--primary-color);
}

.reviews__description span {
    color: var(--heading-text-color);
    font-size: 14px;
    padding-right: 3px;
}

.bg-dark .reviews__description span,
.bg-medium .reviews__description span {
    color: var(--white);
}

.testimonial-slider {
    padding-bottom: 65px;
}

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

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

.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 25px 35px;
}

.testimonial p span {
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial__author {
    font-size: 16px;
}

.testimonial__author span {
    font-weight: 700;
}

.testimonial-static-item {
    margin-top: 50px;
}

.testimonial-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 35px;
    position: relative;
}

.testimonial-column::before {
	content: '\e910';
    font-family: 'rmfx-icon';
	position: absolute;
	top: -32px;
	left: 50%;
	font-size: 50px;
    line-height: 1em;
	font-weight: normal;
	transform: translate(-50%, 0);
    color: var(--primary-color);
}

.testimonial-author {
    font-size: 17px;
}

.testimonials__top-content h2:last-child {
    margin-bottom: 0;
}

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

@media (min-width: 768px) {
    
    .image-testimonials__image {
        height: 412px;
    }
    
    .testimonial-heading {
        padding-bottom: 50px;
    }
    
    .reviews--slider {
        margin: 25px 0 0 auto;
    }
    
    .testimonial-slider {
        padding-bottom: 0;
    }
    
    .testimonial {
        min-height: 284px;
        padding: 40px 50px;
    }
    
    .testimonial p {
        font-size: 18px;
        margin-bottom: 25px;
    }
    
    .testimonial__author {
        font-size: 20px;
    }

    .testimonial-slider .slick-arrow {
        bottom: -85px;
        margin: 0;
    }

    .testimonial-slider .slick-prev {
        left: 0;
    }

    .testimonial-slider .slick-next {
        right: auto;
        left: 82px;
    }

    .testimonial-static-item {
        margin-top: 60px;
    }
    
    .testimonial-column {
        padding: 40px 50px;
    }
    
    .testimonial-column::before {
        top: -45px;
        font-size: 70px;
    }
    
    .testimonial-author {
        font-size: 18px;
    }

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

@media (min-width: 1200px) {
    
    .image-testimonials__image {
        width: calc(50% - 321px);
        height: 100%;
    }

    .image-testimonials .flex-row {
        align-items: center;
    }
    
    .testimonial-heading {
        text-align: left;
        padding-bottom: 0;
    }
    
    .testimonial-heading .btn-group {
        justify-content: flex-start;
    }
    
    .testimonial {
        padding: 65px;
    }

    .testimonial__star {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1em;
        color: var(--primary-color);
        gap: 8px;
    }
    
    .testimonial-slider .slick-next {
        left: 70px;
    }

    .testimonial-sliders {
        padding-left: 43px;
    }

    .testimonial-static-item {
        margin-top: 65px;
    }
    
    .testimonial-column {
        padding: 50px 50px;
    }
    
    .testimonial-column::before {
        top: -55px;
        font-size: 90px;
    }
    
    .testimonial-author {
        font-size: 20px;
    }
    
    .testimonials__top-content {
        padding-bottom: 15px;
    }
}

.testimonials__wrapper:has(.testimonial-column.bg-medium) {
    .testimonial-column {
        color: var(--white);
        background: var(--medium);
    }
}

.testimonials__wrapper:has(.testimonial-column.bg-dark) {
    .testimonial-column {
        color: var(--white);
        background: var(--dark);
    }
}