/* ==========================================================================
   Stats Section Block
   ========================================================================== */

/* --- Section --- */
.scts-section {
  padding: 2.5rem 0;
}

/* --- Header row: title pill + subtitle --- */
.scts-header {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 40px;
}

/* --- Title pill (green highlight) --- */
.scts-title-wrap {
  background-color: #b9ff66;
  border-radius: 7px;
  padding: 0 7px;
  flex-shrink: 0;
}

.scts-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

/* --- Subtitle --- */
.scts-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  max-width: 459px;
}

/* ==========================================================================
   Stats row — tab border effect
   Each item has a top border + optional left/right side borders with rounded
   top corners, creating a connected "file tab" strip.
   ========================================================================== */

.scts-stats {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
}

/* --- Individual stat item --- */
.scts-stat {
  flex: 1;
  min-width: 0;
  padding: 12px 30px 24px;
  border-top: 1px solid #000000;
  box-sizing: border-box;
}

/* Not first: left border + rounded top-left, pull left by 1px to share border with neighbour */
.scts-stat:not(:first-child) {
  border-left: 1px solid #000000;
  border-top-left-radius: 20px;
  margin-left: -1px;
  position: relative;
}

/* Not last: right border + rounded top-right */
.scts-stat:not(:last-child) {
  border-right: 1px solid #000000;
  border-top-right-radius: 20px;
}

/* Single-item fallback: full box top */
.scts-stat:only-child {
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-left: 0;
}

/* --- Value (big number/percentage) --- */
.scts-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 6px;
}

/* --- Label --- */
.scts-stat-label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .scts-stat {
    padding: 12px 20px 20px;
  }
}

@media (max-width: 1023px) {
  .scts-header {
    gap: 24px;
    margin-bottom: 32px;
  }

  .scts-title {
    font-size: 1.75rem;
  }

  .scts-stat {
    padding: 10px 16px 20px;
  }

  .scts-stat-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .scts-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    text-align: center;
  }

  .scts-subtitle {
    max-width: 100%;
    text-align: center;
  }

  /* Switch to 2-column grid on mobile, drop tab borders */
  .scts-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .scts-stat {
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    position: static !important;
    padding: 12px 16px 20px;
  }

  /* Even columns get a left divider */
  .scts-stat:nth-child(2n) {
    border-left: 1px solid #000000 !important;
  }

  .scts-stat-value {
    font-size: 1.5rem;
  }

  .scts-stat-label {
    font-size: 0.9rem;
  }
}

@media (max-width: 479px) {
  .scts-stats {
    grid-template-columns: 1fr;
  }

  .scts-stat:nth-child(2n) {
    border-left: none !important;
  }

  .scts-title {
    font-size: 1.5rem;
  }
}
