.stats-container {
  margin: 0 auto;
  padding: 0 1.5rem;
}

.stats-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 4rem);
  padding: 2rem 0;
  width: 100%;
  max-width: 100%; /* ensure it stays within .stats-container */
}

.stats-header{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2rem; 
}

.section-subheading {
  font-size: clamp(1.5rem, 1vw + 0.75rem, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.25rem;
  color: #000; /* or base color */
  max-width: 1250px;
  margin: 0 auto;
  line-height: 1.5;
}

.highlight-green {
  color: #5cb85c;
  font-weight: 500;
  letter-spacing: 0.02em;
}


.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  background-color: white;
  border-radius: 12px;
  flex: 1 1 30%;
  min-width: 250px;
  /* max-width: 450px; */
  min-height: 300px;
  height: 100%;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s); /* All CSS variables must begin with `--`. e.g., `--main-color` or `--radius`. */
}

.stat-card h3 {
  color: #5cb85c;
  font-weight: 500;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
}

.stat-icon {
  width: clamp(100px, 10vw, 120px);
  height: clamp(100px, 10vw, 120px);
  margin-bottom: 2rem;
}

.stat-card:nth-child(1) {
  --delay: 0.1s;
}
.stat-card:nth-child(2) {
  --delay: 0.3s;
}
.stat-card:nth-child(3) {
  --delay: 0.5s;
}

@media (max-width: 1050px) {
  .stats-header {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .stat-card h3 {
    font-size: clamp(1.25rem, 1vw + 0.5rem, 2rem);
  }

  .stat-card p {
    font-size: clamp(1rem, 0.8vw + 0.5rem, 1.125rem);
  }

  .stats-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}