.fun-facts {
  &.section {
    border-top: 10px solid $color-primary;
  }
  &__boxes {
    @extend %d-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    @include breakpoint(max-lg) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @include breakpoint(max-sm) {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
  &-box {
    padding-inline: 44px;
    padding-block: 100px;
    border-left: 1px solid rgba($color-white, 0.1);

    @include breakpoint(max-xl) {
      padding-inline: 30px;
      padding-block: 80px;
    }

    @include breakpoint(max-lg) {
      border-left: none;
      padding-block: 50px;
      &:not(:last-of-type) {
        border-bottom: 1px solid rgba($color-white, 0.1);
      }
    }
    &:last-of-type {
      border-right: 1px solid rgba($color-white, 0.1);
      @include breakpoint(max-lg) {
        border-right: none;
      }
    }
    .fun-facts-top {
      border-bottom: 1px solid rgba($color-white, 0.1);
      .review {
        @extend %d-flex, %item-center;
        @include transition($transition);
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 1px $color-white;
        // text-stroke: 1px $color-white;
        margin-bottom: 8px;

        @include breakpoint(max-xl) {
          -webkit-box-pack: center;
          -ms-flex-pack: center;
          justify-content: center;
        }
      }
      .review-info {
        margin-bottom: 12px;
        @include breakpoint(max-xl) {
          text-align: center;
        }
      }
    }
    .fun-facts-bottom {
      margin-block-start: 44px;
      @include breakpoint(max-md) {
        margin-block-start: 20px;
      }
      .fun-facts-info {
        @extend %d-flex, %item-center;
        gap: 10px;
        padding: 6px;
        background-color: $color-1;
        border-radius: 50px;

        @include breakpoint(max-lg) {
          border-radius: 5px;
          -webkit-box-orient: vertical;
          -webkit-box-direction: normal;
          -ms-flex-direction: column;
          flex-direction: column;
          -webkit-box-pack: center;
          -ms-flex-pack: center;
          justify-content: center;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          text-align: center;
          word-wrap: break-word;
        }
        span {
          @extend %d-grid, %place-center;
          @include transition($transition);
          width: 100px;
          height: 38px;
          background-color: $color-white;
          border-radius: 50px;
        }
      }
    }

    &.active,
    &:hover {
      .fun-facts-top {
        .review {
          color: $color-white;
        }
      }
      .fun-facts-bottom {
        .fun-facts-info {
          span {
            background-color: $color-primary;
          }
        }
      }
    }
  }
}

.fun-facts2 {
  &.section {
    padding-block: 100px;

    @include breakpoint(max-md) {
      padding-block: 80px;
    }
  }
  &__thumb {
    @extend %d-flex, %item-center;
    gap: 35px;

    .thumb-wrapper {
      border-radius: 100px;
      overflow: hidden;
      max-width: 330px;

      img {
        width: 100%;
      }
    }
    svg {
      height: auto;
    }
  }
  &__content {
    .upper-content {
      @extend %d-flex, %justify-between, %item-center;
      border-bottom: 1px solid rgba($color-white, 0.1);
      gap: 80px;
      padding-bottom: 5px;

      @include breakpoint(max-xl) {
        gap: 60px;
      }
      @include breakpoint(max-md) {
        gap: 40px;
      }
      @include breakpoint(max-sm) {
        gap: 20px;
      }

      h4 {
        max-width: 284px;
      }
      .total-review {
        @extend %d-flex, %item-center;
        line-height: 1;

        @include breakpoint(xl) {
          font-size: 70px;
        }
        @include breakpoint(xxl) {
          font-size: 80px;
        }
        @include breakpoint(xxxl) {
          font-size: 90px;
        }
        @include breakpoint(xxxxl) {
          font-size: 100px;
        }

        & > * {
          line-height: inherit;
          white-space: nowrap;
        }
      }
    }
    .bottom-content {
      @extend %d-flex, %justify-between, %item-center, %flex-wrap;
      gap: 15px;
      padding-top: 20px;
      .join-team {
        @extend %d-flex, %item-center;
        gap: 15px;
        color: $color-white;
      }
      p {
        max-width: 230px;
      }
    }
  }
}
