@import "../../styles/variables";

.contents {
  color: #fff;
  padding-top: 60px;

  h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
  }

  @media (max-width: $breakpoint-xs) {
    padding: 0 16px 16px;
  }

  &__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    @media (max-width: $breakpoint-xs) {
      flex-direction: column;
    }
  }

  &__right-side {
    width: 95%;

    @media (max-width: $breakpoint-lg) {
      width: 75%;
    }

    @media (max-width: $breakpoint-md) {
      width: 70%;
    }

    @media (max-width: $breakpoint-xs) {
      width: 80%;
    }
  }

  &__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;

    @media (max-width: $breakpoint-lg) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    @media (max-width: $breakpoint-md) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    @media (max-width: $breakpoint-xs) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 10px;
}

/* Button Styles */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid #000;
  background-color: #5a4af4;
  color: #fff;
  cursor: pointer;

  &:hover {
    background-color: #f3f4f6;
    color: #374151;
  }
}

.dark .button {
  background-color: #1f2937;
  border-color: #374151;
  color: #9ca3af;

  &:hover {
    background-color: #4b5563;
    color: white;
  }
}

/* Next Button Adjustment */
.next {
  margin-left: 0.75rem;
}
