/* ========== قالب مقاله ========== */
[id] { scroll-margin-top: 96px; }
.a-wrap { width: min(1240px, 95%); margin-inline: auto; }

/* ----- بالای صفحه ----- */
.a-hero { padding: 1.6rem 0 1rem; }

.hero-frame {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1rem, 2.4vw, 1.8rem);
  border: 2px solid var(--pink-100);
  border-radius: 34px;
  background: linear-gradient(180deg, var(--pink-50), var(--white) 75%);
}

.hero-img {
  flex: 0 0 clamp(150px, 19vw, 250px);
  margin: 0;
  min-height: 300px;
  border: 3px solid var(--pink-300);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-img-l img { object-position: right top; }
.hero-img-r img { object-position: left top; }

.hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: .6rem;
}

.hero-text h1 {
  font-size: clamp(1.4rem, 2.9vw, 2.3rem);
  font-weight: 800;
  line-height: 1.65;
  text-wrap: balance;
}
.hero-text h1 strong { color: var(--pink-600); }

.hero-rule {
  display: block;
  width: 100%;
  height: 3px;
  margin: .9rem 0 .6rem;
  border-radius: 3px;
  background: linear-gradient(to left, var(--pink-600), var(--pink-100));
}

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem; margin-bottom: 1rem; font-size: .92rem; color: var(--gray);
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--pink-600); }
.crumbs [aria-current] { color: var(--pink-600); font-weight: 700; }

.hero-lead {
  padding: 1rem 1.3rem;
  font-size: 1.02rem;
  line-height: 2.05;
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-right: 6px solid var(--pink-600);
  border-radius: 14px;
}
.hero-lead strong { color: var(--pink-600); }

/* ----- شبکه‌ی اصلی ----- */
.a-main { padding: 1.2rem 0 3rem; }
.a-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* ----- در این صفحه می‌خوانید ----- */
.toc {
  position: sticky; top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: var(--white);
  border: 2px solid var(--pink-600);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.toc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; width: 100%;
  padding: .3rem .4rem .8rem;
  background: none; border: 0;
  font: inherit; font-size: 1.02rem; font-weight: 800;
  color: var(--black); text-align: right; cursor: default;
}
.toc-head .chev {
  display: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .3s;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .55rem .6rem; border-radius: 12px;
  font-size: .88rem; line-height: 1.7; color: var(--black);
  transition: background .2s, color .2s;
}
.toc li a .tn { flex: 0 0 auto; min-width: 1.9rem; color: var(--gray); font-size: .8rem; }
.toc li a:hover { background: var(--pink-50); color: var(--pink-600); }
.toc li a.active { background: var(--pink-100); color: var(--pink-700); font-weight: 700; }
.toc li a.active .tn { color: var(--pink-700); }
.toc-cta { display: block; margin-top: .9rem; text-align: center; }

/* ----- مقدمه ----- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 2.2rem;
}
.intro-text p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 2.15;
  text-align: justify;
}
.intro-text strong { color: var(--pink-600); }

.intro-img {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pink-100);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(214, 51, 132, .2);
}
.intro-img img {
  width: 100%;
  aspect-ratio: 1 / .64;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

/* ----- نوار عنوان بخش ----- */
.sec { margin-bottom: 2.6rem; }
.sec-bar {
  display: flex; align-items: stretch;
  margin: 0 0 1.2rem; overflow: hidden;
  border-radius: 16px; color: var(--white);
  background: linear-gradient(90deg, var(--pink-500), var(--pink-600));
  box-shadow: 0 8px 20px rgba(214, 51, 132, .22);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800; line-height: 1.6;
}
.sec-bar .ttl { flex: 1; padding: .9rem 1.3rem; }
.sec-bar .num {
  flex: 0 0 66px;
  display: flex; align-items: center; justify-content: center;
  border-right: 2px solid rgba(255, 255, 255, .65);
  font-size: 1.7rem;
}
.sec-bar.soft { background: var(--pink-100); color: var(--pink-700); box-shadow: none; }
.sec-bar.soft .num { border-right-color: var(--pink-300); }

/* ----- متن بخش ----- */
.sec-body { padding-right: 1.4rem; border-right: 3px solid var(--pink-600); }
.sec-body p {
  margin: 0 0 1rem;
  font-size: 1.02rem; line-height: 2.15; text-align: justify;
}
.sec-body strong { color: var(--pink-600); }
.sec-hr { height: 2px; margin: 1.3rem 0; border: 0; background: var(--pink-100); }

