/* ============================================================
   MON TEX GRASS — Blog Styles
   ============================================================ */

/* ============================================================
   ۱) Hero صفحه مقالات
   ============================================================ */
.page-hero-blog::before {
  background-image: url('../images/hero-blog.jpg');
}

/* ============================================================
   ۲) مقاله ویژه
   ============================================================ */
.featured-article-section {
  background: var(--bg);
}

.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(18, 82, 40, .08);
  transition: box-shadow .3s ease, transform .3s ease;
}
.featured-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 82, 40, .15);
}

.featured-article-image {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(160deg, #eaf7ee, #d4efdc);
}
.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.featured-article:hover .featured-article-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f5a623, #d97706);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(245, 166, 35, .35);
  z-index: 2;
}

.featured-article-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.featured-article-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.4;
  margin: 0;
}
.featured-article-title a {
  color: inherit;
  transition: .2s;
}
.featured-article-title a:hover {
  color: var(--green);
}

.featured-article-excerpt {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

/* ============================================================
   ۳) دسته‌بندی
   ============================================================ */
.article-category {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ============================================================
   ۴) گرید مقالات
   ============================================================ */
.blog-list-section {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.blog-card {
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 2px 10px rgba(18, 82, 40, .05);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(18, 82, 40, .14);
  border-color: var(--green-border);
}

.blog-card-image {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf7ee, #d4efdc);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .95);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.blog-card-content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
}
.blog-card-title a {
  color: inherit;
  transition: .2s;
}
.blog-card-title a:hover {
  color: var(--green);
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #9aab9f;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #eef4f0;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  transition: .2s;
}
.blog-card-link:hover {
  color: var(--green-dark);
  padding-inline-start: 5px;
}

/* ============================================================
   ۵) صفحه مقاله تکی
   ============================================================ */
.article-detail {
  background: var(--bg);
  padding: 40px 0 60px;
}

.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(18, 82, 40, .07);
}

.article-header {
  padding: 40px 44px 20px;
}

.article-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.4;
  margin: 16px 0 14px;
  overflow-wrap: anywhere;
}

.article-excerpt {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 18px;
  font-weight: 500;
}

.article-meta-bar {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid #eef4f0;
  border-bottom: 1px solid #eef4f0;
  margin-top: 8px;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.article-meta-item svg {
  color: var(--green);
  flex-shrink: 0;
}

.article-hero-image {
  margin: 20px 0;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf7ee, #d4efdc);
  min-height: 320px;
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* محتوای مقاله */
.article-content {
  padding: 24px 44px 40px;
  font-size: 16px;
  line-height: 1.95;
  color: #2c3e33;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
  position: relative;
}
.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-hover));
  border-radius: 2px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 24px 0 12px;
  padding-right: 16px;
  position: relative;
}
.article-content h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.article-content p {
  margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
  padding-right: 24px;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.article-content ul li::marker {
  color: var(--green);
  font-weight: bold;
}
.article-content ol li::marker {
  color: var(--green);
  font-weight: bold;
}

.article-content strong {
  color: var(--green-dark);
  font-weight: 700;
}

.article-content a {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid var(--green-light);
  transition: .2s;
}
.article-content a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 82, 40, .06);
}
.article-content table th {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
}
.article-content table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef4f0;
  font-size: 14px;
}
.article-content table tbody tr:nth-child(even) {
  background: #f8fcf9;
}

