/* =========================================================
   Elementor Tab Slider v2 — Stylesheet
   ========================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.ets-tab-slider-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ets-tab-slider-wrapper.ets-position-left,
.ets-tab-slider-wrapper.ets-position-right {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

/* ── Tab Navigation ──────────────────────────────────────── */
.ets-tab-nav {
    width: 100%;
}

.ets-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Left/Right: vertical stack */
.ets-position-left .ets-tab-nav,
.ets-position-right .ets-tab-nav {
    flex-shrink: 0;
    min-width: 160px;
    max-width: 220px;
}

.ets-position-left .ets-nav-inner,
.ets-position-right .ets-nav-inner {
    flex-direction: column;
    align-items: stretch;
}

/* Nav spacing */
.ets-position-top    .ets-tab-nav { padding-bottom: 24px; }
.ets-position-bottom .ets-tab-nav { padding-top: 24px; }
.ets-position-left   .ets-tab-nav { padding-right: 0; }
.ets-position-right  .ets-tab-nav { padding-left: 0; }

/* ── Tab Buttons ─────────────────────────────────────────── */
.ets-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border: none;
    border-radius: 50px;
    background-color: #f0f0f0;
    color: #555555;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    outline: none;
    text-decoration: none;
}

.ets-tab-btn:not(.ets-active):hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.ets-tab-btn.ets-active {
    background-color: #1a1a2e;
    color: #ffffff;
}

.ets-tab-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(26,26,46,0.35);
}

.ets-tab-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1em;
}

/* Stretch mode */
.ets-nav-inner[style*="stretch"] .ets-tab-btn {
    flex: 1;
    justify-content: center;
}

/* ── Panels Wrapper ──────────────────────────────────────── */
.ets-panels-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* ── Slides Track ────────────────────────────────────────── */
.ets-slides-track {
    position: relative;
    width: 100%;
    /* height set dynamically by JS to match tallest visible slide */
}

/* ── Individual Slides ───────────────────────────────────── */
.ets-slide {
    display: none;
    width: 100%;
    animation-fill-mode: both;
}

.ets-slide.ets-active {
    display: block;
}

/* Slides being animated out sit absolutely on top of incoming */
.ets-slide.ets-exiting {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* =========================================================
   TRANSITION ANIMATIONS
   ========================================================= */

/* ── Slide ── */
.ets-slide.ets-enter-right { animation: etsSlideInRight var(--ets-speed, 450ms) cubic-bezier(.4,0,.2,1) both; }
.ets-slide.ets-enter-left  { animation: etsSlideInLeft  var(--ets-speed, 450ms) cubic-bezier(.4,0,.2,1) both; }
.ets-slide.ets-exit-left   { animation: etsSlideOutLeft var(--ets-speed, 450ms) cubic-bezier(.4,0,.2,1) both; }
.ets-slide.ets-exit-right  { animation: etsSlideOutRight var(--ets-speed, 450ms) cubic-bezier(.4,0,.2,1) both; }

@keyframes etsSlideInRight  { from { opacity:0; transform:translateX(60px);  } to { opacity:1; transform:translateX(0); } }
@keyframes etsSlideInLeft   { from { opacity:0; transform:translateX(-60px); } to { opacity:1; transform:translateX(0); } }
@keyframes etsSlideOutLeft  { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(-60px); } }
@keyframes etsSlideOutRight { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(60px);  } }

/* ── Fade ── */
.ets-slide.ets-fade-in  { animation: etsFadeIn  var(--ets-speed, 450ms) ease both; }
.ets-slide.ets-fade-out { animation: etsFadeOut var(--ets-speed, 450ms) ease both; }

@keyframes etsFadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes etsFadeOut { from { opacity:1; } to { opacity:0; } }

/* ── Zoom ── */
.ets-slide.ets-zoom-in  { animation: etsZoomIn  var(--ets-speed, 450ms) ease both; }
.ets-slide.ets-zoom-out { animation: etsZoomOut var(--ets-speed, 450ms) ease both; }

@keyframes etsZoomIn  { from { opacity:0; transform:scale(0.88); } to { opacity:1; transform:scale(1);    } }
@keyframes etsZoomOut { from { opacity:1; transform:scale(1);    } to { opacity:0; transform:scale(1.08); } }

/* ── Flip ── */
.ets-slide.ets-flip-in  { animation: etsFlipIn  var(--ets-speed, 450ms) ease both; perspective: 1000px; }
.ets-slide.ets-flip-out { animation: etsFlipOut var(--ets-speed, 450ms) ease both; perspective: 1000px; }

@keyframes etsFlipIn  { from { opacity:0; transform:rotateY(-80deg); } to { opacity:1; transform:rotateY(0); } }
@keyframes etsFlipOut { from { opacity:1; transform:rotateY(0);      } to { opacity:0; transform:rotateY(80deg); } }

/* =========================================================
   ARROWS
   ========================================================= */
.ets-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #1a1a2e;
    color: #1a1a2e;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.ets-arrow:hover {
    background-color: #1a1a2e;
    color: #ffffff;
}

.ets-arrow-prev { left: 12px; }
.ets-arrow-next { right: 12px; }

/* =========================================================
   DOTS
   ========================================================= */
.ets-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 4px;
}

.ets-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ets-dot.ets-active {
    background-color: #1a1a2e;
    transform: scale(1.35);
}

/* =========================================================
   EDITOR PLACEHOLDER
   ========================================================= */
.ets-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 30px;
    background: #f8f9ff;
    border: 2px dashed #b0b8e0;
    border-radius: 8px;
    text-align: center;
    color: #6a74a5;
}

.ets-placeholder-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.ets-placeholder p {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.5;
}

.ets-placeholder p:first-of-type {
    font-size: 15px;
    font-weight: 700;
    color: #3a4275;
}

/* Panel: empty (frontend) */
.ets-panel-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Panel: fallback WYSIWYG */
.ets-panel-fallback {
    padding: 10px 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
    .ets-tab-slider-wrapper.ets-position-left,
    .ets-tab-slider-wrapper.ets-position-right {
        flex-direction: column;
    }

    .ets-position-left .ets-tab-nav,
    .ets-position-right .ets-tab-nav {
        max-width: 100%;
        width: 100%;
        padding: 0 0 20px;
    }

    .ets-position-left .ets-nav-inner,
    .ets-position-right .ets-nav-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ets-arrow {
        display: none;
    }
}
