@import "../components.css";

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
  ul {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  a,
  span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 130%;
    color: var(--navy);
    transition: 0.2s;
  }
  a:hover {
    color: var(--orange);
  }
  a.active {
    background-color: var(--orange);
    color: white;
  }
  span {
    color: var(--brass);
    cursor: default;
  }
  .arrow {
    min-width: unset;
    width: 40px;
    padding: 0;
    border: 1px solid var(--orange);
    color: var(--orange);
    svg {
      width: 16px;
      fill: currentColor;
      transition: 0.2s;
    }
    &:hover {
      color: white;
      background-color: var(--orange);
    }
    &:active {
      transform: scale(0.95);
    }
  }
}

@media screen and (max-width: 990px) {
  .posts-list {
    .item.v2 {
      .content {
        .gap-20 {
          .button {
            width: 100%;
          }
        }
      }
    }
  }
  .pagination {
    margin-top: 40px;
    gap: 10px;
    ul {
      gap: 4px;
    }
    a,
    span {
      min-width: 36px;
      height: 36px;
      font-size: 13px;
    }
    .arrow {
      width: 36px;
    }
  }
}

