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

.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;
}

/* ---------- جدول لیگ‌های معتبر اروپا در آرشیو ورزش ---------- */
.europe-leagues-widget {
    --europe-border: var(--r3-line, #d9e1ee);
    --europe-panel: var(--r3-panel, #fff);
    --europe-panel-2: var(--r3-panel-2, #f7f9fc);
    --europe-ink: var(--r3-ink, #102b58);
    --europe-muted: var(--r3-muted, #6b7890);
    margin-top: 1.35rem;
    padding: 1rem;
    border: 1px solid var(--europe-border);
    border-radius: 14px;
    background: var(--europe-panel);
    box-shadow: var(--r3-shadow, 0 8px 24px rgba(16, 43, 88, .08));
    min-width: 0;
}
.europe-leagues-widget-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    height: 4.15rem;
    min-height: 4.15rem;
    box-sizing: border-box;
    margin: -1rem -1rem .85rem;
    padding: .65rem 1rem .75rem;
    border-radius: 13px 13px 0 0;
    border-bottom: 1px solid var(--europe-border);
}
.europe-leagues-widget-head::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0 0 0 42%;
    pointer-events: none;
    opacity: .13;
    background: url('../../assets/img/football-pattern.svg') right center / 100% 142% no-repeat,
        radial-gradient(circle at 76% 45%, color-mix(in srgb, var(--europe-ink) 16%, transparent), transparent 68%);
    background-color: color-mix(in srgb, var(--europe-ink) 9%, var(--europe-panel));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 88%, transparent 100%);
}
.europe-leagues-widget-head > * { position: relative; z-index: 1; }
.europe-leagues-widget-title-wrap { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.europe-leagues-widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #1b559c, #14336b);
}
.europe-leagues-widget h2 { margin: 0; color: var(--europe-ink); font-size: 1.05rem; line-height: 1.65; }
.europe-leagues-widget p { margin: .08rem 0 0; color: var(--europe-muted); font-size: .72rem; }
.europe-leagues-season-tabs { display: inline-flex; align-items: center; justify-content: flex-end; gap: .3rem; flex: 0 0 auto; direction: ltr; }
.europe-leagues-season-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    padding: .28rem .55rem;
    border: 1px solid #c9dcfa;
    border-radius: 999px;
    color: #235b9e;
    background: #eef5ff;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.europe-leagues-season-tab:hover, .europe-leagues-season-tab:focus-visible { color: #14336b; border-color: #8eb4eb; background: #e1eeff; }
.europe-leagues-season-tab.is-active { color: #fff; border-color: #1b559c; background: #1b559c; box-shadow: 0 2px 5px rgba(27, 85, 156, .18); }
.europe-leagues-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .8rem; }
.europe-league-card { min-width: 0; align-self: start; overflow: hidden; border: 1px solid var(--europe-border); border-radius: 11px; background: var(--europe-panel-2); }
.europe-league-card > summary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    min-height: 3.15rem;
    padding: .55rem .7rem;
    cursor: pointer;
    list-style: none;
    color: var(--europe-ink);
    background: color-mix(in srgb, var(--league-accent) 10%, var(--europe-panel));
}
.europe-league-card > summary::before {
    content: none;
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: .22;
    background-color: var(--europe-panel);
    background-image: var(--league-flag-bg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 19%, #000 81%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 19%, #000 81%, transparent 100%);
    pointer-events: none;
}
.europe-league-card > summary[data-flag="england"] { --league-flag-bg: radial-gradient(ellipse at 24% 30%, rgba(255,255,255,.95) 0 12%, transparent 54%), radial-gradient(ellipse at 78% 74%, rgba(255,255,255,.6) 0 10%, transparent 50%), linear-gradient(135deg, #c8102e 0 28%, #fff 28% 53%, #c8102e 53% 76%, #fff 76% 100%); }
.europe-league-card > summary[data-flag="spain"] { --league-flag-bg: radial-gradient(ellipse at 24% 32%, rgba(255,255,255,.35) 0 10%, transparent 52%), radial-gradient(ellipse at 78% 72%, rgba(170,21,27,.42) 0 12%, transparent 54%), linear-gradient(135deg, #aa151b 0 27%, #f1bf00 27% 73%, #aa151b 73% 100%); }
.europe-league-card > summary[data-flag="italy"] { --league-flag-bg: radial-gradient(ellipse at 58% 28%, rgba(255,255,255,.58) 0 13%, transparent 52%), radial-gradient(ellipse at 18% 75%, rgba(0,146,70,.4) 0 11%, transparent 50%), linear-gradient(135deg, #009246 0 31%, #f1f2f1 31% 66%, #ce2b37 66% 100%); }
.europe-league-card > summary[data-flag="germany"] { --league-flag-bg: radial-gradient(ellipse at 24% 30%, rgba(255,255,255,.26) 0 11%, transparent 52%), radial-gradient(ellipse at 76% 74%, rgba(0,0,0,.24) 0 12%, transparent 54%), linear-gradient(135deg, #000 0 32%, #dd0000 32% 67%, #ffce00 67% 100%); }
.europe-league-card > summary[data-flag="france"] { --league-flag-bg: radial-gradient(ellipse at 22% 70%, rgba(255,255,255,.55) 0 11%, transparent 50%), radial-gradient(ellipse at 78% 28%, rgba(239,65,53,.4) 0 12%, transparent 53%), linear-gradient(135deg, #0055a4 0 32%, #fff 32% 66%, #ef4135 66% 100%); }
.europe-league-card > summary[data-flag="portugal"] { --league-flag-bg: radial-gradient(ellipse at 40% 50%, #f7d117 0 10%, rgba(247,209,23,.18) 11% 18%, transparent 45%), radial-gradient(ellipse at 78% 26%, rgba(218,41,28,.42) 0 12%, transparent 52%), linear-gradient(135deg, #046a38 0 40%, #da291c 40% 100%); }
.europe-league-card > summary > * { position: relative; z-index: 1; }
.europe-league-card > summary > .europe-league-flag {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    opacity: .3;
    pointer-events: none;
    background-color: var(--europe-panel);
    background-image: var(--league-flag-bg);
    background-blend-mode: normal;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 19%, #000 81%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 19%, #000 81%, transparent 100%);
}
.europe-league-card > summary > .europe-league-flag img { display: none; }
.europe-league-card > summary::-webkit-details-marker { display: none; }
.europe-league-card > summary::after { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; content: '⌄'; color: var(--europe-ink); border: 1px solid color-mix(in srgb, var(--league-accent) 55%, var(--europe-border)); border-radius: 50%; background: color-mix(in srgb, var(--europe-panel) 76%, var(--league-accent)); font-size: .78rem; font-weight: 900; line-height: 1; text-shadow: 0 1px 1px rgba(255, 255, 255, .45); box-shadow: 0 1px 2px rgba(16, 43, 88, .12); }
.europe-league-card:not([open]) > summary::after { content: '‹'; transform: rotate(-90deg); }
.europe-league-card > .europe-league-card-content {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transition: grid-template-rows .28s ease, opacity .2s ease;
}
.europe-league-card[open] > .europe-league-card-content { grid-template-rows: 1fr; opacity: 1; }
.europe-league-card-content > * { min-height: 0; overflow: hidden; }
/* وقتی JS در دسترس است، ارتفاع واقعی پنل انیمیت می‌شود تا بازشدن در همهٔ مرورگرها نرم باشد. */
.europe-league-card[data-smooth-accordion] > .europe-league-card-content {
    display: block !important;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height .32s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
}
.europe-league-card[data-smooth-accordion][open] > .europe-league-card-content { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .europe-league-card > .europe-league-card-content { transition: none; }
}
.europe-league-name { display: inline-flex; align-items: center; min-width: 0; gap: .4rem; font-size: .84rem; font-weight: 900; }
.europe-league-accent { width: .45rem; height: 1.05rem; flex: 0 0 .45rem; border-radius: 999px; background: var(--league-accent); }
.europe-league-table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; overflow-wrap: anywhere; }
.europe-league-table { width: 100%; max-width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--europe-ink); font-size: .7rem; }
.europe-league-table th, .europe-league-table td { padding: .46rem .35rem; border-bottom: 1px solid var(--europe-border); text-align: center; vertical-align: middle; }
.europe-league-table th { color: var(--europe-muted); background: rgba(127, 151, 184, .08); font-size: .63rem; font-weight: 900; }
.europe-league-table tbody tr:last-child td { border-bottom: 0; }
.europe-league-table th:nth-child(1), .europe-league-table td:nth-child(1) { width: 8%; }
.europe-league-table th:nth-child(2), .europe-league-table td:nth-child(2) { width: 47%; text-align: right; }
.europe-league-table th:nth-child(3), .europe-league-table td:nth-child(3) { width: 11%; }
.europe-league-table th:nth-child(4), .europe-league-table td:nth-child(4) { width: 14%; }
.europe-league-table th:nth-child(5), .europe-league-table td:nth-child(5) { width: 20%; }
.europe-league-team { display: flex; align-items: center; gap: .38rem; min-width: 0; max-width: 100%; }
.europe-league-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.europe-league-team-logo { width: 1.45rem; height: 1.45rem; flex: 0 0 1.45rem; object-fit: contain; }
.europe-league-team-logo--fallback { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--league-accent); font-size: .68rem; font-weight: 900; }
.europe-league-form { display: inline-flex; align-items: center; justify-content: center; gap: .12rem; direction: ltr; }
.europe-league-form-dot { display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; color: #fff; font-size: .52rem; font-weight: 900; }
.europe-league-form-dot.win { background: #16a568; }
.europe-league-form-dot.draw { background: #d7971c; }
.europe-league-form-dot.loss { background: #d74747; }
.europe-league-table tbody tr.europe-league-row--champion td { background: #b7f7c4; }
.europe-league-table tbody tr.europe-league-row--champion td:first-child { box-shadow: inset 3px 0 0 #16a34a; }
.europe-league-table tbody tr.europe-league-row--relegated td { background: color-mix(in srgb, #d74747 12%, transparent); }
.europe-league-table tbody tr.europe-league-row--relegated td:first-child { box-shadow: inset 3px 0 0 #d74747; }
.europe-league-card-empty, .europe-leagues-empty { padding: 1rem; color: var(--europe-muted); font-size: .78rem; text-align: center; }
.europe-leagues-empty { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 5rem; border: 1px dashed var(--europe-border); border-radius: 10px; }
.europe-leagues-stale { margin-top: .7rem; color: var(--europe-muted); font-size: .66rem; text-align: center; }
html[data-theme="dark"] .europe-leagues-widget { --europe-panel: #111c2d; --europe-panel-2: #172437; --europe-border: #2c3d55; --europe-ink: #edf4ff; --europe-muted: #aab8ca; }
html[data-theme="dark"] .europe-leagues-season-tab { color: #d6e6ff; border-color: #416da4; background: #1c365d; }
html[data-theme="dark"] .europe-leagues-season-tab:hover, html[data-theme="dark"] .europe-leagues-season-tab:focus-visible { color: #fff; border-color: #6799dc; background: #284a7a; }
html[data-theme="dark"] .europe-leagues-season-tab.is-active { color: #fff; border-color: #4d85cf; background: #3263a6; }
html[data-theme="dark"] .europe-league-table tbody tr.europe-league-row--champion td { background: rgba(34, 197, 94, .28); }
html[data-theme="dark"] .europe-league-table tbody tr.europe-league-row--relegated td { background: rgba(215, 71, 71, .18); }
@media (max-width: 700px) {
    .europe-leagues-widget { padding: .75rem; }
    .europe-leagues-grid { grid-template-columns: minmax(0, 1fr); }
    .europe-leagues-widget-head { align-items: flex-start; height: auto; min-height: 4.2rem; margin: -.75rem -.75rem .75rem; padding-inline: .75rem; }
    .europe-leagues-season-tabs { max-width: 100%; flex-wrap: wrap; }
    .europe-leagues-season-tab { min-height: 1.7rem; padding-inline: .45rem; font-size: .64rem; }
}

/* ---------- جداسازی اخبار دسته و جداول ورزشی + ناوبری جزئی ---------- */
.category-news-box { min-width: 0; outline: none; }
.category-news-box.is-loading { opacity: .58; transition: opacity .18s ease; }
.category-sports-leagues {
    clear: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 0;
}
.category-sports-leagues > .europe-leagues-widget { margin-top: 0; }
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); }
html[data-theme="dark"] .r3-page .r3-sidebar .sidebar-box.lg-fixtures-shell {
    background: #1b2738;
}

.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;
    align-items: flex-start;
}
.dz-slide-kicker {
    align-self: flex-start;
    display: inline-block;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.dz-slide-title {
    width: 100%;
    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;
    text-align: right;
}
.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 {
    display: inline-flex;
    align-items: center;
    gap: 0;
    direction: rtl;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}
.dz-slide-meta > span:not(.dz-slide-meta-sep) { padding-inline: 7px; }
.dz-slide-meta-icon { flex: 0 0 auto; }
.dz-slide-meta-sep {
    display: inline-block;
    width: 1px;
    height: .9em;
    flex: 0 0 1px;
    margin-inline: 0;
    background: currentColor;
    opacity: .55;
}
.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: 10.8rem minmax(0, 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: 10.8rem; height: 7.2rem; 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-category-list--image-circle .r3-list__thumb img,
.r3-category-list--image-circle .r3-list__thumb-ph {
    width: 10.8rem;
    height: 10.8rem;
    aspect-ratio: 1;
    border-radius: 50%;
}
.r3-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    padding: .9rem;
    align-items: stretch;
}
.r3-category-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-2);
    box-shadow: var(--r3-shadow);
}
.r3-category-card__thumb { display: block; padding: .7rem .7rem 0; color: var(--r3-ink); text-decoration: none; }
.r3-category-card__thumb img,
.r3-category-card__thumb-ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1.75;
    border-radius: 7px;
    object-fit: cover;
}
.r3-category-card__thumb-ph { background: linear-gradient(135deg, #0b4ea2, #0a1b3f); color: #fff; }
.r3-category-grid--image-circle .r3-category-card__thumb { display: flex; justify-content: center; }
.r3-category-grid--image-circle .r3-category-card__thumb img,
.r3-category-grid--image-circle .r3-category-card__thumb-ph {
    width: 8rem;
    height: 8rem;
    aspect-ratio: 1;
    border-radius: 50%;
}
.r3-category-card__body { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; padding: .65rem .8rem .8rem; }
.r3-category-card__title { margin: 0; font-size: .88rem; line-height: 1.85; }
.r3-category-card__title a { color: var(--r3-ink); text-decoration: none; }
.r3-category-card__title a:hover { color: var(--r3-blue); }
.r3-category-card__meta { display: flex; align-items: center; gap: .35rem; margin: .35rem 0 0; color: var(--r3-muted); font-size: .66rem; }
.r3-category-card__excerpt { margin: .35rem 0 0; color: var(--r3-muted); font-size: .7rem; line-height: 1.85; }

/* ---------- ویجت چندرسانه‌ای در ستون وسط ---------- */
.mbx-media-grid {
    display: grid;
    gap: .9rem;
    padding: .9rem;
    direction: rtl;
}
.mbx-media-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mbx-media-grid--column { grid-template-columns: minmax(0, 1fr); }
.mbx-media-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 12rem minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--r3-line);
    border-radius: 11px;
    background: var(--r3-panel-2);
    box-shadow: var(--r3-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mbx-media-grid--row .mbx-media-card { grid-template-columns: minmax(0, 1fr); }
.mbx-media-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--r3-blue) 45%, var(--r3-line)); box-shadow: 0 8px 22px rgba(15, 42, 90, .13); }
.mbx-media-card__visual {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0b4ea2, #0a1b3f);
    color: #fff;
    text-decoration: none;
}
.mbx-media-grid--column .mbx-media-card__visual { height: 100%; }
.mbx-media-card__image, .mbx-media-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.mbx-media-card__placeholder { display: grid; place-items: center; color: rgba(255,255,255,.85); }
.mbx-media-card__video-frame { position: absolute; inset: 0; display: block; overflow: hidden; background: linear-gradient(135deg, #0b4ea2, #0a1b3f); }
.mbx-media-card__video-fallback, .mbx-media-card__preview-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mbx-media-card__preview-video { display: none; position: absolute; inset: 0; }
.mbx-media-card__video-frame.is-ready .mbx-media-card__preview-video { display: block; }
.mbx-media-card__video-frame.is-ready .mbx-media-card__video-fallback { display: none; }
.mbx-media-card__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, .42)); pointer-events: none; }
.mbx-media-card__play {
    position: absolute;
    z-index: 1;
    inset: 50% auto auto 50%;
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(211, 47, 47, .94);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    transform: translate(-50%, -50%);
    transition: transform .18s ease, background .18s ease;
}
.mbx-media-card:hover .mbx-media-card__play { background: var(--r3-blue); transform: translate(-50%, -50%) scale(1.1); }
.mbx-media-card__badge { position: absolute; z-index: 1; right: .55rem; bottom: .5rem; border-radius: 999px; background: rgba(2,6,23,.72); padding: .18rem .55rem; color: #fff; font-size: .65rem; font-weight: 800; }
.mbx-media-card__body { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: .75rem .85rem; }
.mbx-media-card__body h3 { margin: 0; font-size: .9rem; line-height: 1.85; }
.mbx-media-card__body h3 a { color: var(--r3-ink); text-decoration: none; }
.mbx-media-card__body h3 a:hover { color: var(--r3-blue); }
.mbx-media-card__body p { display: flex; align-items: center; gap: .3rem; margin: .4rem 0 0; color: var(--r3-muted); font-size: .68rem; }
.mbx-media-head-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--r3-blue); }

.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-inner-page .dz-slider-box--category { margin-bottom: 24px; }
.r3-main .khz-map-card { margin: 0; }

/* ---------- نوار روی خط خبر (چسبندهٔ بالای فوتر) ---------- */
.dz-footer-tick {
    --dz-navy: #1259b8;
    --dz-red: #dc2626;
    width: 100%;
    background: var(--dz-tick-bg, 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 var(--dz-tick-speed, 55s) linear infinite;
    will-change: transform;
}
.dz-marquee-frame:hover .dz-marquee-track { animation-play-state: paused; }
.dz-footer-tick.dz-no-pause .dz-marquee-frame:hover .dz-marquee-track { animation-play-state: running; }
@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;
}

.dz-footer-tick.dz-no-image .dz-tick-item { gap: 0; }
.dz-footer-tick.dz-no-meta .dz-tick-body { gap: 0; justify-content: center; }

/* ---------- نقشهٔ خوزستان ---------- */
.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-page:has(.r3-sidebar.is-right):has(.r3-sidebar.is-left) .r3-container {
    width: min(1480px, calc(100% - 2rem));
}
.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); }

/* ریل منطقی دو سایدبار؛ در دسکتاپ فرزندان همچنان مستقیماً در Grid والد می‌نشینند. */
.r3-sidebar-pair { display: contents; }
.r3-inner-page:has(.r3-sidebar.is-right) .r3-sidebar-pair > .r3-sidebar { grid-row: 1; }

/* ---------- چینش‌های سایدبار صفحات داخلی (تنظیم از پنل مدیریت) ---------- */
.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 > .r3-central-column {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    display: grid;
    /* فاصلهٔ ستون مرکزی با فاصلهٔ استاندارد بین ویجت‌های سایدبار یکسان باشد. */
    gap: .9rem;
    align-content: start;
    align-self: start;
}
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner > .r3-central-column {
    grid-column: 2;
    grid-row: 1;
}
.r3-inner:not(:has(.r3-sidebar.is-right)) > .r3-sidebar.is-left { grid-column: 2; grid-row: 1; }

/* قانون قدیمیِ ستون‌بندی محتوای اصلی، محتوای داخل ستون مرکزی را جابه‌جا نکند. */
.r3-inner-page:has(.r3-sidebar.is-right) .r3-inner > .r3-central-column > .content-main {
    grid-column: 1;
    grid-row: auto;
}
.r3-central-column > .category-sports-leagues {
    width: 100%;
    margin-top: 0;
    align-self: start;
}
.r3-central-column > .r3-main-widgets {
    display: grid;
    /* ویجت‌های ستون وسط همان فاصلهٔ عمودی ویجت‌های سایر ستون‌ها را داشته باشند. */
    gap: .9rem;
    width: 100%;
    min-width: 0;
    align-content: start;
}
.r3-main-widgets > * {
    min-width: 0;
    /* style.css برای .sidebar-box حاشیهٔ پایینی ۲۰px دارد؛ در شبکهٔ جدید
       این حاشیه با gap جمع می‌شد و بین باکس‌های ستون وسط فاصلهٔ اضافی می‌ساخت. */
    margin-block: 0;
}
.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; }

/*
 * در عرض متوسط، سه ستون برای دو ویجت باریک است. دو سایدبار صفحه‌های
 * داخلی را در یک ریل مشترک و عمودی قرار می‌دهیم تا جستجو و آخرین اخبار
 * کنار هم فشرده نشوند؛ ستون اصلی همچنان عرض مستقل و خوانا دارد.
 */
@media (max-width: 1180px) and (min-width: 981px) {
    .r3-inner-page:has(.r3-sidebar.is-right):has(.r3-sidebar.is-left) .r3-inner {
        grid-template-columns: minmax(0, 2fr) minmax(240px, .82fr);
    }
    .r3-inner-page:has(.r3-sidebar.is-right):has(.r3-sidebar.is-left) .r3-inner > .content-main,
    .r3-inner-page:has(.r3-sidebar.is-right):has(.r3-sidebar.is-left) .r3-inner > .r3-central-column {
        grid-column: 1;
        grid-row: 1;
    }
    .r3-inner-page:has(.r3-sidebar.is-right):has(.r3-sidebar.is-left) .r3-inner > .r3-sidebar-pair {
        display: grid;
        grid-column: 2;
        grid-row: 1;
        gap: .9rem;
        align-content: start;
        min-width: 0;
    }
    .r3-inner-page:has(.r3-sidebar.is-right):has(.r3-sidebar.is-left) .r3-inner > .r3-sidebar-pair > .r3-sidebar {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
}

/* ---------- صفحهٔ خبر ---------- */
.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-central-column { grid-column: auto !important; grid-row: auto !important; width: 100%; gap: 1rem; }
    .r3-inner > .r3-central-column > .content-main { grid-column: auto !important; grid-row: auto !important; }
    .r3-inner > .r3-sidebar-pair {
        display: grid;
        grid-column: auto !important;
        grid-row: auto !important;
        gap: 1rem;
        align-content: start;
        min-width: 0;
    }
    .r3-inner > .r3-sidebar-pair > .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: 980px) {
    .r3-grid { grid-template-columns: minmax(200px, .72fr) minmax(0, 2fr); }
    .r3-sidebar.is-left { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
    .r3-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r3-category-grid { 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-category-grid { grid-template-columns: minmax(0, 1fr); }
    .r3-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mbx-media-grid--row { grid-template-columns: minmax(0, 1fr); }
    .mbx-media-grid--column .mbx-media-card { grid-template-columns: 6.8rem minmax(0, 1fr); }
    .mbx-media-grid { gap: .7rem; padding: .7rem; }
    .mbx-media-card__body { padding: .55rem .65rem; }
    .mbx-media-card__body h3 { font-size: .82rem; line-height: 1.75; }
    .r3-hero { min-height: 18rem; }
    .r3-hero__content { width: 100%; padding: 1.2rem; }
    .r3-list__item { grid-template-columns: 8.1rem minmax(0, 1fr); gap: .6rem; }
    .r3-list__thumb img, .r3-list__thumb-ph { width: 8.1rem; height: 6rem; }
    .r3-category-list--row.r3-category-list--image-circle .r3-list__thumb img,
    .r3-category-list--row.r3-category-list--image-circle .r3-list__thumb-ph { width: 8.1rem; height: 8.1rem; }
}

/* ---------- جمع‌شونده‌های موبایل صفحهٔ خبر ---------- */
.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); }
}

/* اسلایدر موبایل: متن به‌جای قرارگیری روی عکس، در کارت هایلایتِ متصل زیر آن */
@media (max-width: 620px) {
    .dz-slider-stage {
        --dz-mobile-body-height: 148px;
        height: clamp(330px, 88vw, 410px);
        min-height: 0;
        overflow: hidden;
        border-radius: 12px;
        touch-action: pan-y;
    }
    .dz-slide,
    .dz-slide.is-drag-prev,
    .dz-slide.is-drag-next {
        position: relative;
        inset: auto;
        display: none;
        opacity: 1;
        visibility: visible;
        transition: none;
        -webkit-tap-highlight-color: transparent;
    }
    .dz-slide.is-active {
        display: grid;
        height: 100%;
        grid-template-rows: minmax(0, 1fr) var(--dz-mobile-body-height);
        z-index: 1;
    }
    .dz-slide.is-drag-prev,
    .dz-slide.is-drag-next {
        display: grid;
        height: 100%;
        grid-template-rows: minmax(0, 1fr) var(--dz-mobile-body-height);
        z-index: 2;
    }
    .dz-slide-img {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        object-fit: cover;
    }
    .dz-slide-img-ph { min-height: 0; height: 100%; }
    .dz-slide-shade { display: none; }
    .dz-slide-body {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        height: var(--dz-mobile-body-height);
        min-height: 0;
        padding: 10px 14px 11px;
        gap: 6px;
        overflow: hidden;
        color: var(--text);
        background: linear-gradient(135deg, #fff 0%, #eef6ff 100%);
        border-top: 0;
        border-inline-start: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
        text-shadow: none;
    }
    .dz-slide-kicker {
        color: var(--dz-red);
        font-size: 11px;
        line-height: 1.6;
        text-shadow: none;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }
    .dz-slide-title {
        color: var(--text);
        font-size: 19px;
        line-height: 1.7;
        text-shadow: none;
        letter-spacing: -.15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .dz-slide-excerpt {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.8;
        text-shadow: none;
    }
    .dz-slide-meta {
        flex-wrap: nowrap;
        white-space: nowrap;
        color: var(--muted);
        font-size: 11px;
        text-shadow: none;
    }
    .dz-slide-prev,
    .dz-slide-next {
        top: clamp(88px, 28vw, 122px);
        width: 36px;
        height: 36px;
        font-size: 17px;
        background: rgba(10, 35, 73, .76);
        border: 1px solid rgba(255, 255, 255, .45);
        box-shadow: 0 5px 14px rgba(10, 35, 73, .22);
        backdrop-filter: blur(5px);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .dz-slide-prev { right: 10px; }
    .dz-slide-next { left: 10px; }
    .dz-slider-progress { z-index: 3; }
    .dz-slide-prev:active,
    .dz-slide-next:active { transform: translateY(-50%) scale(.92); }
    .dz-slide-prev:focus-visible,
    .dz-slide-next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
    .dz-slider-thumbs {
        display: none !important;
    }
    .dz-thumb {
        display: none;
    }
    .dz-thumb:focus-visible { outline: 2px solid var(--dz-red); outline-offset: 2px; }
    html[data-theme="dark"] .dz-slide-body {
        color: #f0f2f7;
        background: linear-gradient(135deg, #273246 0%, #1c2638 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    }
    html[data-theme="dark"] .dz-slide-title { color: #f0f2f7; }
    html[data-theme="dark"] .dz-slide-meta,
    html[data-theme="dark"] .dz-slide-excerpt { color: #aab2c2; }
}
