/* ============================================================
   قالب «دزفول سه‌ستونه» — چیدمان سه‌ستونهٔ جدی (شبیه رسانه‌های خبری)
   ستون‌ها: سایدبار راست | ستون اصلی | سایدبار چپ — پنل‌های کارتی، دارک‌مود
   ============================================================ */

.r3-page {
    --r3-bg: #f3f5f8;
    --r3-panel: #ffffff;
    --r3-panel-2: #f8fafc;
    --r3-ink: #111827;
    --r3-muted: #64748b;
    --r3-line: #e2e8f0;
    --r3-red: #dc2626;
    --r3-blue: #1259b8;
    --r3-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    --card: var(--r3-panel);
    --border: var(--r3-line);
    --text: var(--r3-ink);
    --dz-red: var(--r3-red);
    --dz-navy: var(--r3-blue);
    background: var(--r3-bg);
    color: var(--r3-ink);
    padding: 1.1rem 0 2.2rem;
}
html[data-theme="dark"] .r3-page {
    --r3-bg: #070b11;
    --r3-panel: #10151c;
    --r3-panel-2: #0b0f14;
    --r3-ink: #f8fafc;
    --r3-muted: #a9b4c3;
    --r3-line: rgba(255, 255, 255, .1);
    --r3-shadow: none;
}
html[data-theme="dark"] .r3-page .r3-panel,
html[data-theme="dark"] .r3-page .r3-service-card,
html[data-theme="dark"] .r3-page .r3-sidebar .sidebar-box { background: var(--r3-panel); }

.r3-container { width: min(1480px, calc(100% - 2rem)); margin-inline: auto; }

/* ---------- تراز هدر با لبه‌های باکس‌های سایدبار (هم‌عرض ردیف اصلی) ---------- */
.date-strip .container,
.site-header .top-bar,
.site-header .main-nav .container {
    width: min(1480px, calc(100% - 2rem));
    max-width: min(1480px, calc(100% - 2rem));
    margin-inline: auto;
    padding-inline: 0;
}
/* لوگوی مخفی نوار ناوبری (حالت عادی) نباید لینک‌ها را با فاصلهٔ gap از لبه راست جابه‌جا کند */
.main-nav .nav-logo { margin-inline-end: -10px; }
/* در موبایل منوی بازشده باید کل عرض صفحه را پر کند (کانتینر ۱rem از هر طرف فاصله دارد) */
@media (max-width: 760px) {
    .main-nav ul#main-menu { right: -1rem; left: -1rem; }
}

/* ---------- شبکهٔ سه‌ستونه ---------- */
.r3-grid {
    display: grid;
    grid-template-columns: minmax(200px, .82fr) minmax(0, 2fr) minmax(200px, .82fr);
    gap: .9rem;
    align-items: start;
}
.r3-sidebar, .r3-main { min-width: 0; display: grid; gap: .9rem; align-content: start; }
.r3-grid:has(.r3-sidebar.is-right):not(:has(.r3-sidebar.is-left)) { grid-template-columns: minmax(200px, .82fr) minmax(0, 2fr); }
.r3-grid:not(:has(.r3-sidebar.is-right)):has(.r3-sidebar.is-left) { grid-template-columns: minmax(0, 2fr) minmax(200px, .82fr); }
.r3-grid:not(:has(.r3-sidebar)) { grid-template-columns: minmax(0, 1fr); }

/* ---------- پنل‌ها ---------- */
.r3-panel {
    overflow: hidden;
    border: 1px solid var(--r3-line);
    border-radius: 10px;
    background: var(--r3-panel);
    box-shadow: var(--r3-shadow);
}
.r3-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    border-bottom: 2px solid var(--hb-c, var(--r3-line));
    padding: .82rem .9rem;
    background: var(--hb-bg, transparent);
    color: var(--hb-t, inherit);
}
html[data-theme="dark"] .r3-panel__head { border-bottom-color: var(--hb-cd, var(--r3-line)); background: var(--hb-bgd, transparent); color: var(--hb-td, inherit); }
.r3-panel__head h2 { margin: 0; font-size: .98rem; font-weight: 950; }
.r3-panel__more { color: var(--r3-muted); font-size: .7rem; font-weight: 700; text-decoration: none; }
.r3-panel__more:hover { color: var(--r3-blue); }

