/* ==================================================
   MASHOOUF ARTICLE BUILDER — V5
   UX Builder | Full-width TOC | Mobile-first refinement
================================================== */


/* ==================================================
   1) متغیرها و پایه
================================================== */

:root {
    --mab-primary: var(--mashoouf-primary, #173f2a);
    --mab-primary-dark: var(--mashoouf-primary-dark, #10331f);
    --mab-text: var(--mashoouf-text, #2a3b31);
    --mab-text-soft: var(--mashoouf-text-soft, #536158);
    --mab-muted: var(--mashoouf-muted, #727c74);

    --mab-gold: var(--mashoouf-gold, #b68a3a);
    --mab-gold-dark: var(--mashoouf-gold-dark, #8d6527);
    --mab-gold-soft: var(--mashoouf-gold-soft, #d7bd87);
    --mab-gold-pale: var(--mashoouf-gold-pale, #f3ead8);

    --mab-page: var(--mashoouf-page-bg, #f7f4ee);
    --mab-surface: var(--mashoouf-surface, #fffdfa);
    --mab-surface-soft: rgba(255, 253, 250, 0.76);
    --mab-border: var(--mashoouf-border, #e5ded1);
    --mab-border-soft: var(--mashoouf-border-soft, #eee8de);

    --mab-radius: 18px;
    --mab-radius-small: 12px;
    --mab-content-width: 1180px;

    --mab-shadow-soft:
        0 8px 26px rgba(23, 63, 42, 0.035);
}


body.single-post {
    overflow-x: hidden;
    background: var(--mab-page);
}


/*
 * عنوان، تصویر و متای پیش‌فرض Flatsome مخفی می‌شوند.
 * عنوان و تصویر مقاله توسط پوسته اختصاصی مشعوف نمایش داده می‌شوند.
 */
body.single-post .article-inner > .entry-header,
body.single-post .article-inner > .entry-image,
body.single-post .article-inner > .entry-meta,
body.single-post .article-inner > .entry-divider {
    display: none !important;
}


/*
 * حذف فاصله و محدودیت عرض پیش‌فرض نوشته تکی Flatsome.
 */
body.single-post .page-wrapper,
body.single-post .blog-wrapper,
body.single-post #content.blog-wrapper,
body.single-post .blog-wrapper > .row,
body.single-post .blog-wrapper .row.row-large.row-divided,
body.single-post .blog-wrapper .post-content,
body.single-post .blog-wrapper .large-9.col,
body.single-post .blog-wrapper .large-8.col,
body.single-post .row.row-main,
body.single-post .content-area,
body.single-post .article-inner,
body.single-post .entry-content,
body.single-post .entry-content.single-page {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.single-post .page-wrapper,
body.single-post .blog-wrapper {
    padding-top: 0 !important;
}

body.single-post .blog-wrapper .post-sidebar,
body.single-post .blog-wrapper > .row > .large-3.col,
body.single-post .blog-wrapper > .row > .large-4.col.post-sidebar {
    display: none !important;
}


.mashoouf-article,
.mashoouf-article * {
    box-sizing: border-box;
}


.mashoouf-article {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 30px 20px 72px;
    background: var(--mab-page);
    color: var(--mab-text);
    direction: rtl;
}


/* ==================================================
   2) عنوان اصلی مقاله
================================================== */

.mashoouf-article-header {
    width: min(100%, var(--mab-content-width));
    margin: 0 auto 24px;
}


.mashoouf-article-title {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--mab-primary);
    font-size: clamp(36px, 3.4vw, 50px);
    font-weight: 850;
    line-height: 1.48;
    letter-spacing: -0.45px;
    text-align: right;
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
}


/* ==================================================
   3) چیدمان اصلی — بدون سایدبار
================================================== */

.mashoouf-article-layout {
    display: block;
    width: min(100%, var(--mab-content-width));
    margin: 0 auto;
    direction: rtl;
}


.mashoouf-article-content {
    width: 100%;
    min-width: 0;
    padding: 40px 48px 50px;
    overflow: visible;

    border: 1px solid rgba(229, 222, 209, 0.72);
    border-radius: var(--mab-radius);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.60) 0%,
            rgba(255, 253, 250, 0.72) 100%
        );

    box-shadow: none;
    direction: rtl;
}


/*
 * فهرست مطالب با JavaScript به داخل محتوای مقاله
 * و زیر مقدمه منتقل می‌شود.
 */
.mashoouf-article-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    margin: 18px 0 27px;
    overflow: hidden;

    border: 1px solid var(--mab-border);
    border-radius: 14px;

    background: rgba(255, 253, 249, 0.86);
    box-shadow: var(--mab-shadow-soft);
    direction: rtl;
}


.mashoouf-article-sidebar[hidden] {
    display: none !important;
}


/* ==================================================
   4) پاک‌سازی ساختار داخلی UX Builder
================================================== */

.mashoouf-article-content
> .section.mashoouf-builder-article {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}


.mashoouf-article-content
> .section.mashoouf-builder-article
> .section-bg {
    display: none !important;
}


.mashoouf-article-content
> .section.mashoouf-builder-article
> .section-content {
    position: relative;
    z-index: auto;
}


.mashoouf-article-content
> .section.mashoouf-builder-article
> .section-content
> .row {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}


.mashoouf-article-content
> .section.mashoouf-builder-article
> .section-content
> .row
> .col {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}


.mashoouf-article-content
> .section.mashoouf-builder-article
> .section-content
> .row
> .col
> .col-inner {
    margin: 0 !important;
}


.mashoouf-article-content
> :first-child,
.mashoouf-builder-article
> .section-content
> .row
> .col
> .col-inner
> :first-child {
    margin-top: 0 !important;
}


.mashoouf-article-content
> :last-child,
.mashoouf-builder-article
> .section-content
> .row
> .col
> .col-inner
> :last-child {
    margin-bottom: 0 !important;
}


/*
 * فاصله‌های مصنوعی اطراف اجزای بالای مقاله حذف شوند.
 */
.mashoouf-builder-intro + .gap-element,
.mashoouf-article-meta + .gap-element,
.mashoouf-article-sidebar + .gap-element,
.mashoouf-featured-image + .gap-element,
.mashoouf-builder-main-image + .gap-element {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}


/* ==================================================
   5) مقدمه، متا و تصویر شاخص
================================================== */

.mashoouf-builder-intro {
    width: 100%;
    margin: 0 0 14px !important;
}


.mashoouf-builder-intro p {
    margin: 0 !important;
    color: var(--mab-text-soft) !important;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 2.06 !important;
    text-align: justify;
    text-align-last: right;
}


.mashoouf-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;

    width: 100%;
    margin: 0 0 17px;

    color: var(--mab-muted);
    font-size: 12px;
    line-height: 1.7;
}


.mashoouf-article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    min-height: 32px;
    padding: 5px 10px;

    border: 1px solid var(--mab-border-soft);
    border-radius: 9px;

    background: rgba(250, 247, 240, 0.72);
}


.mashoouf-article-meta strong {
    color: #58665d;
    font-weight: 800;
    white-space: nowrap;
}


.mashoouf-featured-image,
.mashoouf-builder-main-image {
    display: block;
    width: 100%;
    margin: 0 0 30px !important;
    overflow: hidden;

    border: 1px solid rgba(229, 222, 209, 0.90);
    border-radius: 16px;

    background: #f1ece3;
    box-shadow:
        0 9px 28px rgba(23, 63, 42, 0.045);
}


.mashoouf-featured-image img,
.mashoouf-builder-main-image img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1400 / 788;
    object-fit: cover;
    object-position: center;
}


.mashoouf-builder-content-image {
    width: 100%;
    margin: 29px 0 !important;
    overflow: hidden;
    border-radius: 14px;
    background: #f1ece3;
}


.mashoouf-builder-content-image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    border-radius: 14px;
    object-fit: cover;
    object-position: center;
}


/* ==================================================
   6) فهرست مطالب تمام‌عرض
================================================== */

.mashoouf-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 55px;
    margin: 0;
    padding: 13px 17px;

    border: 0;
    border-bottom: 1px solid var(--mab-border);

    background: #faf7f0;
    color: var(--mab-primary);

    font-family: inherit;
    font-size: 14.5px;
    font-weight: 850;
    line-height: 1.7;
    text-align: right;

    cursor: pointer;
}


.mashoouf-toc-toggle:hover {
    background: #f7f2e8;
}


.mashoouf-toc-toggle:focus-visible {
    outline: 2px solid var(--mab-gold);
    outline-offset: -3px;
}


.mashoouf-toc-toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}


.mashoouf-toc-toggle-icon::before,
.mashoouf-toc-toggle-icon::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 1px;

    width: 14px;
    height: 2px;

    border-radius: 4px;
    background: var(--mab-gold);
    transition: transform 0.16s ease;
}


.mashoouf-toc-toggle-icon::after {
    transform: rotate(90deg);
}


.mashoouf-toc-toggle[aria-expanded="true"]
.mashoouf-toc-toggle-icon::after {
    transform: rotate(0);
}


.mashoouf-toc[hidden] {
    display: none !important;
}


.mashoouf-toc {
    padding: 12px 13px 14px;
    overflow: visible;
}


.mashoouf-toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.mashoouf-toc-item {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}


.mashoouf-toc-link {
    position: relative;
    display: block;

    width: 100%;
    min-height: 42px;
    padding: 9px 25px 9px 10px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #58665d;
    font-size: 12.7px;
    font-weight: 650;
    line-height: 1.75;

    text-decoration: none !important;
}


.mashoouf-toc-link::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 11px;

    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: #c9c0b1;
    transform: translateY(-50%);
}


.mashoouf-toc-link:hover,
.mashoouf-toc-link:focus-visible {
    border-color: rgba(182, 138, 58, 0.28);
    background: #fbf8f2;
    color: var(--mab-primary);
}


.mashoouf-toc-link.is-active {
    border-color: rgba(182, 138, 58, 0.38);
    background: var(--mab-gold-pale);
    color: var(--mab-primary);
    font-weight: 850;
}


.mashoouf-toc-link.is-active::before {
    background: var(--mab-gold-dark);
    box-shadow:
        0 0 0 3px rgba(182, 138, 58, 0.10);
}


/* ==================================================
   7) تایپوگرافی اصلی
================================================== */

.mashoouf-article-content p {
    margin: 0 0 21px;
    color: #33443a;
    font-size: 17px;
    font-weight: 400;
    line-height: 2.08;
    text-align: justify;
    text-align-last: right;
}


.mashoouf-article-content h2 {
    position: relative;
    display: block;

    width: 100%;
    max-width: none;

    margin: 45px 0 17px;
    padding: 0 12px 0 0;

    border: 0 !important;
    box-shadow: none !important;

    color: var(--mab-primary);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.66;
    text-align: right;
    text-wrap: pretty;

    overflow-wrap: normal;
    word-break: normal;
    scroll-margin-top: 105px;
}


.mashoouf-article-content h2::before {
    content: "";
    position: absolute;
    top: 0.37em;
    right: 0;

    width: 3px;
    height: 1.12em;

    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            var(--mab-gold-soft),
            var(--mab-gold-dark)
        );
}


.mashoouf-article-content h2::after,
.mashoouf-article-content h3::after {
    display: none !important;
    content: none !important;
}


.mashoouf-article-content h3 {
    position: relative;
    display: block;

    margin: 31px 0 13px;
    padding: 0 16px 0 0;

    border: 0 !important;
    box-shadow: none !important;

    color: #234833;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.80;
    text-align: right;
    text-wrap: pretty;
}


.mashoouf-article-content h3::before {
    content: "";
    position: absolute;
    top: 0.76em;
    right: 1px;

    width: 7px;
    height: 7px;

    border: 2px solid var(--mab-gold);
    border-radius: 50%;

    background: var(--mab-surface);
    transform: translateY(-50%);
}


.mashoouf-article-content h4 {
    margin: 26px 0 11px;
    color: #2e4f3a;
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.85;
}


.mashoouf-article-content ul,
.mashoouf-article-content ol {
    margin: 16px 0 26px;
    padding: 0 20px 0 0;
}


.mashoouf-article-content ul {
    list-style: none;
}


.mashoouf-article-content ul > li {
    position: relative;
}


.mashoouf-article-content ul > li::before {
    content: "";
    position: absolute;
    top: 1em;
    right: -15px;

    width: 5px;
    height: 5px;

    border-radius: 50%;
    background: var(--mab-gold);
    box-shadow:
        0 0 0 3px rgba(182, 138, 58, 0.08);

    transform: translateY(-50%);
}


.mashoouf-article-content li {
    margin: 0 0 8px;
    color: #34483b;
    font-size: 16px;
    line-height: 2;
    text-align: justify;
    text-align-last: right;
}


.mashoouf-article-content ol > li::marker {
    color: var(--mab-gold-dark);
    font-weight: 800;
}


.mashoouf-article-content
a:not(.button):not(.accordion-title):not(.mashoouf-toc-link) {
    color: var(--mab-gold-dark);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}


.mashoouf-article-content
a:not(.button):not(.accordion-title):not(.mashoouf-toc-link):hover,
.mashoouf-article-content
a:not(.button):not(.accordion-title):not(.mashoouf-toc-link):focus-visible {
    color: var(--mab-primary);
}


.mashoouf-article-content blockquote {
    margin: 29px 0;
    padding: 20px 22px;

    border: 0;
    border-right: 3px solid var(--mab-gold);
    border-radius: 12px;

    background: #faf7f0;
    color: #304438;

    font-size: 16.5px;
    font-style: normal;
    line-height: 2.05;

    box-shadow:
        inset 0 0 0 1px rgba(229, 222, 209, 0.72);
}


/* ==================================================
   8) خلاصه سریع
================================================== */

.mashoouf-builder-summary {
    margin: 0 0 32px !important;
    padding: 22px 23px;

    border: 1px solid rgba(182, 138, 58, 0.27);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(250, 247, 240, 0.92),
            rgba(247, 242, 232, 0.82)
        );
}


