/* By The Numbers Section Styles */
/* Force override of any framework styles */
body .wsus__by_the_numbers {
    box-sizing: border-box !important;
    font-family: inherit;
    /* Use site font */
    margin-top: 50px;
    padding-bottom: 50px;
}

/* 
   -----------------------------
   DESKTOP STYLES (Grid) 
   -----------------------------
*/
body .bn_grid_wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 24px;
    width: 100%;
}

/* Item Styling */
body .bn_item {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
    overflow: hidden;
    width: 100%;
    height: 100%;
    box-sizing: border-box !important;
}

body .bn_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

body .bn_item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.1;
}

body .bn_item p {
    font-size: 16px;
    line-height: 1.4;
    color: #4a4a4a;
    font-weight: 500;
    margin: 0;
}

/* Colors & Shapes */
.bn_bg_lightblue {
    background-color: #E3F5FC;
}

.bn_bg_grey {
    background-color: #F0F0F0;
}

.bn_bg_blue_solid {
    background-color: #009FD9;
}

.bn_bg_blue_solid h3,
.bn_bg_blue_solid p {
    color: #ffffff;
}

.bn_bg_white_texture {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
}

.bn_radius_normal {
    border-radius: 16px;
}

.bn_shape_arch {
    border-radius: 160px 160px 16px 16px;
    padding-top: 60px;
}

.bn_shape_pill {
    border-radius: 100px;
}

.bn_shape_pill_texture {
    border-radius: 100px;
}

.overlay_content_bottom {
    justify-content: flex-end;
    align-items: flex-start;
}

.bn_text_overlay {
    z-index: 2;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body .bn_item .bn_text_overlay h3,
body .bn_item .bn_text_overlay p {
    color: #ffffff !important;
}

.text_bottom_left {
    justify-content: flex-end;
    align-items: flex-start;
}

/* 
   -----------------------------
   MOBILE STYLES (Strict Overrides) 
   -----------------------------
*/
@media (max-width: 991px) {

    /* Main Wrapper: FORCE FLEX ROW */
    body .bn_grid_wrapper {
        display: flex !important;
        flex-direction: row !important;
        /* Explicitly horizontal */
        flex-wrap: wrap !important;
        grid-gap: 0 !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ALL Items: Force 50% width minus gap */
    body .bn_item {
        width: calc(50% - 7px) !important;
        /* (100% - 14px gap) / 2 */
        flex: 0 0 calc(50% - 7px) !important;
        max-width: calc(50% - 7px) !important;
        min-height: 220px !important;
        padding: 20px 15px !important;
        margin: 0 !important;
    }

    /* HIDE Decorative Images (Indices 1, 4, 11) */
    body .bn_item:nth-child(1),
    body .bn_item:nth-child(4),
    body .bn_item:nth-child(11) {
        display: none !important;
    }

    /* TOP CARD ($500 million+) - Full Width (Item 2) */
    body .bn_item:nth-child(2) {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-height: 240px !important;
        margin-bottom: 15px !important;
        border-radius: 24px !important;
    }

    /* Text Adjustments */
    body .bn_item h3 {
        font-size: 22px !important;
    }

    body .bn_item p {
        font-size: 13px !important;
    }

    body .wsus__by_the_numbers h2 {
        font-size: 32px !important;
    }

    /* Shape Adjustments */
    .bn_shape_arch {
        border-radius: 70px 70px 16px 16px !important;
        padding-top: 30px !important;
    }

    .bn_shape_pill,
    .bn_shape_pill_texture {
        border-radius: 40px !important;
    }
}