/* ═══════════════════════════════════════════════════════════
   Starter Pro Slider – Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
.sps-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 1.5;
}

.sps-slider *,
.sps-slider *::before,
.sps-slider *::after {
    box-sizing: border-box;
}

.sps-swiper {
    width: 100%;
    height: 100%;
}

.sps-slide {
    position: relative;
    overflow: hidden;
}

/* ─── Background image (hero, bottom_bar, boxed_center) ─── */
.sps-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sps-slide-bg .sps-slide-img,
.sps-split-image .sps-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Overlay ─── */
.sps-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ─── Content wrapper (hero, bottom_bar, boxed_center) ─── */
.sps-slide-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    padding: 40px 60px;
}

/* Horizontal alignment */
.sps-align-h-left   { justify-content: flex-start; }
.sps-align-h-center { justify-content: center; }
.sps-align-h-right  { justify-content: flex-end; }

/* Vertical alignment */
.sps-align-v-flex-start { align-items: flex-start; }
.sps-align-v-center     { align-items: center; }
.sps-align-v-flex-end   { align-items: flex-end; }

/* ─── Content block ─── */
.sps-slide-content {
    position: relative;
    z-index: 2;
}

.sps-slide-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 15px;
    color: #fff;
    letter-spacing: -0.5px;
}

.sps-slide-desc {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.85);
}

.sps-slide-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #6c63ff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
}

.sps-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.45);
}