.h-tb {
  margin: 1.8rem 0 1rem;
  padding: .8rem 1.2rem;
  border-right: 8px solid var(--pink-600);
  border-radius: 12px;
  background: var(--pink-50);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800; line-height: 1.7;
}
.h-dia, .h-dot, .h-chk {
  margin: 1.5rem 0 .5rem;
  font-size: 1.1rem; font-weight: 800; line-height: 1.8;
}
.h-dia::before { content: "❖"; margin-left: .5rem; color: var(--pink-600); }
.h-dot { color: var(--pink-600); }
.h-dot::before { content: "•"; margin-left: .5rem; }
.h-chk::before { content: "✓"; margin-left: .5rem; color: var(--pink-600); }

.checks { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checks li { position: relative; padding: .35rem 2.1rem .35rem 0; line-height: 1.95; }
.checks li::before {
  content: "✓"; position: absolute; right: 0; top: .5rem;
  width: 1.4rem; height: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--pink-600); color: var(--white);
  font-size: .78rem; line-height: 1;
}
.sec-body .callout {
  padding: .9rem 1.2rem;
  border-right: 5px solid var(--pink-600);
  border-radius: 12px;
  background: var(--pink-100); color: var(--pink-700);
  font-weight: 800; text-align: right;
}

/* ----- دعوت به اقدام ----- */
.a-cta {
  margin-top: 1rem; padding: 1.8rem 1.2rem;
  border-radius: 24px; background: var(--black);
  color: var(--white); text-align: center;
}
.a-cta p { margin: 0 0 1rem; font-weight: 700; }
.a-cta .btn-outline { color: var(--white); border-color: var(--pink-300); }
.a-cta .btn-outline:hover { background: var(--pink-600); border-color: var(--pink-600); }

/* ========== تصویر موبایل ========== */
.hero-img-mobile { display: none; }

/* ========== تبلت و موبایل ========== */
@media (max-width: 991px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc-head { cursor: pointer; padding-bottom: .3rem; }
  .toc-head .chev { display: block; }
  .toc-box.collapsed .toc-body { display: none; }
  .toc-box.collapsed .chev { transform: rotate(180deg); }
  .toc-box:not(.collapsed) .toc-head { padding-bottom: .8rem; }
}

@media (max-width: 720px) {
  .hero-frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 26px;
  }

  [data-desktop-only] { display: none !important; }

  .has-mobile-image .hero-img-mobile {
    display: block;
    order: 1;
    margin: 0;
    width: 100%;
    border: 3px solid var(--pink-300);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .has-mobile-image .hero-img-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero-frame:not(.has-mobile-image) [data-desktop-only] {
    display: block !important;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
  }

  .hero-text { order: 2; }

  .intro { grid-template-columns: minmax(0, 1fr); }
  .sec-body { padding-right: .9rem; }
  .sec-bar .num { flex-basis: 48px; font-size: 1.3rem; }
  .sec-bar .ttl { padding: .7rem 1rem; }
  .sec-body p, .intro-text p { text-align: right; }
}

/* فونت تیتر مقاله */
.a-hero .hero-text h1 {
  font-family: "B Arash", "B Mitra", serif;
}

/* ==============================================
   بخش دیدگاه‌های کاربران
   ============================================== */
.comments-section {
  margin: 3.5rem 0 0;
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, var(--pink-50), var(--white) 60%);
  border: 2px solid var(--pink-100);
  border-radius: 24px;
  direction: rtl;
  text-align: right;
  box-shadow: var(--shadow);
}
.comments-section h2 {
  position: relative;
  margin: 0 0 1.6rem;
  padding: 0 1.4rem .9rem 0;
  color: var(--pink-700);
  font-size: 1.4rem;
  font-weight: 800;
}
.comments-section h2::before {
  content: ""; position: absolute; right: 0; top: .35rem;
  width: 6px; height: 1.5rem; background: var(--pink-600); border-radius: 4px;
}
.comments-section h2::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 0;
  height: 2px; background: linear-gradient(to left, var(--pink-600), var(--pink-100));
  border-radius: 2px;
}

