/* Video Carousel Styles */
.video-carousel-wrapper {
    width: 100%;
    margin: 0 auto;
}

.video-carousel-container {
    position: relative;
    width: 100%;
    height: fit-content;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.video-wrapper {
    position: relative;
    flex: 0 0 50%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe,
.video-wrapper video,
.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-image {
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg,
.play-button i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.testimonial-content {
    flex: 0 0 40%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-text:before {
    content: '"';
    font-size: 24px;
    color: #007bff;
    margin-right: 4px;
}

.testimonial-text:after {
    content: '"';
    font-size: 24px;
    color: #007bff;
    margin-left: 4px;
}

.person-info {
    padding-top: 16px;
}

.person-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.person-title {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Dot Navigation */
.carousel-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Hide CTA button */
.cta-button {
    display: none;
}


.person-title {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.person-company {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    margin-top: 4px;
}


.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

.testimonial-text:before {
    content: '"';
    font-size: 24px;
    color: #007bff;
    margin-right: 4px;
}

.testimonial-text:after {
    content: '"';
    font-size: 24px;
    color: #007bff;
    margin-left: 4px;
}

/* Hide quotes when class is added */
.video-carousel-wrapper.hide-quotes .testimonial-text:before,
.video-carousel-wrapper.hide-quotes .testimonial-text:after {
    content: '';
    display: none;
}

.person-info {
    /* padding-top removed - now controlled via Elementor */
}

.person-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    /* margin-bottom removed - now controlled via Elementor */
}

.person-title {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    /* margin-bottom removed - now controlled via Elementor */
}

.person-company {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    /* margin-top removed - now controlled via Elementor */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .carousel-slide {
        flex-direction: column;
        gap: 30px;
    }

    .video-wrapper,
    .testimonial-content {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        gap: 20px;
    }

    .testimonial-content {
        flex: 0 0 auto;
        padding: 24px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .person-name {
        font-size: 16px;
    }

    .person-title {
        font-size: 13px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .video-carousel-wrapper {
    }

    .testimonial-content {
        padding: 20px;
    }
}

