/*** 
=============================================
   Testimonial Style1 Area Css
=============================================
***/
.testimonial-style1-area {
    position: relative;
    display: block;
    padding: 120px 0 120px;
    background: #ffffff;
    z-index: 10;
}

.testimonial-style1-area .shape {
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 2;
}

.testimonial-style1-area .shape img {
    opacity: 0.08;
}

.testimonial-style1-content {
    position: relative;
    display: block;
    z-index: 1;
}

.testimonial-style1-content .bg-color {
    position: absolute;
    top: -120px;
    left: 120px;
    bottom: -120px;
    right: -9999999px;
    background: var(--thm-primary);
    z-index: -1;
}



.single-testimonial-style1 {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 11;
}

.single-testimonial-style1 .img-holder {
    position: relative;
    display: block;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.single-testimonial-style1 .img-holder:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--thm-primary);
    opacity: 0;
    transition-delay: .1s;
    transition-timing-function: ease-in-out;
    transition-duration: .7s;
    transition-property: all;
    z-index: 1;
}

.single-testimonial-style1:hover .img-holder:before {
    opacity: 0.70;
}

.single-testimonial-style1 .img-holder img {
    width: 100%;
}

.single-testimonial-style1:hover .img-holder img {
    transform: scale(1.1) rotate(2deg);
}

.single-testimonial-style1 .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.single-testimonial-style1 .overlay-content .quote-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--thm-base);
    border-radius: 50%;
}

.single-testimonial-style1 .overlay-content .quote-icon img {
    position: relative;
    display: inline-block;
    width: auto;
}

.single-testimonial-style1 .review-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 140px;
    height: 50px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}



.single-testimonial-style1 .text-holder {
    position: relative;
    display: block;
    max-width: 570px;
    width: 100%;
    overflow: hidden;
}

.single-testimonial-style1 .text-holder .sec-title--style2 {
    padding-bottom: 38px;
}

.single-testimonial-style1 .text-holder .text {
    position: relative;
    display: block;
}

.single-testimonial-style1 .text-holder .text p {
    color: #9ea8db;
    font-size: 24px;
    line-height: 40px;
    margin: 0;
}

.single-testimonial-style1 .text-holder .text h3 {
    color: #ffffff;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    margin: 33px 0 0;
}

.single-testimonial-style1 .text-holder .text h3 span {
    color: #9ea8db;
    font-size: 16px;
    font-weight: 400;
}

.testimonial-carousel.owl-nav-style-one.owl-theme .owl-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 999;
}



/*** 
=============================================
   Testimonial Page Css
=============================================
***/
.testimonial-page {
    position: relative;
    display: block;
    background: #ffffff;
    padding: 120px 0 100px;
    z-index: 10;
}

.testimonial-page .sec-title {
    margin-bottom: 35px;
}


.testimonial-style2__single {
    position: relative;
    display: block;
    margin-bottom: 50px;
}

.testimonial-style2__single .img-holder {
    position: relative;
    display: block;
    width: 180px;
    height: 180px;
    overflow: hidden;
    margin: 0 auto 35px;
    background-color: #f8f9fa;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-style2__single:hover .img-holder {
    box-shadow: 0px 8px 30px 0px rgba(40, 81, 163, 0.15);
    transform: translateY(-5px);
}

.testimonial-style2__single .img-holder::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    border: 3px solid var(--thm-base);
    z-index: 1;
    transition: all 0.3s ease;
}

.testimonial-style2__single:hover .img-holder::before {
    border-color: var(--thm-primary);
}

.testimonial-style2__single .img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 0;
}

.testimonial-style2__single:hover .img-holder img {
    transform: scale(1.05);
}



.testimonial-style2__single .text-holder {
    position: relative;
    display: block;
    background: #ffffff;
    padding: 45px 35px 45px;
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.07);
    border-top-left-radius: 60px;
    border-bottom-right-radius: 60px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.testimonial-style2__single:hover .text-holder {
    background: var(--thm-base);
}

.testimonial-style2__single .text-holder::before {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    width: 60px;
    margin: 0 auto;
    border-bottom: 20px solid #ffffff;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    transition: all 200ms linear;
    transition-delay: 0.1s;
    content: "";
}

.testimonial-style2__single:hover .text-holder::before {
    border-bottom: 20px solid var(--thm-base);
}

