﻿/* ================================================================
   customCarousel.css
   ================================================================ */


/* ── Wrapper ──────────────────────────────────────────────────── */

#customCarousel {
}

.customCarousel_slide {
    position: relative;
    width: 100%;
    /*max-width: 635px;*/
    overflow: hidden;
}


/* ── Slide track ──────────────────────────────────────────────── */

.customCarousel-track {
    display: flex;
    will-change: transform;
    transition: transform 1000ms ease;
}


/* ── Shared slide base ────────────────────────────────────────── */

.customCarousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    aspect-ratio: 635 / 248;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    position: relative;
}


/* ── Slide type 1: fully clickable link slide ─────────────────── */

a.customCarousel-slide--link {
}

    a.customCarousel-slide--link:hover {
    }


/* ── Slide type 2: content slide ─────────────────────────────── */

.customCarousel-slide--content {
}

.customCarousel-slide__inner {
    padding: 16px;
    max-height: 100%;
}


/* ── Footer (arrows + indicators row) ────────────────────────── */

.customCarousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}


/* ── Arrows ───────────────────────────────────────────────────── */

.customCarousel-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

    .customCarousel-arrow img {
        filter: invert(1);
        width: 100%;
    }

.customCarousel-arrow--prev {
}

.customCarousel-arrow--next {
}


/* ── Indicators ───────────────────────────────────────────────── */

.customCarousel-indicators {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

    .customCarousel-indicators li {
        cursor: pointer;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #858da7;
    }

        .customCarousel-indicators li.active {
            background-color: #092068;
        }


/* ── Mobile (< 1200px) ────────────────────────────────────────── */

@media (max-width: 1199px) {
    .customCarousel-footer {
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: flex-end;
        row-gap: 16px;
        column-gap: 8px;
        padding: 0;
        margin-top: 2px;
    }

    .customCarousel-indicators {
        order: -1;
        width: 100%;
        gap: 4px;
        align-items: stretch;
    }

        .customCarousel-indicators li {
            flex: 1;
            width: auto;
            height: 8px;
            border-radius: 2px;
        }

    .customCarousel-arrow {
        width: 48px;
        height: 48px;
        background: #f7f7f7;
        padding: 12px;
    }
}
