/* ۱. لود فونت از CDN مستقیم */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ۲. اعمال سراسری و قوی روی کل سایت */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif !important;
}
/* اجازه بده فونت‌های انتخابی درون‌خطی (Inline) در متن خبر، روی فونت پیش‌فرض قالب پیروز شوند */
.post-content [style*="font-family"],
.entry-content [style*="font-family"],
article [style*="font-family"],
.news-body [style*="font-family"] {
    font-family: inherit; /* وارث همون چیزی باش که تو ادیتور براش ست شده */
}
@font-face {
  font-family: 'Sahel';
  src: url('/fonts/Sahel.woff2') format('woff2'),
       url('/fonts/Sahel.ttf') format('truetype');
  font-display: swap;
}
[style*="font-family"] {
    font-family: revert !important;
}

/* ==========================================================
   ۱. نوار خبر فوری (Marquee)
   ========================================================== */
.news-ticker-wrapper {
    display: flex;
    align-items: center;
    background: #d32f2f;
    color: #fff;
    height: 42px;
    width: 100% !important;
    max-width: 1170px !important; /* قفل شد روی ۱۲۰۰ - اگر خواستی کوچیکترش کنی مثلا بذار ۱۱۵۰ یا ۱۱۰۰ */
    margin: 10px auto !important;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.25);
    direction: rtl;
    box-sizing: border-box;
}

.ticker-badge {
    background: #9a0007;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 5;
    flex-shrink: 0;
}

.ticker-container {
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-marquee {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    line-height: 42px;
}

.ticker-item {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 12px;
    display: inline-block;
}

.ticker-item:hover {
    color: #ffebee !important;
    text-decoration: underline !important;
}

.ticker-separator {
    color: #ffcdd2;
    font-size: 11px;
    margin: 0 4px;
    opacity: 0.8;
}

/* ==========================================================
   بخش سه ستونه اصلی هدر (سحرنگار - تنظیمات کامل دسکتاپ و موبایل)
   ========================================================== */

.sahar-hero-section {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1240px;
    margin: 20px auto 30px auto;
    direction: rtl;
    box-sizing: border-box;
    padding: 0 12px;
}

/* ستون‌های کناری (بک‌گراند ملایم) */
.sahar-card-box {
    background-color: #f1f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sahar-paged-mobile-hidden {
        display: none !important;
    }
}
/* ----------------------------------------------------------
   ۱. ستون راست: اخبار برگزیده (در دسکتاپ Order: 1)
   ---------------------------------------------------------- */
.sahar-col-headlines {
    flex: 0 0 26%;
    max-width: 26%;
    order: 1 !important;
}

.sahar-card-header-title {
    font-size: 15px;
    font-weight: 800;
    color: #103b5c;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sahar-card-header-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #103b5c;
    border-radius: 2px;
}

.sahar-headlines-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sahar-headlines-list li {
    position: relative;
    padding-right: 14px;
    line-height: 1.6;
}

.sahar-headlines-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: #3b688c;
    border-radius: 50%;
}

.sahar-headlines-list li a {
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sahar-headlines-list li a:hover {
    color: #0284c7;
}

/* ----------------------------------------------------------
   ۲. ستون وسط: اسلایدر عکس‌دار (در دسکتاپ Order: 2)
   ---------------------------------------------------------- */
.sahar-col-slider {
    flex: 0 0 44%;
    max-width: 44%;
    order: 2 !important;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 390px;
    background-color: #0b1320;
}

.sahar-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.sahar-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.sahar-slide-item.active {
    opacity: 1;
    visibility: visible;
}

.sahar-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.sahar-slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.sahar-slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 18px 18px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

.sahar-slider-title {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    margin: 0;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.sahar-slide-nav {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: background 0.2s ease;
}

.sahar-slide-nav:hover {
    background: #0284c7;
}

.sahar-slide-nav.prev {
    left: 50px;
}

/* ----------------------------------------------------------
   ۳. ستون چپ: یادداشت روز (در دسکتاپ Order: 3)
   ---------------------------------------------------------- */
.sahar-col-note {
    flex: 0 0 26%;
    max-width: 26%;
    order: 3 !important;
    justify-content: space-between;
}

.sahar-note-thumb {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #e2e8f0;
}

.sahar-note-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sahar-note-content {
    flex-grow: 1;
}

.sahar-note-badge {
    color: #c9141d;
    font-size: 13px;
    font-weight: 800;
    margin-left: 5px;
}

.sahar-note-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.sahar-note-title:hover {
    color: #c9141d;
}

.sahar-note-excerpt {
    color: #475569;
    font-size: 11.8px;
    line-height: 1.7;
    text-align: justify;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sahar-note-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #1b4965;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    width: 135px;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sahar-note-btn:hover {
    background: #0f2e42;
    transform: translateY(-1px);
}

/* ----------------------------------------------------------
   ۴. حالت نمایش موبایل (حداکثر عرض ۹۰۰ پیکسل)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .sahar-hero-section {
        flex-direction: column;
        gap: 14px;
        padding: 0 8px;
    }

    /* اسلایدر می‌آید اول */
    .sahar-col-slider {
        order: 1 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 260px !important;
        display: block !important;
        visibility: visible !important;
    }

    /* اخبار برگزیده دوم */
    .sahar-col-headlines {
        order: 2 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* یادداشت روز سوم */
    .sahar-col-note {
        order: 3 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}
/* ========================================================
   تنظیمات ریسپانسیو و رفع ناپدید شدن اسلایدر در موبایل
   ======================================================== */
.sahar-hero-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin: 15px auto !important;
    max-width: 1200px !important;
    width: 100% !important;
}

/* حالت دسکتاپ: ۳ ستونه استاندارد */
.sahar-col-headlines {
    order: 1;
    flex: 1 1 250px;
}
.sahar-col-slider {
    order: 2;
    flex: 2 1 500px;
}
.sahar-col-note {
    order: 3;
    flex: 1 1 250px;
}

/* ساختار اسلایدر: تضمین داشتن ارتفاع در همه حالات */
.sahar-slider-container {
    position: relative !important;
    width: 100% !important;
    min-height: 380px !important;
    height: 380px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #1e293b !important;
}

.sahar-slide-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease-in-out, visibility 0.5s !important;
    z-index: 1 !important;
}

.sahar-slide-item.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.sahar-slide-item .sahar-slide-link,
.sahar-slide-item img.sahar-slider-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* دکمه‌های ناوبری چپ و راست روی اسلایدر */
.sahar-slide-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    z-index: 10 !important;
}
.sahar-slide-nav.prev { left: 10px !important; }
.sahar-slide-nav.next { right: 10px !important; }