.mashoouf-builder-summary h2 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 20px !important;
}


.mashoouf-builder-summary h2::before {
    display: none !important;
}


.mashoouf-builder-summary ul {
    display: grid;
    gap: 8px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}


.mashoouf-builder-summary li {
    position: relative;
    margin: 0 !important;
    padding: 0 16px 0 0 !important;
}


.mashoouf-builder-summary li::before {
    top: 0.96em !important;
    right: 1px !important;

    width: 5px !important;
    height: 5px !important;

    box-shadow: none !important;
}


/* ==================================================
   9) باکس نکته، مقایسه، مطالب مرتبط و جمع‌بندی
================================================== */

.mashoouf-builder-note {
    margin: 28px 0 !important;
    padding: 19px 21px;

    border: 1px solid var(--mab-border);
    border-right: 3px solid var(--mab-gold);
    border-radius: 13px;

    background: #faf7f0;
}


.mashoouf-builder-note h3 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 15px !important;
}


.mashoouf-builder-note h3::before {
    display: none !important;
}


.mashoouf-builder-note p:last-child {
    margin-bottom: 0;
}


/*
 * حذف مارجین منفی Row در Flatsome و جلوگیری از بیرون‌زدگی کارت‌ها.
 */
.mashoouf-builder-comparison {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    width: 100% !important;
    max-width: 100% !important;

    margin: 4px 0 31px !important;
    padding: 0 !important;
}


