/* Explain: Styles for the membership statistics heading and counters. */
/* Homepage membership statistics strip — four compact live-feel counters under the MEMBERSHIP heading. */
.membership-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 1024px) {
    .membership-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: 1.25rem 1.3rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 41, 67, 0.22);
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: var(--accent-soft);
    color: var(--primary-color);
    font-size: 0.95rem;
}

.stat-value {
    margin-top: 0.55rem;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-color);
}

.stat-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.stat-live {
    position: absolute;
    top: 1.25rem;
    right: 1.3rem;
    display: inline-flex;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--success-color);
    animation: statPulse 2s infinite;
}

@keyframes statPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0.55); }
    70% { box-shadow: 0 0 0 0.5rem rgba(46, 125, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .stat-live { animation: none; }
    .stat-card { transition: none; }
}

/* Editorial heading above the statistics strip — eyebrow, title and accent rule. */
.stats-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
    text-align: left;
}

.stats-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.stats-eyebrow i {
    font-size: 0.8rem;
    letter-spacing: 0;
    color: var(--accent-strong);
}

.stats-title {
    margin-top: 0.9rem;
    max-width: 46rem;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.1vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--primary-color);
}

.stats-accent {
    color: var(--accent-deep);
}

.stats-rule {
    display: block;
    width: 4.5rem;
    height: 3px;
    margin-top: 1.15rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent-color));
}

.stats-head + .membership-stats {
    margin-top: clamp(1.5rem, 2.6vw, 2.1rem);
}