/* =====================================
   KIAPIC THEME - FRONT PAGE
   Cleaned and consolidated
===================================== */

/* ساختار اصلی صفحه */
.kiapic-homepage {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 0;
    box-sizing: border-box;
}

.homepage-columns {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    direction: rtl;
    align-items: stretch;
    box-sizing: border-box;
}

/* ستون‌ها و فاصله بخش‌های داخلی */
.homepage-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.homepage-section {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* باکس‌های اخبار */
.homepage-news-box {
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
    background: #f5f5f5;
}

/* =====================================
   HOMEPAGE BOX TITLE
===================================== */

.homepage-box-title {
    color: #000000;
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    padding: 2px 5px 2px 0;

    background: transparent;
    border: none;
    border-top: 6px solid #0B063E;

    box-sizing: border-box;
}

.homepage-news-item {
    padding: 10px 5px;
    border-bottom: 1px solid #dddddd;
    font-family: 'BNazanin', Tahoma, sans-serif;
}

.homepage-news-item a {
    display: block;
    color: #222222;
    font-size: 16px;
    line-height: 1.9;
    text-decoration: none;
}

.homepage-news-item a:hover {
    color: #a52a2a;
}

.homepage-news-date {
    display: block;
    margin-top: 5px;
    color: #888888;
    font-size: 10px;
}

/* محدود کردن عنوان خبرها به دو خط */
.homepage-news-box .homepage-news-item a,
.hot-news .homepage-news-item a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
}

/* خبرهای تصویری افقی در ستون اول */
.homepage-column-1 .homepage-news-item {
    display: block;
    width: 100%;
}

.homepage-column-1 .homepage-news-link {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.homepage-column-1 .homepage-news-thumb {
    display: block;
    flex: 0 0 75px;
    width: 75px;
    height: 60px;
    overflow: hidden;
}

.homepage-column-1 .homepage-news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-column-1 .homepage-news-title {
    display: -webkit-box;
    flex: 1;
    min-width: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.8;
}

/* اسلایدر خبری */
.kiapic-news-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #cccccc;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
}

.kiapic-news-slide {
    display: none;
    width: 100%;
    min-height: 180px;
    grid-template-columns: 42% 58%;
    align-items: center;
    direction: ltr;
    box-sizing: border-box;
}

.kiapic-news-slide.active {
    display: grid;
}

.kiapic-slide-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.kiapic-slide-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.kiapic-slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kiapic-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #eeeeee;
    color: #777777;
}

.kiapic-slide-content {
    padding: 15px;
    box-sizing: border-box;
    text-align: right;
}

.kiapic-slide-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 16px;
    line-height: 1.9;
    font-weight: bold;
}

.kiapic-slide-title a {
    color: #222222;
    text-decoration: none;
}

.kiapic-slide-title a:hover {
    color: #6b1200;
}

.kiapic-slide-date {
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 11px;
    color: #777777;
}

/* دکمه‌های قبلی و بعدی اسلایدر */
.kiapic-slider-controls {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
}

.kiapic-slider-controls button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #6b1200;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
}

.kiapic-slider-controls button:hover {
    background: #9b260d;
}

/* اسلایدر صفحات روزنامه - برای استفاده‌های قبلی حفظ شده است */
.homepage-newspaper {
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
    background: #eeeeee;
}

.newspaper-main {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #eeeeee;
}

.newspaper-main-link {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: default !important;
}

.newspaper-main-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ذره‌بین تصویر روزنامه */
.newspaper-magnifier {
    position: absolute;
    display: none;
    width: 370px;
    height: 200px;
    border: 2px solid #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 20;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

/* تصاویر بندانگشتی روزنامه */
.newspaper-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0 0;
    box-sizing: border-box;
}