.mashoouf-builder-comparison::before,
.mashoouf-builder-comparison::after {
    display: none !important;
}


.mashoouf-builder-comparison
> .col {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


.mashoouf-builder-comparison
> .col
> .col-inner {
    height: 100%;
    padding: 18px 16px;

    border: 1px solid var(--mab-border);
    border-radius: 13px;

    background: rgba(255, 253, 250, 0.94);
    box-shadow:
        0 5px 18px rgba(23, 63, 42, 0.025);
}


.mashoouf-builder-comparison h3 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 17px !important;
}


.mashoouf-builder-comparison h3::before {
    display: none !important;
}


.mashoouf-builder-comparison p:last-child {
    margin-bottom: 0;
}


.mashoouf-builder-related {
    margin: 31px 0 !important;
    padding: 19px 21px;

    border: 1px solid var(--mab-border);
    border-radius: 13px;

    background: rgba(251, 250, 247, 0.90);
}


.mashoouf-builder-related h2 {
    margin: 0 0 11px !important;
    padding: 0 !important;
    font-size: 20px !important;
}


.mashoouf-builder-related h2::before {
    display: none !important;
}


.mashoouf-builder-conclusion {
    margin: 40px 0 25px !important;
    padding: 23px 24px;

    border: 1px solid rgba(182, 138, 58, 0.25);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 253, 250, 0.96),
            rgba(250, 247, 240, 0.90)
        );
}