/* ---------- ویجت‌های سایدبار داخل پنل ---------- */
.r3-sidebar .sidebar-box {
    overflow: hidden;
    border: 1px solid var(--r3-line);
    border-radius: 10px;
    background: var(--r3-panel);
    box-shadow: var(--r3-shadow);
    margin-bottom: 0;
}
/* منوی دراپ‌دان اوقات شرعی از لبه باکس بیرون بزند */
.r3-sidebar .sidebar-box.pr-shell { overflow: visible; }
.r3-sidebar .box-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid var(--r3-line);
    padding: .78rem .9rem;
    font-size: .95rem;
    font-weight: 950;
    border-radius: 0;
}
.r3-sidebar .box-title::before {
    content: '';
    display: inline-block;
    width: .42rem;
    height: 1.05rem;
    border-radius: 3px;
    background: var(--r3-red);
    flex: 0 0 auto;
}
.r3-sidebar .box-body { padding: .5rem .6rem; }

/* ---------- هیرو (اسلایدر دزفول۲۴) ---------- */
.dz-slider { margin-bottom: 28px; }
.dz-slider-stage {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px 0 rgba(41, 58, 58, .1);
    background: var(--dz-navy);
    touch-action: pan-y;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.dz-slider-stage.is-dragging { transition: none; }
.dz-slide {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}
.dz-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.dz-slide.is-drag-prev, .dz-slide.is-drag-next { opacity: 1; visibility: visible; transition: opacity .15s ease; }
.dz-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dz-slide-img-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    color: #fff;
}
.dz-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .85) 100%);
}
.dz-slide-body {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 22px 26px 38px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dz-slide-cat {
    align-self: flex-start;
    display: inline-block;
    background: var(--dz-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}
.dz-slide-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dz-slide-excerpt {
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dz-slide-meta {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}
.dz-slide-prev,
.dz-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    backdrop-filter: blur(2px);
}
.dz-slide-prev { right: 16px; }
.dz-slide-next { left: 16px; }
.dz-slide-prev:hover,
.dz-slide-next:hover { background: rgba(0, 0, 0, .55); }
.dz-slider-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    z-index: 2;
    background: rgba(255, 255, 255, .18);
}
.dz-slider-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: var(--dz-red);
}
.dz-slider-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(20, 40, 90, .12);
    padding: 14px;
    margin-bottom: 28px;
}
.dz-slider-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hb-c, var(--dz-red));
    background: var(--hb-bg, transparent);
    color: var(--hb-t, inherit);
}
html[data-theme="dark"] .dz-slider-box-head { border-bottom-color: var(--hb-cd, var(--dz-red)); background: var(--hb-bgd, transparent); color: var(--hb-td, inherit); }
.dz-slider-box-ic { font-size: 18px; line-height: 1; }
.dz-slider-box-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}
.dz-slider-box .dz-slider { margin-bottom: 0; }
.dz-slider-box .dz-slider-stage { box-shadow: none; }
.dz-slider-thumbs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 0;
}
.dz-thumb {
    position: relative;
    flex: 1 1 0;
    width: auto;
    height: 78px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
    background: var(--dz-navy);
}
.dz-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--dz-red); }
.dz-thumb:hover { opacity: 1; }
.dz-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dz-thumb-img-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}
.dz-thumb-title {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 4px 6px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8));
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 900px) {
    .dz-slider-stage { height: 320px; }
}
@media (max-width: 620px) {
    .dz-slider-stage { height: 240px; }
    .dz-slider-thumbs { display: none; }
    .dz-thumb { flex: 0 0 auto; width: 110px; height: 70px; }
    .dz-slide-title { font-size: 19px; }
    .dz-slide-excerpt { display: none; }
}
@media (max-width: 760px) {
    .r3-main > * { min-width: 0; }
    .r3-sidebar > * { min-width: 0; }
}