.newspaper-thumbnail {
    width: 65px;
    height: 90px;
    padding: 2px;
    border: 2px solid #cccccc;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}

.newspaper-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newspaper-thumbnail.active {
    border-color: #6b1200;
}

.newspaper-thumbnail:hover {
    border-color: #a52a2a;
}

/* کارت‌های خبری عمودی */
.homepage-news-vertical .homepage-vertical-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.homepage-news-vertical .homepage-vertical-news-item {
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e5e5;
}

.homepage-news-vertical .homepage-vertical-news-image {
    display: block;
    margin-bottom: 5px;
}

.homepage-news-vertical .homepage-vertical-news-image img {
    display: block;
    width: 100%;
    height: auto;
}

.homepage-news-vertical .homepage-vertical-news-title {
    margin: 0;
    padding: 0;
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.homepage-news-vertical .homepage-vertical-news-title a {
    color: #222222;
    text-decoration: none;
}

.homepage-news-vertical .homepage-vertical-news-title a:hover {
    color: #6b1200;
}

/* آخرین شماره روزنامه - برای استفاده‌های قبلی حفظ شده است */
.homepage-latest-issue {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #dddddd;
    background: #ffffff;
    font-size: 12px;
    box-sizing: border-box;
}

.homepage-latest-issue,
.homepage-latest-issue * {
    box-sizing: border-box;
}

.homepage-latest-issue-content {
    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 13px;
    direction: rtl;
}

.homepage-latest-issue .wpdm-package-title,
.homepage-latest-issue .package-title,
.homepage-latest-issue h3,
.homepage-latest-issue h4 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    direction: rtl !important;
    text-align: right !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    writing-mode: horizontal-tb !important;
    font-family: 'BNazanin', Tahoma, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin-bottom: 5px !important;
}

.homepage-latest-issue .media-body .text-muted.text-small,
.homepage-latest-issue .media-body>p,
.homepage-latest-issue .media-body>div:not(.package-title) {
    display: none !important;
}

.homepage-latest-issue .media>.media-left,
.homepage-latest-issue .media>.media-object {
    display: none !important;
}

.homepage-latest-issue .package-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    font-family: 'BNazanin', Tahoma, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

.homepage-latest-issue .media,
.homepage-latest-issue .media-body {
    display: block !important;
    width: 100% !important;
}

.homepage-latest-issue .wpdm-download-link,
.homepage-latest-issue .btn,
.homepage-latest-issue .btn-primary,
.homepage-latest-issue a.wpdm-download-link {
    display: inline-block !important;
    width: auto !important;
    min-height: 0 !important;
    margin-top: 5px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

/* ردیف تبلیغات */
.kiapic-ad-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 3px auto;
    padding: 0;
    box-sizing: border-box;
}

.kiapic-ad-column {
    width: calc(50% - 5px);
    min-width: 0;
    height: 77px;
    overflow: hidden;
}

.kiapic-ad-column .kiapic-ad-widget {
    width: 100%;
    height: 77px;
}

.kiapic-ad-column img {
    display: block;
    width: 100%;
    height: 77px;
    object-fit: cover;
}

/* نوار قیمت و شاخص‌های TGJU */
.kiapic-tgju-ticker {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 45px;
    margin: 3px auto;
    direction: rtl;
    overflow: hidden;
}

/* تبلت و موبایل */
@media (max-width: 768px) {
    .homepage-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .homepage-column {
        width: 100%;
    }

    .newspaper-main {
        height: auto;
    }

    .kiapic-news-slide {
        grid-template-columns: 40% 60%;
        min-height: 130px;
    }

    .kiapic-slide-image {
        height: 130px;
    }

    .kiapic-slide-content {
        padding: 8px;
    }

    .kiapic-slide-title {
        font-size: 12px;
    }

    .kiapic-slide-date {
        font-size: 10px;
    }

    .kiapic-ad-row {
        gap: 6px;
        padding: 0 10px;
    }

    .kiapic-ad-column {
        height: auto;
        min-height: 50px;
    }

    .kiapic-ad-column .kiapic-ad-widget {
        height: auto;
    }

    .kiapic-ad-column img {
        height: auto;
        min-height: 50px;
        object-fit: contain;
    }
}

/* =========================================
   KIAPIC - BOURSE NEWS
========================================= */

.kiapic-bourse-box {
    width: 100%;
}

.kiapic-bourse-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kiapic-bourse-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #00024f;
    direction: rtl;
}

.kiapic-bourse-image {
    flex: 0 0 110px;
    width: 110px;
    height: 85px;
    overflow: hidden;
}

.kiapic-bourse-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kiapic-bourse-content {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.kiapic-bourse-content h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.8;
    font-weight: bold;

    /* فضای ثابت معادل دو خط عنوان */
    height: 3.6em;
    overflow: hidden;
}