/* اشتراک‌گذاری */
.article-share {
  padding: 26px 44px;
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}
.article-share h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 14px;
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  transition: .2s;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-tw { background: #1da1f2; }

/* CTA میانی */
.article-cta {
  padding: 32px 44px;
  text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
}
.article-cta h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.article-cta p {
  font-size: 14px;
  color: #d8f0e0;
  margin: 0 0 18px;
}

/* مقالات مرتبط */
.related-articles {
  max-width: 1200px;
  margin: 60px auto 0;
}

/* ============================================================
   ۶) ریسپانسیو
   ============================================================ */
@media (max-width: 980px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article-image {
    min-height: 260px;
  }
  .featured-article-content {
    padding: 24px 22px;
  }
}

@media (max-width: 768px) {
  .page-hero-blog {
    padding: 56px 0 48px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .blog-card-image {
    height: 140px;
  }
  .blog-card-content {
    padding: 12px;
    gap: 8px;
  }
  .blog-card-title {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .blog-card-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .blog-card-meta {
    font-size: 11px;
    gap: 10px;
    padding-top: 8px;
  }

  .article-detail {
    padding: 20px 0 40px;
  }
  .article-wrapper {
    border-radius: 14px;
  }
  .article-header {
    padding: 24px 20px 16px;
  }
  .article-title {
    font-size: 22px;
    margin: 12px 0 10px;
  }
  .article-excerpt {
    font-size: 14px;
  }
  .article-meta-bar {
    gap: 14px;
    padding: 12px 0;
  }
  .article-hero-image {
    min-height: 200px;
    margin: 16px 0;
  }
  .article-content {
    padding: 20px 20px 28px;
    font-size: 15px;
    line-height: 1.9;
  }
  .article-content h2 {
    font-size: 18px;
    margin: 24px 0 12px;
  }
  .article-content h3 {
    font-size: 15.5px;
    margin: 18px 0 10px;
  }
  .article-content table th,
  .article-content table td {
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .article-share {
    padding: 20px;
  }
  .share-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .article-cta {
    padding: 24px 20px;
  }
  .article-cta h3 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .page-hero-blog {
    padding: 44px 0 40px;
  }
  .blog-grid {
    gap: 10px;
  }
  .blog-card-image {
    height: 120px;
  }
  .blog-card-title {
    font-size: 12.5px;
  }
  .blog-card-excerpt {
    display: none;
  }
  .article-title {
    font-size: 19px;
  }
  .article-content {
    padding: 16px 16px 24px;
    font-size: 14.5px;
  }
}
/* ============================================================
   ۷) کلاس‌های مشترک (کپی‌شده از products.css و home.css)
   این‌ها به blog.css اضافه شدند تا نیازی به لود products.css نباشد
   ============================================================ */

/* --- گرید دسته‌های مرتبط (محصولات) --- */
.related-categories {
  background: var(--white);
}

.related-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  width: 100%;
}

.related-cat-card {
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border: 1px solid var(--green-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.related-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(18, 82, 40, .14);
  border-color: var(--green);
}

.related-cat-icon {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
  display: block;
}

.related-cat-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.related-cat-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* --- بخش CTA (در blog.php استفاده می‌شود) --- */
.cta {
  background: linear-gradient(135deg, #eaf7ee, #d4efdc);
}

.cta-box {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(18, 82, 40, .22);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(78deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-78deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #fff;
}

.cta-text {
  font-size: 15px;
  margin-bottom: 26px;
  color: #d8f0e0;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: .2s;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* --- بخش‌های عمومی (section, section-header) --- */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-hover));
  border-radius: 3px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}

/* --- دکمه "مشاهده بیشتر" --- */
.btn-more {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 13px 34px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  max-width: 100%;
}
.btn-more:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 122, 60, .25);
}

/* --- گرید محصولات (اگر جایی لود شد) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

/* --- زیردسته چیپ‌ها (برای blog.php) --- */
.sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.chip {
  background: var(--white);
  border: 1px solid #e3ede6;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #4b5f53;
  cursor: pointer;
  transition: .2s;
  font-weight: 500;
  font-family: inherit;
}
.chip:hover {
  border-color: var(--green-border);
  background: #fafffb;
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

/* --- Hero صفحات (اگر از home.css نیامده) --- */
.page-hero {
  position: relative;
  padding: 80px 0 70px;
  background-color: #0f3d21;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -15% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  transition: transform .05s linear;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(10, 40, 20, .72) 0%,
    rgba(10, 40, 20, .62) 50%,
    rgba(10, 40, 20, .72) 100%
  );
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero .breadcrumb {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 14px;
  font-size: 13px;
}
.page-hero .breadcrumb a       { color: rgba(255, 255, 255, .9); }
.page-hero .breadcrumb a:hover { color: #a8e6a5; }
.page-hero .breadcrumb span    { color: #a8e6a5; margin: 0 6px; }

.page-hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  max-width: 800px;
}
.page-hero-title .highlight {
  background: linear-gradient(135deg, #a8e6a5, #4caf50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  color: #d8f0e0;
  max-width: 780px;
  margin-bottom: 26px;
}
.page-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 800px;
}
.stat-box {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  transition: transform .25s ease, background .25s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .16);
}
.stat-box strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #a8e6a5;
  margin-bottom: 4px;
  line-height: 1.2;
}
.stat-box span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
}

/* --- صفحه Hero مخصوص blog --- */
.page-hero-blog::before {
  background-image: url('../images/hero-blog.jpg');
}

/* --- ریسپانسیو مشترک --- */
@media (max-width: 980px) {
  .page-hero {
    padding: 56px 0 48px;
  }
  .related-cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 44px 0;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .page-hero {
    padding: 44px 0 40px;
  }
  .page-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-box { padding: 12px; }
  .stat-box strong { font-size: 18px; }
  .stat-box span { font-size: 11.5px; }

  .cta-box { padding: 34px 20px; border-radius: 18px; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }

  .related-cat-card { padding: 20px 16px; }
  .related-cat-icon { font-size: 34px; }
}

@media (max-width: 480px) {
  .related-cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .related-cat-card { padding: 16px 12px; }
  .related-cat-icon { font-size: 28px; }
  .related-cat-card h3 { font-size: 12.5px; }
  .related-cat-card p { font-size: 11px; }
}

/* ============================================================
   ۸) استایل‌های تکمیلی article.php
   ============================================================ */

/* --- نوار Breadcrumb --- */
.breadcrumb-wrap {
  background: var(--white);
  border-bottom: 1px solid #e3ede6;
  padding: 14px 0;
}

.breadcrumb-wrap .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}
.breadcrumb-wrap .breadcrumb a {
  color: var(--muted);
  transition: color .2s;
}
.breadcrumb-wrap .breadcrumb a:hover {
  color: var(--green);
}
.breadcrumb-wrap .breadcrumb span {
  color: var(--green);
  margin: 0 4px;
}

/* --- محتوای مقاله تکی --- */
.article-detail {
  padding: 40px 0 60px;
}

.article-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(18, 82, 40, .07);
}

.article-header {
  padding: 40px 48px 24px;
}

.article-category {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.5;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.article-excerpt {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 20px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid #eef4f0;
  border-bottom: 1px solid #eef4f0;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.article-meta-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* --- تصویر شاخص مقاله (اختیاری) --- */
.article-hero-image {
  margin: 24px 0;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf7ee, #d4efdc);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

/* --- محتوای متنی --- */
.article-content {
  padding: 12px 48px 48px;
  font-size: 16px;
  line-height: 2;
  color: #2c3e33;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 36px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
  position: relative;
}
.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-hover));
  border-radius: 2px;
}

.article-content h3 {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--green-dark);
  margin: 26px 0 12px;
  padding-right: 18px;
  position: relative;
}
.article-content h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.article-content p {
  margin: 0 0 16px;
  color: #344f41;
}

