.stats-block {
  container-type: inline-size;
  .stats-title {
    margin-bottom: 4rem;

    @media screen and (max-width: 768px) {
      margin-bottom: 2rem;
    }
  }
  .stats-container {
    display: flex;
    gap: 0rem;
    justify-content: flex-start;
    justify-content: center;
    overflow: hidden;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      align-items: center;
      gap: 4rem;
    }
    
    .stat {
      text-align: center;
      border-left: 1px solid;
      border-image-source: linear-gradient(180deg, #4500F9 0%, #8752FA 30.29%, #CD83FF 67.31%, #FF5001 100%);
      border-image-slice: 1;
      padding-left: 4rem;
      padding-right: 4rem;
      /* max-width: 329px; */
      /* min-width: 329px; */
      flex: 1;
      opacity: 0.3;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;

      @media screen and (max-width: 1200px) {
        padding-left: 2rem;
        padding-right: 2rem;
      }

      &:has(.of-five) {
        max-width: 280px;
        /* min-width: 280px; */
        @media screen and (max-width: 768px) {
          max-width: 420px;
          min-width: unset;
          width: 100%;
        }
      }

      > *:first-child {
        margin-top: 0;
      }

      @media screen and (max-width: 768px) {
        max-width: 420px;
        min-width: unset;
        width: 100%;

        border-left: none;
        border-bottom: 1px solid;
        border-image-source: linear-gradient(90deg, #4500F9 0%, #8752FA 30.29%, #CD83FF 67.31%, #FF5001 100%);
        border-image-slice: 1;
        padding-bottom: 2rem;

        &:last-child {
          border-bottom: none;
          padding-bottom: 0;
        }
      }

      &:first-child {
        border-left: none;
      }
    }
  }

  .value {
    font-size: 12rem;
    font-size: clamp(9.6rem, 8vw, 12rem);
    line-height: 1;
    letter-spacing: -0.36rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
    transition: transform 0.3s ease;
    font-variant-numeric: tabular-nums; 

    @media screen and (min-width: 768px) {
      
      @container (max-width: 768px) {
        font-size: 5rem;
        letter-spacing: -0.15rem;
      }

      @container (max-width: 600px) {
        font-size: 3.2rem;
        letter-spacing: 0;
      }
    }
  }

  &.stats-count-4 .value {
    font-size: 6.4rem;
    letter-spacing: 0;
  }

  &.stats-count-5 .value {
    font-size: 3.2rem;
    letter-spacing: 0;

    
  }

  .eyebrow, 
  .description {
    color: #BFBEC0;
    text-wrap-style: balance;
  }
}

.stats-block.animate-in .stat {
  opacity: 1;
  transform: translateY(0);
}

.has-text-color {
  .stats-block {
    .eyebrow, 
    .description {
      color: var(--wp--preset--color--text);
      opacity: 0.5;
    }
  }
}





