/* Stats component */

.w3l-stats-section {
    position: relative;
    padding: 2.75rem 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--stats-bg, #ffffff);
}

.w3l-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--stats-overlay, linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%));
    pointer-events: none;
    z-index: 1;
}

.w3l-stats-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--stats-decor-radial, radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%));
    border-radius: 50%;
    animation: float-stats 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-stats {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.stats-decoration {
    position: absolute;
    border-radius: 50%;
    background: var(--stats-decoration-color, rgba(255, 255, 255, 0.06));
    pointer-events: none;
}

.stats-decoration-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation: pulse-stats 8s ease-in-out infinite;
}

.stats-decoration-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: pulse-stats 6s ease-in-out infinite 1s;
}

@keyframes pulse-stats {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.w3l-stats-inner-inf { position: relative; z-index: 2; }

.w3l-stats-inner-inf {
    padding: 0.35rem 0;
}

.stats-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--stats-title-color, #ffffff);
    margin-bottom: 0.5rem;
}

.stats-section-subtitle {
    text-align: center;
    color: var(--stats-subtitle-color, rgba(255,255,255,0.9));
    margin-bottom: 1.75rem;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.w3l-stats-section .stats-card {
    background: var(--stats-card-bg, rgba(255,255,255,0.12));
    border: 1px solid var(--stats-card-border, rgba(255,255,255,0.18));
    border-radius: 18px;
    padding: 1.2rem 1.1rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.w3l-stats-section .stats-card .stats-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--stats-card-icon-bg, rgba(255,255,255,0.16));
    color: var(--stats-card-icon-color, #ffffff);
    margin-bottom: 0.55rem;
}

.w3l-stats-section .stats-card .stats-info {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.w3l-stats-section .stats-card .counter {
    font-size: 2rem;
    font-weight: 800;
    color: var(--stats-value-color, #ffffff);
    margin: 0;
    line-height: 1;
}

.w3l-stats-section .stats-card .counter-no-anim {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--stats-value-affix-color, rgba(255,255,255,0.95));
    margin: 0;
    line-height: 1;
}

.w3l-stats-section .stats-card h3 {
    margin: 0.55rem 0 0;
    color: var(--stats-label-color, rgba(255,255,255,0.95));
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 28ch;
}

/* Style 2: flat inline statistics (printed directly) */
.w3l-stats-section.w3l-stats-section--style_2 .stats-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.45rem 0.1rem;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
        'icon value'
        'icon label';
    column-gap: 0.95rem;
    row-gap: 0.18rem;
    align-items: center;
    text-align: left;
    min-height: 126px;
}

.w3l-stats-section.w3l-stats-section--style_2 .stats-card .stats-icon {
    grid-area: icon;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 2rem;
    color: var(--stats-style2-icon-color, #6f42c1);
}

.w3l-stats-section.w3l-stats-section--style_2 .stats-card .counter {
    font-size: 3rem;
    font-weight: 800;
}

.w3l-stats-section.w3l-stats-section--style_2 .stats-card .counter-no-anim {
    font-size: 1.7rem;
    font-weight: 800;
}

.w3l-stats-section.w3l-stats-section--style_2 .stats-card h3 {
    grid-area: label;
    margin: 0;
    font-size: 1.05rem;
    color: var(--stats-label-color, rgba(255,255,255,0.92));
    line-height: 1.35;
    text-align: left;
    max-width: 28ch;
}

.w3l-stats-section.w3l-stats-section--style_2 .stats-card .stats-info {
    grid-area: value;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.3rem;
    min-height: 0;
}

@media (max-width: 768px) {
    .w3l-stats-section {
        padding: 2.15rem 0;
    }

    .stats-section-title {
        font-size: 2rem;
    }

    .stats-section-subtitle {
        margin-bottom: 1.25rem;
    }

    .w3l-stats-section.w3l-stats-section--style_2 .stats-card .counter {
        font-size: 2.6rem;
    }

    .w3l-stats-section.w3l-stats-section--style_2 .stats-card {
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 0.55rem;
        min-height: 108px;
    }

    .w3l-stats-section.w3l-stats-section--style_2 .stats-card .stats-icon {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .w3l-stats-section .stats-card h3,
    .w3l-stats-section.w3l-stats-section--style_2 .stats-card h3 {
        font-size: 0.98rem;
    }
}