.mashoouf-builder-conclusion h2 {
    margin: 0 0 12px !important;
}


.mashoouf-builder-conclusion p:last-child {
    margin-bottom: 0;
}


.mashoouf-builder-conclusion + .gap-element {
    height: 22px !important;
    min-height: 22px !important;
}


.mashoouf-article-content
.button:last-child,
.mashoouf-article-content
.button-wrapper:last-child .button {
    margin-top: 4px !important;
}


/* ==================================================
   10) FAQ سریع و خوانا
================================================== */

.mashoouf-builder-faq {
    margin: 5px 0 34px;
}


.mashoouf-builder-faq
.is-divider {
    display: none !important;
}


.mashoouf-builder-faq
.accordion-item {
    margin-bottom: 9px;
    overflow: hidden;

    border: 1px solid var(--mab-border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.82);
}


.mashoouf-builder-faq
.accordion-title {
    min-height: 55px;
    padding: 13px 45px 13px 16px;

    border: 0 !important;
    box-shadow: none !important;

    background: transparent;
    color: var(--mab-primary);

    font-size: 14.5px;
    font-weight: 850;
    line-height: 1.85;

    text-decoration: none !important;
    transition: none !important;
}


.mashoouf-builder-faq
.accordion-title::after {
    display: none !important;
}


