/*------------- #NAVIGATION --------------*/


.navigation-pages {
  margin: 20px auto;
  width: 100%;
  position: relative;
  max-width: 770px;
  text-align: center;

  .page-numbers {
    position: relative;
    background: $white-color;
    display: inline-block;
    margin: 0 12px 0 0;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border: 2px solid transparent;
    text-transform: uppercase;
    color: $font-color;
    font-size: 20px;
    border-radius: 100%;
    transition: all .3s ease;

    @media (max-width: 640px) {
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 14px;
      margin: 0 8px 0 0;
    }

    @media (max-width: 460px) {
      width: 25px;
      height: 25px;
      line-height: 22px;
      font-size: 12px;
      margin: 0 8px 0 0;
    }

    &.current {
      background-color: transparent;
      color: var(--primary-accent-color);
      border-color: var(--primary-accent-color);
    }

    &:hover {
      color: var(--primary-accent-color);
    }

    &.loading {
      border: 2px solid var(--primary-accent-color);

      .load-more-spinner {
        fill: var(--primary-accent-color);
        stroke: var(--primary-accent-color);
      }
    }

    &.next,
    &.prev {
      width: auto;

      &.loading {
        border: none;
      }
    }

    span {
      position: relative;
    }

    &.bg-border-color {
      background-color: #f7f9f9;

      &.current {
        background-color: transparent;
      }
    }
  }

  .next {
    float: right;

    &:hover .btn-next {
      margin-right: 0;
      transform: translateX(2px);
    }
  }

  .prev {
    float: left;

    &:hover .btn-prev {
      margin-left: 0;
      transform: translateX(-2px);
    }
  }

  .btn-next,
  .btn-prev {
    position: relative;
    top: auto;
    right: initial;
    left: initial;
    transform: none;
  }
}

.page-links {
  display: inline-block;
  padding: 15px 20px;
  background-color: #fff;
  border-radius: 50px;

  a {
    position: relative;
    background: #f7f9f9;
    display: inline-block;
    margin: 0 8px 0 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid transparent;
    text-transform: uppercase;
    color: #7b7b7b;
    font-size: 14px;
    border-radius: 100%;
    transition: all .3s ease;
  }
}