.kiapic-bourse-content h3 a {
    color: #222;
    text-decoration: none;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kiapic-bourse-excerpt {
    font-family: 'BNazanin', sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #000000;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    max-height: 3.6em;
}


/* =========================================
   KIAPIC - NEWS LIST WIDGET
========================================= */

.kiapic-news-list-box {
    width: 100%;
}

.custom-news-widget {
    width: 100%;
    overflow: hidden;
}

.custom-news-widget .news-item {
    width: 100%;
    height: 65px;
    padding: 9px 10px;
    box-sizing: border-box;
    text-align: right;
    line-height: 1.8;
    font-size: 16px;

    display: flex;
    align-items: center;
}

/* ردیف های یکی در میان */

.custom-news-widget .news-item:nth-child(even) {
    background: #f0f0f0;
}

.custom-news-widget .news-item:nth-child(odd) {
    background: #fff;
}

.custom-news-widget .news-item a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    color: #333;
    text-decoration: none;
    width: 100%;
    line-height: 1.8;
    max-height: 3.6em;
}

.custom-news-widget .news-item a:hover {
    color: #8b0000;
}

/* =========================================
   KIAPIC - BOTTOM AD ROW
========================================= */

.kiapic-ad-row-bottom {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* =====================================
   KIAPIC PRICE TICKER
===================================== */

.kiapic-price-ticker {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    box-sizing: border-box;
    background: #f3f3f3;
    border: 1px solid #dddddd;
    direction: rtl;
    font-family: 'BNazanin', Tahoma, sans-serif;
}

.kiapic-price-title {
    flex: 0 0 auto;
    padding: 0 14px;
    color: #ffffff;
    background: #27028f;
    font-size: 13px;
    font-weight: bold;
    line-height: 44px;
    white-space: nowrap;
}

.kiapic-price-title span {
    font-weight: normal;
}

.kiapic-price-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.kiapic-price-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: kiapic-price-scroll 45s linear infinite;
}

.kiapic-price-track:hover {
    animation-play-state: paused;
}

.kiapic-price-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    min-height: 30px;
    border-left: 1px solid #cccccc;
    white-space: nowrap;
    font-size: 16px;
}

.kiapic-price-name {
    color: #333333;
}

.kiapic-price-value {
    color: #111111;
    font-weight: bold;
}

.kiapic-price-change {
    font-size: 11px;
    direction: ltr;
}

.kiapic-price-change.positive {
    color: #16833b;
}

.kiapic-price-change.negative {
    color: #d62828;
}

.kiapic-price-change.neutral {
    color: #777777;
}

.kiapic-price-source {
    flex: 0 0 auto;
    padding: 0 10px;
    color: #666666;
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.kiapic-price-source:hover {
    color: #6b1200;
}

.kiapic-price-error {
    padding: 10px;
    color: #b00020;
    font-size: 12px;
}

@keyframes kiapic-price-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

/* Mobile */

@media (max-width: 768px) {

    .kiapic-price-ticker {
        min-height: 38px;
        gap: 7px;
    }

    .kiapic-price-title {
        padding: 0 8px;
        font-size: 11px;
        line-height: 38px;
    }

    .kiapic-price-item {
        gap: 5px;
        padding: 0 10px;
        font-size: 11px;
    }

    .kiapic-price-source {
        display: none;
    }

}

/* =====================================
   KIAPIC - FEATURED NEWS ROW
   سطر پنجم صفحه اصلی
===================================== */

.kiapic-featured-row {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    direction: rtl;
    box-sizing: border-box;
}

/* ساختار سه ستون */

.kiapic-featured-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 30fr) minmax(0, 35fr) minmax(0, 35fr);

    gap: 12px;
    width: 100%;
    direction: rtl;
    align-items: start;
    box-sizing: border-box;
}

/* ستون‌ها */

.kiapic-featured-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* =====================================
   ستون اول - خبر تصویری بزرگ
===================================== */

.kiapic-featured-main-item {
    width: 100%;
}

.kiapic-featured-main-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
}

.kiapic-featured-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.kiapic-featured-main-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    height: 3.6em;

    margin: 15px 0 0;
    padding: 0;

    font-family: 'BNazanin', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
}

.kiapic-featured-main-title a {
    color: #222222;
    text-decoration: none;
}

.kiapic-featured-main-title a:hover {
    color: #6b1200;
}

/* =====================================
   ستون دوم و سوم - اخبار افقی
===================================== */

.kiapic-featured-horizontal-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 85px;

    padding: 8px 0;
    border-bottom: 1px solid #00024f;

    box-sizing: border-box;
    direction: rtl;
}

/* تصویر سمت راست */

.kiapic-featured-horizontal-image {
    display: block;
    flex: 0 0 105px;

    width: 105px;
    height: 70px;

    overflow: hidden;
    border-radius: 7px;
}