.mashoouf-builder-faq
.accordion-title:hover,
.mashoouf-builder-faq
.accordion-title.active {
    background: #faf7f0;
    color: var(--mab-primary);
    text-decoration: none !important;
}


.mashoouf-builder-faq
.accordion-title
.toggle {
    right: 14px;
    left: auto;
    color: var(--mab-gold);
}


.mashoouf-builder-faq
.accordion-inner {
    padding: 0 16px 16px;

    border: 0 !important;
    background: #faf7f0;

    transition: none !important;
    animation: none !important;
}


.mashoouf-builder-faq
.accordion-inner p {
    margin: 0;
    font-size: 14.5px;
    line-height: 2;
    text-align: right;
    text-align-last: auto;
}


/* ==================================================
   11) جدول‌ها
================================================== */

.mashoouf-article-content
.table-wrapper,
.mashoouf-article-content
.mashoouf-builder-table {
    width: 100%;
    margin: 26px 0 32px;
    overflow-x: auto;

    border: 1px solid var(--mab-border);
    border-radius: 13px;

    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}


.mashoouf-article-content table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: #ffffff;
}


.mashoouf-article-content th,
.mashoouf-article-content td {
    padding: 14px 12px;
    border: 0;
    border-bottom: 1px solid var(--mab-border-soft);

    color: #384a3e;
    font-size: 13.5px;
    line-height: 1.85;

    text-align: right;
    vertical-align: middle;
}