/* ---------- مهم‌ترین اخبار (کارت‌های ۴تایی) ---------- */
.r3-full-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; padding: .85rem; }
.r3-full-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--r3-line);
    border-radius: 8px;
    background: var(--r3-panel-2);
    color: var(--r3-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.r3-full-card:hover { transform: translateY(-2px); box-shadow: var(--r3-shadow); }
.r3-full-card img, .r3-full-card__fallback { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.r3-full-card__fallback { display: grid; place-items: center; background: linear-gradient(135deg, #0b4ea2, #0a1b3f); color: #fff; font-weight: 900; }
.r3-full-card strong { display: block; padding: .55rem .65rem .7rem; font-size: .72rem; line-height: 1.8; }

/* ---------- نوشته‌های تازه (لیست) ---------- */
.r3-list { display: grid; }
.r3-list__item {
    display: grid;
    grid-template-columns: 7.2rem 1fr;
    gap: .8rem;
    align-items: start;
    border-bottom: 1px solid var(--r3-line);
    padding: .8rem .9rem;
}
.r3-list__item:last-child { border-bottom: 0; }
.r3-list__item:hover { background: color-mix(in srgb, var(--r3-blue) 5%, transparent); }
.r3-list__thumb { display: block; min-width: 0; }
.r3-list__thumb img, .r3-list__thumb-ph { display: block; width: 7.2rem; height: 4.8rem; border-radius: 7px; object-fit: cover; }
.r3-list__thumb-ph { display: grid; place-items: center; background: linear-gradient(135deg, #0b4ea2, #0a1b3f); color: #fff; }
.r3-list__body { min-width: 0; }
.r3-list__title { margin: 0; font-size: .95rem; line-height: 1.8; }
.r3-list__title a { color: var(--r3-ink); text-decoration: none; }
.r3-list__title a:hover { color: var(--r3-blue); }
.r3-list__meta { display: flex; align-items: center; gap: .35rem; margin: .3rem 0 0; color: var(--r3-muted); font-size: .68rem; }
.r3-list__excerpt { margin: .35rem 0 0; color: var(--r3-muted); font-size: .72rem; line-height: 1.9; }

.r3-pagination { padding: .8rem .9rem; border-top: 1px solid var(--r3-line); }
.r3-pagination .pagination { justify-content: center; margin: 0; direction: ltr; }
.r3-pag-loading { opacity: .55; pointer-events: none; }

/* ---------- کارت‌های سرویس (دسته‌ها) ---------- */
.r3-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: stretch; }
.r3-services-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    border: 1px solid var(--r3-line);
    border-radius: 10px;
    background: var(--r3-panel);
    box-shadow: var(--r3-shadow);
    padding: .82rem .9rem;
    border-bottom: 2px solid var(--hb-c, var(--r3-line));
    background: var(--hb-bg, transparent);
    color: var(--hb-t, inherit);
}
html[data-theme="dark"] .r3-services-title { border-bottom-color: var(--hb-cd, var(--r3-line)); background: var(--hb-bgd, transparent); color: var(--hb-td, inherit); }
.r3-services-title h2 { margin: 0; font-size: .98rem; font-weight: 950; }
.r3-service-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--r3-line);
    border-radius: 10px;
    background: var(--r3-panel);
    box-shadow: var(--r3-shadow);
}
.r3-service-card__head { display: flex; align-items: center; padding: .85rem .9rem .6rem; }
.r3-service-card__head h2 { display: inline-flex; align-items: center; gap: .48rem; min-width: 0; margin: 0; color: var(--r3-ink); font-size: .95rem; font-weight: 850; }
.r3-service-card__head h2 span { min-width: 0; overflow-wrap: anywhere; }
.r3-service-card__head h2 i { display: inline-block; width: .66rem; height: .66rem; flex: 0 0 auto; border-radius: 50%; background: var(--service-color, var(--r3-red)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--service-color, var(--r3-red)) 16%, transparent); }
.r3-service-card__lead { display: block; padding: 0 .8rem .75rem; color: var(--r3-ink); text-decoration: none; }
.r3-service-card__lead img { display: block; width: 100%; height: auto; aspect-ratio: 1.75; border-radius: 7px; object-fit: cover; }
.r3-service-card__lead strong { display: block; margin-top: .5rem; color: var(--r3-ink); font-size: .78rem; font-weight: 750; line-height: 1.9; }
.r3-service-card__list { display: grid; flex: 1 1 auto; border-top: 1px solid var(--r3-line); margin: 0 .8rem; }
.r3-service-card__list a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem;
    align-items: start;
    border-bottom: 1px solid var(--r3-line);
    padding: .62rem 0;
    color: var(--r3-ink);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.85;
    text-decoration: none;
}
.r3-service-card__list a > i { width: .34rem; height: .34rem; margin-top: .72rem; border-radius: 50%; background: var(--service-color, var(--r3-red)); }
.r3-service-card__list a > span { min-width: 0; overflow-wrap: anywhere; }
.r3-service-card__list a:last-child { border-bottom: 0; }
.r3-service-card__more { display: block; margin-top: auto; padding: .75rem .8rem .85rem; color: var(--r3-muted); font-size: .72rem; font-weight: 700; text-align: left; text-decoration: none; }
.r3-service-card__more:hover { color: var(--r3-blue); }

