/* =============================================
   Banner Slider Pro – Public Styles
   ============================================= */

/* ---- Container ---- */
.bsp-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: var(--bsp-h, 500px);
    overflow: hidden;
    background: transparent;
    user-select: none;
}
.bsp-track,
.bsp-slide {
    height: 100%;
}
/* ---- Style variants ---- */
.bsp-style-modern   { border-radius: 16px; }
.bsp-style-boxed    { box-shadow: 0 8px 40px rgba(0,0,0,.25); border-radius: 8px; }
.bsp-style-fullscreen { height: 100vh !important; }
.bsp-style-minimal .bsp-arrow { display: none !important; }

/* ---- Track & Slide ---- */
.bsp-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.bsp-slide {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.bsp-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ---- Background image ---- */
.bsp-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
    image-rendering: -webkit-optimize-contrast;
    max-width: 100%;
    max-height: 100%;
    transform: translateZ(0);
}

/* ---- Overlay ---- */
.bsp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0, var(--bsp-op, 0));
    z-index: 1;
}

/* ---- Content ---- */
.bsp-content {
    position: relative;
    z-index: 3;
    padding: 20px 32px;
    max-width: 720px;
    width: 100%;
}
.bsp-align-center .bsp-content { text-align: center; }
.bsp-align-left    .bsp-content { text-align: left; margin-right: auto; }
.bsp-align-right   .bsp-content { text-align: right; margin-left: auto; }

.bsp-title {
    color: #fff;
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    word-break: break-word;
}
.bsp-subtitle {
    color: rgba(255,255,255,.9);
    font-size: clamp(13px, 4vw, 16px);
    margin: 0 0 24px;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
    word-break: break-word;
}

/* ---- Buttons ---- */
.bsp-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.bsp-align-center .bsp-buttons { justify-content: center; }
.bsp-align-right  .bsp-buttons { justify-content: flex-end; }

.bsp-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    white-space: nowrap;
}
.bsp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.bsp-btn:active { transform: scale(.97); }

/* Solid */
.bsp-btn-solid   { background:#fff; color:#111; border: 2px solid #fff; border-radius: 4px; }
.bsp-btn-solid:hover { background: rgba(255,255,255,.85); }

/* Outline */
.bsp-btn-outline { background: transparent; color: #fff; border: 2px solid #fff; border-radius: 4px; }
.bsp-btn-outline:hover { background: rgba(255,255,255,.15); }

/* Ghost */
.bsp-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.4); border-radius: 4px; backdrop-filter: blur(4px); }
.bsp-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* Rounded */
.bsp-btn-rounded { background: #fff; color: #111; border: 2px solid #fff; border-radius: 40px; }
.bsp-btn-rounded:hover { background: rgba(255,255,255,.85); }

/* Pill */
.bsp-btn-pill { background: #fff; color: #111; border: 2px solid #fff; border-radius: 100px; padding: 10px 36px; }
.bsp-btn-pill:hover { background: rgba(255,255,255,.85); }

/* ---- Arrows ---- */
.bsp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.bsp-arrow:hover { background: rgba(0,0,0,.6); }
.bsp-prev { left: 16px; }
.bsp-next { right: 16px; }

/* ---- Dots ---- */
.bsp-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.bsp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .25s ease;
}
.bsp-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* =============================================
   ANIMATIONS
   Pattern: .entering defines START state, .active defines END state.
   Both classes are present simultaneously during the transition.
   Transition property is only active during animation (not on idle slides).
   ============================================= */

/* No transition on idle slides */
.bsp-slide { transition: none; }

/* Enable transition only when animating */
.bsp-slide.entering,
.bsp-slide.leaving {
    transition: opacity .72s ease, transform .72s cubic-bezier(.4,0,.2,1), filter .72s ease;
}

/* ---- FADE ---- */
[data-animation="fade"] .bsp-slide.entering               { opacity: 0 !important; }
[data-animation="fade"] .bsp-slide.entering.active        { opacity: 1 !important; }
[data-animation="fade"] .bsp-slide.leaving                { opacity: 0 !important; }

/* ---- SLIDE ---- */
[data-animation="slide"] .bsp-slide.entering              { transform: translateX(100%); }
[data-animation="slide"] .bsp-slide.entering.active       { transform: translateX(0); }
[data-animation="slide"] .bsp-slide.leaving               { transform: translateX(-100%); }

/* ---- ZOOM ---- */
[data-animation="zoom"] .bsp-slide.entering               { opacity: 0 !important; transform: scale(1.1); }
[data-animation="zoom"] .bsp-slide.entering.active        { opacity: 1 !important; transform: scale(1); }
[data-animation="zoom"] .bsp-slide.leaving                { opacity: 0 !important; transform: scale(.92); }

/* ---- BLUR ---- */
[data-animation="blur"] .bsp-slide.entering               { opacity: 0 !important; filter: blur(16px); }
[data-animation="blur"] .bsp-slide.entering.active        { opacity: 1 !important; filter: blur(0px); }
[data-animation="blur"] .bsp-slide.leaving                { opacity: 0 !important; filter: blur(16px); }

/* ---- SLIDE-UP ---- */
[data-animation="slide-up"] .bsp-slide.entering           { opacity: 0 !important; transform: translateY(56px); }
[data-animation="slide-up"] .bsp-slide.entering.active    { opacity: 1 !important; transform: translateY(0); }
[data-animation="slide-up"] .bsp-slide.leaving            { opacity: 0 !important; transform: translateY(-36px); }

/* ---- FLIP 3D ---- */
[data-animation="flip"] .bsp-track                        { perspective: 1400px; }
[data-animation="flip"] .bsp-slide.entering               { transform: rotateY(90deg); }
[data-animation="flip"] .bsp-slide.entering.active        { transform: rotateY(0deg); }
[data-animation="flip"] .bsp-slide.leaving                { transform: rotateY(-90deg); }

/* ---- CUBE 3D ---- */
[data-animation="cube"] .bsp-track                        { perspective: 1000px; }
[data-animation="cube"] .bsp-slide.entering               { transform: rotateY(80deg) translateZ(180px); }
[data-animation="cube"] .bsp-slide.entering.active        { transform: rotateY(0deg) translateZ(0); }
[data-animation="cube"] .bsp-slide.leaving                { transform: rotateY(-80deg) translateZ(180px); }

/* ---- Content entrance animation ---- */
.bsp-slide.active .bsp-title,
.bsp-slide.active .bsp-subtitle,
.bsp-slide.active .bsp-buttons {
    animation: bspContentIn .6s cubic-bezier(.22,1,.36,1) both;
}
.bsp-slide.active .bsp-subtitle { animation-delay: .1s; }
.bsp-slide.active .bsp-buttons  { animation-delay: .2s; }

@keyframes bspContentIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .bsp-slider {
        height: var(--bsp-hm, 320px) !important;
        min-height: 200px;
        }

    .bsp-style-fullscreen {
        height: 100svh !important;
    }

    .bsp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    max-width: 90%;
    text-align: center;
    margin: 0 auto;
}

    .bsp-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
        opacity: 0.7;
    transform: scale(0.95);
    }

    .bsp-prev { left: 8px; }
    .bsp-next { right: 8px; }

    .bsp-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
    
    .bsp-dot {
        width: 8px;
        height: 8px;
    }

    .bsp-dots {
        bottom: 12px;
        gap: 6px;
    }
}
@media (max-aspect-ratio: 16/9) {
    .bsp-bg {
        object-fit: cover;
    }
}
    

