/* Stats Block Styles */
.StatsBlock {
  width: 100%;
  padding: 2rem 0;
}

.StatsBlock-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.StatsBlock-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
}

/* Grid columns based on item count */
.StatsBlock-cols-1 .StatsBlock-item {
  width: 100%;
}

.StatsBlock-cols-2 .StatsBlock-item {
  width: calc(50% - 1px);
}

.StatsBlock-cols-3 .StatsBlock-item {
  width: calc(33.333% - 1px);
}

.StatsBlock-cols-4 .StatsBlock-item {
  width: calc(25% - 1px);
}

.StatsBlock-cols-5 .StatsBlock-item {
  width: calc(20% - 1px);
}

.StatsBlock-cols-6 .StatsBlock-item {
  width: calc(16.666% - 1px);
}

.StatsBlock-cols-7 .StatsBlock-item {
  width: calc(14.285% - 1px);
}

.StatsBlock-cols-8 .StatsBlock-item {
  width: calc(12.5% - 1px);
}

/* Stats item styles */
.StatsBlock-item {
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

/* Add vertical dividers between items */
.StatsBlock-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 2px;
  background-color: #FFD100;
}

.StatsBlock-value {
  font-size: 4.5rem;
  font-family: "HelveticaNowDisplayBold", Arial, sans-serif;
  color: #005587;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.StatsBlock-description {
  font-size: 1.25rem;
  font-family: "HelveticaNowDisplayRegular", "Helvetica", "Arial", sans-serif;
  line-height: 1.4;
  color: #005587;
  max-width: 75%;
  margin: 0 auto;
}

/* Placeholder styles for editor */
.StatsBlock-placeholder {
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  color: #777;
}

/* Mobile styles */
@media (max-width: 991px) {
  .StatsBlock-value {
    font-size: 4rem;
  }

  .StatsBlock-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  /* Reset grid layout for mobile */
  .StatsBlock-grid {
    flex-direction: column;
  }

  /* Full width items with row layout for content */
  .StatsBlock-item {
    width: 100% !important;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  /* Change dividers to horizontal for mobile */
  .StatsBlock-item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #FFD100; /* UCLA gold color */
  }

  /* Stats value styling - outlined text effect */
  .StatsBlock-value {
    font-size: 3.5rem;
    color: transparent; /* Make text transparent */
    -webkit-text-stroke: 1px #84B9E4; /* Create outline effect with light blue */
    text-stroke: 1px #84B9E4;
    margin-bottom: 0;
    margin-right: 1.5rem;
    min-width: 35%;
    text-align: left;
    line-height: 1.1;
    padding: 0 30px;
    font-weight: normal; /* Remove bold for outlined effect */
  }

  /* Description styling */
  .StatsBlock-description {
    font-size: 1rem;
    line-height: 1.3;
    max-width: 70%;
    margin: 0;
    text-align: left;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .StatsBlock-item {
    padding: 1.2rem 0;
  }

  .StatsBlock-value {
    font-size: 2.5rem;
    min-width: 30%;
    -webkit-text-stroke: 0.75px #84B9E4; /* Slightly thinner stroke for smaller text */
    text-stroke: 0.75px #84B9E4;
  }

  .StatsBlock-description {
    font-size: 0.9rem;
    max-width: 65%;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .StatsBlock-value {
    font-size: 2rem;
    min-width: 40%;
    -webkit-text-stroke: 0.5px #84B9E4; /* Even thinner stroke for smallest text */
    text-stroke: 0.5px #84B9E4;
  }

  .StatsBlock-description {
    font-size: 0.8rem;
    max-width: 60%;
  }
}
