/* ══ WebEaze Blog Shared Styles ═══════════════════════════════════════════════ */

/* ── Post featured image (between hero and article body) ───────────────────── */
.post-featured-img {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}
.post-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
@media (max-width: 640px) {
  .post-featured-img img { height: 210px; border-radius: 10px; }
}

/* ── Blog index filter bar ─────────────────────────────────────────────────── */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 64px;
  z-index: 100;
  transition: top .28s ease;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.filter-cats {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  border-radius: 100px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1;
}
.filter-btn:hover { border-color: #7851a9; color: #7851a9; }
.filter-btn.active { background: #7851a9; border-color: #7851a9; color: #fff; }
.sort-select {
  padding: .35rem 2rem .35rem .7rem;
  font-size: .8rem;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right .65rem center;
  color: #6b7280;
  cursor: pointer;
  font-family: "Poppins", system-ui, sans-serif;
  appearance: none;
  -webkit-appearance: none;
}
.sort-select:focus { outline: 2px solid #7851a9; outline-offset: 2px; }
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  display: none;
  grid-column: 1 / -1;
}
.no-results p { font-size: .95rem; color: #6b7280; }
