/* استایل صفحه‌ی مقاله (سئو) — از متغیرهای styles.css استفاده می‌کند */

.article { padding-top: 130px; padding-bottom: 90px; background: linear-gradient(180deg, #ffffff 0%, #eaf7f0 100%); }
.article__wrap { max-width: 860px; margin-inline: auto; }

/* مسیر راهنما */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 7px; opacity: .55; }

.article h1 { font-size: clamp(1.75rem, 4.4vw, 2.65rem); line-height: 1.4; margin-bottom: 16px; }
.article__lead { font-size: 1.1rem; color: var(--ink-2); line-height: 2.1; font-weight: 500; margin-bottom: 6px; }

/* ---------- قسمت‌بندی صفحه با کارت‌های گرادیانت سبز ---------- */
.art-sec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3.5vw, 34px);
  margin-top: 26px;
  box-shadow: var(--shadow-xs);
}
.art-sec--soft {
  background: linear-gradient(160deg, #f3fbf7 0%, #e2f5ea 100%);
  border-color: var(--mint);
}
.art-sec--soft2 {
  background: linear-gradient(160deg, #ebf8f1 0%, #d6efe1 100%);
  border-color: var(--mint);
}
.art-sec > h2:first-child { margin-top: 0; }
.art-sec > *:last-child { margin-bottom: 0; }

.article h2 {
  font-size: clamp(1.32rem, 3vw, 1.85rem); line-height: 1.5;
  margin-top: 34px; margin-bottom: 14px;
  padding-inline-start: 14px; border-inline-start: 5px solid var(--brand);
}
.article h3 { font-size: clamp(1.08rem, 2.2vw, 1.32rem); margin-top: 28px; margin-bottom: 10px; color: var(--brand-darker); }
.article p { color: var(--ink-2); line-height: 2.15; margin-bottom: 14px; font-size: 1.02rem; }
.article a.inline { color: var(--brand-dark); font-weight: 700; }

.article ul { margin: 16px 0 20px; display: grid; gap: 12px; }
.article li { position: relative; padding-inline-start: 30px; color: var(--ink-2); line-height: 2.05; font-size: 1.01rem; }
.article li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(20, 160, 94, .18);
}
.article li b { color: var(--ink); }

/* ---------- تصاویر: با نسبت طبیعی خودشان، بدون بریدگی ---------- */
.article__fig { margin: 26px 0 8px; }
.article__fig img {
  width: 100%;
  height: auto;          /* نسبت اصلی تصویر حفظ می‌شود */
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.article__fig figcaption { margin-top: 11px; font-size: .88rem; color: var(--muted); text-align: center; }
/* تصویر شاخص (بالای مقاله) */
.article__fig--hero { margin: 30px 0 10px; }

/* فهرست مطالب */
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 24px; margin-top: 26px; box-shadow: var(--shadow-xs); }
.toc b { display: block; margin-bottom: 12px; font-size: 1.02rem; }
.toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 9px; }
.toc a { color: var(--brand-dark); text-decoration: none; font-size: .96rem; }
.toc a:hover { text-decoration: underline; }

/* کادر پایانی */
.article__cta {
  margin-top: 30px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(150deg, var(--brand-dark), var(--brand-darker));
  color: #fff; padding: clamp(28px, 4vw, 46px);
}
.article__cta h2 { color: #fff; border: 0; padding: 0; margin: 0 0 10px; }
.article__cta p { color: rgba(255, 255, 255, .85); margin-bottom: 24px; }
.article__cta .btn { background: #fff; color: var(--brand-dark); }
.article__cta .btn:hover { background: var(--brand-soft); transform: translateY(-3px); }

/* ---------- پرسش‌های پرتکرار (FAQ) ---------- */
.faq__item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item + .faq__item { margin-top: 10px; }
.faq__item[open] { border-color: var(--brand); box-shadow: var(--shadow-xs); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; }
.faq__a p { margin: 0; }

@media (max-width: 760px) {
  .article { padding-top: 100px; padding-bottom: 64px; }
  .art-sec { margin-top: 20px; }
}
