.elementor-pagination {
  --pg-size: 36px;

  --pg-border: #cecece;
  --pg-text: #2d2a32;
  --pg-muted: #9aa0a6;
  --pg-hover-bg: #dcebff;
  --pg-active-from: #c6247d;
  --pg-active-to: #7c36f9;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--pg-gap);
  margin-top: 24px;
  flex-wrap: wrap;
}

.elementor-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--pg-size);
  height: var(--pg-size);
  padding: 0;
  border-radius: 4px;
}

.elementor-pagination .page-numbers.current {
  border: 1px solid var(--pg-border);
}

.elementor-pagination a.page-numbers:hover,
.elementor-pagination a.page-numbers:focus {
  background: var(--pg-hover-bg);
  border-color: #d9d7ef;
}

/* ==== Pagination with SVG arrows ==== */
.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
  font-size: 0;
  position: relative;
  width: var(--pg-size);
  height: var(--pg-size);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Previous Arrow */
.elementor-pagination .page-numbers.prev::before {
  content: "";
  display: block;
  color: #8c8c8c;
  width: 16px;
  height: 16px;
  background: currentColor;

  -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 12L6 8L10 4' stroke='black' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 12L6 8L10 4' stroke='black' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Next Arrow */
.elementor-pagination .page-numbers.next::before {
  content: "";
  display: block;
  color: #8c8c8c;
  width: 16px;
  height: 16px;
  background: currentColor;

  -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12L10 8L6 4' stroke='black' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12L10 8L6 4' stroke='black' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Hover effect */
.elementor-pagination .page-numbers.prev:hover,
.elementor-pagination .page-numbers.next:hover {
  background: var(--pg-hover-bg, #f6f4ff);
}

/* Disabled state */
.elementor-pagination span.page-numbers.prev,
.elementor-pagination span.page-numbers.next {
  opacity: 0.4;
  pointer-events: none;
}

/* Dots “…” item */
.elementor-pagination .page-numbers.dots {
  min-width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: var(--pg-muted);
  padding: 0 6px;
  box-shadow: none;
}

.elementor-pagination .elementor-screen-only {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
}

/* --- Responsive size tweak --- */
@media (max-width: 480px) {
  .elementor-pagination {
    --pg-size: 38px;
    --pg-gap: 10px;
  }
}
