/* ============================================================
   JV SLIDER — Frontend Styles v1.0.2
   Fixes:
     1. Arrow icons always visible — removed overflow:hidden,
        icon sized relative to button via font-size on i/svg
     2. Dots are perfect circles — use span not button,
        explicit box-sizing and all UA resets
     3. Tab label colors default to dark (works on light bg)
     4. Top label never hidden at any breakpoint
   ============================================================ */

/* ── Wrapper ── */
.jv-slider-wrapper {
    position: relative;
    width: 100%;
}

/* ══════════════════════════════════════
   TAB BAR
══════════════════════════════════════ */
.jv-tabs {
    display: flex;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0;
    margin: 0;
}

.jv-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    position: relative;
    gap: 3px;
    transition: background-color 0.25s ease;
}

/* Active underline */
.jv-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #E85D26;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.jv-tab-btn.jv-active::after {
    transform: scaleX(1);
}

/* Autoplay progress bar */
.jv-tab-progress {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: #E8507A;
    z-index: 2;
    pointer-events: none;
}

/* Top label */
.jv-tab-top {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.3;
    transition: color 0.25s ease;
}

/* Bottom label */
.jv-tab-bottom {
    display: block;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.2;
    transition: color 0.25s ease;
}

/* Active state */
.jv-tab-btn.jv-active .jv-tab-top,
.jv-tab-btn.jv-active .jv-tab-bottom {
    color: #000000;
}

/* ══════════════════════════════════════
   SLIDER OUTER + TRACK
══════════════════════════════════════ */
.jv-slider-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.jv-slider-outer.jv-dragging {
    cursor: grabbing;
}

.jv-track {
    display: flex;
    will-change: transform;
}

.jv-track.jv-dragging {
    transition: none !important;
}

.jv-slide {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: 500px;
    background-color: #1A1208;
    position: relative;
}

.jv-slide > .elementor {
    height: 100%;
    width: 100%;
}

/* ══════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════ */
.jv-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 8px;
}

/* ── Arrows ──────────────────────────
   FIX: NO overflow:hidden — that clips
   the icon. Icon is sized via font-size
   set to ~40% of button size by default.
   Button size & icon size are independent
   Elementor slider controls.
────────────────────────────────────── */
.jv-arrow {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    /* Size — Elementor "Button Size" slider overrides width+height */
    width: 44px;
    height: 44px;

    /* Shape */
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);

    /* Colour */
    background-color: rgba(0, 0, 0, 0.06);
    color: #333333;

    cursor: pointer;

    /* NO overflow:hidden — it clips the icon font */
    transition: background-color 0.22s ease, color 0.22s ease,
                border-color 0.22s ease, transform 0.15s ease;
}

.jv-arrow:hover {
    background-color: #E85D26;
    color: #ffffff;
    border-color: #E85D26;
    transform: scale(1.08);
}

/* ── Icon inside arrow ──
   font-size drives icon size.
   Elementor "Icon Size" slider targets these selectors.
   Default ~40% of button = 18px for 44px button.
────────────────────────────────────── */
.jv-arrow i {
    font-size: 18px;
    line-height: 1;
    display: block;
    pointer-events: none;
}

.jv-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
    fill: currentColor;
}

/* ── Dots ────────────────────────────
   FIX: dots are <button> elements.
   Browsers apply min-width, padding,
   border — all must be zeroed out
   explicitly to guarantee circle shape.
────────────────────────────────────── */
.jv-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.jv-dot {
    /* No UA stylesheet to fight — it's a span, not a button */
    box-sizing: border-box;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.jv-dot.jv-active {
    background-color: #E85D26;
    transform: scale(1.4);
}

/* ══════════════════════════════════════
   RESPONSIVE SHELL
   Slide content is handled by the
   Elementor template — not here.
   No content is ever hidden by the plugin.
══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .jv-tab-bottom { font-size: 13px; }
    .jv-tab-top    { font-size: 10px; }
}

/* Mobile */
@media (max-width: 767px) {
    .jv-tabs { border-bottom-width: 1px; }

    .jv-tab-btn {
        padding: 10px 8px;
        align-items: center;
    }

    .jv-tab-top    { font-size: 9px;  letter-spacing: 0.08em; }
    .jv-tab-bottom { font-size: 11px; letter-spacing: 0.02em; }

    .jv-arrow { width: 38px; height: 38px; }
    .jv-arrow i   { font-size: 15px; }
    .jv-arrow svg { width: 15px; height: 15px; }

    .jv-nav-row { gap: 12px; padding: 12px 0 6px; }
}

/* Small mobile */
@media (max-width: 400px) {
    .jv-tab-top    { font-size: 8px; }
    .jv-tab-bottom { font-size: 10px; }

    .jv-arrow { width: 32px; height: 32px; }
    .jv-arrow i   { font-size: 13px; }
    .jv-arrow svg { width: 13px; height: 13px; }
}
