/* =========================================================
   ARIYANA ARTICLES
   Shared Article Styles
   ========================================================= */

.article-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 60px;
    box-sizing: border-box;
    direction: rtl;
    font-family: ramin, Tahoma, Arial, sans-serif;
    color: #555555;
    background: transparent;
}


/* =========================================================
   HERO - FULL WIDTH
   ========================================================= */
.mainplaceholder {
    padding-top: 2px !important;
}


.article-hero {
    width: 100vw;
    min-height: 220px;
    margin-top: 22px;
    margin-bottom: 45px;
    margin-right: calc(50% - 50vw);
    padding: 28px 8%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 45px;

    direction: ltr;

    background:
        linear-gradient(110deg,
            #ff1760 0%,
            #ff4b45 30%,
            #ff6f00 60%,
            #ff9800 100%);

    border-radius: 0;
}


.article-hero-content {
    min-width: 0;
    direction: rtl;
    text-align: right;
}


.article-title {
    margin: 0;
    padding: 0;
    border: 0;

    color: #ffffff;

    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.6;

    letter-spacing: 0;
}


.article-meta {
    margin-top: 12px;

    color: #ffffff;
    opacity: 0.94;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
}


.article-hero-image {
    width: 220px;
    height: 135px;

    overflow: hidden;

    border-radius: 15px;
    background: #eeeeee;
}


.article-hero-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
}

/* =====================================================
   ARTICLE READING PROGRESS
===================================================== */

.article-progress {
    position: fixed;
    top: 158px;
    left: 0;
    right: 0;
    width: 100%;
    height: 5px;
    margin: 0;
    padding: 0;
    z-index: 999999;
    background: rgba(85, 85, 85, 0.15);
    overflow: hidden;
}

.article-progress-bar {
    display: block;
    width: 0;
    height: 5px;
    margin: 0;
    padding: 0;
    background: #ff9400;
    transition: width 0.05s linear;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.article-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 320px;

    gap: 65px;

    align-items: start;

    box-sizing: border-box;
    padding-top: 15px;
}

/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.article-content {
    width: 100%;
    min-width: 0;

    color: #555555;

    font-size: 18px;
    line-height: 1.95;

    box-sizing: border-box;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.article-section {
    width: 100%;

    margin: 0;
    padding: 0;

    scroll-margin-top: 100px;
}


.article-section+.article-section {
    margin-top: 24px;
}

/* فاصله اختصاصی بخش‌ها */
.article-section#common-mistakes,
.article-section#study-cycle,
.article-section#conclusion,
.article-section#different-subjects,
.article-section#exam-study {
    margin-top: 24px;
}

/* =========================================================
   H2
   ========================================================= */

.article-content h2 {
    position: relative;

    margin: 0 0 10px;
    padding: 0;

    color: #FF9400;

    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 700;

    line-height: 1.65;

    border: 0;
    background: transparent;
}


/* حذف کامل خط کنار عنوان‌ها */

.article-content h2::before,
.article-content h2::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   H3
   ========================================================= */

.article-content h3 {
    margin: 22px 0 8px;
    padding: 0;

    color: #FF9400;

    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 21px;
    font-weight: 700;

    line-height: 1.65;

    border: 0;
    background: transparent;
}


.article-content h3::before,
.article-content h3::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

.article-content p {
    margin: 0;
    padding: 0;

    color: #555555;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.95;

    text-align: justify;
}


.article-content p+p {
    margin-top: 7px;
}


/* =========================================================
   TEXT
   ========================================================= */

.article-content strong {
    color: inherit;
    font-weight: 400;
}


.article-content .keyword {
    color: inherit;
    font-weight: 400;
}

.article-content .article-text-link {
    color: #555555;
    font-weight: 600;
    text-decoration: none;
}

.article-content .article-text-link:link,
.article-content .article-text-link:visited,
.article-content .article-text-link:hover,
.article-content .article-text-link:focus,
.article-content .article-text-link:active {
    color: #555555;
    text-decoration: none;
}

