/* ==========================================================================
   THL Video Testimonial Carousel
   Pixel-perfect match to Elementor post-87715 + card template post-85906
   Zero-dependency, mobile-first
   ========================================================================== */

/* --- Page Section (.testimonials-modal / 33ec65b) --- */
.thlvc {
    --_font: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    border-radius: 0;
    padding: 0 0 1em 0;
    font-family: var(--_font);
    color: #fff;
    box-sizing: border-box;
}

.thlvc,
.thlvc [class^="thlvc"],
.thlvc [class*=" thlvc"],
.thlvc [class^="thlvc"]::before,
.thlvc [class^="thlvc"]::after {
    box-sizing: border-box;
}

/* --- Header container (ea18049) --- */
.thlvc__header {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0 1em;
    width: 100%;
    padding-bottom: 0.75em;
}

/* --- Pill badge (be57a80) --- */
.thlvc__badge {
    display: inline-flex;
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 0.9em 0.9em;
    border: 1px solid rgba(173, 220, 230, 0.2);
    border-radius: 4px;
    font-family: var(--_font);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0;
    color: #ADB5BD;
    margin: 0;
}

/* --- Hero name in header (9a1a8b4) --- */
.thlvc__hero-name {
    font-family: var(--_font);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #DEE2E6;
    margin: 0;
    padding: 0.5em 0 0 0;
    transition: opacity 0.25s ease;
}

/* --- Hero subtitle in header (4b95432) --- */
.thlvc__hero-summary {
    display: flex;
    min-height: 32px;
    align-items: flex-start;
    font-family: var(--_font);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3em;
    color: #ADB5BD;
    margin: 0;
    transition: opacity 0.25s ease;
}

/* --- Video + content row container (695d2d9) --- */
.thlvc__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    gap: 1em;
    padding: 0;
    align-self: flex-start;
}

/* ==========================================================================
   Video Player (2fa28da)
   ========================================================================== */
.thlvc__video-wrap {
    width: 100%;
    padding: 0 1em;
}

.thlvc__hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    transition: opacity 0.3s ease;
}

/* YouTube lite-embed facade */
.thlvc__yt-facade {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: #000 center / cover no-repeat;
    position: relative;
}

/* Overlay */
.thlvc__yt-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-in-out;
}

.thlvc__yt-facade:hover .thlvc__yt-overlay {
    opacity: 0.8;
}

/* Play icon circle */
.thlvc__yt-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    color:#FFF;
}

/* Pulsing ring */
.thlvc__yt-play::before {
    content: "";
    color:#FFF !important;
    position: absolute;
    inset: -4px;
    border-radius: 100%;
    border: 2px solid rgba(255, 255, 255, 0.39);
}

.thlvc__yt-play svg {
    width: 30px;
    height: 30px;
    fill: #fff!important;
    margin-left: 3px;
}

.thlvc__yt-facade:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Iframe replaces facade on play */
.thlvc__hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Divider between video and cards (fce32e5)
   ========================================================================== */
.thlvc__section-divider {
    width: 100%;
    padding: 0 1em;
}

.thlvc__section-divider hr {
    border: none;
    border-top: 1px solid #374151;
    margin: 0;
}

/* ==========================================================================
   Card Carousel Track (7368ce4 / .testimonials-loop-carousel)
   ========================================================================== */
.thlvc__carousel {
    position: relative;
    width: 100%;
}

.thlvc__track {
    display: flex;
    gap: 0;
    padding-left: 1em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.thlvc__track::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Individual Card — matches Elementor template #85906 exactly
   ========================================================================== */

/* Outer card container */
.thlvc__card {
    flex: 0 0 325px;
    min-width: 325px;
    max-width: 325px;
    scroll-snap-align: start;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: 300ms;
    padding: 0 0.5em;
}

/* Gold accent + inner structure */
.thlvc__card-accent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* Gold left border */
    border-left: 3px solid #FFDA30;
    border-radius: 0 15px 15px 0;
    /* Box shadow */
    box-shadow:
        0 4px 24px 0 rgba(0, 0, 0, 0.40),
        0 12px 48px 0 rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.thlvc__card--active .thlvc__card-accent {
    box-shadow:
        0 4px 24px 0 rgba(0, 0, 0, 0.50),
        0 12px 48px 0 rgba(0, 0, 0, 0.40),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Inner container (f950dc0) */
.thlvc__card-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border-style: solid;
    border-width: 1px 1px 1px 0;
    border-color: rgba(255, 255, 255, 0.25);
    border-radius: 0 15px 15px 0;
    padding: 1em;
    gap:0.75em;
}

/* --- Top row: avatar + quote (6cfd1dfd) --- */
.thlvc__card-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75em;
    width: 100%;
}

/* Avatar (40d27510) */
.thlvc__avatar {
    flex-shrink: 0;
    width: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    border-radius: 100px !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Quote (6568e4d0) — image-box-description */
.thlvc__quote {
    flex-grow: 0;
    flex-shrink: 1;
    width: 100%;
    margin: 0;
    font-family: var(--_font);
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4em;
    letter-spacing: 0;
    color: #ADB5BD;
    text-align: start;
    /* 3-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card divider (354144ce) --- */
.thlvc__card-divider {
    border: none;
    border-top: 1px solid rgba(173, 181, 189, 0.2);
    margin: 0;
    padding-bottom: 0.5em;
    width: 100%;
}

/* --- Bottom row: meta + button (27859027) --- */
.thlvc__card-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 1em;
    width: 100%;
}

/* Meta container (1f9b1e3b) */
.thlvc__meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Name (683b68a7) */
.thlvc__name {
    margin: 0;
    font-family: var(--_font);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    line-height: 1;
    color: #EFF6FF;
}

/* Summary (62197c09) */
.thlvc__summary {
    margin: 0;
    width: 100%;
    text-align: start;
    font-family: var(--_font);
    font-size: 0.6rem;
    font-weight: 400;
    line-height: 1.3em;
    letter-spacing: 0;
    color: #C6CDD3;
}

/* --- Watch buttons --- */
.thlvc__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--_font);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    color: #FFDA30;
    fill: #FFDA30;
    background-color: transparent;
    border: 1px solid #6C757D;
    border-radius: 4px;
    padding: 0.6em 1em;
    white-space: nowrap;
    box-shadow: 5px 2px 10px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
}

