/* =========================================
   HOMEPAGE STATS
========================================= */

.homepage-stats {
  width: 100%;
  padding: 50px 0;
  background-color: #ffffff;
  box-sizing: border-box;
}

.stats-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* =========================================
   DESKTOP: ALL 6 CARDS IN ONE ROW
========================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

/* =========================================
   CARD
========================================= */

.stats-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-width: 0;
  min-height: 100px;

  padding: 10px 12px;

  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;

  text-decoration: none;
  box-sizing: border-box;

  overflow: hidden;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
  border-color: #dddddd;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* =========================================
   TEXT
========================================= */

.stats-text {
  flex: 1;
  min-width: 0;

  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #333333;

  position: relative;
  z-index: 2;
}

.text-hair {
  color: #85dcb2;
}

.text-menopause {
  color: #e06d53;
}

.text-check {
  color: #85dcb2;
}

/* Consultation Card Text */

.stats-text-group {
  display: flex;
  flex-direction: column;

  flex: 1;
  min-width: 0;

  position: relative;
  z-index: 2;
}

.text-unsure {
  margin-bottom: 3px;

  font-size: 0.78rem;
  line-height: 1.15;
  font-weight: 700;

  color: #967777;
}

.text-start-here {
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;

  color: #111111;
}

/* =========================================
   IMAGES
========================================= */

.stats-media {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  margin-left: 6px;
}

.img-hair,
.img-menopause,
.img-check,
.img-doctor {
  display: block;

  width: 58px;
  height: 58px;

  object-fit: contain;
}

.img-doctor {
  object-fit: cover;
}

/* =========================================
   CONSULTATION CARD
========================================= */

.card-consult {
  position: relative;
  overflow: hidden;
}

/* =========================================
   MEDIUM DESKTOP / SMALL LAPTOP
   3 CARDS PER ROW
========================================= */

@media (max-width: 1199px) {
  .stats-container {
    max-width: 1000px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .stats-card {
    min-height: 105px;
  }

  .stats-text {
    font-size: 1.1rem;
  }

  .text-unsure {
    font-size: 0.9rem;
  }

  .text-start-here {
    font-size: 1.1rem;
  }

  .img-hair,
  .img-menopause,
  .img-check,
  .img-doctor {
    width: 65px;
    height: 65px;
  }
}

/* =========================================
   TABLET
   2 CARDS PER ROW
========================================= */

@media (max-width: 767px) {
  .homepage-stats {
    padding: 30px 0;
  }

  .stats-container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stats-card {
    min-height: 100px;
    padding: 12px;
  }
}

/* =========================================
   MOBILE
   1 CARD PER ROW
========================================= */

@media (max-width: 576px) {
  .homepage-stats {
    padding: 12px 0;
  }

  .stats-container {
    padding: 0 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stats-card {
    min-height: 90px;
    padding: 10px 18px;
  }

  .stats-text {
    font-size: 1.1rem;
  }

  .text-unsure {
    font-size: 0.88rem;
  }

  .text-start-here {
    font-size: 1.1rem;
  }

  .img-hair,
  .img-menopause,
  .img-check,
  .img-doctor {
    width: 65px;
    height: 65px;
  }
}