.testimonials-wrapper {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 0 60px;
    z-index: 9;
    position: relative;

}

.testimonial-item {
    display: flex;
    width: 1070px;
    max-width: 1070px;
    justify-content: center;
    align-items: center;
    align-items: center;
    gap: 0;
    margin: 0 auto 110px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    max-width: 1080px;
}

.testimonial-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-item:last-child {
    margin-bottom: 0;
}

.layout-left-poster .testimonial-video {
    order: 1;
}

.layout-left-poster .testimonial-content {
    order: 2;
}

.layout-right-poster .testimonial-video {
    order: 2;
}

.layout-right-poster .testimonial-content {
    margin-left: 0;
    margin-right: -45.763px;
}

.layout-right-poster .testimonial-content {
    padding: 26.695px 76.27px 26.695px 49.57px;
    order: 1;
}

.testimonial-video {
    position: relative;
}

.video-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 560px;
    height: 360px;

    border: 5px solid #FFF;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 3.051px 3.051px rgba(0, 0, 0, 0.08);
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 69px;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button svg {
    width: 69px;
    height: 69px;
}

.video-poster-link:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Content Section */
.testimonial-content {
    margin-left: -45.763px;
    background-color: #FFF;
    display: flex;
    max-width: 610.17px;
    min-height: 305.085px;
    padding: 57.92px 34.322px 52.25px 76.271px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;
    flex: 1 0 0;
    box-shadow: 0 3.051px 3.051px 0 rgba(0, 0, 0, 0.25);
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.testimonial-text p {
    margin-bottom: 12px;
    color: #212427;
    font-size: 20.593px;
    font-style: normal;
    font-weight: 400;
    line-height: 31.271px;
}

.testimonial-text p strong {
    color: #505050;
    font-size: 12.966px;
    font-weight: 700;
    line-height: 100%;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
}

.testimonial-text blockquote {
    margin: 0;
    padding: 0;
    border-left: 4px solid #e53935;
    padding-left: 24px;
    font-style: italic;
    color: #555;
}

.testimonial-text strong {
    color: #222;
    font-weight: 600;
}

.testimonials-req {
    align-content: center;
    margin-left: 29px;
    position: relative;
}

.testimonials-read-more {
    align-content: center;
    display: flex;
    justify-content: center;
}

.btn-testimonials {
    color: #FFF;
    text-align: center;
    font-family: "Open Sans";
    font-size: 24.911px;
    font-style: normal;
    font-weight: 400;
    line-height: 36.711px;
    /* 147.368% */
    letter-spacing: 0.747px;
    text-decoration: none;
    display: flex;



    border-radius: 0 6.556px 6.556px 0;
    background: #016F45;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.15s ease-in-out;




    padding: 6.556px 13.111px 6.556px 32.778px;
    justify-content: center;
    align-items: center;
    gap: 6.556px;

}

.btn-testimonials span {
    z-index: 3;
    position: relative;
}

.btn-testimonials:hover {
    text-decoration: none;
    color: #FFF;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.44);
}

.testimonials-req {
    position: relative;
}

.testimonials-req::before {
    z-index: 2;
    position: absolute;
    width: 59px;
    height: 59px;
    left: -30px;
    top: -3.5px;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='59' viewBox='0 0 60 59' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='29.6667' cy='29.5' r='28.1889' fill='white' stroke='%23016F45' stroke-width='2.62222'/%3E%3Cg clip-path='url(%23clip0_364_1169)'%3E%3Cpath d='M19.1778 17.0444C17.3699 17.0444 15.9 18.5143 15.9 20.3222V35.0722C15.9 36.8801 17.3699 38.35 19.1778 38.35H24.0945V42.4472C24.0945 42.7596 24.2686 43.0413 24.5452 43.1796C24.8217 43.3179 25.1546 43.2871 25.4056 43.1028L31.7409 38.35H38.8445C40.6524 38.35 42.1222 36.8801 42.1222 35.0722V20.3222C42.1222 18.5143 40.6524 17.0444 38.8445 17.0444H19.1778Z' fill='%23016F45'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_364_1169'%3E%3Crect width='26.2222' height='26.2222' fill='white' transform='translate(15.9 17.0444)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
}

.btn-testimonials::after {
    content: "";
    position: absolute;
    top: -75px;
    left: -100%;
    /* start fully left */
    width: 393px;
    /* wide enough to cover when sliding */
    height: 393px;
    background: #FFF;
    border-radius: 393.21px;
    /* ellipse style */
    transition: transform 0.15s ease-in-out;
    transform: translateX(-50%);
    z-index: 0;
    /* behind text */
}

/* On hover, slide it in */
.btn-testimonials:hover::after {
    transform: translateX(60%);
}

.btn-testimonials:hover {
    color: #212427;
}


@media (max-width: 1240px) {
    .testimonial-item{
        width: 100%;
    }
}
@media (max-width: 968px) {
    .testimonial-item {
        flex-direction: column;
        gap: 0;
        margin-bottom: 50px;
    }
    .testimonial-content{
        min-height: auto;
    }
    .layout-right-poster .testimonial-content,
    .layout-left-poster .testimonial-content{
        margin: 0;
    }
    .video-poster-link,
    .testimonial-video{
        width: 100%;
    }
    .layout-left-poster .testimonial-video,
    .layout-right-poster .testimonial-video {
        order: 1;
    }

    .layout-left-poster .testimonial-content,
    .layout-right-poster .testimonial-content {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 40px;
    }

    .testimonial-text {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .video-poster-link{
        height: 245px;
    }

    .play-button {
        width: 45px;
        height: 45px;
    }


}