.comment-form {
  display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.2rem;
}
.comment-field { display: flex; flex-direction: column; gap: .4rem; }
.comment-field label {
  color: var(--black); font-weight: 700; font-size: .95rem;
}
.comment-field .input,
.comment-field input[type="text"],
.comment-field textarea {
  width: 100%; box-sizing: border-box;
  padding: .85rem 1rem;
  border: 1.5px solid var(--pink-100);
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  font: inherit; line-height: 1.9;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.comment-field textarea { min-height: 130px; resize: vertical; }
.comment-field .input:focus,
.comment-field input:focus,
.comment-field textarea:focus {
  outline: none;
  border-color: var(--pink-600);
  box-shadow: 0 0 0 4px var(--pink-100);
}
.comment-field .input.ok  { border-color: #1f9d55; box-shadow: 0 0 0 3px #d6f3e1; }
.comment-field .input.bad { border-color: #d63384; box-shadow: 0 0 0 3px var(--pink-100); }

.phone-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--pink-100);
  border-radius: 14px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.phone-wrap:focus-within {
  border-color: var(--pink-600);
  box-shadow: 0 0 0 4px var(--pink-100);
}
.phone-wrap .phone-input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 14px 14px 0 !important;
  flex: 1;
  min-width: 0;
}
.country-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 0 .9rem;
  background: var(--pink-50);
  border: 0;
  border-left: 1.5px solid var(--pink-100);
  border-radius: 14px 0 0 14px;
  font: inherit; font-weight: 700;
  color: var(--pink-700); cursor: pointer;
  transition: background .2s;
}
.country-btn:hover { background: var(--pink-100); }
.country-btn .flag { font-size: 1.15rem; line-height: 1; }
.country-btn .code { font-size: .9rem; direction: ltr; }
.country-btn .chev { stroke: var(--pink-700); }

.country-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 220px; max-height: 260px; overflow-y: auto;
  padding: .35rem; margin: 0; list-style: none;
  background: var(--white);
  border: 1.5px solid var(--pink-300);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(214, 51, 132, .18);
}
.country-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .55rem .8rem;
  border-radius: 10px; cursor: pointer;
  font-size: .92rem; color: var(--black);
  transition: background .15s, color .15s;
}
.country-list li:hover { background: var(--pink-50); color: var(--pink-700); }
.country-list li span { color: var(--pink-600); font-weight: 700; direction: ltr; }

.comment-submit {
  align-self: flex-start;
  min-width: 160px;
  padding: .8rem 1.6rem;
  font-size: 1rem;
}
.comment-submit[disabled] { opacity: .45; cursor: not-allowed; }

.comment-field ul.errorlist {
  margin: 0; padding-right: 1.1rem;
  color: var(--pink-700); font-size: .88rem; font-weight: 600;
  list-style: disc;
}
.comment-form > ul.errorlist {
  padding: .8rem 1rem .8rem 1.6rem;
  background: var(--pink-100);
  border: 1.5px solid var(--pink-300);
  border-radius: 12px;
  color: var(--pink-700); font-weight: 700;
}
.comment-success {
  margin-bottom: 1.4rem;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--pink-300);
  border-right: 6px solid var(--pink-600);
  border-radius: 12px;
  background: var(--pink-50);
  color: var(--pink-700); font-weight: 600;
}
.comments-list { display: flex; flex-direction: column; gap: 1rem; }
.comment-item {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--pink-100);
  border-right: 5px solid var(--pink-600);
  border-radius: 14px;
  background: var(--white);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pink-300);
}
.comment-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.comment-head .avatar {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: var(--white); font-weight: 800; font-size: 1.1rem;
}
.comment-head h3 { margin: 0; color: var(--black); font-size: .98rem; font-weight: 700; }
.comment-head small { color: var(--gray); font-size: .8rem; }
.comment-item p { margin: 0; color: #333; line-height: 2; overflow-wrap: anywhere; }
.no-comment {
  padding: 1.6rem; text-align: center; color: var(--gray);
  border: 2px dashed var(--pink-100); border-radius: 14px;
}

@media (max-width: 600px) {
  .comments-section { padding: 1.3rem 1rem; border-radius: 18px; }
  .comments-section h2 { font-size: 1.2rem; }
  .comment-submit { width: 100%; }
  .country-list { min-width: 180px; }
}