/* =========================================
   STATS COUNTER SECTION (stats-section.css)
========================================= */
html {                      
    scroll-behavior: smooth;
}                           

.stats-section,
.stats-section * {
  box-sizing: border-box;
}

.stats-section {
  max-width: 1200px;
  width: 100%;
  margin: 56px auto;
  padding: 0 20px;
  text-align: center;
}

.stats-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 44px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(40, 91, 64, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3 Columns on Desktop (6 stats = 2 clean balanced rows) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-content: center;
  row-gap: 34px;
  column-gap: 0;
  width: 100%;
}

/* Individual Stat Item (Clean open layout like original) */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  position: relative;
  width: 100%;
  border-radius: 12px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

/* Subtle divider between columns 1->2 and 2->3 */
.stat-item:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14%;
  height: 72%;
  width: 1px;
  background-color: #e2e8f0;
}

.stat-item.is-active {
  background-color: rgba(237, 246, 233, 0.45);
}

.stat-item:hover {
  transform: translateY(-3px);
}

/* Icon Style */
.stat-icon {
  font-size: 2rem;
  color: #a47a22;
  margin-bottom: 10px;
  line-height: 1;
}

/* Stat Number */
.stat-number {
  font-size: clamp(2.25rem, 3vw, 2.9rem);
  font-weight: 800;
  color: #087f5b;
  margin: 0 0 6px;
  line-height: 1.05;
}

/* Stat Label */
.stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #17352d;
  margin: 0;
  line-height: 1.3;
}

/* Update Subtext */
.stat-update {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 5px;
}

/* Pagination Dots */
.stats-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  width: 100%;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: #285b40;
}

/* =========================================
   TABLET RESPONSIVE (<= 900px -> 2 Columns)
========================================= */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .stat-item:not(:nth-child(3n))::after {
    display: none;
  }

  .stat-item:nth-child(odd)::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: 14%;
    height: 72%;
    width: 1px;
    background-color: #e2e8f0;
  }
}

/* =========================================
   MOBILE RESPONSIVE (<= 550px -> 1 Column)
========================================= */

@media (max-width: 550px) {
  .stats-section {
    margin: 40px auto;
    padding: 0 14px;
  }

  .stats-container {
    padding: 32px 16px;
    border-radius: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .stat-item::after,
  .stat-item:nth-child(odd)::after {
    display: none !important;
  }

  .stat-item {
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f6;
  }

  .stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .stat-number {
    font-size: 2.35rem;
  }

  .stats-dots {
    margin-top: 24px;
  }
}