@charset "UTF-8";

/* --- CSS for [wg_stats_grid] Shortcode --- */

/* Outer container to hold the stats grid. */
.wg-stats-wrapper {
    clear: both; 
    margin: 20px 0;
}

/* Container for the responsive grid (The flex container) */
.wg-stats-wrapper .event-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

/* Styling for each grid item (The flex items) - Applied to <a> */
.wg-stats-wrapper .event-stats-item.is-button-link {
    /* Required Styles */
    background-color: var(--wg-red);
    color: white;
    border-radius: 10px;
    padding: 20px;
    
    /* Centering Content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Grid Sizing: 4 items per row on desktop */
    flex: 1 1 20%;
    min-width: 200px; 
    box-sizing: border-box; 
    
    /* Button/Hover Styles */
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; 
}

/* Hover Effect: Increase size by 3% */
.wg-stats-wrapper .event-stats-item.is-button-link:hover {
    transform: scale(1.03); 
    background-color: #A30000;
}


/* Typography for the count */
.wg-stats-wrapper .stats-count {
    font-size: 2.5em; 
    line-height: 1.2;
    margin: 5px 0 0 0;
}

/* Typography for the title */
.wg-stats-wrapper .stats-title {
    font-size: 0.9em;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- Responsive Adjustments --- */

/* Mobile View (2 items per row) */
@media (max-width: 767px) {
    .wg-stats-wrapper .event-stats-item.is-button-link {
        flex: 1 1 calc(50% - 10px); 
    }
}