/* =========================================================
   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) auto;
    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 {
    grid-column: 1;
    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;
    grid-column: 2;
    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: #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-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: 25px;
        line-height: 1.6;
        text-align: center;
    }

    .article-meta {
        font-size: 16px;
        line-height: 1.85;
        width: 95%;
        margin: 6px auto 0px;
    }

    .article-hero-image {
        width: 95%;
        height: 150px;
        margin: 0 auto;
        display: block;
        object-fit: cover;
        object-position: center 0%;
    }

    .article-section+.article-section {
        margin-top: 30px;
    }

    .article-subsection {
        margin-top: 22px;
    }

    .article-callout {
        padding: 12px 10px;
    }

    .article-toc {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 15px;
    }

    .article-toc-title {
        font-size: 19px;
    }

    .article-toc a {
        font-size: 16px;
    }

    .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: 99px;
        flex: 0 0 105px;
        overflow: hidden;
    }

    .related-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .related-info {
        display: flex;
        flex-direction: column;
    }

    .related-info h3 {
        font-size: 13px;
        line-height: 1.6;
    }

    .related-info h3 a {
        font-size: inherit;
        line-height: inherit;
    }

    .article-comments {
        width: 95%;
        margin: 45px auto 110px;
        padding-top: 30px;
        box-sizing: border-box;
    }

    .comments-inner h2 {
        font-size: 21px;
    }

    .comment-submit {
        margin-top: -5px;
    }

    .article-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px;
    }

    .article-sidebar {
        order: 1 !important;
        position: static !important;
        top: auto !important;
        align-self: stretch !important;
        width: 100% !important;
        height: auto !important;
        z-index: auto !important;
    }

    .article-content {
        order: 2 !important;
        position: static !important;
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-width: 0;
        font-size: 17px;
        line-height: 2;
    }

    /* پاراگراف‌ها */
    .article-content p {
        font-size: 17px;
        line-height: 2;
    }

    /* فهرست‌های شماره‌دار و بولت‌دار */
    .article-content ul,
    .article-content ol {
        font-size: 17px;
        line-height: 2;
        padding-right: 23px;
    }

    .article-content h2 {
        font-size: 20px;
        line-height: 1.7;
        margin-bottom: 9px;
    }

    .article-content h3 {
        font-size: 19px;
        line-height: 1.7;
        margin-top: 20px;
        margin-bottom: 7px;
    }

    .article-progress {
        position: fixed !important;
        top: 95px !important;
        left: 0 !important;
        right: 0 !important;
        height: 5px !important;
        z-index: 1001 !important;
    }

    .related-articles-header h2 {
        font-size: 20px;
    }

}

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;
    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;
    }
}

/* =========================================================
   ARIYANA NEWS HERO
   Shared with Article Page     css بخش اخبار مدرسه
   هدر اختصاصی اخبار مدرسه- قبولی تیزهوشان
   ========================================================= */

.news-hero {
    position: relative;
    width: 100vw;
    height: 300px;
    margin-top: 22px;
    margin-bottom: 45px;
    margin-right: calc(50% - 50vw);
    padding-left: 13.85%;
    padding-right: 8%;
    box-sizing: border-box;
    display: grid;
    /* تصویر چپ / متن راست */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
        "image content";
    align-items: center;
    gap: 55px;
    direction: ltr;
    /* بدون گرادیان */
    background: #ffffff;
}

/* =========================================================
   NEWS HERO CONTENT
   سمت راست
   ========================================================= */

.news-hero-content {
    min-width: 0;
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    direction: rtl;
    text-align: right;
    padding-right: 72px;
}

.news-hero-title {
    margin: 0;
    padding: 0;
    color: #FF9400;
    font-family: raminb, ramin;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.65;
    border: 0;
}