.thlvc__btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
}

.thlvc__btn-icon svg {
    width: 0.625rem;
    height: auto;
    fill: currentColor;
}

/* Desktop button hidden on mobile/tablet */
.thlvc__btn--full { display: none; }

/* Mobile button: visible, auto width, flex-grow */
.thlvc__btn--short {
    display: inline-flex;
    width: auto;
    flex-grow: 1;
    flex-shrink: 0;
    align-self: flex-start;
    justify-content: center;
}

/* ==========================================================================
   Dot Pagination
   ========================================================================== */
.thlvc__dots {
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin-top: 12px;
    padding-left: 1.5em;
    flex-wrap: wrap;
}

.thlvc__dot {
    height: 8px;
    width: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    border: none;
    background: #ADB5BD;
    cursor: pointer;
    list-style: none;
    overflow: hidden;
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.thlvc__dot--visible {
    width: 8px;
    opacity: 1;
    margin: 0 3px;
    pointer-events: auto;
}

.thlvc__dot--active {
    width: 28px;
}

.thlvc__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   Tablet (≤1024px, ≥768px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .thlvc {
        gap: 2em;
        padding: 3em 0;
    }
    .thlvc__badge {
        padding: 0.6em 0.6em;
        border-width: 1px;
        border-radius: 4px;
        font-size: 0.6rem;
        letter-spacing: 0;
    }
    .thlvc__content {
        flex-direction: column;
        gap: 1em;
        padding: 0;
    }
    .thlvc__card-top { gap: 0.75em; }
    .thlvc__card-inner { padding: 1em; }
}

/* ==========================================================================
   Desktop (≥1025px)
   ========================================================================== */
@media (min-width: 1025px) {
    .thlvc {
        width: calc(100% - 1em);
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        gap: 4em;
        border-radius: 24px;
        padding: 0 0 5em 0;
        box-shadow:
            0 4px 24px 0 rgba(0, 0, 0, 0.40),
            0 12px 48px 0 rgba(0, 0, 0, 0.30),
            0 0 0 1px rgba(255, 255, 255, 0.03);
    }

    .thlvc__header {
        padding: 0;
        gap: 0.5em;
        align-items: center;
    }

    .thlvc__badge {
        padding: 0.6em 1.25em;
        border: 0.57px solid rgba(173, 220, 230, 0.2);
        border-radius: 100px;
        font-size: 0.875rem;
        letter-spacing: 1px;
    }

    .thlvc__hero-name { font-size: 1.75rem; }
    .thlvc__hero-summary { font-size: 1rem; line-height: 1; }

    .thlvc__content {
        flex-direction: row;
        gap: 2em;
        padding: 0 2em;
    }

    .thlvc__video-wrap {
        padding: 0;
        flex: 1 1 auto;
    }

    .thlvc__hero-video {
        aspect-ratio: 9 / 16;
        max-height: 750px;
    }

    .thlvc__section-divider { display: none; }

    .thlvc__carousel { flex: 1 1 auto; }

    .thlvc__track {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 800px;
        min-width: 525px;
        padding-left: 0;
        scroll-snap-type: y mandatory;
    }

    .thlvc__card {
        flex: 0 0 auto;
        min-width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        padding: 0.5em 0;
    }

    .thlvc__card-top { gap: 1.5em; }
    .thlvc__avatar { width: 75px; max-width: 75px; height: 75px; }
    .thlvc__quote {
        width: 75%;
        max-width: 75%;
        font-size: 0.875rem;
        line-height: 1.5em;
    }
    .thlvc__card-inner { padding: 1.5em 1em; }
    .thlvc__card-divider { padding-bottom: 1em; }
    .thlvc__card-bottom {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
    }
    .thlvc__meta {
        width: 65%;
        flex: 0 0 65%;
        gap: 10px;
    }
    .thlvc__name {
        font-size: 1.1255rem;
        padding-top: 0.5em;
    }
    .thlvc__summary { font-size: 0.75rem; }

    .thlvc__btn--full { display: inline-flex; }
    .thlvc__btn--short { display: none; }

    .thlvc__dots {
        display:flex;
        justify-content: flex-start;
        padding-left: 3.5em;
    }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.thlvc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483636;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1em;
}

.thlvc-lightbox--open {
    opacity: 1;
    visibility: visible;
}

.thlvc-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.thlvc-lightbox--open .thlvc-lightbox__inner {
    transform: scale(1);
}

.thlvc-lightbox__inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.thlvc-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
}

.thlvc-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.thlvc-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .thlvc__track { scroll-behavior: auto; }
    .thlvc__card,
    .thlvc__dot,
    .thlvc__yt-overlay,
    .thlvc__hero-name,
    .thlvc__hero-summary {
        transition-duration: 0s;
    }
}