.cases-in-points-container {
    display: flex;
    align-items: stretch;
}

.case-titles {
    flex: 0 1 30%;
    height: 100%;
    padding-top: 1rem;
}

.case-titles h4 {
    font-size: 1rem;
}

.case-in-point {
    padding: 1rem;
    display: flex;
    background: #F4F7FA;
    color: black;
    cursor: pointer;
}

.case-in-point:hover {
    background: #dadddf;
}

.case-content {
    flex: 0 1 67%;
    padding: 1rem;
    overflow-y: auto;
    position: relative;
}

.case-in-point.active-case {
    background: #0B2545;
    color: white;
}

.case-sideline {
    border-right: none;          /* open on the right, toward the text */
    border-radius: 0 10px 10px 0;
    width: 5px;
    min-width: 5px;
    background: #FF6B5B;
}

.case-in-point.active-case .case-sideline {
    background: white;
}

.case-content {
    height: 100%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width:768px) {
    .case-content {
        max-height: 408px;
    }

    .cases-in-points-container {
        max-height: 408px;
    }
}
/* Tablet: titles column gets cramped as the viewport narrows — give it a
   sane floor so title text doesn't wrap into a sliver, and let the content
   column absorb the squeeze. */
@media (max-width: 991px) {
    .case-titles {
        flex: 0 0 240px;
    }

    .case-content {
        flex: 1 1 auto;
        min-width: 0; /* allows shrinking below content's natural width */
    }
}

/* Mobile: side-by-side no longer works — stack. Titles become a scrollable
   list above the content, and the fixed 650px min-height is dropped so the
   layout sizes to its actual content. */
@media (max-width: 767px) {
    .cases-in-points-container {
        flex-direction: column;
        min-height: 0;
        align-items: stretch;
    }

    .case-titles {
        flex: 0 0 auto;
        height: auto;
        width: 100%;
        padding-top: 0.5rem;
        /* cap the list so a long set of cases doesn't push the content
           entirely off-screen; the list scrolls internally instead */
        max-height: 40vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .case-content {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        overflow-y: visible; /* page scrolls naturally; no nested scroll trap */
    }

    /* Slightly tighter rows so more titles are visible at once */
    .case-in-point {
        padding: 0.75rem 1rem;
    }

    /* The accent sideline reads better rotated to a bottom edge when rows
       span the full width — but keeping it on the left also works fine.
       Left is retained here to avoid changing the visual language. */
}

/* Very small screens: reduce padding to reclaim horizontal space */
@media (max-width: 400px) {
    .case-content {
        padding: 0.75rem;
    }
}