/* ----------------------------------------------------
   مخصوص موبایل و تبلت (زیر 900 پیکسل)
   ---------------------------------------------------- */
@media screen and (max-width: 900px) {
    .sahar-hero-section {
        flex-direction: column !important;
    }

    /* ۱. اسلایدر بیاد اول و بالاتر از همه */
    .sahar-col-slider {
        order: 1 !important;
        width: 100% !important;
        flex: none !important;
    }

    /* تضمین ارتفاع دقیق اسلایدر روی گوشی */
    .sahar-slider-container {
        height: 250px !important;
        min-height: 250px !important;
    }

    /* ۲. اخبار برگزیده بیاد دوم */
    .sahar-col-headlines {
        order: 2 !important;
        width: 100% !important;
        flex: none !important;
    }

    /* ۳. یادداشت بیاد سوم */
    .sahar-col-note {
        order: 3 !important;
        width: 100% !important;
        flex: none !important;
    }
}
/* رپر بیرونی: بک‌گراند ۱۰۰٪ سراسری عرض مرورگر */
.sahar-subhero-wrapper {
    background-color: rgba(158, 184, 249, 0.5);   /* ۵۰٪ شفاف */
    width: 100%;
    padding: 18px 0;
    margin-top: 25px;
    margin-bottom: 25px;
    box-sizing: border-box;
}


/* کانتینر وسط‌چین: دقیقاً هم‌عرض سه ستون هدر و کانتینر اصلی */
.sahar-subhero-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* گرید ۵ ستونه دسکتاپ */
.sahar-subhero-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.sahar-subhero-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sahar-subhero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.sahar-subhero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sahar-subhero-thumb {
    width: 100%;
    height: 105px;
    overflow: hidden;
}

.sahar-subhero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sahar-subhero-details {
    padding: 8px 8px;
    background: #ffffff;
}

.sahar-subhero-title {
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sahar-subhero-cat {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}

/* ریسپانسیو موبایل: ۴ آیتم در دو ستون (۲×۲) */
@media (max-width: 768px) {
    .sahar-subhero-wrapper {
        padding: 12px 0;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .sahar-subhero-container {
        padding: 0 10px;
    }

    .sahar-subhero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sahar-subhero-thumb {
        height: 110px;
    }

    .sahar-subhero-title {
        font-size: 11.5px;
    }

    .sahar-hide-on-mobile {
        display: none !important;
    }
}
/* رپر اصلی سکشن اخبار دو ستونه */
.sahar-news-layout-wrapper {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 25px;
}

.sahar-news-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sahar-news-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* تقسیم‌بندی ستون‌ها: ستون راست ۶۰٪، ستون چپ ۴۰٪ (یا به نسبت دلخواه) */
.sahar-news-col-right {
    flex: 1.2;
    min-width: 0;
}

.sahar-news-col-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* کارت اصلی و عنوان‌ها */
.sahar-block-box, .sahar-cat-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 12px;
}

.sahar-block-header, .sahar-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.sahar-block-title, .sahar-cat-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
}

.sahar-cat-archive {
    font-size: 11px;
    color: #64748b;
    text-decoration: none;
}

.sahar-cat-archive:hover {
    color: #1e3a8a;
}

