/*
 * ACBP 2.7.27 — تنسيق عناوين أخبار العملات المولدة
 * يُحمّل فقط داخل المقالات التي أنشأها نظام أخبار العملات.
 * الإضافة تتحكم في اللون والمحاذاة والمسافات فقط؛ القالب يتحكم في الحجم والخط والوزن.
 */
.acbp-currency-news-content {
    direction: rtl;
}

/*
 * لا يعتمد المحدد على body_class حتى يعمل مع القوالب التي لا تطبع body_class.
 * يشمل جميع مستويات عناوين المحتوى من H2 حتى H6 في أخبار العملة العامة وأخبار العملة داخل البنك.
 */
.acbp-currency-news-content h2,
.acbp-currency-news-content h3,
.acbp-currency-news-content h4,
.acbp-currency-news-content h5,
.acbp-currency-news-content h6,
.acbp-currency-news-content .acbp-news-section-title {
    display: block;
    clear: both;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6CBE23;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

.acbp-currency-news-content h2,
.acbp-currency-news-content .acbp-news-title-h2 {
    margin: 32px auto 18px;
}

.acbp-currency-news-content h3,
.acbp-currency-news-content .acbp-news-title-h3 {
    margin: 26px auto 16px;
}

.acbp-currency-news-content h4,
.acbp-currency-news-content .acbp-news-title-h4 {
    margin: 22px auto 14px;
}

.acbp-currency-news-content h5,
.acbp-currency-news-content .acbp-news-title-h5 {
    margin: 18px auto 12px;
}

.acbp-currency-news-content h6,
.acbp-currency-news-content .acbp-news-title-h6 {
    margin: 16px auto 10px;
}

.acbp-currency-news-content .acbp-news-section-title + p,
.acbp-currency-news-content .acbp-news-section-title + table,
.acbp-currency-news-content .acbp-news-section-title + .acbp-news-table-wrap {
    margin-top: 0;
}

.acbp-currency-news-content .acbp-news-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.acbp-currency-news-content .acbp-news-closing {
    margin-top: 24px;
}

/* جميع البنوك تبقى داخل HTML الخبر، مع إظهار أول 15 بنكًا فقط بصريًا. */
.acbp-currency-news-content .acbp-news-extra-bank-row {
    display: none;
}

.acbp-currency-news-content .acbp-news-all-banks.is-expanded .acbp-news-extra-bank-row {
    display: table-row;
}

.acbp-currency-news-content .acbp-news-show-more {
    display: block;
    min-width: 190px;
    margin: 16px auto 4px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #6CBE23;
    color: #fff;
    font-family: "Cairo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
}

.acbp-currency-news-content .acbp-news-show-more:hover,
.acbp-currency-news-content .acbp-news-show-more:focus-visible {
    filter: brightness(.94);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* إبراز البنك الحالي داخل جدول المقارنة دون تغيير تنسيق العناوين. */
.acbp-currency-news-content .acbp-news-current-bank-row > td {
    background: #F4FBEF;
    font-weight: 900;
}
