/* ═══════════════════════════════════════════════════════════════════
   Excel Hearing Video Testimonials – 3D Carousel Styles
   No background colours — carousel is transparent, inherits from page.
   ═══════════════════════════════════════════════════════════════════ */

.eht-section {
    --eht-accent:   #f5c518;
    --eht-card-bg:  #1a1a1a;

    --card-w:       220px;
    --card-h:       320px;
    --card-gap:     24px;
    --card-radius:  20px;

    position: relative;
    overflow: hidden;
    font-family: inherit;
    box-sizing: border-box;
    /* No background — inherits from the page */
}

/* ── Stage (viewport) ─────────────────────────────────────────────────── */
.eht-carousel-stage {
    position: relative;
    height: calc(var(--card-h) + 40px);
    display: flex;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

/* ── Track — a plain flex row; JS slides it via translateX so the active  *
 *   card sits centred. Cards are normal flex items, so they can never    *
 *   overlap regardless of scale or viewport width.                      */
.eht-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--card-gap);
    height: var(--card-h);
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}

/* Used briefly to snap the track back into the "real" card range after
   sliding through a cloned card, without an animated jump being visible. */
.eht-track.eht-no-transition,
.eht-track.eht-no-transition .eht-card {
    transition: none !important;
}

/* ── Card — the active card scales up, others shrink and fade out the    *
 *   further they are from it.                                          */
.eht-card {
    position: relative;
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    height: var(--card-h);
    border-radius: var(--card-radius);
    background: var(--eht-card-bg);
    overflow: hidden;
    cursor: pointer;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94),
                opacity  .5s ease;
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
}

/* Defensive resets — some themes apply a default accent colour to bare
   <button> elements on hover/focus/active; nothing in this stylesheet
   should ever tint the thumbnail itself. */
.eht-card:hover,
.eht-card:focus,
.eht-card:active {
    background: var(--eht-card-bg) !important;
}

/* ── Thumbnail — fills the entire card, edge to edge ─────────────────── */
.eht-card-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #ccc;
}

.eht-thumb-canvas,
.eht-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Title overlay (gradient banner, bottom of the thumbnail) ────────── */
.eht-card-title-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 55%, transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 2;
}

.eht-card[data-pos="center"] .eht-card-title-wrap,
.eht-card:hover .eht-card-title-wrap { opacity: 1; }

.eht-card-title {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    text-transform: uppercase;
    font-family: inherit;
    letter-spacing: -1px;
}

/* ── Play button ────────────────────────────────────────────────────── */
.eht-play-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity .25s;
}

.eht-play-btn:hover,
.eht-play-btn:focus,
.eht-play-btn:active {
    background: transparent !important;
    outline: none;
}

.eht-play-btn svg {
    width: 52px;
    height: 52px;
    color: #fff;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.7));
}

.eht-card[data-pos="center"] .eht-play-btn { opacity: 1; }

/* ── Rating badge (small floating pill, top-right corner) ────────────── */
.eht-star-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: var(--eht-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
    border-radius: 20px;
    z-index: 2;
}

/* ── Navigation Arrows ──────────────────────────────────────────────── */
.eht-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background .2s, transform .2s;
}

.eht-nav svg    { width: 20px; height: 20px; }
.eht-nav-prev   { left: 10px; }
.eht-nav-next   { right: 10px; }
.eht-nav:hover  { background: rgba(0,0,0,.3); transform: translateY(-50%) scale(1.08); }

/* ── Dot indicators ─────────────────────────────────────────────────── */
.eht-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.eht-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}

.eht-dot.active {
    background: var(--eht-accent);
    transform: scale(1.4);
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.eht-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.eht-modal[hidden] { display: none; }

.eht-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.eht-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.8);
    animation: ehtModalIn .3s cubic-bezier(.25,.46,.45,.94);
}

@keyframes ehtModalIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1);   }
}

.eht-modal-video {
    width: 100%;
    display: block;
    max-height: 80vh;
    background: #000;
}

.eht-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
}
.eht-modal-close:hover { background: rgba(255,255,255,.3); }
.eht-modal-close svg   { width: 18px; height: 18px; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.eht-empty {
    text-align: center;
    color: #888;
    padding: 40px;
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .eht-section {
        --card-w:    170px;
        --card-h:    250px;
    }
    .eht-nav-prev { left: 2px; }
    .eht-nav-next { right: 2px; }
}
