/* ============================================================
   Section Slider Block — residual styles not expressible as Tailwind classes
   ============================================================ */

/* Mobile: hide tabs, show pagination dots */
.section-slider-tabs {
    display: none;
}

.section-slider__pagination {
    display: flex !important;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 0.5rem;
}

/* Swiper bullet overrides (third-party selectors) */
.section-slider__pagination .swiper-pagination-bullet {
    width: 0.875rem;
    height: 0.875rem;
    background-color: #c0c0c0;
    opacity: 1;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.section-slider__pagination .swiper-pagination-bullet-active {
    background-color: var(--color-secondary-light, #2563eb);
}

/* Desktop: show tabs, hide pagination dots */
@media (min-width: 1024px) {
    .section-slider-tabs {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        margin-bottom: 2.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0;
    }

    .section-slider__pagination {
        display: none !important;
    }
}

/* Pseudo-elements — not expressible as Tailwind inline classes */
.section-slider-tabs::-webkit-scrollbar {
    display: none;
}

.section-slider-tabs::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-secondary, #1e3a5f);
    transform: translateY(-50%);
    z-index: 0;
}

/* Tab interactive states */
.section-slider-tab:hover {
    background-color: color-mix(in srgb, var(--color-secondary, #1e3a5f) 10%, white);
}

.section-slider-tab:focus-visible {
    outline: 2px solid var(--color-primary, #2563eb);
    outline-offset: 3px;
}

/* JS-toggled active state */
.section-slider-tab.is-active {
    color: #ffffff;
    background-color: var(--color-secondary, #1e3a5f);
}

/* Swiper third-party overrides */
.section-slider-swiper .swiper-wrapper {
    align-items: stretch;
}

.section-slider-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
}

.section-slider-swiper .swiper-slide > div {
    height: 100%;
}

/* Autoplay progress bar — JS-animated, pinned to bottom of flex column via margin-top: auto */
.section-slider__progress-track {
    display: none;
}

@media (min-width: 1024px) {
    .section-slider__progress-track {
        display: block;
        position: relative;
        margin-top: auto;
        height: 3px;
        background-color: #d1d5db;
        border-radius: 9999px;
        overflow: hidden;
    }
}

.section-slider__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-secondary-light);
    border-radius: 9999px;
}

/* Slide-up animation applied to the active slide's content after Swiper
   finishes its fade-out. Triggered by JS toggling
   `.section-slider__animate-in` on the slide's first child. */
@keyframes section-slider-slide-up {
    0% {
        transform: translate3d(0, 40px, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@media (min-width: 1024px) {
    .section-slider-swiper .swiper-slide > div {
        opacity: 0;
    }

    .section-slider-swiper .swiper-slide > div.section-slider__animate-in {
        animation: section-slider-slide-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
        will-change: transform, opacity;
    }
}