.news-hero-meta {
    margin-top: 10px;
    color: #666666;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

/* =========================================================
   NEWS HERO SLIDER
   سمت چپ
   ========================================================= */

.news-hero-slider {
    position: relative;
    grid-area: image;
    width: 100%;
    height: 300px;
    direction: ltr;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-viewport {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 22px;
    background: #eeeeee;
    box-sizing: border-box;
}

.news-hero-track {
    width: 100%;
    height: 100%;
    display: flex;
    direction: ltr;
    transition: transform 0.45s ease;
}

.news-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   NEWS HERO ARROWS
   خارج از تصویر
   ========================================================= */

.news-hero-arrow {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FF9400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 5;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.news-hero-arrow span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 45px;
    font-weight: 600;
    line-height: 1;
    margin-top: -4px;
    background: linear-gradient(135deg,
            #FF0048,
            #FF9400);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* فلش قبلی - سمت چپ تصویر */

.news-hero-prev {
    left: -48px;
}

/* فلش بعدی - سمت راست تصویر */

.news-hero-next {
    right: -48px;
}

.news-hero-arrow:hover {
    transform: translateY(-50%) scale(1.12);
}

.news-hero-arrow:focus-visible {
    outline: 2px solid #FF9400;
    outline-offset: 4px;
}

/* =========================================================
   NEWS HERO DOTS
   وسط پایین تصویر
   ========================================================= */

.news-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    direction: ltr;
    z-index: 6;
}

.news-hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 2px solid #FF9400;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.news-hero-dot:hover {
    background: linear-gradient(135deg,
            #FF0048 0%,
            #FF9400 100%);
    border-color: #FF9400;
    transform: scale(1.15);
}

.news-hero-dot.active {
    border: 0;
    background: linear-gradient(135deg,
            #FF0048 0%,
            #FF9400 100%);
    transform: scale(1.35);
    box-shadow: 0 0 0 2px rgba(255, 148, 0, 0.18);
}

.news-hero-dot:focus-visible {
    outline: 2px solid #FF9400;
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .news-hero {
        padding: 0 5%;
        gap: 35px;
    }

    .news-hero-title {
        font-size: 27px;
    }

    .news-hero-arrow {
        width: 40px;
        height: 50px;
    }

    .news-hero-arrow span {
        font-size: 40px;
    }

    .news-hero-prev {
        left: -35px;
    }

    .news-hero-next {
        right: -35px;
    }
}

@media (max-width: 750px) {

    .news-hero {
        height: auto;
        min-height: 0;
        margin-top: 15px;
        margin-bottom: 32px;
        padding: 22px 20px 30px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        direction: rtl;
    }

    .news-hero-content {
        width: 100%;
        min-height: 0;
    }

    .news-hero-title {
        font-size: 26px;
        line-height: 1.65;
    }

    .news-hero-meta {
        font-size: 14px;
    }

    .news-hero-slider {
        width: 100%;
        height: 190px;
        order: 2;
    }

    .news-hero-viewport {
        width: 100%;
        height: 190px;
        border-radius: 20px;
    }

    .news-hero-arrow {
        width: 35px;
        height: 45px;
    }

    .news-hero-arrow span {
        font-size: 36px;
    }

    .news-hero-prev {
        left: -12px;
    }

    .news-hero-next {
        right: -12px;
    }
}

@media (max-width: 500px) {

    .news-hero {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 0;
        box-sizing: border-box;
    }

    .news-hero-content {
        text-align: center;
        align-items: center;
        padding-right: 0;
        padding-left: 0;
        box-sizing: border-box;
    }

    .news-hero-title {
        font-size: 22px;
        text-align: center;
        width: 100%;
    }

    .news-hero-meta {
        width: 100%;
        text-align: center;
        font-size: 15px;
    }

    .news-hero-slider {
        height: 175px;
    }

    .news-hero-viewport {
        height: 175px;
    }

    /* فلش‌های اسلایدر بنر */
    .news-hero-arrow {
        width: 28px;
        height: 32px;
        padding: 0;
        background: #FFFFFF;
        border-radius: 6px;
        opacity: 1;
        z-index: 5;
    }

    /* رنگ و وضوح فلش */
    .news-hero-arrow span {
        font-size: 36px;
        font-weight: 700;
        background: linear-gradient(135deg, #FF0048, #FF9400);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* فاصله فلش‌ها از کناره‌های عکس */
    .news-hero-prev {
        left: 8px;
    }

    .news-hero-next {
        right: 8px;
    }

    .news-hero-arrow:hover {
        transform: translateY(-50%) scale(1.08);
    }

    .news-hero-dots {
        bottom: 6px;
    }

    .article-page.news-page .related-articles {
        margin-top: 60px;
        margin-bottom: 110px;
    }
}

/* =========================================================
   NEWS HERO VIDEO - COVER & PLAY BUTTON- ویدئو خبر همایش آریانا
========================================================= */

.news-hero-viewport {
    position: relative;
    overflow: hidden;
}

.news-hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* دکمه Play */

.news-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

/* =========================================================
   NEWS VIDEO LIGHTBOX
========================================================= */

.news-video-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 70px 40px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    /* همان شفافیت Lightbox گالری */
    background: rgba(255, 246, 235, 0.72);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 99999;
}

/* Popup باز */

.news-video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   VIDEO CONTENT
========================================================= */

.news-video-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    max-height: 100%;
}

/* =========================================================
   VIDEO
========================================================= */

.news-video-lightbox-video {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 110px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow:
        0 12px 45px rgba(0, 0, 0, 0.16);
    background: #000000;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.news-video-lightbox-close {
    position: fixed;
    top: 25px;
    right: 30px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #FF9400;
    color: #FF0048;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    z-index: 100000;
    transform: rotate(0deg);
    transition:
        color 0.25s ease,
        transform 0.35s ease;
}

/* Hover */

.news-video-lightbox-close:hover {
    background: #FF9400;
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Click */

.news-video-lightbox-close:active {
    background: #FF9400;
    color: #FFFFFF;
    transform:
        rotate(90deg) scale(0.92);
}

/* =========================================================
   جلوگیری از اسکرول صفحه
========================================================= */

body.news-video-lightbox-open {
    overflow: hidden;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .news-video-lightbox {
        padding: 60px 20px 25px;
    }

    .news-video-lightbox-video {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 90px);
    }

    .news-video-lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        line-height: 38px;
        font-size: 27px;
    }
}

/* مثلث Play */

.news-video-play-icon {
    width: 16px;
    height: 19px;
    background: linear-gradient(135deg,
            #FF9400 0%,
            #FF0048 100%);
    clip-path: polygon(0 0,
            100% 50%,
            0 100%);
    margin-left: 3px;
}

html.news-video-lightbox-open,
body.news-video-lightbox-open {
    overflow: hidden !important;
    scrollbar-width: none;
}

html.news-video-lightbox-open::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   NEW SCHOOL YEAR LIGHTBOX
   آغاز سال تحصیلی - گالری تصاویر
   GALLERY TRIGGER
========================================================= */

.new-school-year-gallery-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    font: inherit;
    text-align: inherit;
    appearance: none;
    -webkit-appearance: none;
}

/* جلوگیری از استایل پیش‌فرض دکمه */

.new-school-year-gallery-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   LIGHTBOX OVERLAY
========================================================= */

.new-school-year-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    background: rgba(255, 246, 235, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

/* حالت باز */

.new-school-year-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   LIGHTBOX INNER
========================================================= */

.new-school-year-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1180px;
    height: 100%;
    max-height: 900px;
    box-sizing: border-box;
}

/* =========================================================
   IMAGE STAGE
========================================================= */

.new-school-year-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 55px);
    min-height: 0;
}

/* =========================================================
   IMAGE WRAPPER
========================================================= */

.new-school-year-lightbox-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 130px);
    max-height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #ffffff;
}

