/* ==========================================================================
   Testimonial Carousel Styles
   ========================================================================== */

.testimonial-carousel-container {
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.section-top-heading {
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   Main Wrapper - Flex Layout
   ========================================================================== */
.testimonial-carousel-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: var(--tc-gap, 40px);
    padding: 48px 0;
}

/* ==========================================================================
   Left Column: Video Carousel
   ========================================================================== */
.video-carousel-column {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
}

.tc-nav-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

/* Navigation Arrows */
.tc-button-prev,
.tc-button-next {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--iabt-text-heading, #333);
    background: transparent;
}

.tc-button-prev:hover,
.tc-button-next:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.tc-button-prev.swiper-button-disabled,
.tc-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================================
   Swiper Container
   ========================================================================== */
.swiper[class*="testimonial-swiper"] {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.swiper-slide {
    height: auto;
}

.video-slide-item {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Video Elements */
.tc-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.tc-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* ==========================================================================
   Right Column: Content Area
   ========================================================================== */
.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.content-subtitle {
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--tc-subtitle-color, #888);
}

.content-title {
    margin: 0 0 20px 0;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: var(--tc-title-color, #222);
}

.content-description {
    line-height: 1.7;
    font-size: 16px;
    color: var(--tc-desc-color, #555);
}

.content-description p {
    margin: 0 0 1em 0;
}

.content-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Mobile Styles - Coverflow Effect
   ========================================================================== */
@media (max-width: 767px) {
    .testimonial-carousel-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .video-carousel-column {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .content-column {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
        padding: 0 15px;
    }

    /* Hide navigation arrows on mobile */
    .tc-button-prev,
    .tc-button-next {
        display: none !important;
    }

    /* Nav wrapper becomes just the swiper */
    .tc-nav-wrapper {
        display: block;
    }

    /* Coverflow Swiper Adjustments */
    .swiper[class*="testimonial-swiper"] {
        overflow: visible;
        padding: 30px 0;
    }

    .swiper-slide {
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0.5;
        transform: scale(0.85);
    }

    .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
        z-index: 10;
    }

    .video-slide-item {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        border-radius: 16px;
    }

    .tc-video {
        border-radius: 16px;
    }

    /* Content adjustments for mobile */
    .content-subtitle {
        font-size: 12px;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .content-description {
        font-size: 14px;
    }
}

/* ==========================================================================
   Tablet Adjustments
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-carousel-column {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .content-column {
        flex: 0 0 55%;
        max-width: 55%;
    }
}