.kiapic-featured-horizontal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

/* عنوان سمت چپ */

.kiapic-featured-horizontal-title {
    flex: 1;
    min-width: 0;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    height: 3.6em;

    margin: 0;
    padding: 0;

    font-family: 'BNazanin', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.kiapic-featured-horizontal-title a {
    color: #222222;
    text-decoration: none;
}

.kiapic-featured-horizontal-title a:hover {
    color: #6b1200;
}

/* تصویر جایگزین */

.kiapic-featured-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #eeeeee;
    color: #777777;
    font-size: 12px;
    text-align: center;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .kiapic-featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kiapic-featured-main-image {
        height: 220px;
    }

    .kiapic-featured-horizontal-image {
        flex-basis: 100px;
        width: 100px;
        height: 70px;
    }

}

/* =====================================
   FEATURED NEWS ROW
===================================== */

.kiapic-featured-grid {
    display: grid;
    grid-template-columns: 30fr 35fr 35fr;
    gap: 15px;
    direction: rtl;
    align-items: start;
}

/* ستون اول: باکس دارای سایه */

.kiapic-featured-grid> :first-child {
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    border-radius: 11px;
    box-sizing: border-box;

    /* فاصله بیشتر با ستون دوم */
    margin-left: 15px;
}

/* ستون دوم: جداکننده عمودی */

.kiapic-featured-grid> :nth-child(2) {
    border-left: 1px solid #cccccc;
    padding-left: 15px;
    box-sizing: border-box;
}

/* ستون سوم */

.kiapic-featured-grid> :nth-child(3) {
    padding-right: 5px;
    box-sizing: border-box;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .kiapic-featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kiapic-featured-grid> :first-child {
        margin-left: 0;
    }

    .kiapic-featured-grid> :nth-child(2) {
        border-left: none;
        border-top: 1px solid #cccccc;
        padding-left: 0;
        padding-top: 15px;
    }

    .kiapic-featured-grid> :nth-child(3) {
        border-top: 1px solid #cccccc;
        padding-top: 15px;
    }

}

/* عنوان ردیف ویژه */

.kiapic-featured-heading {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    direction: rtl;
    width: 100%;
    gap: 0;
    margin-bottom: 12px;
    border-top: 6px solid #0B063E;
}

.kiapic-featured-heading .homepage-box-title {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    border-top: none;
    padding: 0px 0px 0px 0px;
    white-space: nowrap;
}

.kiapic-featured-subtitle {
    border-top: none;
    display: flex;
    align-items: rhght;
    flex: 1;
    min-width: 0;
    font-family: 'BNazanin', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    white-space: nowrap;
    padding-right: 3px;
}

/* عنوان و زیرعنوان ردیف ها */

.kiapic-featured-heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    width: 100%;
    margin-bottom: 12px;
    gap: 5px;
}

.kiapic-featured-heading .homepage-box-title {
    flex: 0 0 auto;
    margin: 0;
    border-top: 6px solid #0B063E;
}

.kiapic-featured-subtitle {
    font-family: 'BNazanin', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    white-space: nowrap;
}

.kiapic-featured-heading .homepage-box-title {
    border-top: none !important;
}

/* =====================================
   PARALLAX NEWS ROW
===================================== */

.kiapic-parallax-news {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
    overflow: hidden;
    direction: rtl;
}

/* تصویر پس زمینه محو */

.kiapic-parallax-news::before {
    content: "";
    position: absolute;
    inset: -10px;

    background-image: url('../../images/note-parallax1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(3px);
    opacity: 0.55;

    z-index: 0;
}

/* لایه روشن برای خوانایی */

.kiapic-parallax-news::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 0;
}

/* محتوای ردیف */

.kiapic-parallax-news-inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1200px;
    margin: 0 0 1em 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* هر خبر */

.kiapic-parallax-news-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    min-width: 0;
    direction: rtl;
}

/* تصویر دایره ای */

.kiapic-parallax-news-image {
    display: block;
    flex: 0 0 100px;

    width: 100px;
    height: 100px;

    border-radius: 50%;
    overflow: hidden;
    background: #eeeeee;
}

.kiapic-parallax-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* عنوان و تاریخ */

.kiapic-parallax-news-content {
    flex: 1;
    min-width: 0;
}