/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

#newSchoolYearLightboxImage {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 145px);
    object-fit: contain;
}

/* =========================================================
   ARROWS
   خارج از تصویر
========================================================= */

.new-school-year-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #E6E6E6;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* فلش راست */

.new-school-year-lightbox-next {
    left: calc(50% + min(440px, 38vw));
    right: auto;
}

/* فلش چپ */

.new-school-year-lightbox-prev {
    right: calc(50% + min(440px, 38vw));
    left: auto;
}

.new-school-year-lightbox-arrow span {
    position: relative;
    display: block;
}

/* فلش سمت چپ */
.new-school-year-lightbox-prev span {
    transform: translate(-1px, -1px);
}

/* فلش سمت راست */
.new-school-year-lightbox-next span {
    transform: translate(1px, -1px);
}

/* =========================================================
   ARROW HOVER / ACTIVE
========================================================= */

.new-school-year-lightbox-arrow:hover,
.new-school-year-lightbox-arrow:active {
    background: #FF9400;
    color: #ffffff;
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.new-school-year-lightbox-close {
    position: absolute;
    top: -28px;
    left: calc(50% + min(440px, 38vw));
    right: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #E6E6E6;
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transform-origin: center center;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.45s ease;
}

/* =========================================================
   CLOSE HOVER / CLICK
========================================================= */

.new-school-year-lightbox-close:hover,
.new-school-year-lightbox-close:active {
    background: #FF9400;
    color: #ffffff;
    transform: rotate(180deg);
}

/* =========================================================
   IMAGE COUNTER
========================================================= */

.new-school-year-lightbox-counter {
    position: relative;
    margin-top: 12px;
    min-width: 52px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 14px;
    color: #777777;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1;
    direction: ltr;
}

/* =========================================================
   BODY LOCK
========================================================= */

html.new-school-year-lightbox-open,
body.new-school-year-lightbox-open {
    overflow: hidden !important;
    scrollbar-width: none;
}

html.new-school-year-lightbox-open::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .new-school-year-lightbox {
        padding: 20px;
    }

    .new-school-year-lightbox-inner {
        max-width: 100%;
    }

    .new-school-year-lightbox-stage {
        height: calc(100% - 50px);
    }

    .new-school-year-lightbox-image-wrap {
        max-width: calc(100% - 90px);
        border-radius: 2px;
    }

    #newSchoolYearLightboxImage {
        max-height: calc(100vh - 120px);
    }

    .new-school-year-lightbox-arrow {
        width: 38px;
        height: 38px;
        font-size: 29px;
    }

    .new-school-year-lightbox-next {
        left: auto;
        right: 3px;
    }

    .new-school-year-lightbox-prev {
        right: auto;
        left: 3px;
    }

    .new-school-year-lightbox-close {
        top: 2px;
        right: 2px;
        width: 36px;
        height: 36px;
        font-size: 27px;
    }

    .new-school-year-lightbox-counter {
        margin-top: 8px;
        height: 25px;
        font-size: 13px;
    }

    .article-short-content p {
        width: 95%;
        max-width: 95%;
        margin-right: auto;
        margin-left: auto;
        padding-right: 0;
        padding-left: 0;
        box-sizing: border-box;
    }

    .ariyana-news-page[data-news-slug="ariyana-new-school-year"] .related-articles {
        margin-bottom: 58px;
    }
}

