.d-flex.justify-items-center.justify-content-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.d-flex.justify-items-center.justify-content-between > .d-sm-none {
  display: flex;
  width: 100%;
}

.d-flex.justify-items-center.justify-content-between > .d-none.d-sm-flex {
  display: none;
}

.d-flex.justify-items-center.justify-content-between .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d-flex.justify-items-center.justify-content-between .page-item {
  display: flex;
}

.d-flex.justify-items-center.justify-content-between .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border, var(--border, #2a2a2a));
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--color-bg-surface, var(--card, #121212));
  color: var(--color-text-secondary, var(--sub, #bdbdbd));
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    color var(--transition-fast, 150ms ease),
    border-color var(--transition-fast, 150ms ease),
    background var(--transition-fast, 150ms ease),
    box-shadow var(--transition-fast, 150ms ease);
}

.d-flex.justify-items-center.justify-content-between .page-item:not(.disabled):not(.active) .page-link:hover {
  border-color: var(--color-primary, var(--gold, #d4921a));
  color: var(--color-primary, var(--gold, #d4921a));
  background: var(--color-hover-subtle, rgba(255, 255, 255, 0.04));
}

.d-flex.justify-items-center.justify-content-between .page-link:focus-visible {
  outline: 2px solid var(--color-primary, var(--gold, #d4921a));
  outline-offset: 2px;
}

.d-flex.justify-items-center.justify-content-between .page-item.active .page-link {
  border-color: var(--color-primary, var(--gold, #d4921a));
  background: var(--color-primary, var(--gold, #d4921a));
  color: var(--color-text-inverse, #090909);
  box-shadow: var(--shadow-glow, 0 0 20px rgba(212, 146, 26, 0.25));
  cursor: default;
}

.d-flex.justify-items-center.justify-content-between .page-item.disabled .page-link {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .d-flex.justify-items-center.justify-content-between > .d-sm-none {
    display: none;
  }

  .d-flex.justify-items-center.justify-content-between > .d-none.d-sm-flex {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
  }

  .d-flex.justify-items-center.justify-content-between .small.text-muted {
    margin: 0;
    color: var(--color-text-muted, var(--sub, #b3b3b3));
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

@media (max-width: 639px) {
  .d-flex.justify-items-center.justify-content-between .d-sm-none .pagination {
    width: 100%;
    justify-content: space-between;
  }
}
