/* Layout Wrapper */
.isc-1bc296e4-wrapper {
    display: flex;
    flex-direction: row; 
    gap: 30px;
    align-items: flex-start; /* Required for sticky to work naturally */
    width: 100%;
    position: relative;
}

/* Left Column - Sticky Image */
.isc-left-col {
    position: -webkit-sticky;
    position: sticky;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.isc-left-col img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Right Column - Scrolling Cards */
.isc-right-col {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex blowout */
    width: 100%;
}

/* Header inside Right Column */
.isc-header {
    margin-bottom: 30px;
}

.isc-header h2 {
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.isc-header p {
    margin: 0;
    line-height: 1.5;
}

/* Cards Container */
.isc-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Card */
.isc-card {
    background: #f9f9f9; 
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    word-break: break-word; /* Ensure text doesn't break out */
    overflow-wrap: break-word;
}

.isc-card-num {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.isc-card-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    line-height: 1.3;
}

.isc-card-desc {
    margin: 0;
    line-height: 1.6;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .isc-1bc296e4-wrapper {
        flex-direction: row; /* Keep side-by-side */
        gap: 15px;
        align-items: stretch; /* Allow right column to define height */
    }
    
    .isc-left-col {
        position: -webkit-sticky;
        position: sticky;
        top: 20px; /* Default sticky offset */
    }
    
    .isc-right-col {
        min-width: 0; /* Prevent overflow */
    }

    .isc-header {
        min-width: 0; 
        word-break: break-word;
    }

    /* Enable Horizontal Scroll Snapping for Mobile */
    .isc-cards-container {
        flex-direction: row; /* Layout cards horizontally */
        flex-wrap: nowrap;
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: hidden;
        scroll-snap-type: x mandatory; /* Scroll snap */
        scroll-behavior: smooth; /* Smooth scrolling for JS slider */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        gap: 15px;
        padding-bottom: 15px; /* Space for scrollbar */
        width: 100%;
    }
    
    /* Hide scrollbar for a cleaner look */
    .isc-cards-container::-webkit-scrollbar {
        height: 6px;
    }
    .isc-cards-container::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 10px;
    }
    
    .isc-card {
        padding: 15px;
        flex: 0 0 85%; /* Card takes 85% of available width */
        max-width: 85%;
        scroll-snap-align: center; /* Snap cards to center */
    }
}