/* ============================================================
   BarqNews Pro — 08 — Posts Loop containers + Widget headers
   ============================================================ */

.posts-loop-container { margin-bottom: var(--space-xl); }

/* ---------- رأس قسم ---------- */
.posts-headings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--site-color);
  position: relative;
}
.posts-headings::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 60px;
  height: 2px;
  background: var(--border-color);
  z-index: -1;
}
.ltr .posts-headings::after { left: 60px; right: 0; }

.posts-headings h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}
.posts-headings h2::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--site-color);
  border-radius: 2px;
}

.posts-headings .view-all {
  font-size: 13px;
  color: var(--site-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.posts-headings .view-all:hover { gap: 8px; }

/* ---------- Widget header (داخل sidebar) ---------- */
.widget-header {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.widget-header h3,
.widget-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.widget-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 44px;
  height: 2px;
  background: var(--site-color);
}
.ltr .widget-header::after { right: auto; left: 0; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
  list-style: none;
  padding: 0;
}
.pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--glob-border-radius);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.pagination .page-numbers:hover {
  background: var(--light-bg);
  border-color: var(--border-strong);
  color: var(--site-color);
}
.pagination .page-numbers.current {
  background: var(--site-color);
  color: white;
  border-color: var(--site-color);
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ---------- Load More ---------- */
.load-more {
  display: block;
  margin: 24px auto;
  padding: 12px 36px;
  border: 2px solid var(--site-color);
  border-radius: var(--glob-border-radius);
  background: transparent;
  color: var(--site-color);
  font-family: var(--site-font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.load-more:hover {
  background: var(--site-color);
  color: white;
  transform: translateY(-2px);
}