.testimonial-style2__single .text-holder p {
    font-size: 18px;
    line-height: 32px;
    margin: 0 0 21px;
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder p {
    color: #ffffff;
}


.testimonial-style2__single .text-holder .border-box {
    position: relative;
    display: block;
    width: 220px;
    height: 1px;
    background: #f2f3fa;
    margin: 0 auto;
}

.testimonial-style2__single .text-holder .border-box:before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--thm-base);
}

.testimonial-style2__single .text-holder .client-info {
    position: relative;
    display: block;
    margin-top: 23px;
}

.testimonial-style2__single .text-holder .client-info h3 {
    color: var(--thm-base);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    font-family: var(--thm-font);
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder .client-info h3 {
    color: #ffffff;
}

.testimonial-style2__single .text-holder .client-info span {
    color: var(--thm-primary);
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    transition: all 200ms linear;
    transition-delay: 0.1s;
}

.testimonial-style2__single:hover .text-holder .client-info span {
    color: var(--thm-primary);
}

/* Testimonial Carousel Styles */
.testimonial-carousel .testimonial-style2__single {
    margin-bottom: 0;
    padding: 20px 10px;
}

.testimonial-carousel.owl-carousel .owl-item {
    padding: 0 20px;
}

.testimonial-carousel .testimonial-style2__single .img-holder {
    margin-bottom: 30px;
}

.testimonial-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
    z-index: 10;
}

.testimonial-carousel.owl-carousel .owl-nav button {
    pointer-events: all;
    width: 55px;
    height: 55px;
    background: #ffffff;
    color: var(--thm-base);
    border: 2px solid var(--thm-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
}

.testimonial-carousel.owl-carousel .owl-nav button:hover {
    background: var(--thm-base);
    color: #ffffff;
    border-color: var(--thm-base);
    box-shadow: 0px 8px 25px 0px rgba(40, 81, 163, 0.2);
    transform: scale(1.1);
}

.testimonial-carousel.owl-carousel .owl-nav button span,
.testimonial-carousel.owl-carousel .owl-nav button i {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

.testimonial-carousel.owl-carousel .owl-nav button.owl-prev span {
    transform: rotate(180deg);
}

.testimonial-carousel.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
}

.testimonial-carousel.owl-carousel .owl-dots button.owl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-carousel.owl-carousel .owl-dots button.owl-dot:hover {
    background: var(--thm-primary);
    border-color: var(--thm-primary);
}

.testimonial-carousel.owl-carousel .owl-dots button.owl-dot.active {
    background: var(--thm-base);
    width: 35px;
    border-radius: 7px;
    border-color: var(--thm-base);
}

/* Responsive Styles for Testimonial Carousel */
@media only screen and (max-width: 1199px) {
    .testimonial-style2__single .img-holder {
        width: 160px;
        height: 160px;
        margin-bottom: 30px;
    }
    
    .testimonial-style2__single .text-holder {
        padding: 40px 30px 40px;
    }
}

@media only screen and (max-width: 991px) {
    .testimonial-carousel.owl-carousel .owl-nav {
        padding: 0 15px;
    }
    
    .testimonial-carousel.owl-carousel .owl-nav button {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-style2__single .img-holder {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
    }
    
    .testimonial-style2__single .text-holder {
        padding: 35px 25px 35px;
    }
}

@media only screen and (max-width: 767px) {
    .testimonial-page {
        padding: 80px 0 70px;
    }
    
    .testimonial-page .sec-title {
        margin-bottom: 25px;
    }
    
    .testimonial-style2__single .img-holder {
        width: 140px;
        height: 140px;
        margin-bottom: 25px;
        padding: 6px;
    }
    
    .testimonial-style2__single .text-holder {
        padding: 30px 20px 30px;
    }
    
    .testimonial-carousel.owl-carousel .owl-item {
        padding: 0 10px;
    }
    
    .testimonial-carousel.owl-carousel .owl-nav {
        padding: 0 10px;
    }
    
    .testimonial-carousel.owl-carousel .owl-nav button {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-carousel.owl-carousel .owl-nav button span {
        font-size: 16px;
    }
    
    .testimonial-carousel.owl-carousel .owl-dots {
        margin-top: 35px;
        padding-top: 15px;
    }
}

@media only screen and (max-width: 575px) {
    .testimonial-style2__single .img-holder {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
        padding: 5px;
    }
    
    .testimonial-style2__single .text-holder {
        padding: 25px 18px 25px;
        border-top-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    
    .testimonial-style2__single .text-holder p {
        font-size: 16px;
        line-height: 28px;
    }
    
    .testimonial-carousel.owl-carousel .owl-nav button {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-carousel.owl-carousel .owl-nav button span {
        font-size: 14px;
    }
}