/* ===== STATS SECTION ===== */
.stats-section {
  background-color: #f9f9f9;
  padding: 96px 0;
}

/* ===== STATS WRAPPER ===== */
.stats-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== STAT ITEM ===== */
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px; /* 32px gap from divider on both sides */
}

/* ===== STAT NUMBER (Heading) ===== */
.stat-number {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.4px;
  color: #006e25;
  font-weight: 700;
  margin: 0;
}

/* ===== STAT LABEL ===== */
.stat-label {
  font-size: 18px;
  line-height: 150%;
  color: #3e4a3c;
  margin: 8px 0 0 0; /* 8px gap from heading */
}

/* ===== DIVIDER ===== */
.stat-divider {
  width: 1px;
  height: 64px; /* Vertical divider height */
  background-color: #e5e5e5;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet: 2x2 grid */
@media (max-width: 768px) {
  .stats-section {
    padding: 60px 0;
  }

  .stats-wrapper {
    flex-wrap: wrap;
    gap: 0;
  }

  .stat-item {
    flex: 0 0 50%; /* 2 items per row */
    padding: 32px 24px;
    position: relative;
  }

  /* Hide original dividers on tablet/mobile */
  .stat-divider {
    display: none;
  }

  /* Add border lines using pseudo elements for 2x2 grid */
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) {
    border-right: 1px solid #e5e5e5;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid #e5e5e5;
  }

  .stat-number {
    font-size: 34px;
    line-height: 42px;
  }

  .stat-label {
    font-size: 16px;
  }
}

/* Mobile: Single column */
@media (max-width: 480px) {
  .stats-section {
    padding: 48px 0;
  }

  .stats-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .stat-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 28px 24px;
    border-right: none !important; /* Remove right borders */
  }

  /* Add bottom border except last item */
  .stat-item:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
  }

  .stat-item:nth-child(2) {
    border-bottom: 1px solid #e5e5e5 !important;
  }

  .stat-number {
    font-size: 30px;
    line-height: 38px;
  }

  .stat-label {
    font-size: 15px;
  }
}