.mashoouf-article-content thead th {
    background: var(--mab-primary);
    color: #ffffff;
    font-weight: 850;
    text-align: center;
}


/* ==================================================
   12) لپ‌تاپ
================================================== */

@media (min-width: 850px) and (max-width: 1199px) {

    :root {
        --mab-content-width: 1040px;
    }

    .mashoouf-article {
        padding-right: 15px;
        padding-left: 15px;
    }

    .mashoouf-article-content {
        padding: 37px 35px 45px;
    }

    .mashoouf-builder-comparison {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ==================================================
   13) موبایل و تبلت عمودی
================================================== */

@media (max-width: 849px) {

    .mashoouf-article {
        padding: 18px 4px 48px;
    }


    .mashoouf-article-header {
        width: 100%;
        margin-bottom: 18px;
        padding: 0 10px;
    }


    .mashoouf-article-title {
        width: min(100%, 18ch);
        margin-right: auto;
        margin-left: auto;

        font-size: clamp(25px, 6.5vw, 30px);
        line-height: 1.55;
        letter-spacing: -0.18px;

        text-align: center;
        text-wrap: balance;
    }


    .mashoouf-article-header::after {
        content: "";
        display: block;

        width: 46px;
        height: 2px;

        margin: 13px auto 0;
        border-radius: 999px;

        background:
            linear-gradient(
                90deg,
                transparent,
                var(--mab-gold),
                transparent
            );
    }


    .mashoouf-article-layout {
        width: 100%;
    }


    .mashoouf-article-content {
        width: calc(100% + 2px);
        margin-right: -1px;
        margin-left: -1px;

        padding: 23px 13px 34px;

        border-color: rgba(229, 222, 209, 0.66);
        border-radius: 14px;

        background:
            linear-gradient(
                180deg,
                rgba(255, 253, 250, 0.90),
                rgba(255, 253, 250, 0.78)
            );

        box-shadow: none;
    }


    .mashoouf-builder-intro {
        margin-bottom: 12px !important;
    }


    .mashoouf-builder-intro p {
        font-size: 15.5px !important;
        line-height: 2.04 !important;
    }


    .mashoouf-article-meta {
        gap: 5px;
        margin-bottom: 14px;
    }


    .mashoouf-article-meta > span {
        min-height: 30px;
        padding: 4px 7px;
        font-size: 10.8px;
    }


    .mashoouf-article-sidebar {
        margin: 14px 0 22px;
        border-radius: 12px;
        box-shadow:
            0 6px 20px rgba(23, 63, 42, 0.028);
    }


    .mashoouf-toc-toggle {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 13.5px;
    }


    .mashoouf-toc {
        padding: 9px 9px 11px;
    }


    .mashoouf-toc-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }


    .mashoouf-toc-link {
        min-height: 41px;
        padding: 8px 24px 8px 9px;
        font-size: 12px;
    }


    .mashoouf-featured-image,
    .mashoouf-builder-main-image {
        margin-bottom: 24px !important;
        border-radius: 12px;
    }


    .mashoouf-article-content p {
        margin-bottom: 18px;
        font-size: 15.5px;
        line-height: 2.04;
    }


    .mashoouf-article-content h2 {
        margin: 36px 0 14px;
        padding-right: 10px;

        font-size: 20.5px;
        line-height: 1.70;
        text-wrap: pretty;
    }


    .mashoouf-article-content h2::before {
        top: 0.42em;
        width: 3px;
        height: 0.98em;
    }


    .mashoouf-article-content h3 {
        margin: 26px 0 11px;
        padding-right: 14px;

        font-size: 18px;
        line-height: 1.80;
        text-wrap: pretty;
    }


    .mashoouf-article-content h3::before {
        right: 0;
        width: 6px;
        height: 6px;
    }


    .mashoouf-article-content ul,
    .mashoouf-article-content ol {
        margin-top: 13px;
        margin-bottom: 22px;
        padding-right: 17px;
    }


    .mashoouf-article-content li {
        margin-bottom: 7px;
        font-size: 14.7px;
        line-height: 1.98;
    }


    .mashoouf-article-content
    ul > li::before {
        right: -13px;
        width: 4px;
        height: 4px;
        box-shadow: none;
    }


    .mashoouf-builder-summary {
        margin-bottom: 27px !important;
        padding: 18px 14px;
        border-radius: 12px;
    }


    .mashoouf-builder-summary h2 {
        margin-bottom: 10px !important;
        font-size: 18.5px !important;
    }


    .mashoouf-builder-summary ul {
        gap: 7px;
    }


    .mashoouf-builder-summary li {
        padding-right: 14px !important;
        font-size: 14px;
        line-height: 1.95;
    }


    .mashoouf-builder-summary li::before {
        right: 0 !important;
        width: 4px !important;
        height: 4px !important;
    }


    .mashoouf-builder-note,
    .mashoouf-builder-related {
        padding: 17px 14px;
        border-radius: 12px;
    }


    .mashoouf-builder-conclusion {
        margin-top: 34px !important;
        margin-bottom: 23px !important;
        padding: 19px 15px;
        border-radius: 12px;
    }


    .mashoouf-builder-comparison {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }


    .mashoouf-builder-comparison
    > .col
    > .col-inner {
        padding: 15px 12px;
        border-radius: 12px;
    }


    .mashoouf-builder-comparison h3 {
        font-size: 16px !important;
    }


    .mashoouf-builder-comparison p {
        font-size: 14px;
        line-height: 1.92;
        text-align: right;
        text-align-last: auto;
    }


    .mashoouf-builder-faq {
        margin-bottom: 32px;
    }


    .mashoouf-builder-faq
    .accordion-title {
        min-height: 51px;
        padding: 11px 41px 11px 12px;

        font-size: 13.3px;
        line-height: 1.80;

        text-decoration: none !important;
    }


    .mashoouf-builder-faq
    .accordion-inner {
        padding: 0 13px 14px;
    }


    .mashoouf-builder-faq
    .accordion-inner p {
        font-size: 14px;
    }


    .mashoouf-builder-conclusion + .gap-element {
        height: 22px !important;
        min-height: 22px !important;
    }
}


