.articles-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 68px;
  margin-bottom: 36px;
  background: linear-gradient(180deg, var(--p-bg) 0%, var(--tb-white) 100%);
  border-bottom: 1px solid var(--primary);
}
.articles-hero::before,
.articles-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
  z-index: 0;
}
.articles-hero::before {
  width: 220px;
  height: 220px;
  background: var(--p-accent);
  top: -60px;
  right: 6%;
}
.articles-hero::after {
  width: 260px;
  height: 260px;
  background: var(--tb-secondary);
  bottom: -90px;
  left: 4%;
}
.articles-hero .container {
  position: relative;
  z-index: 1;
}
.articles-hero-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--p-ink);
  margin-bottom: 10px !important;
}
.articles-hero-desc {
  font-size: 15px;
  color: var(--p-deep-light);
  max-width: 640px;
  margin: 0 auto !important;
}

/* ---------- مقاله ویژه ---------- */
.article-featured {
  display: flex;
  flex-wrap: wrap;
  background: var(--tb-white);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
  margin-bottom: 32px;
  transition: all 0.25s ease;
}
.article-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow);
}
.article-featured-img {
  flex: 1 1 340px;
  position: relative;
  min-height: 260px;
  overflow: hidden;
}
.article-featured-img img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-featured:hover .article-featured-img img {
  transform: scale(1.05);
}
.article-featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark));
  color: var(--tb-white);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--tb-radius-pill);
  box-shadow: var(--p-shadow-sm);
}
.article-featured-body {
  flex: 1 1 320px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-primary-dark);
}
.article-featured-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--p-ink);
  margin: 12px 0 !important;
  line-height: 1.5;
}
.article-featured-desc {
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- گرید مقالات ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}
@media (max-width: 767.98px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tb-white);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--p-shadow);
}
.article-card-img {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img img {
  transform: scale(1.08);
}
.article-card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tb-white);
  color: var(--tb-primary-dark);
  border-radius: var(--tb-radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--p-shadow-sm);
}
.article-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--p-ink);
  margin-bottom: 8px !important;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-title a {
  color: inherit;
}
.article-card-desc {
  font-size: 13px;
  color: var(--tb-muted);
  line-height: 1.8;
  margin-bottom: 16px !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  margin-top: auto;
}

/* ---------- سایدبار ---------- */
.article-sidebar-card {
  background: var(--tb-white);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  padding: 22px;
  margin-bottom: 24px;
}
.article-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--p-ink);
  margin-bottom: 16px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-sidebar-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--tb-radius-pill);
  background: var(--tb-primary);
  display: inline-block;
}
.article-search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--primary);
  border-radius: var(--tb-radius-pill);
  overflow: hidden;
}
.article-search-form input {
  border: none !important;
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  background: transparent;
}
.article-search-form button {
  border: none;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark));
  color: var(--tb-white);
  padding: 0 20px;
  height: 40px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.article-cat-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}
.article-cat-list li {
  border-bottom: 1px dashed var(--primary);
}
.article-cat-list li:last-child {
  border-bottom: none;
}
.article-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 2px;
  color: var(--p-deep-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.article-cat-list a:hover {
  color: var(--tb-primary-dark);
  padding-right: 6px;
}
.article-cat-list a::after {
  content: "\f104";
  font-family: var(--fa-family-active-light);
  font-weight: var(--fa-weight-active-light);
  font-size: 11px;
  color: var(--tb-primary);
}

/* ---------- خالی بودن نتایج ---------- */
.article-empty {
  text-align: center;
  background: var(--tb-white);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  padding: 60px 20px;
  color: var(--p-deep-light);
}
.article-empty i {
  font-size: 38px;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
}

/* ---------- صفحه‌بندی ---------- */
/* Was a byte-for-byte duplicate of custom-bootstrap.css's global
   .pagination / .page-link pill design — removed, only the spacing
   tweak below is specific to this page. */
.article-pagination {
  margin-top: 36px;
}

/* ================= صفحه داخلی مقاله ================= */

/* Breadcrumb visual style (colors, separator icon) is global now —
   see custom-bootstrap.css .breadcrumb-item. This wrapper just adds the
   highlighted strip behind it, specific to the article page. */
.article-breadcrumb {
  /* background: var(--p-bg); */
  border-bottom: 1px solid var(--primary);
  padding: 14px 0;
  margin-bottom: 28px;
}
.article-breadcrumb .breadcrumb {
  margin: 0 !important;
}

.article-post {
  background: var(--tb-white);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}
.article-post-img {
  display: block;
  max-height: 420px;
  overflow: hidden;
}
.article-post-img img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}
.article-post-body {
  padding: 30px 32px;
}
@media (max-width: 767.98px) {
  .article-post-body {
    padding: 22px 18px;
  }
}
.article-post-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--p-ink);
  line-height: 1.6;
  margin-bottom: 18px !important;
}

.article-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--primary);
}
.article-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--p-bg);
  color: var(--tb-primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--tb-radius-pill);
}
.article-post-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.article-post-share a {
  width: 34px;
  height: 34px;
  border-radius: var(--tb-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--p-bg);
  color: var(--tb-primary-dark) !important;
  font-size: 14px;
  transition: all 0.2s ease;
}
.article-post-share a:hover {
  background: var(--tb-primary);
  color: var(--tb-white) !important;
  transform: translateY(-2px);
}

/* Prose styling for WYSIWYG output now lives in the shared .editor-content
   class (public/css/editor-content.css, loaded globally). */

.article-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--p-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px !important;
}
.article-section-title i {
  color: var(--tb-primary);
}

.article-faq-accordion .accordion-item {
  border: none;
  border-radius: var(--p-radius-md) !important;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--p-shadow-sm);
}
.article-faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 14px;
  color: var(--p-ink);
  background: var(--tb-white);
  padding: 16px 20px;
  box-shadow: none !important;
}
.article-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--tb-white);
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark));
}
.article-faq-accordion .accordion-button::after {
  filter: none;
}
.article-faq-accordion .accordion-body {
  font-size: 13px;
  line-height: 2;
  color: var(--p-ink);
  background: var(--p-bg);
  padding: 16px 20px;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  background: var(--p-bg);
  color: var(--tb-primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--tb-radius-pill);
  margin: 0 4px 8px;
  transition: all 0.2s ease;
}
.article-tags a:hover {
  background: var(--tb-primary);
  color: var(--tb-white);
}

.article-comments-box .card-body {
  padding: 0;
}
.article-comments-box .form-control {
  border-radius: var(--tb-btn-radius-lg);
  border-color: var(--primary);
}
.article-comments-box .form-control:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .15);
}

/* ---------- بلوک‌های سایدبار (آخرین/مرتبط مطالب) ---------- */
.article-post-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}
.article-post-list li:not(:last-child) {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--primary);
}
.article-post-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-post-list-thumb {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: var(--p-radius-md);
  overflow: hidden;
  position: relative;
}
.article-post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-post-list-body {
  min-width: 0;
}
.article-post-list-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--tb-primary-dark);
  margin-bottom: 4px;
}
.article-post-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--p-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.article-post-list-title:hover {
  color: var(--tb-primary-dark);
}
.article-post-list-date {
  font-size: 11px;
  color: var(--tb-muted);
  margin-top: 4px;
  display: block;
}
