/* ===== وبلاگ ===== */
.blog-list { background: var(--light, #f6f8fb); padding: 32px 0 48px; }

/* چیپ دسته‌بندی‌ها */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.blog-cat-chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0; font-size: 13.5px; color: #334155;
  text-decoration: none; transition: all .2s;
}
.blog-cat-chip:hover { border-color: var(--primary, #0a4aa8); color: var(--primary, #0a4aa8); }
.blog-cat-chip.active { background: var(--primary, #0a4aa8); border-color: var(--primary, #0a4aa8); color: #fff; }

/* شبکه کارت‌ها */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }
.blog-card-thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e0e7ff, #f1f5f9); overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; opacity: .5; }
.blog-video-badge {
  position: absolute; bottom: 10px; right: 10px; background: rgba(2, 6, 23, .75); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.blog-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #64748b; }
.post-cat { background: #eef2ff; color: var(--primary, #0a4aa8); padding: 2px 10px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.blog-card-title { font-size: 16.5px; line-height: 1.6; margin: 0; }
.blog-card-title a { color: #0f172a; text-decoration: none; }
.blog-card-title a:hover { color: var(--primary, #0a4aa8); }
.blog-card-excerpt { font-size: 13.5px; color: #475569; line-height: 1.9; margin: 0; flex: 1; }
.blog-card .read-more { margin-top: auto; }

/* صفحه‌بندی */
.blog-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; }
.bp-num {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; color: #334155;
  text-decoration: none; font-size: 14px;
}
.bp-num:hover { border-color: var(--primary, #0a4aa8); }
.bp-num.active { background: var(--primary, #0a4aa8); border-color: var(--primary, #0a4aa8); color: #fff; }

/* ===== تک‌مطلب ===== */
.blog-single { background: #fff; padding: 36px 0 56px; }
.bs-header { max-width: 820px; margin: 0 auto 22px; }
.bs-cat {
  display: inline-block; background: #eef2ff; color: var(--primary, #0a4aa8);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  text-decoration: none; margin-bottom: 12px;
}
.bs-title { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.55; margin: 0 0 12px; color: #0f172a; }
.bs-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #64748b; }
.bs-cover { margin: 0 0 26px; }
.bs-cover img { width: 100%; max-width: 960px; display: block; margin: 0 auto; border-radius: 18px; box-shadow: 0 8px 30px rgba(15, 23, 42, .12); }
.bs-video { max-width: 860px; margin: 0 auto 26px; }
.bs-video video { width: 100%; border-radius: 16px; background: #000; box-shadow: 0 8px 30px rgba(15, 23, 42, .12); }
.bs-content { max-width: 820px; margin: 0 auto; font-size: 15.5px; line-height: 2.15; color: #1e293b; }
.bs-content p { margin: 0 0 18px; }

/* گالری */
.bs-gallery { max-width: 820px; margin: 30px auto; }
.bs-gallery h2, .bs-related h2 { font-size: 18px; margin: 0 0 14px; color: #0f172a; }
.bs-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bs-gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f1f5f9; }
.bs-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bs-gallery-grid a:hover img { transform: scale(1.06); }

/* تگ‌ها */
.bs-tags { max-width: 820px; margin: 8px auto 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.bs-tag {
  background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; text-decoration: none;
}
.bs-tag:hover { color: var(--primary, #0a4aa8); border-color: var(--primary, #0a4aa8); }

/* مطالب مرتبط */
.bs-related { max-width: 960px; margin: 26px auto 0; }
.bs-related-card {
  display: flex; flex-direction: column; gap: 8px; background: var(--light, #f6f8fb);
  border-radius: 14px; overflow: hidden; padding: 0 0 14px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.bs-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15, 23, 42, .1); }
.bs-related-thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e0e7ff, #f1f5f9); position: relative; }
.bs-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bs-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; opacity: .5; }
.bs-related-card b { color: #0f172a; font-size: 14.5px; line-height: 1.7; padding: 10px 14px 0; }
.bs-related-card small { color: #64748b; padding: 0 14px; }
.bs-back { max-width: 820px; margin: 34px auto 0; }

@media (max-width: 576px) {
  .blog-grid { grid-template-columns: 1fr; }
  .bs-content { font-size: 14.5px; }
}