/* آیتم‌های لیست عناوین آخرین اخبار (ستون راست) */
.sahar-latest-list {
    display: flex;
    flex-direction: column;
}

.sahar-latest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    gap: 10px;
}

.sahar-latest-item:last-child {
    border-bottom: none;
}

.sahar-latest-content {
    flex: 1;
}

.sahar-latest-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.5;
    display: block;
}

.sahar-latest-title:hover {
    color: #dc2626;
}

.sahar-latest-time {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 3px;
}

.sahar-latest-thumb {
    width: 65px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.sahar-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sahar-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* آیتم‌های دسته‌بندی‌ها (ستون چپ) */
.sahar-cat-posts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sahar-cat-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}

.sahar-cat-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sahar-cat-post-text {
    flex: 1;
}

.sahar-cat-post-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    line-height: 1.45;
    display: block;
}

.sahar-cat-post-title:hover {
    color: #1e3a8a;
}

.sahar-cat-post-time {
    font-size: 10px;
    color: #94a3b8;
}

.sahar-cat-post-thumb {
    width: 60px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.sahar-cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .sahar-news-row {
        flex-direction: column;
    }
    
    .sahar-news-col-right, .sahar-news-col-left {
        width: 100%;
    }
}
/* اصلاح جهت و چیدمان ستون اخبار و دسته‌بندی‌ها (عکس راست، متن چپ) */
.sahar-latest-item, 
.sahar-cat-post-item {
    display: flex;
    flex-direction: row-reverse; /* قرار دادن عکس در سمت راست و متن در سمت چپ */
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    gap: 10px;
}

.sahar-latest-item:last-child,
.sahar-cat-post-item:last-child {
    border-bottom: none;
}

/* محتوای متنی */
.sahar-latest-content, 
.sahar-cat-post-text {
    flex: 1;
    text-align: right;
}

.sahar-latest-title, 
.sahar-cat-post-title {
    text-align: right;
    direction: rtl;
}

.sahar-latest-time, 
.sahar-cat-post-time {
    text-align: right;
    direction: rtl;
}

/* تصویر شاخص کوچک */
.sahar-latest-thumb, 
.sahar-cat-post-thumb {
    width: 65px;
    height: 48px;
    flex-shrink: 0;
    position: relative;
    border-radius: 3px;
    overflow: hidden;
}

.sahar-latest-thumb img, 
.sahar-cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= استایل بخش چندرسانه‌ای ================= */
.sahar-multimedia-wrapper {
    background-color: #1e2229; /* پس‌زمینه تیره و شیک مشابه تصویر */
    padding: 24px 0 30px;
    margin-top: 35px;
    direction: rtl;
    border-top: 3px solid #d32f2f;
}

.sahar-multimedia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sahar-multimedia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #333a44;
    padding-bottom: 10px;
}

.sahar-multimedia-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sahar-multimedia-title .sahar-red-bar {
    width: 4px;
    height: 18px;
    background-color: #d32f2f;
    display: inline-block;
    border-radius: 2px;
}

.sahar-more-link {
    color: #94a3b8;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.sahar-more-link:hover {
    color: #ffffff;
}

/* شبکه ۳ تایی کارت‌ها */
.sahar-multimedia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sahar-media-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #252a34;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #2f3642;
}

.sahar-media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.sahar-media-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0d1117;
    overflow: hidden;
}

.sahar-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sahar-media-card:hover .sahar-media-thumb img {
    transform: scale(1.05);
}