/* ==================================================
   14) موبایل کوچک
================================================== */

@media (max-width: 480px) {

    .mashoouf-article {
        padding-right: 2px;
        padding-left: 2px;
    }


    .mashoouf-article-header {
        padding-right: 8px;
        padding-left: 8px;
    }


    .mashoouf-article-title {
        font-size: clamp(24px, 7.2vw, 28px);
    }


    .mashoouf-article-content {
        width: calc(100% + 2px);
        margin-right: -1px;
        margin-left: -1px;
        padding-right: 11px;
        padding-left: 11px;
    }


    .mashoouf-builder-comparison {
        gap: 7px;
    }


    .mashoouf-builder-comparison
    > .col
    > .col-inner {
        padding: 14px 10px;
    }


    .mashoouf-builder-comparison h3 {
        font-size: 15.5px !important;
    }


    .mashoouf-builder-comparison p {
        font-size: 13.5px;
    }
}


/* ==================================================
   15) کاهش انیمیشن
================================================== */

@media (prefers-reduced-motion: reduce) {

    .mashoouf-article *,
    .mashoouf-article *::before,
    .mashoouf-article *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* ==================================================
   16) چاپ
================================================== */

@media print {

    .mashoouf-article {
        padding: 0;
        background: #ffffff;
    }


    .mashoouf-article-header,
    .mashoouf-article-layout {
        width: 100%;
    }


    .mashoouf-article-content {
        padding: 0;
        border: 0;
        background: #ffffff;
    }


    .mashoouf-article-sidebar,
    .mashoouf-article-content .button {
        display: none !important;
    }
}