.kiapic-parallax-news-title {
    margin: 0 0 8px;
    font-family: 'BNazanin', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kiapic-parallax-news-title a {
    color: #222222;
    text-decoration: none;
}

.kiapic-parallax-news-title a:hover {
    color: #0B063E;
}

.kiapic-parallax-news-date {
    font-family: 'BNazanin', sans-serif;
    font-size: 14px;
    color: #555555;
}


/* موبایل */

@media (max-width: 768px) {

    .kiapic-parallax-news-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kiapic-parallax-news-item {
        gap: 15px;
    }

    .kiapic-parallax-news-image {
        flex-basis: 85px;
        width: 85px;
        height: 85px;
    }

}

/* تصویر پس زمینه بدون محوشدگی */

.kiapic-parallax-news::before {
    filter: none;
    opacity: 1;
}

/* ماسک تیره روی تصویر */

.kiapic-parallax-news::after {
    background: rgba(0, 0, 0, 0.65);
}

/* لایه تیره روی تصویر */

.kiapic-parallax-news::after {
    background: rgba(0, 0, 0, 0.55);
}

/* فاصله بیشتر بین خبرها */

.kiapic-parallax-news-inner {
    gap: 55px;
}

/* رنگ نوشته‌ها روی پس زمینه تیره */

.kiapic-parallax-news-title a {
    color: #ffffff;
}

.kiapic-parallax-news-title a:hover {
    color: #dddddd;
}

.kiapic-parallax-news-date {
    color: #dddddd;
}

/* عنوان باکس دیدگاهها */

.kiapic-parallax-title {
    color: #ffffff;
    font-family: 'BNazanin', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 2px 5px 2px 0;
    margin: 0 0 25px;
    background: transparent;
    box-sizing: border-box;
}

.kiapic-parallax-news-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.kiapic-parallax-title {
    border-top: none !important;
    padding-top: 10px;
}

/* =====================================
   KIAPIC VIDEO GALLERY
===================================== */

.kiapic-video-section {
    width: 1200px;
    max-width: 100%;
    margin: 30px auto;
    padding: 0;
    direction: rtl;
    box-sizing: border-box;
}

/* عنوان گالری فیلم */

.kiapic-video-heading {
    width: 100%;
    margin: 0 0 15px;
    padding: 2px 5px 2px 0;
    border-top: 6px solid #0B063E;
    box-sizing: border-box;
}

/* ساختار اسلایدر */

.video-slider-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    direction: rtl;
}

/* فهرست فیلم ها */

.video-thumbnails {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 10px;
}

/* هر فیلم در فهرست */

.video-thumbnail {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 0 0 10px;
    border: none;
    border-bottom: 1px solid #dddddd;
    background: transparent;

    text-align: right;
    cursor: pointer;
    font: inherit;
}

/* تصویر کوچک */

.video-thumbnail img {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* عنوان فیلم */

.video-thumbnail-title {
    flex: 1;
    min-width: 0;

    font-family: 'BNazanin', Tahoma, sans-serif;
    font-size: 18px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    color: #222222;
}

/* فیلم انتخاب شده */

.video-thumbnail.active .video-thumbnail-title {
    color: #0B063E;
    font-weight: bold;
}

/* محل نمایش ویدئوی اصلی */

.video-main-display {
    flex: 0 0 711px;
    width: 711px;
    height: 400px;
    overflow: hidden;
    background: #000000;
    border-radius: 6px;
}

.video-main-display iframe,
.video-main-display video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
}

.video-not-found {
    color: #ffffff;
    text-align: center;
    padding: 30px;
}

.video-no-thumbnail {
    display: flex;
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #555555;
    font-size: 13px;
    border-radius: 4px;
}


/* =====================================
   MOBILE VIDEO GALLERY
===================================== */

@media (max-width: 768px) {

    .kiapic-video-section {
        width: 100%;
        padding: 0 10px;
    }

    .video-slider-container {
        flex-direction: column;
        gap: 15px;
    }

    /* ویدئوی اصلی بالاتر از فهرست قرار بگیرد */

    .video-main-display {
        order: 1;
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .video-thumbnails {
        order: 2;
        width: 100%;
        gap: 10px;
    }

    .video-thumbnail {
        gap: 10px;
    }

    .video-thumbnail img,
    .video-no-thumbnail {
        flex-basis: 100px;
        width: 100px;
        height: 70px;
    }

    .video-thumbnail-title {
        font-size: 16px;
    }

}

/* جلوگیری از اسکرول افقی صفحه */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

/* کنترل عرض بخش دیدگاهها */
.kiapic-parallax-news {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
}