﻿/*******************************************************/
/**************** ## Testimonials ****************/
/*******************************************************/

.testimonials-wrap {
    padding: 100px 85px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

@media only screen and (max-width: 1299px) {
    .testimonials-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .testimonials-wrap {
        padding-left: 25px;
        padding-right: 25px;
    }
}

.testimonial-left-image {
    min-height: 500px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

@media only screen and (min-width: 992px) {
    .testimonial-left-image {
        position: absolute;
        right: 0;
        top: -30px;
        width: calc(50vw - 20%);
        height: calc(100% + 60px);
        aspect-ratio: 16 / 9;
        object-fit: cover;
        filter: brightness(0.85);
    }
}

.testimonial-right-content {
    max-width: 570px;
}

@media only screen and (min-width: 992px) {
    .testimonial-right-content {
        margin-left: auto;
    }
}

.testimonial-item .text {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 60px;
}

@media only screen and (max-width: 767px) {
    .testimonial-item .text {
        font-size: 25px;
    }
}

@media only screen and (max-width: 575px) {
    .testimonial-item .text {
        font-size: 22px;
    }
}

@media only screen and (max-width: 375px) {
    .testimonial-item .text {
        font-size: 20px;
    }
}

.testi-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
}

    .testi-header .quote {
        font-size: 60px;
        margin-right: 30px;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

@media only screen and (max-width: 767px) {
    .testi-header .quote {
        font-size: 45px;
        margin-right: 15px;
    }
}

.testi-header h4 {
    margin-right: 15px;
    margin-bottom: 15px;
}

@media only screen and (max-width: 767px) {
    .testi-header h4 {
        font-size: 20px;
    }
}

.testi-header .ratting {
    padding: 5px 12px;
    margin-bottom: 15px;
    border-radius: 20px;
    background: var(--secondary-color);
}

    .testi-header .ratting i {
        color: var(--light-color);
    }

@media only screen and (min-width: 768px) {
    .testi-header .ratting i {
        font-size: 16px;
    }
}

.author {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

    .author .image {
        max-width: 65px;
        margin-right: 25px;
    }

@media only screen and (max-width: 575px) {
    .author .image {
        margin-right: 15px;
    }
}

@media only screen and (max-width: 375px) {
    .author .image {
        max-width: 55px;
    }
}

.author .image img {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: 100%;
}

.author .content h5 {
    margin-bottom: 0;
}

@media only screen and (max-width: 375px) {
    .author .content h5 {
        font-size: 18px;
    }
}

.testimonial-left-content {
    position: relative;
    max-width: 595px;
    padding-right: 50px;
    padding-bottom: 60px;
}

@media only screen and (max-width: 479px) {
    .testimonial-left-content {
        padding-right: 20px;
    }
}

.testimonial-left-content .happy-customer {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 35px 40px 40px;
    max-width: 270px;
    border-radius: 10px;
}

@media only screen and (max-width: 479px) {
    .testimonial-left-content .happy-customer {
        padding: 25px 30px 30px;
    }
}

.testimonial-left-content .happy-customer h6 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.testimonial-left-content .happy-customer hr {
    margin-top: 30px;
    margin-bottom: 20px;
    opacity: .3;
}

.testimonial-left-content .happy-customer p {
    margin-bottom: 13px;
}

.testimonial-left-content .happy-customer .testi-header {
    margin-bottom: 0;
}

    .testimonial-left-content .happy-customer .testi-header .ratting {
        margin-bottom: 0;
    }

.testimonial-left-content .happy-customer.bgc-black {
    outline: 5px solid var(--light-color);
}

    .testimonial-left-content .happy-customer.bgc-black .feature-authors > span {
        background: var(--primary-color);
    }

.testimonials-carousel .owl-stage-outer {
    overflow: hidden;
    position: relative;
}

.testimonials-carousel .owl-stage {
    display: flex;
    transition: all 0.5s ease-in-out;
    will-change: transform;
}

.testimonials-carousel .owl-item {
    padding: 15px;
    transition: all 0.5s ease;
}

    /* Active item styling */
    .testimonials-carousel .owl-item.active {
        transform: scale(1);
        opacity: 1;
    }

/* Navigation buttons */
.testimonials-carousel .owl-nav {
    position: absolute;
    top: -70px;
    right: 0;
}

    .testimonials-carousel .owl-nav button {
        background: var(--light-color) !important;
        border: 1px solid var(--border-color) !important;
        width: 40px;
        height: 40px;
        border-radius: 50% !important;
        margin-left: 10px;
        transition: all 0.3s ease;
    }

        .testimonials-carousel .owl-nav button:hover {
            background: var(--primary-color) !important;
            color: var(--light-color) !important;
        }

        .testimonials-carousel .owl-nav button span {
            font-size: 35px;
            line-height: 36px;
            display: block;
            margin-top: -5px;
        }

/* Dots styling */
.testimonials-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.testimonials-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background: var(--border-color) !important;
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

    .testimonials-carousel .owl-dot.active {
        background: var(--primary-color) !important;
        transform: scale(1.2);
    }
