/**
 * Blog page styles (pagination, sidebar)
 */

/* Blog pagination: Laravel outputs div.d-none.d-sm-flex.justify-content-sm-between - override to center */
.blog-page .blog-pagination-wrap {
  margin-top: 40px;
  margin-bottom: 20px;
}

.blog-page .blog-pagination-wrap > div {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 16px 24px;
  width: 100%;
}

/* Center the "Showing X to Y of Z results" text (first inner div) */
.blog-page .blog-pagination-wrap > div > div:first-child {
  width: 100%;
  text-align: center;
}

/* Center the pagination ul (second inner div) */
.blog-page .blog-pagination-wrap > div > div:last-child {
  width: 100%;
  display: flex;
  justify-content: center;
}

.blog-page .blog-pagination-wrap > nav[aria-label="Pagination Navigation"] > div {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 16px 24px;
  width: 100%;
}

.blog-page .blog-pagination-wrap > nav[aria-label="Pagination Navigation"] > div > div:first-child {
  width: 100%;
  text-align: center;
}

.blog-page .blog-pagination-wrap > nav[aria-label="Pagination Navigation"] > div > div:last-child {
  width: 100%;
  display: flex;
  justify-content: center;
}

.blog-page .blog-pagination-wrap .small.text-muted {
  margin: 0;
  font-size: 13px;
  color: #6c757d;
  line-height: 38px;
  justify-self: center;
}

.blog-page .blog-pagination-wrap .small.text-muted .fw-semibold {
  color: #323131;
}

.blog-page .blog-pagination-wrap .pagination {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
}

.blog-page .blog-pagination-wrap .page-item {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  list-style: none;
  position: static !important;
  float: none;
}

.blog-page .blog-pagination-wrap .page-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #323131;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

/* Prev/Next: keep "Previous" / "Next" text visible, allow wider buttons so text fits on one line */
.blog-page .blog-pagination-wrap .page-item:first-child .page-link,
.blog-page .blog-pagination-wrap .page-item:last-child .page-link {
  min-width: auto;
  padding: 0 14px;
  width: auto;
}

.blog-page .blog-pagination-wrap .page-link:hover {
  background: #7a9b08;
  color: #fff;
  border-color: #7a9b08;
}

.blog-page .blog-pagination-wrap .page-item.active .page-link {
  background: #7a9b08;
  color: #fff;
  border-color: #7a9b08;
}

.blog-page .blog-pagination-wrap .page-item.disabled .page-link {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sidebar category links (used on blog and elsewhere) */
.shop-side-bar .sidebar-category-link {
  display: block;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
}

.shop-side-bar .sidebar-category-link:hover {
  color: #0088cc;
  text-decoration: underline;
}