/* دکمه پلی وسط تصویر */
.sahar-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sahar-media-card:hover .sahar-media-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.sahar-play-btn {
    width: 44px;
    height: 44px;
    background: rgba(211, 47, 47, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.sahar-media-card:hover .sahar-play-btn {
    transform: scale(1.15);
    background: #d32f2f;
}

.sahar-media-info {
    padding: 12px 14px 14px;
}

.sahar-media-item-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* رسپانسیو تبلت و موبایل */
@media (max-width: 900px) {
    .sahar-multimedia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sahar-multimedia-grid {
        grid-template-columns: 1fr;
    }
}
/* بخش چندرسانه‌ای: ۵ ستون دسکتاپ، ۲ ستون موبایل */
.sahar-multimedia-wrapper .sahar-multimedia-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px;
    width: 100%;
}

.sahar-multimedia-wrapper .sahar-multimedia-card {
    display: block !important;
    width: auto !important;
    min-width: 0;
    float: none !important;
}

@media (max-width: 767px) {
    .sahar-multimedia-wrapper .sahar-multimedia-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sahar-multimedia-wrapper .sahar-mm-hide-mobile {
        display: none !important;
    }
}
.sahar-multimedia-wrapper .sahar-multimedia-title h3,
.sahar-multimedia-wrapper .sahar-multimedia-more {
    color: #fff !important;
}
/* سکشن بنرهای تبلیغاتی ۴ تایی */
.sahar-ads-row-wrapper {
    width: 100%;
    margin: 25px 0;
    box-sizing: border-box;
    direction: rtl;
}

.sahar-ads-row-inner {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sahar-ad-item {
    display: block;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.sahar-ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.sahar-ad-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
}

/* ریسپانسیو تبلت و موبایل */
@media (max-width: 991px) {
    .sahar-ads-row-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .sahar-ads-row-inner {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
}

/* ==========================================================
   ۱. گرید اصلی ۳ ستونه (تغییر عرض: بنر کمتر شد، وسط و راست جادارتر شدن)
   ========================================================== */
.sahar-main-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    direction: rtl;
}

.sahar-col-latest {
    flex: 1; /* ستون راست (آخرین اخبار) فضای آزاد رو می‌بلعه و بزرگ‌تر میشه */
    min-width: 0;
    order: 1;
}

.sahar-col-categories {
    flex: 0 0 350px; /* ستون وسط کمی فشرده‌تر شد (از ۳۹۰ رسید به ۳۵۰) */
    width: 350px;
    order: 2;
}

.sahar-col-sidebar-ads {
    flex: 0 0 170px; /* ستون بنر ثابت روی ۳.۵ سانت (۱۷۰ پیکسل) */
    width: 170px;
    order: 3;
}

/* ==========================================================
   تنظیم دقیق و حفظ اندازه استاندارد مطالب + حذف فضای خالی بین اخبار
   ========================================================== */
.sahar-latest-item {
    display: flex !important;
    gap: 12px !important;
    padding: 8px 4px !important; /* پدینگ داخلی نرمال برای حفظ ظاهر شیک مطالب */
    border-bottom: 1px solid #e2e8f0 !important;
    align-items: flex-start !important;
    margin: 0 !important;
}

.sahar-latest-item:last-child {
    border-bottom: none !important;
}

.sahar-latest-content {
    flex: 1 !important;
    min-width: 0 !important;
}

/* حفظ سایز اصلی و خوانای تیترها */
.sahar-latest-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 3px !important;
    line-height: 1.45 !important;
}

/* حفظ سایز خوانای متن دو خطی */
.sahar-latest-excerpt {
    font-size: 12px !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

/* حفظ ابعاد استاندارد تصویر بندانگشتی در ستون راست */
.sahar-latest-thumb-wrap {
    position: relative !important;
    flex: 0 0 110px !important;
    width: 110px !important;
    height: 72px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #000 !important;
    flex-shrink: 0 !important;
}

.sahar-latest-thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.sahar-latest-time-badge {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    text-align: center !important;
    padding: 2px 0 !important;
    font-family: Tahoma, sans-serif !important;
}

/* هدر ستون آخرین اخبار - هماهنگ با هدر دسته‌ها */
.sahar-latest-header,
.sahar-latest-box .sahar-block-header {
    background-color: #0284c7 !important; /* رنگ آبی یکدست با دسته‌ها */
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 4px 4px 0 0 !important;
}

.sahar-latest-header .sahar-block-title,
.sahar-latest-box .sahar-block-header .sahar-block-title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}
.sahar-latest-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
}

.sahar-latest-pagination a {
    background: #0284c7;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.sahar-latest-pagination a:hover {
    background: #0369a1;
}

