/* Stats section — mirrored structure and behavior from Registration Benefits */
.stats { background: #fff; border-top: 1px solid var(--tg-grey); }
.stats .container { padding: 38px 16px; max-width: 1500px; margin: 0 auto; position: relative; }
.stats-header { text-align: center; }
.stats-header h2 { color: var(--tg-navy); font-size: clamp(1.6rem, 2.6vw, 2rem); animation: revealUp 500ms ease both; }
.stats-header p { color: #000000; font-size: clamp(1rem, 1.5vw, 1.125rem); animation: fadeIn 700ms ease both 120ms; }
.header-accent   {height: 6px; max-width: 160px; border-radius: 3px; background: linear-gradient(90deg, var(--primary, #0d6efd), var(--secondary, #00c2ff)); margin: 12px auto 0px;}   
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; justify-items: center; }
.stat-card { background: linear-gradient(172deg, rgb(229 234 241 / 90%) 0%, #f59e0be3 100%); border: 1px solid var(--tg-grey); border-radius: var(--radius-8); padding: 18px; text-align: center; box-shadow: var(--shadow-1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,35,64,0.18); }
.stat-number { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; color: var(--tg-navy); display: block; }
.stat-label { color: var(--tg-charcoal); font-size: clamp(0.9rem, 1vw + 0.6rem, 1.05rem); }

/* Horizontal layout with equal-width cards above 577px */
@media (min-width: 577px) {
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; overflow: visible; }
  .stat-card { border-radius: var(--radius-8); width: 100%; }
}

/* Mobile horizontal scroll-snap under 577px */
@media (max-width: 576px) {
  .stats-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 0; }
  .stats-grid::-webkit-scrollbar { display: none; }
  .stat-card { flex: 0 0 100vw; max-width: 100vw; scroll-snap-align: start; border-radius: 0; padding: 22px 18px; }
}

/* Mobile arrow controls for stats carousel */
@media (max-width: 576px) {
  .stats-mobile-arrows {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    pointer-events: none;
  }
  .stats-snap-prev,
  .stats-snap-next {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(12, 35, 64, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: saturate(140%) blur(4px);
    backdrop-filter: saturate(140%) blur(4px);
    font-size: 20px;
    line-height: 1;
  }
}
@media (min-width: 577px) { .stats-mobile-arrows { display: none; } }

/* Animations reused */
@keyframes revealUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
