@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;
@use '../../atoms/slider-tabs/slider-tabs';

.quick-facts {
  position: relative;
  margin: var(--section-margin) 0;

  .container {
    position: relative;

    > h2, h3, h4 {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      text-align: center;
      text-transform: uppercase;
      font-size: var(--font-size-xs);
      line-height: 1;
      z-index: 1;
      font-weight: 400;
      font-family: "Source Sans Pro", sans-serif;
      margin-top: 30px;

      @media(max-width: 567px) {
        margin-top: 20px;
      }
    }
  }

  .slider {
    position: relative;
    display: block;
    text-align: center;
    background-color: var(--color-background);
    overflow: hidden;

    @media(max-width: 767px) {
      margin: 0 -20px;
    }

    &:before {
      content: "";
      position: absolute;
      width: 374px;
      height: 374px;
      background-color: #9AD7A3;
      top: 50%;
      left: 50%;
      border-radius: 50%;
      transform: translate(-50%, -50%);

      @media(max-width: 567px) {
        width: 110vw;
        height: 110vw;
      }
    }
  }

  .slide {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

    @media(max-width: 567px) {
      min-height: 100vw;
    }
  }

  p {
    max-width: 100%;
  }
  .counter {
    display: inline-block;
    font-size: 180px;
    line-height: 1;
    font-family: "Korb", sans-serif;
    font-weight: 700;
    text-align: center;
    max-width: 100%;

    @media(max-width: 999px) {
      font-size: calc(10vw + 50px);
    }
  }

  .fact-label {
    display: block;
    padding: 10px 20px 0;
    line-height: 1.4;

    @media(min-width: 768px) {
      padding-left: 60px;
      padding-right: 60px;
    }
  }

  .like-h4 {
    max-width: 60%;
    text-align: center;
    margin: 40px auto;

    @media(max-width: 999px) {
      max-width: 80%;
      padding: 0 20px;
    }
    @media(max-width: 767px) {
      max-width: 100%;
      padding: 0 20px;
    }
  }

  button {
    border: 0;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
  }

  .slider-tabs, .tabs {
    bottom: 0;
    margin: 20px 0;

    @media(max-width: 567px) {
      margin-bottom: 12px;
    }
  }

  .prev, .next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    right: 0;
    margin: -25px 10px;
    color: var(--color-text);

    @media(max-width: 767px) {
      display: none;
    }

    &:before {
      @include icon-small-arrow-right-simple;
      font-family: "Icons", sans-serif;
      font-size: 30px;
    }
  }

  .prev {
    left: 0;
    transform: rotate(180deg);
  }

  .count {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    padding-bottom: 20px;
    font-family: var(--font-korb), sans-serif;
    visibility: hidden;

    span {
      margin: 0 5px;
    }
  }
}