.sahar-page-info {
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================
   ۳. ستون وسط: بلوک‌های دسته‌بندی (فشرده و عکس در سمت راست)
   ========================================================== */
.sahar-cat-block {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.sahar-cat-header {
    background-color: #0284c7;
    color: #ffffff;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sahar-cat-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
}

.sahar-cat-archive {
    color: #ffffff;
    font-size: 11px;
    text-decoration: none;
    opacity: 0.9;
}

.sahar-cat-archive:hover {
    text-decoration: underline;
}

/* خبر اول: تصویر در سمت راست متن */
.sahar-cat-first-item {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.sahar-cat-first-thumb {
    flex: 0 0 75px;
    width: 75px;
    height: 50px;
    border-radius: 3px;
    overflow: hidden;
    background: #f1f5f9;
    order: 1; /* تصویر سمت راست */
}

.sahar-cat-first-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sahar-cat-first-text {
    flex: 1;
    min-width: 0;
    order: 2; /* متن سمت چپ */
    text-align: right;
}

.sahar-cat-first-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.sahar-cat-first-title:hover {
    color: #3b82f6;
}

/* تیترهای زیرین بسیار فشرده */
.sahar-cat-list-items {
    margin: 0;
    padding: 5px 12px 6px 18px;
    list-style-type: disc;
}

.sahar-cat-list-items li {
    margin-bottom: 3px;
    line-height: 1.35;
    color: #3b82f6;
}

.sahar-cat-list-items li:last-child {
    margin-bottom: 0;
}

.sahar-cat-list-items li a {
    font-size: 11px;
    color: #334155;
    text-decoration: none;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sahar-cat-list-items li a:hover {
    color: #3b82f6;
    text-decoration: underline;
}


/* ==========================================================
   ۴. ستون چپ: بنرهای تبلیغاتی
   ========================================================== */
.sahar-ads-widget .sahar-ad-item {
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.sahar-ads-widget .sahar-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================
   ۵. ریسپانسیو و واکنش‌گرا (موبایل و تبلت)
   ========================================================== */
@media (max-width: 1024px) {
    .sahar-main-grid {
        flex-wrap: wrap;
        gap: 15px;
    }
    .sahar-col-latest {
        flex: 1 1 calc(100% - 300px);
    }
    .sahar-col-categories {
        flex: 0 0 280px;
        width: 280px;
    }
    .sahar-col-sidebar-ads {
        flex: 1 1 100%;
        width: 100%;
        display: flex;
        gap: 10px;
    }
    .sahar-col-sidebar-ads .sahar-ad-item {
        flex: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .sahar-main-grid {
        flex-direction: column;
    }
    .sahar-col-latest,
    .sahar-col-categories,
    .sahar-col-sidebar-ads {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .sahar-col-latest { order: 1; }
    .sahar-col-categories { order: 2; }
    .sahar-col-sidebar-ads { order: 3; display: block; }
    
    .sahar-latest-thumb-wrap {
        flex: 0 0 90px;
        width: 90px;
        height: 60px;
    }
    .sahar-cat-list-items li a {
        white-space: normal;
    }
}



.sahar-latest-box {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    overflow: hidden;
}

.sahar-latest-header {
    margin-bottom: 0;
    padding: 15px 18px;
    border-bottom: 2px solid #e7ebef;
    position: relative;
}

.sahar-latest-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 72px;
    height: 2px;
    background: #e45b32;
}

.sahar-latest-header .sahar-block-title {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
}

.sahar-latest-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
    direction: rtl;
}

.sahar-latest-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    direction: ltr;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f2;
    min-height: 112px;
}

.sahar-latest-item:last-child {
    border-bottom: 0;
}

.sahar-latest-content {
    direction: rtl;
    text-align: right;
    flex: 1;
    min-width: 0;
}

.sahar-latest-rothiter {
    color: #d6532b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sahar-latest-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #202a35;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.8;
    transition: color .2s ease;
}

.sahar-latest-title:hover {
    color: #c74726;
}

.sahar-latest-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 4px 0 7px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.8;
}

.sahar-latest-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b95a1;
    font-size: 11px;
}

.sahar-latest-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sahar-latest-tag {
    display: inline-block;
    background: #f3f5f7;
    color: #687381;
    padding: 2px 8px;
    border-radius: 3px;
}

.sahar-latest-thumb {
    display: block;
    flex: 0 0 132px;
    width: 132px;
    height: 96px;
    overflow: hidden;
    border-radius: 5px;
    background: #f1f3f5;
}

.sahar-latest-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.sahar-latest-item:hover .sahar-latest-thumb img {
    transform: scale(1.05);
}

.sahar-empty-message {
    padding: 16px 0;
    margin: 0;
    color: #777;
    font-size: 13px;
}

@media (max-width: 600px) {
    .sahar-latest-list {
        padding: 0 12px;
    }

    .sahar-latest-item {
        gap: 11px;
        min-height: 91px;
        padding: 12px 0;
    }

    .sahar-latest-thumb {
        flex-basis: 96px;
        width: 96px;
        height: 80px;
    }

    .sahar-latest-title {
        font-size: 11.5px;
        line-height: 1.65;
    }

    .sahar-latest-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
}

.sahar-ads-fullwidth-wrapper {
    width: 100%;
    background: #0a4ecb;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.04), 0 3px 12px rgba(0,0,0,.03);
    padding: 16px 0;
    margin: 25px 0 0;
}

.sahar-ads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sahar-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: center;
}

.sahar-ad-slot {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 2px 7px rgba(0,0,0,.08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.sahar-ad-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,.14);
}

.sahar-ad-link {
    display: block;
    width: 100%;
    aspect-ratio: 2.8 / 1;
    overflow: hidden;
    transition: opacity .55s ease, transform .55s ease;
}

.sahar-ad-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sahar-ad-link.shuffling {
    opacity: .15;
    transform: scale(.96);
}

@media (max-width: 991px) {
    .sahar-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .sahar-ads-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.sahar-multimedia-wrapper {
    background: #052655;
    padding: 30px 0;
    margin: 25px 0;
    width: 100%;
}

.sahar-multimedia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sahar-multimedia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,.25);
    padding-bottom: 10px;
}

.sahar-multimedia-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sahar-mm-square {
    width: 11px;
    height: 11px;
    background: #e85d2a;
    display: inline-block;
    border-radius: 2px;
}

.sahar-multimedia-heading {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.sahar-multimedia-more {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}

.sahar-multimedia-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.sahar-multimedia-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sahar-multimedia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
}

