/* 
 * News System Layout Styles 
 * Makes the 3 live news columns stack horizontally side-by-side
 */

.live-news-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between the columns */
    margin: 0; /* Override any potential default row margins */
    padding: 0;
}

.live-news-wrapper .col-md-4 {
    /* Flex property: grow, shrink, base width. 
       We calculate 33.33% minus the gap size so they fit in one row */
    flex: 1 1 calc(33.333% - 20px);
    
    /* Ensure a minimum width so they don't get too squished on tablets before stacking */
    min-width: 300px; 
    
    /* Reset any default bootstrap paddings if they interfere with the flex gap */
    padding: 0;
    box-sizing: border-box;
}

/* On smaller screens (mobile), force them to stack vertically */
@media (max-width: 768px) {
    .live-news-wrapper .col-md-4 {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
