#story-cards {
    perspective: 1200px;
}

.story-card {
    position: absolute;
    top: 0;  
    border-radius: 24px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .15);
    will-change: transform, left, top, width;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-card h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 14px;
}

.story-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.story-card .discover {
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    color: #111827;
    margin-bottom: 16px;
}

.story-card .story-img {
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: 16px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.story-card-dark h3,
.story-card-dark p,
.story-card-dark .discover {
    color: #fff;
}

/* Tablet */
/* ===== Mobile/Tablet fix for scroll-story gap ===== */
@media (max-width: 1024px) {
    #scroll-story .grid {
        gap: 24px;               /* gap-16 (64px) ne badle chhoto gap */
        align-items: start;      /* items-center ne badle top-align, khali jagya nai bache */
    }

    #scroll-story .relative.h-\[400px\] {
        height: 260px;           /* text container ni height ghatadi */
    }

    .scroll-img-frame {
        height: 320px;           /* image container ni height ghatadi */
    }

    .scroll-heading {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .scroll-para {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
        max-width: 100%;
    }

    .step-badge {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    .step-line {
        width: 40px;
        height: 3px;
        margin-bottom: 14px;
    }

    .scroll-btn {
        padding: 10px 22px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .story-card {
        padding: 18px;
        border-radius: 14px;
    }
    .story-card h3 {
        font-size: 15px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .story-card p {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    .story-card .discover {
        font-size: 11px;
        margin-bottom: 8px;
    }
}