.sahar-multimedia-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.sahar-multimedia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sahar-multimedia-card-title {
    margin: 0;
    padding: 10px;
    color: #102d53;
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

.sahar-mm-hide-mobile {
    display: block;
}

@media (max-width: 900px) {
    .sahar-multimedia-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .sahar-multimedia-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sahar-mm-hide-mobile {
        display: none;
    }
}

/* نمایش دوستونه بنرهای تبلیغاتی ستون چپ در حالت موبایل */
@media (max-width: 767.98px) {
    /* تبدیل کانتینر بنرها به فلکس گرید با قابلیت چینش منظم */
    .sahar-col-sidebar-ads .sahar-ads-widget {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: space-between !important;
    }

    /* هر بنر دقیقا نصف عرض صفحه (منهای نصف فاصله) را می‌گیرد */
    .sahar-col-sidebar-ads .sahar-ad-item {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        margin-bottom: 0 !important;
    }

    /* فیت شدن کامل تصاویر داخل بنرها */
    .sahar-col-sidebar-ads .sahar-ad-item img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }
}
/* اصلاح اختصاصی تصویر یادداشت روز - فقط در حالت موبایل */
@media (max-width: 767.98px) {
    .sahar-col-note .sahar-note-thumb img,
    .sahar-col-note .card-img-top img {
        height: 240px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* استایل بهینه و ریز مخصوص ستون کناری */
.sidebar-mini-posts {
    background: #ffffff;
    border: 1px solid #f0f0f0 !important;
}
.sidebar-post-item {
    background: #fafafa;
    border: 1px solid #f1f3f5;
    transition: all 0.2s ease-in-out;
}
.sidebar-post-item:hover {
    background: #fff8f8;
    border-color: #fca5a5;
    transform: translateX(-2px);
}
.sidebar-post-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
}
.sidebar-post-title {
    font-size: 11.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.sidebar-post-item:hover .sidebar-post-title {
    color: #dc3545 !important;
}
.sidebar-post-date {
    font-size: 10px;
}
.sidebar-more-link {
    font-size: 11px;
    color: #dc3545;
    transition: gap 0.2s ease;
}
.sidebar-more-link:hover {
    color: #b02a37;
    gap: 4px;
}
/* ==========================================================
   استایل نهایی: هدرهای هم‌تراز + بک‌گراند تصویری سراسری
   ========================================================== */
#sahar-goonagoon-block,
#sahar-goonagoon-block * {
    box-sizing: border-box;
}

#sahar-goonagoon-block {
    --fallback-bg: #192c61; 
    
    width: 100%;
    margin: 30px 0;
    direction: rtl;
    background: var(--fallback-bg) url('https://saharnegar.ir/uploads/baka.jpg') no-repeat center center;
    background-size: cover;
    padding: 30px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

#sahar-goonagoon-block .sg-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* برای اطمینان از هم‌ترازی کامل ستون‌ها از بالا */
#sahar-goonagoon-block .sg-layout {
    display: grid;
    direction: rtl;
    grid-template-columns: minmax(0, 1fr) 290px;
    grid-template-areas: "news tags";
    gap: 24px;
    align-items: start;
}

/* ستون گوناگون */
#sahar-goonagoon-block .sg-news {
    grid-area: news;
    min-width: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* هدر بخش گوناگون */
#sahar-goonagoon-block .sg-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    color: #fff;
    background: #1e293b;
    border-bottom: 2px solid #f59e0b;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    height: 44px; /* فیکس کردن ارتفاع هدر برای هم‌ترازی صددرصدی */
}

#sahar-goonagoon-block .sg-heading {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
}

#sahar-goonagoon-block .sg-more {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}
#sahar-goonagoon-block .sg-more:hover {
    color: #ffffff;
}

#sahar-goonagoon-block .sg-stories {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* خبر بزرگ با متن روی تصویر */
#sahar-goonagoon-block .sg-main-post {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

#sahar-goonagoon-block .sg-main-image {
    display: block;
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
    background: #1e293b;
}

#sahar-goonagoon-block .sg-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#sahar-goonagoon-block .sg-main-post:hover .sg-main-image img {
    transform: scale(1.03);
}

#sahar-goonagoon-block .sg-main-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
    pointer-events: none;
}

#sahar-goonagoon-block .sg-main-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

#sahar-goonagoon-block .sg-main-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
}

#sahar-goonagoon-block .sg-main-title a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* دو خبر کوچک */
#sahar-goonagoon-block .sg-side-posts {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    min-width: 0;
    height: 310px;
}

#sahar-goonagoon-block .sg-side-post {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 100%;
}

#sahar-goonagoon-block .sg-side-image {
    display: block;
    flex: 0 0 85px;
    width: 85px;
    height: 100%;
    max-height: 95px;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 6px;
}

#sahar-goonagoon-block .sg-side-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sahar-goonagoon-block .sg-side-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#sahar-goonagoon-block .sg-side-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

#sahar-goonagoon-block .sg-side-title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1e293b;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#sahar-goonagoon-block .sg-side-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ستون برچسب‌ها */
#sahar-goonagoon-block .sg-tags {
    grid-area: tags;
    position: relative;
    min-width: 0;
    min-height: 0;
}

