/* Basic styles for SF3 Carousel */
.sf3-carousel {
    position: relative;
    overflow: hidden;
    --sf3-nav-size: 2.25rem;
}

.sf3-carousel__track {
    display: flex;
    transition: transform .6s cubic-bezier(.4, .15, .2, 1);
    will-change: transform;
    gap: 60px;
    touch-action: pan-y;
    /* allow vertical scroll, manage horizontal manually */
}

/* Fixed-size slide layout: show as many 450x325 slides as fit the container */
.sf3-carousel {
    width: 100%;
    background: #F5B3DD;
    padding-bottom: 60px;
}

/* Slide frame styling */
.sf3-carousel__slide {
    flex: 0 0 450px;
    width: 450px;
    height: 325px;
    box-sizing: border-box;
    padding: 30px 20px;
    opacity: .5;
    transition: opacity .35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 20px;
    background: #FCFCF2;
    border-radius: 20px;
}

.sf3-carousel__slide.is-active {
    opacity: 1;
}

@media (max-width: 1023px) {
    .sf3-carousel__track {
        gap: 32px;
        cursor: grab;
    }

    .sf3-carousel__track.is-dragging {
        cursor: grabbing;
    }

    .sf3-carousel__slide {
        width: 320px;
        flex: 0 0 320px;
        height: 330px;
        padding: 30px 18px;
    }
}

.sf3-carousel__image {
    height: 75px;
    max-width: 100%;
    object-fit: cover;
    width: auto;
}

.sf3-carousel__prev,
.sf3-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: 0;
    width: var(--sf3-nav-size);
    height: var(--sf3-nav-size);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    line-height: 1;
}

.sf3-carousel__prev:hover,
.sf3-carousel__next:hover {
    background: rgba(0, 0, 0, .65);
}

.sf3-carousel__prev {
    left: .5rem;
}

.sf3-carousel__next {
    right: .5rem;
}

.sf3-carousel__prev,
.sf3-carousel__next {
    display: none !important;
}

.sf3-carousel__dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
}

.sf3-carousel__dots button {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    border: 0;
    background: #5355C9;
    cursor: pointer;
    padding: 0;
    opacity: 0.4;
}

.sf3-carousel__dots button[aria-current="true"] {
    opacity: 1;
}

/* Title styling injected per request */
.slide-title {
    color: var(--blue-ish, #2e3bff);
    font-size: 28px;
    font-weight: 500;
    line-height: 110%;
    margin-bottom: 0;
    max-width: 364px;
    min-width: 364px;
    width: 384px;

    min-height: 61px;
}

.slide-body {
    max-width: 364px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .slide-title {
        font-size: 20px;
        max-width: 100%;
        min-width: 100%;
        width: 100px;

        min-height: 44px;
        /* width plus min/max may be adjusted later if conflicting */
    }

    .slide-body {
        max-width: 274px;
        font-size:16px;
    }
}

/* --------------------------------------------- */
/* Dual carousel mode: desktop vs mobile         */
/* --------------------------------------------- */

/* Default: show desktop, hide mobile */
.sf3-carousel--desktop { display: block; }
.sf3-carousel--mobile { display: none; }

@media (max-width: 1023px) {
    .sf3-carousel--desktop { display: none; }
    .sf3-carousel--mobile { display: block; }
}

/* Mobile scroll-snap behavior */
.sf3-carousel--mobile .sf3-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 32px;
    padding: 0 16px 56px; /* extra bottom space for visible dots */
    touch-action: pan-x; /* allow horizontal dragging */
    transition: none; /* no transform animation needed for native scroll */
}

.sf3-carousel--mobile .sf3-carousel__track::-webkit-scrollbar { display: none; }

.sf3-carousel--mobile .sf3-carousel__slide { scroll-snap-align: center; }

/* Hide dots for mobile for now (can be enabled later) */
/* .sf3-carousel--mobile .sf3-carousel__dots { display: none !important; } */
