<style>
/* Pagination Wrapper Spacing */
.pagination-wrapper {
  margin-top: 40px;
}

/* Base Pagination */
.pagination {
  gap: 10px;
}

/* Page Items */
.pagination .page-item .page-link {
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 500;
  color: #333;
  background: #f5f5f5;
  transition: all 0.3s ease;
}

/* Hover Effect */
.pagination .page-item .page-link:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Active Page */
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #000, #444);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

/* Disabled */
.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
  background: #eaeaea;
  color: #999;
}

/* Prev / Next Special Style */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  background: transparent;
  border: 1px solid #ddd;
}

.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ========================= */
@media (max-width: 767px) {

  .pagination-wrapper {
    padding: 10px 10px;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap !important;   /* Allow wrap */
    justify-content: center;
    gap: 6px;
  }

  .pagination .page-item {
    flex: 0 0 auto;
  }

  .pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}
</style>