/* ===== Fix FA Justify v1.1 ===== */
/* قاعده‌ی سراسری فقط در صفحات فارسی/RTL */
html[lang^="fa"], html[dir="rtl"], body.rtl {
}
/* پاراگراف‌ها و لیست‌ها */
html[lang^="fa"] p,
html[lang^="fa"] li,
html[dir="rtl"] p,
html[dir="rtl"] li,
body.rtl p,
body.rtl li,
html[lang^="fa"] .wci-desc,
html[dir="rtl"] .wci-desc,
body.rtl .wci-desc {
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right !important;          /* مهم: جلوگیری از center/justify اجباری */
    text-align-last: auto !important;
    -moz-text-align-last: auto !important;
    text-justify: inter-word !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
    font-kerning: normal;
}

/* اگر واقعاً بخواهید جعبه وسط باشد ولی متن راست‌چین: */
.fa-center-box { display:flex; justify-content:center; }
.fa-center-box > * { text-align:right !important; }

/* کلاس اصلاح خودکار که JS اضافه می‌کند */
.fa-fix-rtl {
    direction: rtl !important;
    unicode-bidi: plaintext !important;
    text-align: right !important;
    text-align-last: auto !important;
    -moz-text-align-last: auto !important;
    text-justify: inter-word !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* برخی قالب‌ها inter-character یا justify را با کلاس عمومی اعمال می‌کنند */
[style*="text-justify: inter-character"],
[class*="justify"] {
    text-justify: inter-word !important;
}

.wci-desc { line-height: 1.9; }

/* برای تیترهای واقعاً وسط‌چین */
.fa-center-text {
    text-align: center !important;
    text-justify: auto !important;
    text-align-last: center !important;
    letter-spacing: normal !important;
}
