/* استایل محتوای مقالات Textoma
   این کلاس‌ها داخل خروجی article.content تکستوما استفاده شدن.
   بعد از main.css توی head.php لینک بشه:
   <link rel="stylesheet" href="assets-v2/css/textoma-article.css">
*/

/* عنوان و خلاصه‌ی داخل محتوا حذف بصری می‌شن، چون همون‌ها بالای صفحه (Hero) قبلاً نمایش داده شدن */
.article-title,
.article-summary {
    display: none;
}

/* فهرست محتوا */
.article-table-of-contents {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0 2.5rem;
}

.article-table-of-contents h2 {
    font-size: 1.125rem;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 1rem;
}

.article-table-of-contents-list-level-1,
.article-table-of-contents-list-level-2 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-table-of-contents-list-level-1 > li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.article-table-of-contents-list-level-1 > li:last-child {
    border-bottom: none;
}

.article-table-of-contents-list-level-2 {
    padding-right: 1.25rem;
    margin-top: 0.4rem;
}

.article-table-of-contents-list-level-2 > li {
    padding: 0.3rem 0;
    font-size: 0.925rem;
}

.article-table-of-contents a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-table-of-contents-list-level-1 > li > a {
    font-weight: 600;
    color: #1e293b;
}

.article-table-of-contents a:hover {
    color: #166534;
}

.article-table-of-contents a::before {
    content: "\2013"; /* – */
    margin-left: 0.5rem;
    color: #94a3b8;
}

/* بدنه‌ی اصلی مقاله */
.article-contents {
    color: #334155;
    font-size: 1.0625rem;
    line-height: 2;
}

.article-contents p {
    margin: 0 0 1.25rem;
}

.article-contents h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #14532d;
    margin: 2.75rem 0 1.25rem;
    padding-right: 1rem;
    border-right: 4px solid #16a34a;
}

.article-contents h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #166534;
    margin: 2rem 0 1rem;
}

.article-contents ul,
.article-contents ol {
    margin: 0 0 1.5rem;
    padding-right: 1.5rem;
}

.article-contents ul.list-disc {
    list-style: none;
}

.article-contents ul.list-disc > li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.85rem;
}

.article-contents ul.list-disc > li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
}

.article-contents strong {
    color: #14532d;
    font-weight: 700;
}

.article-contents a {
    color: #166534;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-contents hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2.5rem 0;
}

/* سوالات متداول */
.schema-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.schema-faq-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.schema-faq-question {
    display: block;
    color: #14532d;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.schema-faq-question::before {
    content: "\003F"; /* ? */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    font-size: 0.9rem;
}

.schema-faq-answer {
    color: #475569;
    margin: 0;
}