.r3-main > .breaking-bar { margin: 0; width: 100%; height: 53px; }
.dz-slider-box { margin-bottom: 0; }
.r3-main .khz-map-card { margin: 0; }

/* ---------- نوار روی خط خبر (چسبندهٔ بالای فوتر) ---------- */
.dz-footer-tick {
    --dz-navy: #1259b8;
    --dz-red: #dc2626;
    width: 100%;
    background: linear-gradient(90deg, #c81e1e, #e5533d);
    padding: 14px 16px;
    position: sticky;
    bottom: 0;
    z-index: 700;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .14);
    margin-top: 1.4rem;
}
.dz-footer-tick .dz-marquee { margin: 0; }
.dz-footer-tick .dz-hot { background: rgba(0, 0, 0, .22); }
.dz-footer-tick .dz-tick-item { background: #fff; }
.dz-footer-tick ~ .site-footer { margin-top: 0; }
.dz-marquee {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 24px;
    min-height: 96px;
}
.dz-hot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: var(--dz-navy);
    color: #fff;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 3px 10px 0 rgba(41, 58, 58, .1);
}
.dz-hot-title {
    font-weight: 700;
    font-size: 20px;
    white-space: nowrap;
    animation: dzHeart 2s ease-in-out infinite alternate;
}
@keyframes dzHeart {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
.dz-hot-spin {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dzSpin 1s linear infinite;
    flex: 0 0 auto;
}
@keyframes dzSpin { to { transform: rotate(360deg); } }

.dz-marquee-frame {
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px 0 rgba(41, 58, 58, .1);
    touch-action: pan-y;
}
.dz-marquee-track {
    display: flex;
    width: max-content;
    min-height: 96px;
    animation: dzMarquee 55s linear infinite;
    will-change: transform;
}
.dz-marquee-frame:hover .dz-marquee-track { animation-play-state: paused; }
@keyframes dzMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}
.dz-marquee-group {
    display: flex;
    padding: 0;
    align-items: stretch;
}
.dz-tick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 330px;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    margin-left: 10px;
    box-shadow: 0 3px 10px 0 rgba(41, 58, 58, .1);
    text-decoration: none;
}
.dz-tick-item.is-exiting-right { border-radius: 10px 0 0 10px; }
.dz-tick-thumb {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: #e6ebf5;
}
.dz-tick-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.dz-tick-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}
.dz-tick-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.dz-tick-item:hover .dz-tick-title { color: var(--dz-red); }
.dz-tick-meta {
    font-size: 12px;
    color: #999;
}