/* =========================================================
   LISTS
   ========================================================= */

.article-content ul,
.article-content ol {
    margin: 5px 0 8px;

    padding-right: 28px;
    padding-left: 0;

    color: #555555;

    font-size: 18px;
    line-height: 1.95;
}


.article-content li {
    margin: 0;
    padding: 0;

    color: #555555;
    font-weight: 400;
}


.article-content li+li {
    margin-top: 3px;
}


/* بولت دقیقاً هم‌رنگ متن */

.article-content ul li::marker,
.article-content ol li::marker {
    color: #555555;
}


/* =========================================================
   SUBSECTION
   ========================================================= */

.article-subsection {
    margin-top: 24px;
    padding: 0;

    border: 0;
    background: transparent;
}


/* =========================================================
   CALLOUT / FORMULA
   ========================================================= */

.article-callout {
    width: 100%;

    margin: 15px 0;

    padding: 13px 18px;

    box-sizing: border-box;

    background: #FFF6EB;

    border: 1px solid rgba(255, 148, 0, 0.25);

    border-radius: 12px;

    text-align: center;
}


.article-callout-title {
    margin-bottom: 4px;

    color: #FF9400;

    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;

    line-height: 1.6;
}

.article-formula-flow {
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-formula-flow span {
    direction: rtl;
    unicode-bidi: plaintext;
}

.article-formula-flow b {
    direction: ltr;
}


/* =========================================================
   ARIYANA REFERENCE
   ========================================================= */

.aryana-reference {
    margin-top: 10px;
}


.aryana-reference a {
    color: #FF0048;

    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}


.aryana-reference a:hover {
    color: #FF9400;
}

.aryana-reference a {
    color: #FF9400;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aryana-reference a:hover,
.aryana-reference a:focus,
.aryana-reference a:active {
    color: #FF0048;
}

.ariana-no-top-space {
    margin-top: 0;
}

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.article-sidebar {
    width: 100%;

    position: sticky;
    top: 25px;

    align-self: start;

    box-sizing: border-box;
}


.article-toc {
    width: 100%;

    padding: 20px 18px;

    box-sizing: border-box;

    background: #FFFBF7;

    border-radius: 16px;

    border: 1px solid rgba(85, 85, 85, 0.08);
}


.article-toc-title {
    margin: 0 0 14px;

    color: #FF9400;

    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 700;

    line-height: 1.7;

    text-align: center;
}


.article-toc-link,
.article-toc-sub-link {
    display: block;

    margin: 0;
    padding: 7px 9px;

    color: #666666;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.7;

    text-decoration: none;

    border-radius: 8px;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.article-toc-sub-link {
    padding-right: 23px;
    font-size: 14px;
}


.article-toc-link:hover,
.article-toc-sub-link:hover {
    color: #FF9400;
    background: rgba(255, 148, 0, 0.06);
}


.article-toc-link.active,
.article-toc-sub-link.active {
    color: #FF9400;

    background: rgba(255, 148, 0, 0.08);

    font-weight: 600;
}


/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-articles {
    width: 100%;

    margin-top: 65px;

    box-sizing: border-box;
}


.related-articles-header {
    margin-bottom: 16px;
}


.related-articles-header h2 {
    margin: 0 0 12px;
    padding: 0;
    text-align: center;
    color: #FF9400;

    font-family: raminb, ramin, Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 700;

    line-height: 1.7;

    border: 0;
}


.related-articles-slider {
    width: 100%;

    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;
    direction: ltr;
}


.related-viewport {
    width: 100%;

    overflow: hidden;

    box-sizing: border-box;
}


.related-track {
    width: 100%;

    display: flex;

    gap: 15px;

    direction: ltr;

    transition: transform 0.35s ease;
}


.related-card {
    min-width: calc((100% - 30px) / 3);

    display: flex;

    flex-direction: row;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;
    min-height: 135px;

    padding: 12px;

    box-sizing: border-box;

    background: #FFFBF7;

    border-radius: 14px;

    border: 1px solid rgba(85, 85, 85, 0.07);

    direction: ltr;
}


.related-image {
    order: 2;

    flex: 0 0 165px;

    width: 165px;

    height: 112px;

    display: block;

    margin: 0;

    padding: 0;

    overflow: hidden;

    border-radius: 9px;

    align-self: flex-start;
}


.related-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.related-info {
    order: 1;

    flex: 1 1 auto;

    min-width: 0;

    margin: 0;

    padding: 0;

    align-self: center;

    direction: rtl;

    text-align: right;
}


.related-label {
    display: block;

    margin-bottom: 3px;

    color: #999999;

    font-size: 11px;

    line-height: 1.5;
}


.related-info h3 {
    margin: 2px 0 0;

    color: #555555;

    font-family: raminb, ramin, Tahoma, sans-serif;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.7;
}


.related-info h3 a {
    color: inherit;
    text-decoration: none;
}


.related-info h3 a:hover {
    color: #FF9400;
}


.related-time {
    display: block;

    margin-top: 3px;

    color: #999999;

    font-size: 11px;

    line-height: 1.5;
}


.related-arrow {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #FFF6EB;

    color: #FF9400;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;
}


.related-arrow:hover {
    background: #FF9400;
    color: #ffffff;
}


/* =========================================================
   RELATED DOTS
   ========================================================= */

.related-dots {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 14px;
    direction: ltr;
}


.related-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #FFD8A8;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.related-dot.active {
    background: #FF9400;

    transform: scale(1.2);
}


/* =========================================================
   COMMENTS
   ========================================================= */

.article-comments {
    width: 100%;

    margin-top: 65px;
    padding-top: 40px;

    border-top: 1px solid rgba(85, 85, 85, 0.1);

    box-sizing: border-box;
}


.comments-inner {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;
}


.comments-inner h2 {
    margin: 0 0 8px;

    color: #FF9400;

    font-family: raminb, ramin, Tahoma, sans-serif;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.7;
}


.comments-intro {
    margin: 0 0 25px;

    color: #777777;

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   COMMENT LIST
   ========================================================= */

.comment-list {
    margin-bottom: 28px;
}


.comment-item {
    margin-bottom: 12px;

    padding: 14px 16px;

    background: #FFFBF7;

    border: 1px solid rgba(85, 85, 85, 0.08);

    border-radius: 12px;
}


.comment-item-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 6px;
}


.comment-item-name {
    color: #555555;

    font-family: raminb, ramin, Tahoma, sans-serif;

    font-size: 15px;
    font-weight: 600;
}


.comment-item-date {
    color: #999999;

    font-size: 11px;
}


.comment-item-text {
    margin: 0;

    color: #555555;

    font-size: 15px;

    line-height: 1.9;

    white-space: pre-wrap;
}


.comment-empty {
    margin-bottom: 20px;

    color: #999999;

    font-size: 14px;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-field {
    margin-bottom: 18px;
}


.comment-field label {
    display: block;

    margin-bottom: 7px;

    color: #777777;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.7;
}


.comment-field input,
.comment-field textarea {
    width: 100%;

    padding: 12px 14px;

    box-sizing: border-box;

    background: #FFFBF7;

    color: #555555;

    border: 1px solid rgba(85, 85, 85, 0.15);

    border-radius: 10px;

    outline: none;

    font-family: ramin, Tahoma, sans-serif;

    font-size: 16px;

    line-height: 1.8;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.comment-field input:focus,
.comment-field textarea:focus {
    border-color: #FF9400;

    box-shadow:
        0 0 0 3px rgba(255, 148, 0, 0.08);
}


.comment-field textarea {
    resize: none;

    min-height: 150px;
}


.comment-field.invalid input,
.comment-field.invalid textarea {
    border-color: #d9534f;
}


.comment-error {
    display: block;

    min-height: 20px;

    margin-top: 5px;

    color: #d9534f;

    font-size: 13px;

    line-height: 1.6;
}


.comment-submit {
    padding: 10px 25px;

    border: 0;

    border-radius: 9px;

    background: #FF9400;

    color: #ffffff;

    font-family: raminb, ramin, Tahoma, sans-serif;

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.comment-submit:hover {
    background: #e98a00;

    transform: translateY(-1px);
}


.comment-submit:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


.comment-success {
    display: none;

    margin-top: 15px;

    color: #4d8b58;

    font-size: 14px;

    line-height: 1.7;
}

.required-star {
    color: #e53935;
    font-weight: 700;
    margin-right: 3px;
}

/* مخفی از کاربر، قابل مشاهده برای ربات */

.comment-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .article-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    .article-sidebar {
        position: sticky;
        order: -1;
    }


    .article-toc {
        width: 100%;
    }


    .article-hero {
        padding: 28px 5%;
    }


    .related-card {
        min-width: calc((100% - 15px) / 2);
    }

}


@media (max-width: 750px) {

    .related-card {
        min-width: 100%;
    }


    .related-image {
        width: 110px;
        height: 76px;
    }

}


@media (max-width: 650px) {

    .article-page {
        padding: 0 17px 35px;
    }


    .article-hero {

        min-height: 220px;

        margin-top: 15px;
        margin-bottom: 32px;

        margin-right: calc(50% - 50vw);

        padding: 22px 20px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 16px;

        direction: rtl;
    }


    .article-hero-content {
        width: 100%;
    }


    .article-title {
        font-size: 28px;
        line-height: 1.6;
    }


    .article-meta {
        font-size: 14px;
        line-height: 1.85;
    }


    .article-hero-image {
        width: 100%;
        height: 150px;

        margin-top: 0;
    }


    .article-content {
        font-size: 18px;
        line-height: 1.95;
    }


    .article-content p {
        font-size: 18px;
        line-height: 1.95;
    }


    .article-content h2 {
        font-size: 22px;

        line-height: 1.65;

        margin-bottom: 9px;
    }


    .article-content h3 {
        font-size: 19px;

        line-height: 1.65;

        margin-top: 20px;
        margin-bottom: 7px;
    }


    .article-content ul,
    .article-content ol {
        font-size: 18px;

        line-height: 1.95;

        padding-right: 23px;
    }


    .article-section+.article-section {
        margin-top: 30px;
    }


    .article-subsection {
        margin-top: 22px;
    }


    .article-callout {
        padding: 12px 10px;
    }


    .article-toc {
        padding: 15px;
    }


    .article-toc-title {
        font-size: 19px;
    }


    .article-toc-link {
        font-size: 14px;

        padding: 7px 8px;
    }


    .article-toc-sub-link {
        font-size: 13px;

        padding-right: 20px;
    }


    .related-articles {
        margin-top: 50px;
    }


    .related-card {
        grid-template-columns: minmax(0, 1fr) 105px;
        padding: 9px;
        min-height: 100px;
    }


    .related-image {
        width: 105px;
        height: 74px;
        flex: 0 0 105px;
    }


    .related-info h3 {
        font-size: 14px;
    }


    .article-comments {
        margin-top: 45px;

        padding-top: 30px;
    }

}

html,
body {
    overflow-x: clip;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.article-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #FF0048, #FF9400);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    z-index: 9999;
}

.article-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.article-back-to-top:hover {
    transform: translateY(-2px);
}

.article-back-to-top::before {
    content: "";
    width: 14px;
    height: 14px;
    border-left: 3.2px solid #ffffff;
    border-top: 3.2px solid #ffffff;
    transform: rotate(45deg);
    margin-top: -2px;
}

.article-back-to-top::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 18px;
    background: #ffffff;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
}


/* جلوگیری از نمایش فلش متن داخل button */
.article-back-to-top {
    font-size: 0;
}


@media (max-width: 650px) {

    .article-back-to-top {
        right: 16px;
        left: auto;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

    .article-back-to-top::before {
        font-size: 23px;
    }
}