/*
Theme Name: Beaver Builder Child Theme
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here...Remember to change the Version number above! */

.h2-margin {
	border-left: 6px solid orange !important;
	padding-left: 10px !important;
	font-size: 35px !important;
}

/* Testimonials */

.testimonial {
    position: relative;
}

.testimonial__actions {
    margin-top: clamp(20px, 8.89px + 2.22vw, 40px);
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: clamp(10px, 7.22px + 0.56vw, 15px);
}

.testimonial__control {
    font-size: 0 !important;
    display: inline-flex;
    border-radius: 50%;
    width: clamp(38px, 34.67px + 0.67vw, 44px);
    height: clamp(38px, 34.67px + 0.67vw, 44px);
    box-shadow: 4.57px 5.48px 27.39px 0px #8382801F;
    background-color: #fff;
    transition: .4s all ease-in-out;
    border: none;
    outline: none;
    background-image: url('https://wordpress-564672-5810172.cloudwaysapps.com/wp-content/uploads/2025/09/Vector-1.svg');

    background-size: clamp(6px, 4.89px + 0.22vw, 8px);
    background-repeat: no-repeat;
    background-position: center;

    &:hover {
        background: #F3AB1C;
        box-shadow: 2px 7px 20px 0px #F3AB1C54;
        border: none;
        background-image: url('https://wordpress-564672-5810172.cloudwaysapps.com/wp-content/uploads/2025/09/Vector-3.svg');
        background-color: #F3AB1C;
        background-size: clamp(6px, 4.89px + 0.22vw, 8px);
        background-repeat: no-repeat;
        background-position: center;
    }

    &:focus {
        outline: none;
        background-color: #fff;
        border: none;
        background-image: url('/wp-content/uploads/2025/09/Vector-1.svg');
    }
}

.testimonial__control--next {
    transform: rotate(180deg);
}

.testimonial-card {
    display: flex;
    align-items: center;
    justify-content: center;

    >div {
        justify-content: center;
        align-items: center;
        font-weight: bold;
        aspect-ratio: 3/2;
        max-width: 694px;
        background: #fff;
        border-radius: 33px;
        padding: 14px;
        width: 100%;
    }
}

.testimonial-video-wrapper {
    position: relative;
    aspect-ratio: 2 / 1;

    img,
    iframe {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 27.2px;
        overflow: hidden;
    }
}

.testimonial-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: clamp(20px, 14.44px + 1.11vw, 30px) clamp(15px, 9.44px + 1.11vw, 25px);
    color: #fff;
    background: linear-gradient(177.51deg, rgba(0, 0, 0, 0) 41.7%, rgba(0, 0, 0, 0.33) 101.19%);
    opacity: 0;
    border-radius: 27px;
}

.swiper-slide-active .testimonial-content,
.testimonial-list .testimonial-content {
    opacity: 1;
}

.testimonial-name {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 17.56px + 0.89vw, 30px);
    line-height: 1;
    text-transform: capitalize;
    background-color: #373E50;
    display: inline-block;
    width: fit-content;
    padding: clamp(8px, 6.33px + 0.33vw, 11px) clamp(20px, 14.44px + 1.11vw, 30px);
    left: calc(clamp(15px, 9.44px + 1.11vw, 25px) * -1);
    position: relative;
    margin-bottom: clamp(8px, 5.78px + 0.44vw, 12px);
}

.testimonial-postion {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
    font-style: Italic;
    font-size: clamp(14px, 13.89px + 0.22vw, 18px);
    line-height: 1;
    text-transform: capitalize;
}

.testimonial-quate {
    font-family: "Lora", sans-serif;
    font-weight: 500;
    font-style: Italic;
    font-size: clamp(15px, 12.22px + 0.56vw, 20px);
    line-height: 1.89;
    padding-left: clamp(45px, 32.78px + 2.44vw, 67px);
    position: relative;
    padding-block: clamp(20px, 16.11px + 0.78vw, 27px) clamp(15px, 12.22px + 0.56vw, 20px);

    &:before {
        content: '';
        position: absolute;
        display: block;
        background-image: url(https://wordpress-564672-5810172.cloudwaysapps.com/wp-content/uploads/2025/09/Vector.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 53% 50%;
        left: clamp(7px, 5.33px + 0.33vw, 10px);
        top: clamp(28px, 23.56px + 0.89vw, 36px);
        width: clamp(30px, 24.44px + 1.11vw, 40px);
        height: clamp(24px, 19.56px + 0.89vw, 32px);
    }
}

.testimonial-list .testimonial-quate:before {
    top: clamp(40px, 40px + 0.89vw, 36px);
}

.play-button {
    position: absolute;
    width: clamp(55px, 47.78px + 1.44vw, 68px);
    height: clamp(55px, 47.78px + 1.44vw, 68px);
    background: linear-gradient(69.61deg, #2A67A9 42.32%, #05B0C3 128.68%);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;

    &:before {
        content: '';
        display: block;
        background-image: url('https://wordpress-564672-5810172.cloudwaysapps.com/wp-content/uploads/2025/09/Polygon-7.svg');
        background-repeat: no-repeat;
        background-position: 55% 50%;
        inset: 0;
        position: absolute;
        width: 100%;
        z-index: 1;
    }
}

.wave {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: clamp(65px, 15.40px + 6.47vw, 93px);
    height: clamp(65px, 15.40px + 6.47vw, 93px);
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    box-shadow: 5.91px 16.56px 35.48px 0px rgba(0, 0, 0, 0.48);
    opacity: 0.2;

}

.testimonial.testimonial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        align-items: unset;
    }

    .play-button {
        width: 45px;
        height: 45px;
        left: initial;
        top: initial;
        transform: none;
        right: 20px;
        bottom: -22.5px;

        &:before {
            background-size: 8px;
        }
    }

    .wave {
        left: initial;
        top: initial;
        transform: none;
        right: 12px;
        bottom: -31px;
        width: 62px;
        height: 62px;
        background: rgba(255, 255, 255, 1);
        border-radius: 50%;
        box-shadow: 5.91px 16.56px 35.48px 0px rgba(0, 0, 0, 0.48);
        opacity: 0.2;

    }

    .testimonial-quate {
        padding-top: 35px;
    }

    @media (max-width: 991px) {
        .testimonial-card>div {
            max-width: 100%;
            aspect-ratio: auto;
        }
    }

    @media (max-width: 767px) {
        gap: 20px;

        .testimonial-card {
            flex: 0 0 100%;
        }
    }

}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-borders {
    0% {
        transform: translateZ(0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translateZ(0) scale(1.5);
        opacity: 0;
    }
}