/* ---------- نقشهٔ خوزستان ---------- */
.r3-main .map-box { border: 1px solid var(--r3-line); border-radius: 10px; box-shadow: var(--r3-shadow); }

/* ---------- صفحات داخلی (۲ ستونه: محتوا راست، سایدبار چپ) ---------- */
.r3-inner-page .r3-container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.r3-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, .78fr); gap: .9rem; align-items: start; }
.r3-inner > * { min-width: 0; }
.r3-inner-page.is-narrow .r3-inner { grid-template-columns: minmax(0, 1fr); }

/* ---------- چینش‌های سایدبار صفحات داخلی (تنظیم از پنل مدیریت) ---------- */
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner { grid-template-columns: minmax(200px, .72fr) minmax(0, 2fr) minmax(200px, .72fr); }
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner .r3-sidebar.is-right { grid-column: 1; }
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner .content-main { grid-column: 2; }
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner .r3-sidebar.is-left { grid-column: 3; }
.r3-inner-page:has(.r3-sidebar.is-right):not(:has(.r3-sidebar.is-left)) .r3-inner { grid-template-columns: minmax(240px, .78fr) minmax(0, 2fr); }
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner > * { grid-row: 1; }
.r3-inner-page:not(:has(.r3-sidebar)) .r3-inner { grid-template-columns: minmax(0, 1fr); }
.r3-inner .r3-sidebar { display: grid; gap: .9rem; align-content: start; position: sticky; top: 1rem; }
.r3-inner .content-main {
    background: var(--r3-panel);
    border: 1px solid var(--r3-line);
    border-radius: 12px;
    box-shadow: var(--r3-shadow);
    padding: 1.3rem 1.5rem 1.7rem;
}
.r3-inner .content-main.post-page { max-width: none; }
.r3-inner-page .breadcrumb { margin-bottom: .8rem; font-size: .76rem; }
.r3-inner-page .breadcrumb a { color: var(--r3-muted); text-decoration: none; }
.r3-inner-page .breadcrumb a:hover { color: var(--r3-blue); }
.r3-inner-page .breadcrumb .bc-current { color: var(--r3-ink); font-weight: 700; }

/* ---------- صفحهٔ خبر ---------- */
.r3-inner-page .post-header h1 { font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1.8; margin: .35rem 0 .7rem; }
.r3-inner-page .post-kicker { display: inline-block; color: var(--r3-muted); font-size: .85rem; font-weight: 800; }
.r3-inner-page .post-meta { margin-bottom: .9rem; }
.r3-inner-page .post-tags { margin: 1rem 0 !important; }
.r3-inner-page .post-toolbar { margin: 1.1rem 0; }
.r3-inner-page .post-content { max-width: 46rem; margin-inline: auto; }
.r3-inner-page .pr-slideshow { max-width: 46rem; margin-inline: auto; }

/* ---------- خبرهای مرتبط ---------- */
.r3-inner-page .related-posts { margin: 1.4rem 0 !important; }
.r3-inner-page .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.r3-inner-page .related-item { min-width: 0; overflow: hidden; border: 1px solid var(--r3-line); border-radius: 10px; background: var(--r3-panel-2); box-shadow: var(--r3-shadow); }
.r3-inner-page .related-item .card, .r3-inner-page .related-item .news-card { height: 100%; box-shadow: none; }
.r3-inner-page .related-item .related-tag { top: .4rem; right: .4rem; }

/* ---------- دیدگاه‌ها ---------- */
.r3-inner-page .comments-section { border-top: 1px solid var(--r3-line); margin-top: 1.4rem; padding-top: 1.1rem; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 980px) {
    .r3-inner { grid-template-columns: minmax(0, 1fr) !important; }
    .r3-inner > .content-main, .r3-inner > .r3-sidebar { grid-column: auto !important; grid-row: auto !important; }
    .r3-inner .r3-sidebar { position: static; }
    .r3-inner-page .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .r3-inner-page .news-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .r3-inner .content-main { padding: 1rem .75rem 1.3rem; }
    .iranwx { padding: 10px; }
    .iranwx-svg { border-radius: 8px; }
}

