.pagination {
  --bs-pagination-padding-x: 0.75rem;
  --bs-pagination-padding-y: 0.375rem;
  --bs-pagination-font-size: 1.25rem;
  --bs-pagination-color: var(--bs-link-color);
  --bs-pagination-bg: transparent;
  --bs-pagination-border-width: 0;
  --bs-pagination-border-color: var(--bs-border-color);
  --bs-pagination-border-radius: 0;
  --bs-pagination-hover-color: var(--bs-link-hover-color);
  --bs-pagination-hover-bg: transparent;
  --bs-pagination-hover-border-color: var(--bs-border-color);
  --bs-pagination-focus-color: var(--bs-dark-text-emphasis);
  --bs-pagination-focus-bg: transparent;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  --bs-pagination-active-color: var(--bs-dark-text-emphasis);
  --bs-pagination-active-bg: transparent;
  --bs-pagination-active-border-color: #0d6efd;
  --bs-pagination-disabled-color: var(--bs-secondary-color);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-border-color: var(--bs-border-color);

  display: flex;
  padding-left: 0;
  list-style: none;
}

[dir="rtl"] .pagination {
  padding-right: 0;
  padding-left: 0;
}

.page-link {
  position: relative;
  display: block;
  padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  text-decoration: none;
  color: var(--bs-pagination-color);
  border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
  background-color: var(--bs-pagination-bg);
  font-size: var(--bs-pagination-font-size);
}

@media (prefers-reduced-motion: reduce) {
  .page-link {
    transition: none;
  }
}

.page-link:hover {
  z-index: 2;
  color: var(--bs-pagination-hover-color);
  border-color: var(--bs-pagination-hover-border-color);
  background-color: var(--bs-pagination-hover-bg);
}

.page-link:focus {
  z-index: 3;
  color: var(--bs-pagination-focus-color);
  outline: 0;
  background-color: var(--bs-pagination-focus-bg);
  box-shadow: var(--bs-pagination-focus-box-shadow);
}

.page-link.active,
.active > .page-link {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  border-color: var(--bs-pagination-active-border-color);
  background-color: var(--bs-pagination-active-bg);
}

.page-link.disabled,
.disabled > .page-link {
  pointer-events: none;
  color: var(--bs-pagination-disabled-color);
  border-color: var(--bs-pagination-disabled-border-color);
  background-color: var(--bs-pagination-disabled-bg);
}

.page-item:not(:first-child) .page-link {
  margin-left: calc(-1 * var(--bs-border-width));
}

[dir="rtl"] .page-item:not(:first-child) .page-link {
  margin-right: calc(-1 * var(--bs-border-width));
  margin-left: 0;
}

.page-item .page-link {
  border-radius: var(--bs-pagination-border-radius);
}

.pagination-lg {
  --bs-pagination-padding-x: 1.5rem;
  --bs-pagination-padding-y: 0.75rem;
  --bs-pagination-font-size: 1.125rem;
  --bs-pagination-border-radius: var(--bs-border-radius-lg);
}

.pagination-sm {
  --bs-pagination-padding-x: 0.5rem;
  --bs-pagination-padding-y: 0.25rem;
  --bs-pagination-font-size: 0.875rem;
  --bs-pagination-border-radius: var(--bs-border-radius-sm);
}

.pagination {
  font-size: 1.25rem;
  font-weight: 700;
}

.pagination .pager__item--previous a,
.pagination .pager__item--next a {
  color: var(--bs-dark);
}

.pagination .pager__item--previous a:hover,
.pagination .pager__item--next a:hover {
  color: var(--bs-link-hover-color);
}

.pagination .pager__item--ellipsis a,
.pagination .pager__item--ellipsis .page-link {
  color: var(--bs-link-color);
}

.pagination .pager__item--ellipsis a:hover,
.pagination .pager__item--ellipsis .page-link:hover {
  color: var(--bs-link-hover-color);
}

[data-bs-theme="dark"] .pagination .pager__item--previous a,
[data-bs-theme="dark"] .pagination .pager__item--next a {
  color: var(--bs-light);
}

.pagination-sm .page-link {
  font-size: 0.875rem;
}

.pagination-lg .page-link {
  padding: 1.125rem;
  font-size: 1.25rem;
}
