/* ============================================================
   Slider List Widget — GSAP + ScrollMagic (Desktop)
   + Proper Mobile Responsive
   ============================================================ */

.slider-widget {
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ── Two-column layout (Desktop) ── */
.slider-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 80px;
    width: 100%;
    /* min-height: 100vh; */
    box-sizing: border-box;
    padding: 0px;
    background: transparent;
}

/* ── Left — image panel ── */
.slider-image-section {
    flex: 1;
    max-width: 501px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-img {
    position: absolute;
    right: 50px;
    top: 0;
    z-index: 1;
    display: none;
}

.slider-image-container {
    width: 100%;
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-image-container img {
    /* margin: 50px; */
    height: 740px !important;
}

/* All images stacked — GSAP handles opacity/scale */
.slider-image {
    max-width: 100%;
    width: auto;
    height: auto;
    position: absolute;
    inset: 0;
    margin: auto;
    display: block;
}

/* ── Right — list panel ── */
.slider-list-section {
    flex: 1;
    max-width: 646px;
}

/* Header */
.list-header .list-main-title {
    display: inline-block;
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #D9EDFF;
    padding: 8px 50px;
    border-radius: 50px;
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
    color: #0085FE;
    margin-bottom: 30px;
}

.list-header .list-subtitle {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 52px;
    line-height: 60px;
    font-weight: 700;
    color: #150D07;
    margin-bottom: 20px;
}

.list-header .list-description {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* ── Slide list (Desktop) ── */
.slider-list {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.slw-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.slider-slide {
    cursor: default;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    position: relative;
    padding-bottom: 50px;
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.slider-slide.active {
    opacity: 1;
    transform: scale(1) !important;
}

.slide-number {
    background-color: #D9EDFF;
    border-radius: 50%;
    color: #0085FE;
    min-width: 62px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.slider-slide.active .slide-number {
    background-color: #0085FE;
    color: #fff;
}

.slider-slide::after {
    content: '';
    position: absolute;
    top: 62px;
    left: 30px;
    width: 2px;
    bottom: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(to bottom,
            rgba(0, 133, 254, 0.3) 0px, rgba(0, 133, 254, 0.3) 10px,
            transparent 10px, transparent 18px);
}

.slider-slide:last-child::after {
    display: none;
}

.slider-slide.active::after {
    background-image: repeating-linear-gradient(to bottom,
            #0085FE 0px, #0085FE 10px,
            transparent 10px, transparent 18px);
}

.slide-content {
    flex: 1;
}

.slide-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    line-height: 34px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.4s ease;
    color: #150D07;
}

.slider-slide.active .slide-title {
    color: #0085FE;
}

.slide-desc {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 0;
    color: #555;
}


/* ============================================================
   MOBILE  ≤ 1024 px  —  Fully redesigned
   ============================================================ */
@media (max-width: 1024px) {

    /* Hide desktop image column */
    .slider-image-section {
        display: none !important;
    }

    /* Undo desktop sticky/fixed styles */
    .slider-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        min-height: auto !important;
        padding: 30px 20px 40px !important;
        position: static !important;
        height: auto !important;
        left: auto !important;
        width: 100% !important;
    }

    /* Header section */
    .list-header {
        margin-bottom: 32px;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .list-header .list-main-title {
        font-size: 14px;
        padding: 6px 24px;
        margin-bottom: 16px;
    }

    .list-header .list-subtitle {
        font-size: 28px;
        line-height: 38px;
        margin-bottom: 12px;
        text-align: center;
    }

    .list-header .list-description {
        font-size: 16px;
        line-height: 26px;
        color: #555;
        font-weight: 500;
        margin-bottom: 0;
        text-align: center;
    }

    /* ── Mobile step list ── */
    .slider-list {
        overflow: visible !important;
        height: auto !important;
        margin-top: 24px !important;
        gap: 0;
    }

    .slw-inner {
        transform: none !important;
        transition: none !important;
    }

    /* Each step — card style */
    .slider-slide {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 0 0 0 0 !important;
        opacity: 1 !important;
        transition: none !important;
        cursor: pointer !important;
        border: none;
        position: relative;
    }

    /* Vertical dashed line between steps */
    .slider-slide::after {
        content: '';
        position: absolute;
        top: 50px;
        left: 22px;
        /* centre of 46px bubble */
        width: 2px;
        bottom: -1px;
        z-index: 0;
        background-image: repeating-linear-gradient(to bottom,
                rgba(0, 133, 254, 0.3) 0px, rgba(0, 133, 254, 0.3) 8px,
                transparent 8px, transparent 14px) !important;
    }

    .slider-slide:last-child::after {
        display: none !important;
    }

    .slider-slide.active::after {
        background-image: repeating-linear-gradient(to bottom,
                #0085FE 0px, #0085FE 8px,
                transparent 8px, transparent 14px) !important;
    }

    /* Mobile bubble — slightly smaller */
    .slide-number {
        min-width: 46px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 18px !important;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        transition: background-color 0.3s ease, color 0.3s ease !important;
    }

    .slider-slide.active .slide-number {
        background-color: #0085FE !important;
        color: #fff !important;
    }

    /* Content panel — shown for all, but collapsed unless active */
    .slide-content {
        display: flex !important;
        flex-direction: column;
        padding-bottom: 35px;
        padding-top: 3px;
    }

    /* Title always visible */
    .slide-title {
        font-size: 16px !important;
        line-height: 24px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        color: #aaa !important;
        transition: color 0.3s ease !important;
    }

    .slider-slide.active .slide-title {
        color: #0085FE !important;
        margin-bottom: 8px !important;
    }

    /* Description — only visible when active */
    .slide-desc {
        font-size: 14px !important;
        line-height: 22px !important;
        color: #555 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease !important;
        opacity: 0;
        margin-bottom: 0 !important;
    }

    .slider-slide.active .slide-desc {
        max-height: 200px;
        opacity: 1;
    }

    /* Mobile image shown below the active step description */
    .slide-mobile-img {
        display: none;
        margin-top: 12px;
        border-radius: 16px;
        max-width: 100%;
        width: 100%;
        object-fit: cover;
    }

    .slider-slide.active .slide-mobile-img {
        display: none;
    }

    /* Hide old mobile wrapper (from previous versions) */
    .mobile-content-wrapper {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .list-header .list-subtitle {
        font-size: 28px;
        line-height: 32px;
    }

    .slider-container {
        padding: 24px 16px 32px !important;
    }
}