#sahar-goonagoon-block .sg-tags-frame {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* هدر برچسب‌ها - هم‌ارتفاع و هم‌تراز با هدر گوناگون */
#sahar-goonagoon-block .sg-tags-header {
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #fff;
    background: #1e293b;
    border-bottom: 2px solid #f59e0b;
    font-size: 14px;
    font-weight: 700;
    height: 44px;
    box-sizing: border-box;
}

#sahar-goonagoon-block .sg-tags-scroll {
    padding: 14px;
    max-height: 380px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

#sahar-goonagoon-block .sg-tags-list {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
}

#sahar-goonagoon-block .sg-tag {
    display: inline-block;
    padding: 5px 10px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
    transition: all 0.2s ease;
}

#sahar-goonagoon-block .sg-tag:hover {
    color: #fff;
    background: #1e293b;
    border-color: #1e293b;
}

#sahar-goonagoon-block .sg-empty {
    padding: 20px 10px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

/* ==========================================================
   تنظیمات ریسپانسیو کامل برای موبایل و تبلت
   ========================================================== */
@media (max-width: 992px) {
    /* تغییر ستون‌ها به تک‌ستون در تبلت و موبایل */
    #sahar-goonagoon-block .sg-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "news"
            "tags";
        gap: 20px;
    }

    /* تنظیمات داخلی بخش اخبار گوناگون در موبایل */
    #sahar-goonagoon-block .sg-stories {
        grid-template-columns: minmax(0, 1fr); /* تبدیل به تک ستون */
        grid-template-rows: auto;
        gap: 16px;
    }

    /* اسلاید بزرگ در موبایل */
    #sahar-goonagoon-block .sg-main-image {
        height: 240px; /* ارتفاع متناسب برای موبایل */
    }

    /* دو خبر کوچک در موبایل زیر اسلاید قرار می‌گیرند */
    #sahar-goonagoon-block .sg-side-posts {
        height: auto;
        grid-template-rows: repeat(2, auto);
        gap: 12px;
    }

    #sahar-goonagoon-block .sg-side-post {
        height: auto;
        min-height: 90px;
    }

    #sahar-goonagoon-block .sg-side-image {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    #sahar-goonagoon-block {
        padding: 15px 0;
    }
    
    #sahar-goonagoon-block .sg-news,
    #sahar-goonagoon-block .sg-tags-frame {
        padding: 12px;
    }

    #sahar-goonagoon-block .sg-main-image {
        height: 200px;
    }

    /* در گوشی‌های خیلی کوچک، عکس خبرهای کوچک بالای متن قرار گیرد تا خواناتر شود */
    #sahar-goonagoon-block .sg-side-post {
        padding: 10px;
    }
}
:root {
    --hdr-bg: #0033cc;
    --hdr-bg-dark: #0d6efd;
    --hdr-gold: transparent;
    --mehr-body-font: 'Vazirmatn', Tahoma, sans-serif;
    --site-container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body, p, span, li, a, h1, h2, h3, h4, h5, h6, input, button {
    font-family: var(--mehr-body-font) !important;
}

body {
    background: #f7f9fa;
    font-size: .98rem;
    color: #212529;
    line-height: 1.8;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.post-content p,
.article-body p,
.content-entry p,
.card-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2b2b2b;
    margin-bottom: 1.2rem;
    text-align: justify;
}

h1, .h1 { font-size: 1.8rem; font-weight: 800; color: #111; }
h2, .h2 { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; color: #222; }

.site-container {
    width: 100% !important;
    max-width: var(--site-container) !important;
    margin-inline: auto !important;
    padding-inline: 15px !important;
}

.site-header {
    width: 100%;
    background-color: var(--hdr-bg);
    color: #fff;
    border-bottom: none !important;
    position: relative;
    z-index: 1000;
}

.site-header .topbar {
    background: rgba(0, 0, 0, .20);
    font-size: .80rem;
    padding: 4px 0;
    position: relative;
    z-index: 1050;
}

.topbar-inner {
    min-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.site-header .topbar a {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease;
}

.site-header .topbar a:hover { color: #fff; }

.share-icon-btn {
    line-height: 1;
    font-size: 1.15rem;
    cursor: pointer;
}

.share-icon-eitaa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    vertical-align: middle;
}

.share-icon-eitaa svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.topbar-date {
    white-space: nowrap;
    font-weight: 500;
}

.site-header .brand-area {
    padding: 10px 0;
    background-color: var(--hdr-bg);
    background-image: url('/uploads/file_20261019_224753_13143cf2.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.brand-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 58px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-decoration: none;
}

.site-header .brand-area img {
    display: block;
    max-height: 52px;
    max-width: min(240px, 45vw);
    width: auto;
    object-fit: contain;
}

.site-header .brand-area h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.site-header .brand-area .brand-tagline {
    display: block;
    font-size: .82rem;
    color: #cbd5e1;
    font-weight: 300;
}

.brand-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mehr-style-search {
    position: relative;
    width: 270px;
    max-width: 100%;
}

.mehr-style-search .form-control {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    border-radius: 50px;
    padding: 5px 36px 5px 14px;
    font-size: .83rem;
    height: 36px;
    transition: all .25s ease;
}

.mehr-style-search .form-control::placeholder {
    color: rgba(255, 255, 255, .75);
}

.mehr-style-search .form-control:focus {
    background: #fff;
    color: #111827;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .35);
}

.mehr-style-search .form-control:focus + .btn-search-icon {
    color: #0033cc;
}

.btn-search-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .9);
    padding: 0 8px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s ease;
    font-size: .9rem;
}

.btn-search-icon:hover { color: var(--hdr-gold); }

.mobile-header-toggler {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.mobile-header-toggler:hover,
.mobile-header-toggler:focus {
    background: rgba(255, 255, 255, .25);
    color: var(--hdr-gold);
    outline: none;
    box-shadow: none;
}

/* نوار منوی اصلی */
.main-menu {
    width: 100% !important;
    background-color: #012699 !important;
    border-top: 1px solid rgba(255, 255, 255, .15) !important;
    position: relative;
    z-index: 1020;
}

.main-menu .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 14px !important;
    position: relative;
    transition: all .2s ease-in-out;
    line-height: 1.4;
    white-space: nowrap;
}

.main-menu .nav-link:hover,
.main-menu .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, .18);
}

.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #ffffff;
}

