/* ===== Pager Wrapper ===== */
.pager {
    margin: 50px 0px 50px 0;

  text-align: center;
}

.pager__items {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== Common Item ===== */
.pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-size: 14px;
  line-height: 1;
}

/* ===== Page Numbers ===== */
.pager__item--number a,
.pager__item--number {
  border-radius: 50%;
  background: transparent;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Hover */
.pager__item--number a:hover {
  background: #e6efff;
  color: #0d47ff;
}

/* Active Page */
.pager__item--active {
  background: #0d47ff;
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}

/* ===== Ellipsis ===== */
.pager__item--ellipsis {
  padding: 0 8px;
  color: #666;
  font-size: 16px;
}

/* ===== Controls (Next / Last) ===== */
.pager__item--control a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  transition: all 0.2s ease;
}

/* Hover controls */
.pager__item--control a:hover {
  background: #0d47ff;
  color: #fff;
}
/* ===== RESET any previous rotation ===== */
.pager__item--control svg {
  transform: none !important;
}

/* ===== LEFT arrows (First / Previous) ===== */
.pager__item--previous svg,
.pager__item--first svg {
  transform: rotate(0deg) !important;
}

/* ===== RIGHT arrows (Next / Last) ===== */
.pager__item--next svg,
.pager__item--last svg {
  transform: rotate(180deg) !important;
}




/* ===== Last button spacing ===== */
.pager__item--last {
  margin-left: 6px;
}

/* ===== Accessibility ===== */
.pager__link:focus {
  outline: 2px solid #0d47ff;
  outline-offset: 2px;
}

/* ===== Mobile ===== */
@media (max-width: 576px) {
  .pager__items {
    gap: 4px;
  }

  .pager__item {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
  