/* ─── Slide content entrance animation ─── */
.swiper-slide-active .sps-slide-heading {
    animation: spsSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.swiper-slide-active .sps-slide-desc {
    animation: spsSlideUp 0.8s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.swiper-slide-active .sps-slide-btn {
    animation: spsSlideUp 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

/* ─── Ken Burns ─── */
.sps-ken-burns .sps-slide-img {
    animation: spsKenBurns 20s ease-in-out infinite alternate;
}

@keyframes spsKenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 1 – Full-Screen Hero
   ═══════════════════════════════════════════════════════════ */
.sps-layout-hero .sps-slide-inner {
    padding: 60px 80px;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 2 & 3 – Content Left / Content Right (Split)
   ═══════════════════════════════════════════════════════════ */
.sps-split-wrap {
    display: flex;
    width: 100%;
    height: 100%;
}

.sps-split-content {
    width: 50%;
    display: flex;
    padding: 40px 50px;
}

.sps-split-image {
    width: 50%;
    position: relative;
    overflow: hidden;
}

/* Content Left: content | image */
.sps-layout-content_left .sps-split-wrap {
    flex-direction: row;
}

.sps-layout-content_left .sps-split-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Content Right: image | content */
.sps-layout-content_right .sps-split-wrap {
    flex-direction: row-reverse;
}

.sps-layout-content_right .sps-split-content {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 4 – Bottom Bar
   ═══════════════════════════════════════════════════════════ */
.sps-layout-bottom_bar .sps-slide-inner {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 0 30px;
}

.sps-layout-bottom_bar .sps-slide-content.sps-glass-card {
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 28px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.sps-layout-bottom_bar .sps-slide-heading {
    font-size: 26px;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.sps-layout-bottom_bar .sps-slide-desc {
    font-size: 15px;
    margin: 0;
    flex: 2;
    min-width: 200px;
}

.sps-layout-bottom_bar .sps-slide-btn {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT 5 – Boxed Center Card
   ═══════════════════════════════════════════════════════════ */
.sps-layout-boxed_center .sps-slide-inner {
    align-items: center !important;
    justify-content: center !important;
}

.sps-layout-boxed_center .sps-slide-content.sps-glass-card {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 50px 60px;
    text-align: center;
    max-width: 650px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.sps-layout-boxed_center .sps-slide-heading {
    font-size: 38px;
}

/* ═══════════════════════════════════════════════════════════
   ARROWS
   ═══════════════════════════════════════════════════════════ */
.sps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sps-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.08);
}

.sps-arrow svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.sps-arrow-prev {
    left: 20px;
}

.sps-arrow-next {
    right: 20px;
}

/* ═══════════════════════════════════════════════════════════
   DOTS / PAGINATION
   ═══════════════════════════════════════════════════════════ */
.sps-pagination {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sps-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.35s ease;
    cursor: pointer;
}

.sps-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════
   LAZY LOADER
   ═══════════════════════════════════════════════════════════ */
.swiper-lazy-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spsLazyRotate 0.8s linear infinite;
    z-index: 1;
}

@keyframes spsLazyRotate {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE VISIBILITY
   ═══════════════════════════════════════════════════════════ */

/* ── Desktop (>1024) ── */
@media (min-width: 1025px) {
    .sps-hide-desktop {
        display: none !important;
    }
}

/* ── Tablet (768–1024) ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .sps-hide-tablet {
        display: none !important;
    }

    .sps-slide-heading {
        font-size: 36px;
    }

    .sps-slide-desc {
        font-size: 16px;
    }

    .sps-slide-inner {
        padding: 30px 40px;
    }

    .sps-layout-hero .sps-slide-inner {
        padding: 40px 50px;
    }

    /* Split layouts stack on tablet */
    .sps-split-wrap {
        flex-direction: column !important;
    }

    .sps-split-content,
    .sps-split-image {
        width: 100%;
        height: 50%;
    }

    .sps-split-content {
        padding: 30px 35px;
    }

    .sps-layout-bottom_bar .sps-slide-content.sps-glass-card {
        width: 92%;
        padding: 22px 30px;
    }

    .sps-layout-boxed_center .sps-slide-content.sps-glass-card {
        padding: 35px 40px;
    }

    .sps-layout-boxed_center .sps-slide-heading {
        font-size: 30px;
    }

    .sps-arrow {
        width: 42px;
        height: 42px;
    }

    .sps-arrow-prev {
        left: 14px;
    }

    .sps-arrow-next {
        right: 14px;
    }
}

/* ── Mobile (<768) ── */
@media (max-width: 767px) {
    .sps-hide-mobile {
        display: none !important;
    }

    .sps-slide-heading {
        font-size: 26px;
    }

    .sps-slide-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .sps-slide-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .sps-slide-inner {
        padding: 20px 24px;
    }

    .sps-layout-hero .sps-slide-inner {
        padding: 24px 28px;
    }

    /* Split layouts stack on mobile */
    .sps-split-wrap {
        flex-direction: column !important;
    }

    .sps-split-content,
    .sps-split-image {
        width: 100%;
        height: 50%;
    }

    .sps-split-content {
        padding: 24px 20px;
    }

    /* Bottom bar – full width stacked */
    .sps-layout-bottom_bar .sps-slide-inner {
        padding: 0 0 16px;
    }

    .sps-layout-bottom_bar .sps-slide-content.sps-glass-card {
        width: 94%;
        padding: 18px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .sps-layout-bottom_bar .sps-slide-heading {
        font-size: 20px;
        text-align: center;
    }

    .sps-layout-bottom_bar .sps-slide-desc {
        font-size: 13px;
        text-align: center;
    }

    /* Boxed center */
    .sps-layout-boxed_center .sps-slide-content.sps-glass-card {
        padding: 28px 24px;
        margin: 0 16px;
    }

    .sps-layout-boxed_center .sps-slide-heading {
        font-size: 24px;
    }

    /* Arrows smaller */
    .sps-arrow {
        width: 36px;
        height: 36px;
    }

    .sps-arrow svg {
        width: 18px;
        height: 18px;
    }

    .sps-arrow-prev {
        left: 10px;
    }

    .sps-arrow-next {
        right: 10px;
    }

    /* Dots */
    .sps-pagination {
        bottom: 12px;
        gap: 6px;
    }

    .sps-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .sps-pagination .swiper-pagination-bullet-active {
        width: 22px;
    }
}