.main-menu .navbar-toggler:focus { box-shadow: none; }

/* استایل‌های کشویی در دسکتاپ */
@media (min-width: 992px) {
    .main-menu .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        margin-top: 0;
    }

    .main-menu .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 2px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        padding: 6px 0;
        min-width: 190px;
        text-align: right;
        z-index: 1050;
    }

    .main-menu .dropdown-item {
        color: #334155 !important;
        font-size: 13.5px;
        font-weight: 500;
        padding: 8px 16px;
        transition: background .15s ease, color .15s ease;
    }

    .main-menu .dropdown-item:hover {
        background-color: #f1f5f9 !important;
        color: #0033cc !important;
    }
}

/* استایل‌های کشویی در موبایل (Accordion Style) */
@media (max-width: 991.98px) {
    .site-header .topbar { font-size: .75rem; }
    .topbar-date { font-size: .75rem; }
    .site-header .brand-area { padding: 10px 0; }
    .site-header .brand-area h1 { font-size: 1.3rem; }

    .site-header .brand-area img {
        max-height: 44px;
        max-width: 180px;
    }

    .main-menu {
        border-top: none;
        background: #0d6efd !important;
    }

    .main-menu .navbar-collapse {
        padding: 10px 12px 15px;
        border-top: 1px solid rgba(255, 255, 255, .15);
    }

    .main-menu .nav-link {
        padding: 10px 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .main-menu .nav-item.dropdown {
        position: relative;
    }

    .main-menu .dropdown-menu {
        display: none;
        position: static !important;
        float: none;
        width: 100%;
        background: rgba(0, 0, 0, 0.15) !important;
        border: none;
        border-radius: 6px;
        box-shadow: none !important;
        padding: 4px 0;
        margin: 4px 0 8px 0;
    }

    .main-menu .nav-item.dropdown.open-mobile > .dropdown-menu {
        display: block !important;
    }

    .main-menu .dropdown-item {
        color: #ffffff !important;
        padding: 8px 24px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

.mehr-user-box {
    position: relative;
    display: inline-block;
}

.mehr-user-btn {
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .80rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    transition: background .2s, border-color .2s;
    user-select: none;
}

.mehr-user-btn:hover {
    background: rgba(255, 255, 255, .25);
    border-color: #fff;
}

.mehr-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: auto;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
    padding: 6px 0;
    margin: 0;
    list-style: none;
    text-align: right;
    z-index: 9999999;
}

.mehr-user-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.mehr-user-box:hover .mehr-user-menu,
.mehr-user-box.show .mehr-user-menu {
    display: block;
}

.mehr-user-header {
    padding: 8px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    font-size: .82rem;
}

.mehr-user-header small {
    display: block;
    color: #64748b;
    font-size: .75rem;
}

.mehr-user-header strong { color: #0f172a; }

.mehr-user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: .84rem;
    color: #334155 !important;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.mehr-user-menu a:hover {
    background: #f1f5f9;
    color: #0033cc !important;
}

.mehr-user-menu a.logout-item { color: #dc2626 !important; }

.mehr-user-menu a.logout-item:hover {
    background: #fef2f2;
    color: #b91c1c !important;
}

.mehr-user-divider {
    height: 1px;
    background: #edf2f7;
    margin: 4px 0;
}

@media (max-width: 575.98px) {
    .topbar-inner { gap: 8px; }
    .topbar-user { gap: 10px !important; }
    .brand-flex-container { gap: 12px; }
    .site-header .brand-area img { max-width: 150px; }
    .site-header .brand-area h1 { font-size: 1.1rem; }
}
