/* =============================================================
   KMS Pagination Component — assets/css/pagination.css
   Centralised styles for .kms-pagination used on blog,
   case-study, and any future listing pages.
   ============================================================= */

.kms-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 2.5rem 1rem 3rem;
}

.kms-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.65rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d1d5db;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
  user-select: none;
}

/* Hover state for links */
a.kms-page-btn:hover {
  background: #0b567d;
  color: #ffffff;
  border-color: #0b567d;
  box-shadow: 0 2px 8px rgba(11, 86, 125, 0.22);
}

/* Active / current page */
.kms-page-btn.kms-page-active {
  background: #1f8460;
  color: #ffffff;
  border-color: #1f8460;
  box-shadow: 0 2px 8px rgba(31, 132, 96, 0.3);
  pointer-events: none;
  font-weight: 700;
}

/* Disabled prev / next */
.kms-page-btn.disabled {
  color: #9ca3af;
  background: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  pointer-events: none;
}

/* Prev / Next arrow buttons */
.kms-page-prev,
.kms-page-next {
  padding: 0 0.5rem;
}

/* Ellipsis */
.kms-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2.4rem;
  font-size: 0.95rem;
  color: #6b7280;
  pointer-events: none;
  user-select: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  .kms-page-btn {
    min-width: 2.1rem;
    height: 2.1rem;
    font-size: 0.88rem;
    padding: 0 0.5rem;
  }

  .kms-pagination {
    gap: 0.3rem;
    padding: 1.75rem 0.5rem 2rem;
  }
}

