
.testimonial-section{
    position: relative;
}

.testimonial-block-one .inner-box{
    position: relative;
    display: block;
    border: 1px solid rgba(110,110,110,0.30);
    border-radius: 12px;
    min-height: 246px;
    overflow: hidden;
    padding: 32px;
}

.testimonial-block-one .static-content{
    position: relative;
    display: block;
    background-color: #fff;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 700ms;
}

.testimonial-block-one:hover .static-content{
    opacity: 0;
    transform: translateY(-100%);
}

.testimonial-block-one p{
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 24px;
}

.testimonial-block-one .author-box{
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-block-one .author-box .thumb-box{
    position: relative;
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.testimonial-block-one .author-box .thumb-box img{
    width: 100%;
    border-radius: 50%;
}

.testimonial-block-one .author-box h5{
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
}

.testimonial-block-one .author-box .designation{
    position: relative;
    display: block;
    font-size: 14px;
    line-height: 21px;
}

.testimonial-block-one .overlay-content{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 32px 32px 29px 32px;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(100%);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 700ms;
}

.testimonial-block-one:hover .overlay-content{
    opacity: 1;
    transform: translateY(0%);
}

.testimonial-block-one .overlay-content h2{
    font-size: 64px;
    line-height: 77px;
    font-weight: 500;
}

.testimonial-block-one .overlay-content span{
    position: relative;
    display: block;
    font-size: 12px;
    line-height: 18px;
    margin-bottom:30px;
}

.testimonial-block-one .overlay-content .image-list{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.testimonial-block-one .overlay-content .image-list li{
    position: relative;
    display: inline-block;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    margin-right: -10px;
}

.testimonial-block-one .overlay-content .image-list li:last-child{
    margin-right: 0px;
}

.testimonial-block-one .overlay-content .image-list li img{
    width: 100%;
    border-radius: 50%;
    border: 1px solid var(--secondary-color);
}

.testimonial-block-one .overlay-content p{
    font-size: 14px;
    line-height: 21px;
}

.testimonial-section .outer-container::before{
    position: absolute;
    content: '';
    background-color: #fff;
    width: 5000px;
    height: 100%;
    top: 0px;
    right: 100%;
    z-index: 2;
    margin-right: -80px;
}

.testimonial-section .owl-carousel .owl-stage-outer{
    overflow: visible;
}

.testimonial-section .owl-dots{
    position: relative;
    display: block;
    text-align: center;
    margin-top: 50px;
}

.testimonial-section .owl-dots button span{
    display: none !important;
}

.testimonial-section .owl-dots button{
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: rgba(110,110,110,0.30);
    border-radius: 50%;
    cursor: pointer;
    margin: 0px 4px;
    transition: all 500ms ease;
}

.testimonial-section .owl-dots button.active,
.testimonial-section .owl-dots button:hover{
    background-color: var(--secondary-color);
}

.testimonial-section .owl-nav{
    position: absolute;
    left: 0px;
    top: 32%;
    width: 100%;
}

.testimonial-section .owl-nav .owl-prev{
    position: absolute;
    top: 0px;
    left: -18px;
    z-index: 9;
}

.testimonial-section .owl-nav .owl-next{
    position: absolute;
    top: 0px;
    right: -18px;
}

.testimonial-style-two .testimonial-block-one .author-box{
    margin-bottom: 24px;
}

.testimonial-style-two .testimonial-block-one p{
    margin-bottom: 0px;
}

.testimonial-style-two .testimonial-block-one .inner-box{
    padding: 30px;
    margin-bottom: 30px;
}

.testimonial-style-three .inner-container{
    position: relative;
    max-width: 1170px;
    margin: 0 auto;
}

.testimonial-style-three .testimonial-content{
    position: relative;
    display: block;
    max-width: 850px;
    margin: 0 auto;
}

.testimonial-style-three .testimonial-content p{
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.testimonial-style-three .testimonial-content .testimonial-image{
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.testimonial-style-three .testimonial-content .testimonial-image img{
    display: inline-block;
    width: 100%;
    border-radius: 50%;
}

.testimonial-style-three .testimonial-content h5{
    display: block;
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-style-three .testimonial-content .social-links{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.testimonial-style-three .testimonial-content .social-links li a{
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border: 1px solid var(--text-color);
    border-radius: 3px;
    font-size: 14px;
    color: var(--text-color);
}

.testimonial-style-three .testimonial-content .social-links li a:hover{
    color: var(--title-color);
    border-color: var(--theme-color);
    background-color: var(--theme-color);
}

.testimonial-style-three .owl-nav{
    position: absolute;
    left: 0px;
    top: 50%;
    margin-top: -18px;
    width: 100%;
}

.testimonial-style-three .owl-nav .owl-prev{
    position: absolute;
    left: 55px;
    top: 0px;
}

.testimonial-style-three .owl-nav .owl-next{
    position: absolute;
    right: 55px;
    top: 0px;
}

.testimonial-style-four .inner-container{
    position: relative;
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 30px;
}

.testimonial-block-two{
    position: relative;
    display: inline-block;
    max-width: 410px;
}

.testimonial-block-two:last-child{
    margin-right: 30px;
}

.testimonial-block-two .inner-box{
    position: relative;
    display: block;
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    padding: 30px;
    margin: 30px 0 30px;
    background: #fff;
    box-shadow: 3px 1px 18px rgba(90, 88, 88, 0.04), 10px 5px 70px rgba(90, 88, 88, 0.08);
    display: flex;
    flex-direction: column;
}

.testimonial-block-two .inner-box .author-box{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-block-two .inner-box .author-box .thumb-box{
    position: relative;
    display: inline-block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.testimonial-block-two .inner-box .author-box .thumb-box img{
    width: 100%;
    border-radius: 50%;
}

.testimonial-block-two .inner-box .author-box h5{
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
}

.testimonial-block-two .inner-box .author-box .designation{
    position: relative;
    display: block;
    font-size: 14px;
    line-height: 21px;
}

.testimonial-block-two .inner-box .text-box{
    width: 100%;
    max-width: 350px;
    height: 160px;
    margin-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    flex: 1;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Light Scrollbar for Desktop */
.testimonial-block-two .inner-box .text-box::-webkit-scrollbar{
    width: 5px;
}

.testimonial-block-two .inner-box .text-box::-webkit-scrollbar-track{
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.testimonial-block-two .inner-box .text-box::-webkit-scrollbar-thumb{
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.testimonial-block-two .inner-box .text-box::-webkit-scrollbar-thumb:hover{
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox - Light Scrollbar */
.testimonial-block-two .inner-box .text-box{
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.testimonial-block-two .inner-box .text-box p{
    line-height: 27px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-block-two .inner-box p{
    line-height: 27px;
}

.testimonial-block-two .inner-box .lower-box{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.testimonial-block-two .inner-box .lower-box a{
    position: relative;
    display: inline-block;
    font-size: 18px;
    color: #787878;
}

.testimonial-block-two .inner-box .lower-box a:hover{
    color: var(--title-color);
}

.testimonial-block-two .inner-box .lower-box span{
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
}

.testimonial-style-four .shadow-left{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 400px;
    height: 100%;
    z-index: 10;
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.0) 100%);
}

.testimonial-style-four .shadow-right{
    position: absolute;
    right: 0px;
    top: 0px;
    width: 400px;
    height: 100%;
    z-index: 10;
    background: -webkit-linear-gradient(180deg, rgba(255,255,255,1) 25%, rgba(255,255,255,0.0) 100%);
}

.testimonial-style-four .marquee-container{
    margin-bottom: 0 !important;
}

.testimonial-style-four .marquee-reverse-container{
    margin-top: 0 !important;
}

.testimonial-style-four.home-5{
    padding-top: 60px;
    padding-bottom: 60px;
}

.testimonial-style-four.home-5 .testimonial-block-two .inner-box{
    background: transparent;
}

/* Google Review Style Rating Stars */
.testimonial-block-two .rating-box{
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
}

.testimonial-block-two .rating-box i{
    font-size: 12px;
    color: #ffcf21;
}

/* Google Icon & Share Functionality */
.testimonial-block-two .lower-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-block-two .google-link{
    display: inline-block;
    transition: transform 0.3s ease;
}

.testimonial-block-two .google-link:hover{
    transform: scale(1.1);
}

.testimonial-block-two .google-link img{
    display: block;
}

.testimonial-block-two .review-actions{
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-block-two .share-wrapper{
    position: relative;
}

.testimonial-block-two .share-icon{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #787878;
    padding: 8px;
    transition: color 0.3s ease;
}

.testimonial-block-two .share-icon:hover{
    color: #ffcf21;
}

.testimonial-block-two .share-dropdown{
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px;
    display: none;
    flex-direction: row;
    gap: 6px;
    z-index: 100;
}

.testimonial-block-two .share-option{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #787878;
    transition: all 0.3s ease;
}

.testimonial-block-two .share-option:hover{
    background: rgba(255, 207, 33, 0.15);
    color: #ffcf21;
    transform: scale(1.1);
}

.testimonial-block-two .share-option i{
    font-size: 14px;
}

/* Responsive */
@media (max-width: 767px){
    .testimonial-block-two .google-link img{
        width: 28px;
        height: 28px;
    }
    
    .testimonial-block-two .share-icon{
        font-size: 14px;
    }
    
    .testimonial-block-two .share-option{
        width: 28px;
        height: 28px;
    }
    
    .testimonial-block-two .share-option i{
        font-size: 12px;
    }
}

/* Review Actions - Google Icon & Share */
.testimonial-block-two .lower-box .review-actions{
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-block-two .lower-box .google-link img{
    width: 32px;
    height: 32px;
    transition: transform 300ms ease;
}

.testimonial-block-two .lower-box .google-link:hover img{
    transform: scale(1.1);
}

.testimonial-block-two .lower-box .share-wrapper{
    position: relative;
}

.testimonial-block-two .lower-box .share-icon{
    background: transparent;
    border: none;
    font-size: 16px;
    color: #787878;
    cursor: pointer;
    padding: 5px;
    transition: color 300ms ease;
}

.testimonial-block-two .lower-box .share-icon:hover{
    color: #ffcf21;
}

.testimonial-block-two .lower-box .share-dropdown{
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border: 1px solid rgba(110,110,110,0.30);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 300ms ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    gap: 6px;
}

.testimonial-block-two .lower-box .share-wrapper:hover .share-dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.testimonial-block-two .lower-box .share-option{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    color: var(--text-color);
    border-radius: 50%;
    transition: all 300ms ease;
}

.testimonial-block-two .lower-box .share-option:hover{
    background: rgba(255, 207, 33, 0.15);
    color: #ffcf21;
    transform: scale(1.1);
}

.testimonial-block-two .lower-box .share-option i{
    font-size: 14px;
}

/* Responsive Styles */
@media only screen and (max-width: 767px){
    .testimonial-block-two .inner-box{
        height: 320px;
        padding: 30px;
    }
    
    .testimonial-block-two .inner-box .text-box{
        height: 140px;
        padding-right: 8px;
    }
    
    .testimonial-block-two .inner-box .text-box p{
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }
    
    .testimonial-block-two .lower-box .google-link img{
        width: 28px;
        height: 28px;
    }
    
    .testimonial-block-two .lower-box .share-icon{
        font-size: 14px;
    }
    
    .testimonial-block-two .lower-box .share-dropdown{
        min-width: 140px;
        font-size: 13px;
    }
    
    .testimonial-block-two .lower-box .review-actions{
        gap: 8px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px){
    .testimonial-block-two .inner-box{
        height: 390px;
    }
    
    .testimonial-block-two .inner-box .text-box{
        height: 150px;
    }
}
