/* ============================================================
   ZUUB BLOG — FILTER SIDEBAR + PAGINATION
   Append to your theme stylesheet.
   Tweak the two color vars below to match Zuub's brand.
   ============================================================ */

:root {
  --zuub-filter-ink: #0f2c4d;   /* text + active accent */
  --zuub-filter-line: rgba(15, 44, 77, 0.12);
}

/* --- Sidebar nav --- */
.blog-filter-nav {
  position: sticky;
  top: 120px;
}

.blog-filter-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--zuub-filter-ink);
  opacity: 0.6;
  margin-bottom: 12px;
}

.blog-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-filter-list li {
  border-bottom: 1px solid var(--zuub-filter-line);
}

.blog-filter-list li:first-child {
  border-top: 1px solid var(--zuub-filter-line);
}

.blog-filter-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: rgba(15, 44, 77, 0.55);
  text-decoration: none;
  padding: 12px 0 12px 16px;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.blog-filter-link:hover,
.blog-filter-link.active {
  color: var(--zuub-filter-ink);
  border-left-color: var(--zuub-filter-ink);
  padding-left: 20px;
}

.blog-filter-count {
  float: right;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15, 44, 77, 0.4);
  background: rgba(15, 44, 77, 0.06);
  border-radius: 20px;
  padding: 1px 8px;
  line-height: 20px;
}

.blog-filter-link.active .blog-filter-count {
  color: var(--zuub-filter-ink);
  background: rgba(15, 44, 77, 0.12);
}

/* --- Loading state --- */
#zuub-blog-grid {
  transition: opacity 0.2s ease;
}

#zuub-blog-grid.blog-loading {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Numbered pagination --- */
.blog-pagination-nums {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--zuub-filter-ink);
  border: 1px solid rgba(15, 44, 77, 0.2);
  background: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-page-btn:hover,
.blog-page-btn.active {
  background: var(--zuub-filter-ink);
  color: #fff;
  border-color: var(--zuub-filter-ink);
}

/* --- Empty state --- */
.blog-empty {
  padding: 60px 0;
  text-align: center;
  color: #666;
}

/* --- Mobile: unstick the sidebar so it sits above the grid --- */
@media (max-width: 991.98px) {
  .blog-filter-nav {
    position: static;
    margin-bottom: 32px;
  }
}
