:root {
    --cardTopPadding: 2em;
}

/* Layout */
.story-slider {
    display: flex;
    flex-direction: column;
}

.slider-container {
    display: none;
}

.slider-container.active {
    display: block;
}

.cards {
    list-style: none;
}

.card {
    position: sticky;
    top: 90px;
    padding-top: calc(var(--index) * var(--cardTopPadding));
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.card-body {
    background-color: #072AC8;
    color: white;
    box-sizing: border-box;
    padding: 3rem 4rem 2rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transform-origin: center top;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Stripe */
.card-body::before {
    content: '';
    height: 160px;
    position: absolute;
    top: 30px;
    left: -25px;
    rotate: -9deg;
    z-index: 1;
    width: 120%;
    background: linear-gradient(272deg, #FFF -0.02%, rgba(255, 255, 255, 0.00) 97.36%);
    opacity: 0.65;
    mix-blend-mode: soft-light;
}

/* Inside Card */
.top-row, .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.middle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.text-column {
    flex: 1;
    max-width: 50%;
}

.text-column h1 {
    max-width: 406px;
    font-size: 38px;
    margin-bottom: 20px;
    color: #fff;
}

.text-column p {
    color: #fff;
    opacity: 0.9;
}

.card-image {
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.card-image img {
    max-height: 400px;
    object-fit: contain;
}

.bottom-row {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.footer-row small {
    color: white;
}

.progress-line {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-line::after {
    content: '';
    position: absolute;
    height: 100%;
    left: 0;
    width: var(--progress, 0%);
    background-color: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.step-circle {
    background-color: rgba(255, 255, 255, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* Responsive */
@media (max-width: 990px) {
    .card-body {
        padding: 2rem;
    }

    .card {
        top: 60px;
    }

    .text-column, .card-image {
        max-width: 100%;
    }

    .middle-row {
        flex-direction: column;
        gap: 12px;
    }

    .card-image img {
        max-height: 220px;
    }
}

@media (max-width: 670px) {
    .text-column h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .card {
        top: 50px;
    }

    .card-image img {
        max-height: 180px;
    }
}

@media (max-width: 500px) {
    .middle-row {
        flex-direction: column-reverse;
    }

    .card {
        top: 40px;
    }
}