.article-content ul,
.article-content ol {
  padding-right: 24px;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.article-content li {
  color: #344f41;
  line-height: 1.9;
}
.article-content ul li::marker {
  color: var(--green);
  font-weight: bold;
}
.article-content ol li::marker {
  color: var(--green);
  font-weight: bold;
}

.article-content strong {
  color: var(--green-dark);
  font-weight: 700;
}

.article-content a {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid var(--green-light);
  transition: .2s;
}
.article-content a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

/* جدول‌های داخل مقاله */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 82, 40, .06);
  font-size: 14px;
}
.article-content table th {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
}
.article-content table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef4f0;
  color: #344f41;
}
.article-content table tbody tr:nth-child(even) {
  background: #f8fcf9;
}
.article-content table tbody tr:last-child td {
  border-bottom: 0;
}

/* --- اشتراک‌گذاری --- */
.article-share {
  padding: 28px 48px;
  background: linear-gradient(160deg, #f8fcf9, #eaf7ee);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}
.article-share h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 14px;
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  transition: .2s;
  text-decoration: none;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-tw { background: #1da1f2; }

/* --- CTA میانی --- */
.article-cta {
  padding: 36px 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(78deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-78deg, rgba(0,0,0,.06) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.article-cta > * { position: relative; z-index: 1; }

.article-cta h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.article-cta p {
  font-size: 14.5px;
  color: #d8f0e0;
  margin: 0 0 20px;
}

/* --- مقالات مرتبط --- */
.related-articles {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 16px;
}

/* ============================================================
   ریسپانسیو مقاله تکی
   ============================================================ */
@media (max-width: 768px) {
  .breadcrumb-wrap {
    padding: 12px 0;
  }
  .breadcrumb-wrap .breadcrumb {
    font-size: 12px;
  }

  .article-detail {
    padding: 20px 0 40px;
  }
  .article-wrapper {
    border-radius: 14px;
    margin: 0 8px;
  }

  .article-header {
    padding: 24px 20px 16px;
  }
  .article-title {
    font-size: 21px;
    margin-bottom: 12px;
  }
  .article-excerpt {
    font-size: 14px;
  }
  .article-meta-bar {
    gap: 12px;
    padding: 12px 0;
  }
  .article-meta-item {
    font-size: 12px;
  }

  .article-hero-image {
    margin: 16px 0;
    min-height: 200px;
  }

  .article-content {
    padding: 12px 20px 32px;
    font-size: 15px;
    line-height: 1.95;
  }
  .article-content h2 {
    font-size: 18.5px;
    margin: 28px 0 14px;
  }
  .article-content h3 {
    font-size: 15.5px;
    margin: 20px 0 10px;
  }

  .article-content table {
    font-size: 12.5px;
  }
  .article-content table th,
  .article-content table td {
    padding: 10px 12px;
  }

  .article-share {
    padding: 20px;
  }
  .share-btn {
    flex: 1;
    min-width: 100px;
    font-size: 12.5px;
    padding: 10px 12px;
  }

  .article-cta {
    padding: 28px 20px;
  }
  .article-cta h3 {
    font-size: 17px;
  }
  .article-cta p {
    font-size: 13px;
  }

  .related-articles {
    margin-top: 40px;
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .article-wrapper {
    margin: 0 4px;
    border-radius: 12px;
  }
  .article-header {
    padding: 20px 16px 12px;
  }
  .article-title {
    font-size: 18.5px;
  }
  .article-content {
    padding: 8px 16px 28px;
    font-size: 14.5px;
  }
  .article-content h2 {
    font-size: 17px;
    margin: 24px 0 12px;
  }
  .article-content h3 {
    font-size: 15px;
  }
  .article-content table {
    font-size: 11.5px;
    display: block;
    overflow-x: auto;
  }
  .share-btn {
    font-size: 12px;
    padding: 9px 10px;
  }
}