/* ---------- واکنش‌گرای صفحهٔ اصلی ---------- */
@media (max-width: 1180px) {
    .r3-grid { grid-template-columns: minmax(200px, .72fr) minmax(0, 2fr); }
    .r3-sidebar.is-left { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r3-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r3-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .r3-grid { grid-template-columns: minmax(0, 1fr); }
    .r3-main { order: -1; }
    .r3-sidebar.is-right { order: 0; }
    .r3-sidebar.is-left { order: 1; }
    .r3-sidebar.is-left { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
    .r3-services { grid-template-columns: minmax(0, 1fr); }
    .r3-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r3-hero { min-height: 18rem; }
    .r3-hero__content { width: 100%; padding: 1.2rem; }
    .r3-list__item { grid-template-columns: 5.4rem 1fr; gap: .6rem; }
    .r3-list__thumb img, .r3-list__thumb-ph { width: 5.4rem; height: 4rem; }
}

/* ---------- جمع‌شونده‌های موبایل صفحهٔ خبر ---------- */
.r3-collapse-summary { list-style: none; display: none; }
.r3-collapse-summary::-webkit-details-marker { display: none; }

/* ---------- نوار «روی خط خبر» در موبایل: ارتفاع جمع‌وجور متناسب با صفحه ---------- */
@media (max-width: 760px) {
    .dz-footer-tick { padding: 8px 10px; margin-top: 1rem; }
    .dz-marquee, .dz-marquee-track { min-height: 44px; }
    .dz-hot { padding: 0 10px; gap: 6px; border-radius: 0 8px 8px 0; }
    .dz-hot-title { font-size: 13px; }
    .dz-hot-spin { width: 12px; height: 12px; border-width: 2px; }
    .dz-marquee-frame { border-radius: 8px; }
    .dz-tick-item { width: 230px; padding: 5px; gap: 6px; margin-left: 6px; border-radius: 8px; }
    .dz-tick-thumb { width: 52px; height: 38px; border-radius: 6px; }
    .dz-tick-thumb-ph { font-size: 18px; }
    .dz-tick-body { gap: 2px; }
    .dz-tick-title { font-size: 12px; line-height: 1.5; -webkit-line-clamp: 1; }
    .dz-tick-meta { font-size: 10px; }
}

@media (max-width: 980px) {
    .r3-collapse {
        margin: 1.2rem 0 !important;
        border: 1px solid var(--r3-line);
        border-radius: 10px;
        overflow: hidden;
        background: var(--r3-panel);
        box-shadow: var(--r3-shadow);
    }
    .r3-collapse-summary {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .78rem 1rem;
        font-size: .95rem;
        font-weight: 950;
        color: var(--r3-blue);
        cursor: pointer;
        user-select: none;
        background: var(--r3-panel-2);
    }
    .r3-collapse-chev {
        margin-inline-start: auto;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        padding: 3.5px;
        transform: rotate(45deg);
        transition: transform .2s;
    }
    .r3-collapse[open] .r3-collapse-chev { transform: rotate(-135deg); }
    .r3-collapse .related-posts { margin: 0 !important; border: 0; border-radius: 0; box-shadow: none; }
    .r3-collapse .related-posts .section-title { display: none; }
    .r3-collapse .related-posts .news-grid { padding: .8rem; }

    .r3-sidebar .sidebar-box.mobile-collapsed .box-body { display: none; }
    .r3-sidebar .box-title { cursor: pointer; user-select: none; }
    .r3-sidebar .box-title::after {
        content: '';
        margin-inline-start: auto;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        padding: 2.5px;
        transform: rotate(45deg);
        transition: transform .2s;
        opacity: .75;
    }
    .r3-sidebar .sidebar-box.mobile-collapsed .box-title::after { transform: rotate(-135deg); }
}