/* ==================================================
   MASHOOUF ARTICLE BUILDER — V5.1 PATCH
   تصویر زیر H1، حذف خط تیترها، اصلاح فهرست و شکست خطوط
================================================== */

/* تصویر شاخص مستقیماً زیر H1 */
.mashoouf-article-header .mashoouf-featured-image,
.mashoouf-article-header .mashoouf-builder-main-image {
    width: 100%;
    margin: 22px 0 0 !important;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(229, 222, 209, 0.88);
    background: #f1ece3;
    box-shadow:
        0 10px 28px rgba(23, 63, 42, 0.05);
}

.mashoouf-article-header .mashoouf-featured-image img,
.mashoouf-article-header .mashoouf-builder-main-image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1400 / 788;
    object-fit: cover;
    object-position: center;
}

/* حذف خط‌های پیش‌فرض Flatsome زیر تیترها */
.mashoouf-article-content .is-divider,
.mashoouf-article-content .divider,
.mashoouf-article-content .section-title-container .is-divider,
.mashoouf-article-content h2 + .is-divider,
.mashoouf-article-content h3 + .is-divider {
    display: none !important;
}

/* جلوگیری از فاصله و شکست نامنظم تیترها */
.mashoouf-article-content h2,
.mashoouf-article-content h3 {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-align: right !important;
    text-align-last: right !important;
    word-spacing: normal !important;
    letter-spacing: 0 !important;
    text-wrap: wrap !important;
}

.mashoouf-article-content h2 *,
.mashoouf-article-content h3 * {
    text-align: right !important;
    text-align-last: right !important;
    word-spacing: normal !important;
    letter-spacing: 0 !important;
}

/* حذف نقطه دوم فهرست مطالب */
.mashoouf-toc-list,
.mashoouf-toc-list > li {
    list-style: none !important;
}

.mashoouf-toc-list > li {
    position: relative;
    padding-right: 0 !important;
}

.mashoouf-toc-list > li::before,
.mashoouf-toc-list > li::marker {
    display: none !important;
    content: none !important;
}

.mashoouf-toc-link::before {
    width: 4px;
    height: 4px;
    right: 12px;
    box-shadow: none;
}

/* موبایل */
@media (max-width: 849px) {

    .mashoouf-article-header {
        margin-bottom: 14px;
    }

    .mashoouf-article-title {
        width: min(100%, 19ch);
        font-size: clamp(26px, 7vw, 31px);
        line-height: 1.5;
        text-align: center !important;
        text-align-last: center !important;
        text-wrap: balance !important;
    }

    .mashoouf-article-header .mashoouf-featured-image,
    .mashoouf-article-header .mashoouf-builder-main-image {
        margin-top: 18px !important;
        border-radius: 15px;
    }

    .mashoouf-article-content h2 {
        margin-top: 34px;
        margin-bottom: 13px;
        padding-right: 10px;
        font-size: 20.5px;
        line-height: 1.68;
        text-align: right !important;
        text-align-last: right !important;
        text-wrap: wrap !important;
    }

    .mashoouf-article-content h3 {
        text-align: right !important;
        text-align-last: right !important;
        text-wrap: wrap !important;
    }

    .mashoouf-toc-link {
        padding-right: 23px;
    }

    .mashoouf-toc-link::before {
        right: 11px;
        width: 4px;
        height: 4px;
    }
}