/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 480px) {

    .new-school-year-lightbox {
        padding: 12px;
    }

    .new-school-year-lightbox-image-wrap {
        max-width: calc(100% - 72px);
    }

    .new-school-year-lightbox-arrow {
        width: 34px;
        height: 34px;

        font-size: 26px;
    }

    .new-school-year-lightbox-next {
        left: auto;
        right: 0;
    }

    .new-school-year-lightbox-prev {
        right: auto;
        left: 0;
    }
}

/* =========================================================
   ARIYANA - NEW SCHOOL YEAR
   IMAGE HOVER MESSAGE
   برای خبر آغاز سال تحصیلی
========================================================= */

.ariyana-new-school-year-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 22px;
    background: #eeeeee;
}

/* =========================================================
   HOVER MESSAGE
========================================================= */

.ariyana-new-school-year-image-hover {
    position: absolute;
    top: 38%;
    left: 50%;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

/* متن داخل کادر */

.ariyana-new-school-year-image-hover span {
    display: inline-block;
    padding: 7px 12px;
    margin: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 7px;
    color: #555555;
    font-family: ramin, Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    direction: rtl;
    white-space: nowrap;
    transform: none;
    transition: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   SHOW ON HOVER
========================================================= */

.ariyana-new-school-year-image:hover .ariyana-new-school-year-image-hover {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .ariyana-new-school-year-image {
        height: 190px;
    }

    .ariyana-new-school-year-image-hover span {
        padding: 7px 12px;
        font-size: 12px;
        line-height: 21px;
    }
}

/* =========================================================
   فاصله سایر اخبار تا پاورقی خبر آغاز سال تحصیلی
   ========================================================= */

/* حذف فاصله پیش‌فرض MainPlaceholder فقط برای این خبر */
body:has(.ariyana-news-page[data-news-slug="ariyana-new-school-year"]) .mainplaceholder {
    margin-bottom: 0 !important;
}

/* فاصله نهایی معادل 60px سایر اخبار */
body:has(.ariyana-news-page[data-news-slug="ariyana-new-school-year"]) .ariyana-news-page {
    padding-bottom: 215px !important;
}

.ariyana-news-page[data-news-slug="ariyana-new-school-year"] .related-articles {
    margin-top: 90px;
}

/* موبایل */
@media (max-width: 650px) {
    body:has(.ariyana-news-page[data-news-slug="ariyana-new-school-year"]) .ariyana-news-page {
        padding-bottom: 95px !important;
    }
}

/* =========================================================
   هم‌راستاسازی متن و سایر اخبار - خبر آغاز سال تحصیلی
   ========================================================= */

/* فقط خبر آغاز سال تحصیلی */
.ariyana-news-page[data-news-slug="ariyana-new-school-year"] .article-content,
.ariyana-news-page[data-news-slug="ariyana-new-school-year"] .related-articles {
    width: calc(100% - 48px);
    max-width: 1192px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}