/**
 * Fun Fact Section Styles
 */

.xb-fanfact .xb-item--number {
    margin-bottom: 10px;
}

/**
 * Fun Fact V2 (xb-fanfact--two)
 * Make items align as a consistent 2x2 grid (fixes last item misalignment).
 */
.elementor-widget-int-funfact .xb-fanfact--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; /* keeps the subtle 1px separators the parent theme uses */
}

/* Ensure each tile fills its grid cell and centers content nicely */
.elementor-widget-int-funfact .xb-fanfact--two .xb-item--fan_inner {
    width: 100%;
    margin: 0 !important; /* override parent nth-child margin-top/margin-right */
    padding-left: 0 !important; /* override parent nth-child padding-left */
    display: flex;
    align-items: center;
}

/* Preserve the rounded-corner look without relying on parent nth-child layout hacks */
.elementor-widget-int-funfact .xb-fanfact--two .xb-item--fan_inner:nth-child(1) {
    border-radius: 0 0 20px 0;
}
.elementor-widget-int-funfact .xb-fanfact--two .xb-item--fan_inner:nth-child(2) {
    border-radius: 0 0 0 20px;
}
.elementor-widget-int-funfact .xb-fanfact--two .xb-item--fan_inner:nth-child(3) {
    border-radius: 0 20px 0 0;
}
.elementor-widget-int-funfact .xb-fanfact--two .xb-item--fan_inner:nth-child(4) {
    border-radius: 20px 0 0 0;
}

/* Mobile: fall back to a single column */
@media (max-width: 767px) {
    .elementor-widget-int-funfact .xb-fanfact--two {
        grid-template-columns: 1fr;
    }
}
