/* ============================================================
   resource/najvayeagahi/css/najva.css — تکمیل‌کنندهٔ style001.css
   فقط چیزهایی که قالب قدیمی نداشت: جای‌خالی تصویر، حالت خالی، صفحه‌بندی،
   نوار اشتراک‌گذاری، محتوای غنی، و اصلاح‌های ریسپانسیو.
   رنگ اصلی از متغیر --nj-accent می‌آید (تنظیمات قالب).
   ============================================================ */

:root { --nj-accent: #e00200; }

/* ─── جای‌خالی تصویر: به‌جای عکس شکسته، یک قاب خاکستری هم‌اندازه ─── */
.nj-noimg {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 90px;
    background: linear-gradient(135deg, #f1f1f1, #e6e6e6);
    color: #b9b9b9; border-radius: 5px; box-shadow: 0 0 4px #ccc;
}
.nj-noimg i { font-size: 22px; }
.img-top-news-1 .nj-noimg { height: 361px; }
.img-news-bartar .nj-noimg { width: 167px; min-height: 100px; }
.img-news-teldio .nj-noimg { min-height: 160px; }
.img-top-news-2 .nj-noimg { min-height: 120px; }

/* تصویرهای بخش‌ها یک قد شوند (منبع‌ها اندازه‌های متفاوت دارند) */
.img-news-bartar img { height: 100px; object-fit: cover; }
.img-news-teldio img { width: 100%; height: 190px; object-fit: cover; border-radius: 5px; }
.img-top-news-2 img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; }
.nj-logo { max-height: 78px; width: auto; }

/* ─── حالت خالی ─── */
.nj-empty {
    text-align: center; color: #9a9a9a; background: #fff;
    border: 1px dashed #e0e0e0; border-radius: 6px; padding: 38px 20px;
}
.nj-empty i { font-size: 34px; display: block; margin-bottom: 10px; opacity: .5; }

/* ─── زمان انتشار زیر تیترها ─── */
.nj-meta { color: #9a9a9a; display: inline-block; margin-top: 4px; }

/* ─── صفحه‌بندی ─── */
.nj-pager .page-link { color: #333; border-radius: 4px; margin: 0 3px; border-color: #e4e4e4; }
.nj-pager .page-item.active .page-link { background: var(--nj-accent); border-color: var(--nj-accent); color: #fff; }
.nj-pager .page-link:hover { color: var(--nj-accent); }
.nj-pager .page-item.active .page-link:hover { color: #fff; }

/* ─── سربرگ صفحه‌های فهرست ─── */
.nj-head { background: #fff; border: 1px solid #e4e4e4; border-radius: 5px; padding: 0; overflow: hidden; margin-bottom: 20px; }
.nj-head .nj-head-tag { background: var(--nj-accent); color: #fff; padding: 17px; font-size: 16px; display: inline-block; }
.nj-head h1 { font-size: 18px; margin: 0; color: #000; font-weight: bold; }
.nj-head .nj-head-sub { color: #8a8a8a; font-size: 12px; margin: 4px 0 0; }
.nj-crumbs { font-size: 12px; color: #8a8a8a; }
.nj-crumbs a { color: #666; }
.nj-crumbs a:hover { color: var(--nj-accent); }
.nj-crumbs span { margin: 0 5px; }

/* ─── محتوای غنی مطلب ─── */
.nj-content { line-height: 33px; text-align: justify; color: #222; font-size: 15px; }
.nj-content p { margin-bottom: 14px; }
.nj-content img, .nj-content video, .nj-content iframe { max-width: 100%; height: auto; border-radius: 5px; display: block; margin: 14px auto; }
.nj-content h2, .nj-content h3, .nj-content h4 { font-weight: bold; margin: 22px 0 10px; color: #111; }
.nj-content h2 { font-size: 19px; } .nj-content h3 { font-size: 17px; } .nj-content h4 { font-size: 15px; }
.nj-content blockquote {
    border-right: 3px solid var(--nj-accent); background: #fafafa;
    margin: 16px 0; padding: 12px 16px; color: #444;
}
.nj-content ul, .nj-content ol { padding-right: 22px; margin-bottom: 14px; }
.nj-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.nj-content table td, .nj-content table th { border: 1px solid #e4e4e4; padding: 8px; }
.nj-content figure { margin: 14px auto; }
.nj-content figure figcaption { text-align: center; font-size: 12px; color: #8a8a8a; margin-top: 6px; }
.nj-content a { color: var(--nj-accent); }

/* ─── اشتراک‌گذاری ─── */
.nj-share a, .nj-share button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; margin-left: 6px;
    background: #f1f1f1; color: #555; border: 0; transition: .2s;
}
.nj-share a:hover, .nj-share button:hover { background: var(--nj-accent); color: #fff; }
.nj-share .is-copied { background: #2e9e5b; color: #fff; }
.nj-permalink { direction: ltr; unicode-bidi: embed; word-break: break-all; font-size: 12px; color: #777; }

/* ─── برچسب‌ها ─── */
.nj-tags a {
    display: inline-block; background: #f1f1f1; color: #444;
    border-radius: 4px; padding: 3px 10px; margin: 0 0 6px 6px; font-size: 12px;
}
.nj-tags a:hover { background: var(--nj-accent); color: #fff; }

/* ─── عوامل خبر (متادیتای زیر مطلب) ─── */
.nj-credits { border-top: 1px dashed #e0e0e0; margin-top: 18px; padding-top: 12px; font-size: 13px; color: #555; }
.nj-credits div { margin-bottom: 5px; }
.nj-credits strong { color: #222; }

/* ─── پیوست‌ها ─── */
.nj-attach a {
    display: inline-flex; align-items: center; gap: 6px; background: #f7f7f7;
    border: 1px solid #ececec; border-radius: 5px; padding: 7px 12px;
    margin: 0 0 8px 8px; color: #444; font-size: 13px;
}
.nj-attach a:hover { border-color: var(--nj-accent); color: var(--nj-accent); }

/* ─── پابرگ ─── */
.nj-footer-top { background: #fff; padding-bottom: 10px; }
.nj-flist { list-style: none; }
.nj-flist li { margin-bottom: 6px; }
.nj-social { list-style: none; }
.nj-social li { display: inline-block; margin-left: 10px; }
.nj-newsletter input.form-control { height: 34px; font-size: 13px; }
.nj-newsletter .btn { font-size: 13px; }

/* ─── دکمهٔ بازگشت به بالا: پیش از اسکرول پنهان ─── */
.scrolltop { opacity: 0; visibility: hidden; transition: .25s; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.scrolltop.is-on { opacity: 1; visibility: visible; }

/* ─── ستون کناری چسبان: زیر منوی چسبان بنشیند ─── */
.nj-side.sticky-top { top: 70px; }

/* ─── نظرات (ماژول نظرات) ─── */
.nj-comments { background: #fff; border: 1px solid #e4e4e4; border-radius: 5px; padding: 18px; margin-top: 22px; }

/* ─── ریسپانسیو ─── */
@media (max-width: 991.98px) {
    .nj-side.sticky-top { position: static !important; }
    .img-top-news-1 img, .img-top-news-1 .nj-noimg { height: 240px !important; }
}
@media (max-width: 575.98px) {
    .top-search input, .top-search-footer input { width: 100%; }
    .img-news-bartar img, .img-news-bartar .nj-noimg { width: 100%; height: 84px; }
    .nj-head .nj-head-tag { padding: 12px; font-size: 14px; }
}
