/* ============================================================
 * 2.4.27 — Final homepage lead fixes
 * - Use a lighter admin screenshot instead of the older heavy cover.
 * - Show the complete top-story title and excerpt on the image.
 * - Restore the mobile reading order of headlines 1→5.
 * ============================================================ */
.home .af-home-lead-card--hero {
    min-height: 380px;
}

.home .af-home-lead-card--hero .af-home-lead-shade {
    background: linear-gradient(180deg, rgba(var(--bz-black-rgb), 0.08) 10%, rgba(var(--bz-black-rgb), 0.92) 100%);
}

.home .af-home-lead-card--hero .af-home-lead-content {
    padding: 96px 20px 18px;
}

.home .af-home-lead-card--hero h2 {
    max-width: 100%;
    font-size: clamp(1.28rem, 2vw, 1.95rem);
    line-height: 1.7;
}

.home .af-home-lead-card--hero h2 a {
    display: block;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    -webkit-line-clamp: unset;
}

.home .af-home-lead-card--hero p,
.home .af-home-lead-card--hero:hover p,
.home .af-home-lead-card--hero:focus-within p {
    display: block !important;
    max-width: 100%;
    max-height: none;
    margin-top: 10px;
    overflow: visible;
    color: rgba(var(--bz-white-rgb), 0.96);
    font-size: .92rem;
    line-height: 1.9;
    opacity: 1;
    transform: none;
    -webkit-line-clamp: unset;
}

@media (max-width: 899.98px) {
    .home .af-home-lead-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .home .af-home-lead-center,
    .home .af-home-lead-side,
    .home .af-home-lead-bottom {
        display: contents;
    }

    .home .af-home-lead-card--hero {
        order: 1;
        min-height: clamp(300px, 72vw, 420px);
    }

    .home .af-home-lead-side .af-home-lead-card--side:nth-of-type(1) {
        order: 2;
    }

    .home .af-home-lead-side .af-home-lead-card--side:nth-of-type(2) {
        order: 3;
    }

    .home .af-home-lead-bottom .af-home-lead-card--bottom:nth-of-type(1) {
        order: 4;
    }

    .home .af-home-lead-bottom .af-home-lead-card--bottom:nth-of-type(2) {
        order: 5;
    }

    .home .af-home-lead-card--hero .af-home-lead-content {
        padding: 88px 16px 16px;
    }

    .home .af-home-lead-card--hero h2 {
        font-size: clamp(1.15rem, 4.5vw, 1.55rem);
        line-height: 1.72;
    }

    .home .af-home-lead-card--hero p,
    .home .af-home-lead-card--hero:hover p,
    .home .af-home-lead-card--hero:focus-within p {
        font-size: .86rem;
        line-height: 1.85;
    }
}

@media (max-width: 575.98px) {
    .home .af-home-lead-card--hero {
        min-height: clamp(300px, 82vw, 360px);
    }

    .home .af-home-lead-card--hero .af-home-lead-content {
        padding: 80px 14px 14px;
    }

    .home .af-home-lead-card--hero p,
    .home .af-home-lead-card--hero:hover p,
    .home .af-home-lead-card--hero:focus-within p {
        font-size: .82rem;
        line-height: 1.8;
    }
}

/* ============================================================
 * 2.4.28 — Homepage category badge normalization
 * Standardizes the category labels shown on top of images across
 * desktop, tablet and mobile with calmer proportions.
 * ============================================================ */
.home {
    --bz-home-badge-font-size: .68rem;
    --bz-home-badge-line-height: 1.25;
    --bz-home-badge-padding-y: 2px;
    --bz-home-badge-padding-x: 8px;
    --bz-home-badge-radius: 4px;
    --bz-home-badge-offset: 8px;
}

.home .af-home-lead-category {
    top: var(--bz-home-badge-offset);
    right: var(--bz-home-badge-offset);
    max-width: calc(100% - (var(--bz-home-badge-offset) * 2));
}

.home .af-home-lead-category > a,
.home .af-home-lead-category > a > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: var(--bz-home-badge-padding-y) var(--bz-home-badge-padding-x);
    border-radius: var(--bz-home-badge-radius);
    font-size: var(--bz-home-badge-font-size);
    font-weight: 700;
    line-height: var(--bz-home-badge-line-height);
    white-space: nowrap;
}

.home .af-home-lead-category > a > span {
    box-shadow: 0 1px 4px rgba(var(--bz-black-rgb), .18);
}

.home .af-home-lead-card--side .af-home-lead-category,
.home .af-home-lead-card--bottom .af-home-lead-category {
    top: 7px;
    right: 7px;
}

@media (max-width: 899.98px) {
    .home {
        --bz-home-badge-font-size: .64rem;
        --bz-home-badge-padding-y: 2px;
        --bz-home-badge-padding-x: 7px;
        --bz-home-badge-radius: 4px;
        --bz-home-badge-offset: 7px;
    }
}

@media (max-width: 575.98px) {
    .home {
        --bz-home-badge-font-size: .61rem;
        --bz-home-badge-padding-y: 2px;
        --bz-home-badge-padding-x: 6px;
        --bz-home-badge-radius: 4px;
        --bz-home-badge-offset: 6px;
    }
}

/* ============================================================
 * 2.4.29 — Restore stable mobile order and hero behavior
 * - Reverts the custom 1→5 mobile reordering back to the previous flow.
 * - Keeps the full long title visible on the hero image.
 * - Restores the old hover/focus excerpt reveal.
 * - Prevents overflow/scrollbars beside the hero image.
 * ============================================================ */
.home .af-home-lead-card--hero,
.home .af-home-lead-card--hero .af-home-lead-media,
.home .af-home-lead-card--hero .af-home-lead-media > a,
.home .af-home-lead-card--hero .af-home-lead-media picture {
    overflow: hidden;
}

.home .af-home-lead-card--hero {
    min-height: 410px;
}

.home .af-home-lead-card--hero .af-home-lead-content {
    padding: 92px 20px 18px;
    overflow-x: clip;
}

.home .af-home-lead-card--hero h2 {
    max-width: 100%;
    font-size: clamp(1.24rem, 2vw, 1.95rem);
    line-height: 1.72;
}

.home .af-home-lead-card--hero h2 a {
    display: block;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
}

.home .af-home-lead-card--hero p {
    display: -webkit-box;
    max-width: 100%;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: rgba(var(--bz-white-rgb), 0.95);
    font-size: .9rem;
    line-height: 1.85;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height .32s ease, margin .32s ease, opacity .24s ease, transform .32s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
    .home .af-home-lead-card--hero:hover p {
        max-height: 4.2em;
        margin-top: 8px;
        opacity: 1;
        transform: translateY(0);
    }
}

.home .af-home-lead-card--hero:focus-within p {
    max-height: 4.2em;
    margin-top: 8px;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 899.98px) {
    .home .af-home-lead-group {
        display: block;
    }

    .home .af-home-lead-center {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .home .af-home-lead-bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .home .af-home-lead-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 9px;
        margin-top: 11px;
    }

    .home .af-home-lead-card--hero {
        min-height: clamp(300px, 72vw, 420px);
    }

    .home .af-home-lead-card--hero .af-home-lead-content {
        padding: 86px 16px 16px;
    }

    .home .af-home-lead-card--hero h2 {
        font-size: clamp(1.14rem, 4.5vw, 1.52rem);
        line-height: 1.74;
    }

    .home .af-home-lead-card--hero p {
        font-size: .86rem;
        line-height: 1.82;
    }
}

@media (max-width: 575.98px) {
    .home .af-home-lead-card--hero {
        min-height: clamp(290px, 82vw, 360px);
    }

    .home .af-home-lead-card--hero .af-home-lead-content {
        padding: 78px 14px 14px;
    }

    .home .af-home-lead-bottom,
    .home .af-home-lead-side {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home .af-home-lead-card--hero p {
        font-size: .82rem;
        line-height: 1.78;
    }
}

/* ============================================================
 * 2.4.30 — Mobile top-headline order aligned to desktop reference
 * Mobile order now follows the visual hierarchy shown in the approved layout:
 * 1) hero, 2) side top, 3) side bottom, 4) lower right, 5) lower left.
 * ============================================================ */
@media (max-width: 899.98px) {
    .home .af-home-lead-group {
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

    .home .af-home-lead-center,
    .home .af-home-lead-side {
        display: contents;
    }

    .home .af-home-lead-card--hero {
        order: 1;
    }

    .home .af-home-lead-side .af-home-lead-card--side:nth-of-type(1) {
        order: 2;
    }

    .home .af-home-lead-side .af-home-lead-card--side:nth-of-type(2) {
        order: 3;
    }

    .home .af-home-lead-bottom {
        order: 4;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        min-width: 0;
    }

    .home .af-home-lead-bottom .af-home-lead-card--bottom:nth-of-type(1) {
        order: 4;
    }

    .home .af-home-lead-bottom .af-home-lead-card--bottom:nth-of-type(2) {
        order: 5;
    }
}

@media (max-width: 575.98px) {
    .home .af-home-lead-bottom {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ============================================================
 * 2.4.31 — Desktop hero: no scrollbar, full title, hover excerpt
 * Simple desktop-only fix for the lead story.
 * ============================================================ */
@media (min-width: 900px) {
    .home .af-home-lead-card--hero,
    .home .af-home-lead-card--hero .af-home-lead-media,
    .home .af-home-lead-card--hero .af-home-lead-media > a,
    .home .af-home-lead-card--hero .af-home-lead-media picture {
        overflow: hidden;
    }

    .home .af-home-lead-card--hero {
        min-height: 410px;
    }

    .home .af-home-lead-card--hero .af-home-lead-content {
        right: 0;
        left: 0;
        bottom: 0;
        padding: 110px 20px 18px;
        overflow: hidden;
        transform: translateY(0);
        transition: transform .3s ease;
    }

    .home .af-home-lead-card--hero h2 {
        max-width: 100%;
        font-size: clamp(1.28rem, 2vw, 1.95rem);
        line-height: 1.72;
    }

    .home .af-home-lead-card--hero h2 a {
        display: block;
        overflow: visible;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        -webkit-line-clamp: unset;
    }

    .home .af-home-lead-card--hero p {
        display: -webkit-box;
        max-width: 100%;
        max-height: 0;
        margin: 0;
        overflow: hidden;
        color: rgba(var(--bz-white-rgb), 0.96);
        font-size: .9rem;
        line-height: 1.9;
        opacity: 0;
        transform: translateY(8px);
        transition: max-height .3s ease, margin .3s ease, opacity .24s ease, transform .3s ease;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home .af-home-lead-card--hero:hover .af-home-lead-content,
    .home .af-home-lead-card--hero:focus-within .af-home-lead-content {
        transform: translateY(-34px);
    }

    .home .af-home-lead-card--hero:hover p,
    .home .af-home-lead-card--hero:focus-within p {
        max-height: 4.2em;
        margin-top: 8px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
 * 2.4.32 — Hero without scroll; safe hover excerpt behavior
 * - Never use scrolling inside the lead image/title area.
 * - Always show the full hero title.
 * - Show the excerpt on hover/focus only when it is short enough;
 *   long excerpts are hidden entirely to protect layout.
 * ============================================================ */
.home .af-home-lead-card--hero,
.home .af-home-lead-card--hero .af-home-lead-media,
.home .af-home-lead-card--hero .af-home-lead-media > a,
.home .af-home-lead-card--hero .af-home-lead-media picture,
.home .af-home-lead-card--hero .af-home-lead-content {
    overflow: hidden;
}

.home .af-home-lead-card--hero h2 {
    max-width: 100%;
}

.home .af-home-lead-card--hero h2 a {
    display: block;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}

.home .af-home-lead-card--hero .af-home-lead-content {
    transform: translateY(0);
    transition: transform .3s ease;
}

.home .af-home-lead-card--hero .af-home-lead-content p {
    display: none;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: rgba(var(--bz-white-rgb), 0.96);
    font-size: .9rem;
    line-height: 1.88;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .24s ease, transform .3s ease, margin .3s ease;
}

.home .af-home-lead-card--hero.bz-hero-excerpt-enabled .af-home-lead-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (hover: hover) and (pointer: fine) {
    .home .af-home-lead-card--hero.bz-hero-excerpt-enabled:hover .af-home-lead-content {
        transform: translateY(-34px);
    }

    .home .af-home-lead-card--hero.bz-hero-excerpt-enabled:hover .af-home-lead-content p {
        margin-top: 8px;
        opacity: 1;
        transform: translateY(0);
    }
}

.home .af-home-lead-card--hero.bz-hero-excerpt-enabled:focus-within .af-home-lead-content {
    transform: translateY(-34px);
}

.home .af-home-lead-card--hero.bz-hero-excerpt-enabled:focus-within .af-home-lead-content p {
    margin-top: 8px;
    opacity: 1;
    transform: translateY(0);
}

.home .af-home-lead-card--hero.bz-hero-excerpt-disabled .af-home-lead-content,
.home .af-home-lead-card--hero.bz-hero-excerpt-disabled:hover .af-home-lead-content,
.home .af-home-lead-card--hero.bz-hero-excerpt-disabled:focus-within .af-home-lead-content {
    transform: none;
}

.home .af-home-lead-card--hero.bz-hero-excerpt-disabled .af-home-lead-content p {
    display: none !important;
}

/* ============================================================
 * 2.4.34 — Mobile header/top stability guard
 * Loaded after the generated public bundle so later source-file ordering
 * cannot override the approved mobile geometry.
 * ============================================================ */
@media (max-width: 899.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    nav.af-header,
    body.home nav.af-header {
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 66px !important;
        margin: 0 0 10px !important;
        padding: 8px 10px !important;
        background: var(--bz-white) !important;
        border-bottom: 1px solid var(--bz-brand-100) !important;
        box-shadow: 0 3px 12px rgba(var(--bz-brand-rgb), .08) !important;
        overflow: visible !important;
    }

    nav.af-header > .container-fluid,
    body.home nav.af-header > .container-fluid {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding-inline: 2px !important;
    }

    nav.af-header .af-mobile-flex,
    body.home nav.af-header .af-mobile-flex {
        display: inline-flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        min-height: 50px !important;
        margin: 0 !important;
    }

    nav.af-header .af-baztab-logo,
    nav.af-header .navbar .af-baztab-logo,
    body.home nav.af-header .af-baztab-logo,
    body.home nav.af-header .navbar .af-baztab-logo {
        display: block !important;
        width: auto !important;
        height: auto !important;
        max-width: min(174px, 48vw) !important;
        max-height: 50px !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    nav.af-header .show-btn-mobile,
    nav.af-header .navbar-toggler {
        position: static !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
    }

    nav.af-header .navbar-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .home .af-home-top,
    .home .af-home-top-layout,
    .home .af-home-lead-group,
    .home .af-home-lead-center,
    .home .af-home-lead-side,
    .home .af-home-lead-bottom {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* ============================================================
 * 2.4.41 — Editorial pages, related stories, popular ranking,
 * all-news layout and Persian reading rhythm.
 * Scoped overrides only; no global WordPress/admin selectors.
 * ============================================================ */

/* 1) About / Contact / Advertising: consistent editorial page shell. */
.page .af-info-page-layout {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.page .af-info-page-layout > .row {
    margin-right: 0;
    margin-left: 0;
}

.page .af-info-page-layout .af-main-single {
    padding-right: 0;
    padding-left: 0;
}

.page .af-info-page-shell {
    width: min(100%, 1040px);
    margin: 28px auto 48px;
    padding: clamp(24px, 3.8vw, 44px);
    background: var(--bz-white);
    border: 1px solid var(--bz-border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(var(--bz-black-rgb), .045);
}

.page .af-info-page-article .af-page-header {
    margin: 0 0 28px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--bz-border);
}

.page .af-info-page-article .af-page-title {
    position: relative;
    margin: 0;
    padding-right: 17px;
    color: var(--bz-brand-900);
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.55;
    text-align: right;
}

.page .af-info-page-article .af-page-title::before {
    content: "";
    position: absolute;
    top: .18em;
    right: 0;
    width: 4px;
    height: 1.2em;
    border-radius: 999px;
    background: var(--bz-accent-600);
}

.page .af-info-page-article .af-page-top-actions {
    min-height: 0;
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--bz-surface-muted);
    border-bottom: 0;
}

.page .af-info-page-article > .af-single-2,
.page .af-info-page-article > a > .af-single-2 {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 26px;
    border-radius: 14px;
}

.page .af-info-page-article .baztab-article-body {
    max-width: 860px;
    margin: 0 auto;
}

.page .af-info-page-article .baztab-article-body > :first-child {
    margin-top: 0;
}

.page .af-info-page-article .baztab-article-body p,
.page .af-info-page-article .baztab-article-body li,
.page .af-info-page-article .baztab-article-body address {
    font-size: 1.035rem;
    line-height: 2.05;
    text-align: right;
    word-spacing: normal;
    letter-spacing: 0;
}

.page .af-info-page-article .baztab-article-body p {
    margin-bottom: 18px;
}

.page .af-info-page-article .baztab-article-body h1,
.page .af-info-page-article .baztab-article-body h2,
.page .af-info-page-article .baztab-article-body h3,
.page .af-info-page-article .baztab-article-body h4 {
    color: var(--bz-brand-900);
    line-height: 1.7;
}

@media (max-width: 899.98px) {
    .page .af-info-page-layout {
        max-width: none;
        padding: 0;
    }

    .page .af-info-page-shell {
        width: 100%;
        margin: 0;
        padding: 18px 14px 32px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .page .af-info-page-article .af-page-header {
        margin: 0 0 22px;
        padding: 8px 0 17px;
        background: transparent;
    }

    .page .af-info-page-article .af-page-title {
        padding-right: 14px;
        font-size: clamp(1.42rem, 6vw, 1.75rem);
        line-height: 1.6;
    }

    .page .af-info-page-article .af-page-top-actions {
        margin-top: 13px;
        padding-top: 10px;
    }

    .page .af-info-page-article .baztab-article-body {
        max-width: none;
    }

    .page .af-info-page-article .baztab-article-body p,
    .page .af-info-page-article .baztab-article-body li,
    .page .af-info-page-article .baztab-article-body address {
        font-size: 1rem;
        line-height: 2;
    }
}

/* 4) Related stories: give images and titles breathing room inside the frame. */
.single-post .af-single-related {
    margin: 34px 0 30px;
    padding: 20px;
    background: var(--bz-white);
    border: 1px solid var(--bz-border);
    border-radius: 16px;
}

.single-post .af-single-related > .af-head-title {
    margin: 0 0 18px;
}

.single-post .af-single-related > .row {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
    margin-top: 0;
}

.single-post .af-single-related .af-related-main {
    margin-top: 0;
}

.single-post .af-single-related .af-related-img {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bz-surface-muted);
    border-radius: 11px;
}

.single-post .af-single-related .af-related-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .af-single-related .af-related-main h5 {
    margin: 10px 2px 0;
    padding: 0;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.8;
}

.single-post .af-single-related .af-related-main h5 a {
    color: var(--bz-text);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .single-post .af-single-related {
        margin: 28px 0 24px;
        padding: 14px;
        border-radius: 14px;
    }

    .single-post .af-single-related > .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 16px;
    }

    .single-post .af-single-related .af-related-main h5 {
        margin-top: 8px;
        font-size: .84rem;
        line-height: 1.75;
    }
}

/* 5) Homepage popular ranking: strong #1 fading progressively through #10. */
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(1)::before { color: rgba(var(--bz-brand-rgb), 1); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(2)::before { color: rgba(var(--bz-brand-rgb), .90); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(3)::before { color: rgba(var(--bz-brand-rgb), .82); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(4)::before { color: rgba(var(--bz-brand-rgb), .74); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(5)::before { color: rgba(var(--bz-brand-rgb), .66); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(6)::before { color: rgba(var(--bz-brand-rgb), .58); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(7)::before { color: rgba(var(--bz-brand-rgb), .50); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(8)::before { color: rgba(var(--bz-brand-rgb), .42); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(9)::before { color: rgba(var(--bz-brand-rgb), .34); }
.home .af-home-top-sidebar .af-tab-index .tab-pane li:nth-child(10)::before { color: rgba(var(--bz-brand-rgb), .26); }

/* 6) /allnews/: responsive editorial dashboard, preserving existing data queries. */
.baztab-allnews-page {
    width: 100%;
    padding: 0 0 48px;
    background: var(--bz-surface-muted);
}

.baztab-allnews-container {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 24px 18px 0;
}

.baztab-allnews-hero {
    margin: 0 0 22px;
    padding: clamp(24px, 3vw, 34px);
    background: linear-gradient(135deg, var(--bz-white), rgba(var(--bz-brand-rgb), .045));
    border: 1px solid var(--bz-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(var(--bz-black-rgb), .04);
}

.baztab-allnews-hero__content {
    max-width: 760px;
}

.baztab-allnews-hero__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--bz-accent-700);
    font-size: .78rem;
    font-weight: 800;
}

.baztab-allnews-hero__title {
    margin: 0;
    color: var(--bz-brand-900);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.5;
}

.baztab-allnews-hero__lead {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--bz-text-muted);
    font-size: .96rem;
    line-height: 1.95;
}

.baztab-allnews-grid {
    display: grid;
    align-items: start;
    gap: 18px;
}

.baztab-allnews-grid--highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.baztab-allnews-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.baztab-allnews-services {
    margin-top: 28px;
}

.baztab-allnews-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.baztab-allnews-section-head h2 {
    margin: 0;
    color: var(--bz-brand-900);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.6;
    white-space: nowrap;
}

.baztab-allnews-section-head span {
    flex: 1 1 auto;
    height: 1px;
    background: var(--bz-border);
}

.baztab-allnews-card {
    min-width: 0;
    padding: 18px;
    background: var(--bz-white);
    border: 1px solid var(--bz-border);
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(var(--bz-black-rgb), .035);
}

.baztab-allnews-card .af-side-allnews,
.baztab-allnews-card .af-service-section {
    margin: 0;
}

.baztab-allnews-card .af-head-title {
    margin: 0 0 13px;
    padding-bottom: 12px;
    color: var(--bz-brand-900);
    border-bottom: 1px solid var(--bz-border);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.65;
}

.baztab-allnews-card .af-side-allnews > ul {
    margin: 0;
    padding: 0;
}

.baztab-allnews-card .af-side-allnews li {
    position: relative;
    display: block;
    margin: 0;
    padding: 9px 15px 9px 0;
    border-bottom: 1px solid var(--bz-surface-muted);
    font-size: .875rem;
    line-height: 1.85;
}

.baztab-allnews-card .af-side-allnews li:last-child {
    border-bottom: 0;
}

.baztab-allnews-card .af-side-allnews li::before {
    content: "";
    position: absolute;
    top: 1.22em;
    right: 1px;
    float: none;
    width: 5px;
    height: 5px;
    margin: 0;
    padding: 0;
    background: var(--bz-accent-600);
    border-radius: 50%;
}

.baztab-allnews-card .af-side-allnews li a {
    color: var(--bz-text);
    font-weight: 700;
    text-decoration: none;
}

.baztab-allnews-card .af-side-allnews li a:hover,
.baztab-allnews-card .af-side-allnews li a:focus-visible {
    color: var(--bz-accent-700);
}

.baztab-allnews-card--popular .af-side-allnews > ul {
    counter-reset: baztab-allnews-rank;
}

.baztab-allnews-card--popular .af-side-allnews li {
    padding-right: 34px;
    counter-increment: baztab-allnews-rank;
}

.baztab-allnews-card--popular .af-side-allnews li::before {
    content: counter(baztab-allnews-rank);
    top: 8px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--bz-brand-800);
    background: rgba(var(--bz-brand-rgb), .06);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 1050px) {
    .baztab-allnews-grid--highlights,
    .baztab-allnews-grid--services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .baztab-allnews-page {
        padding-bottom: 32px;
    }

    .baztab-allnews-container {
        padding: 12px 10px 0;
    }

    .baztab-allnews-hero {
        margin-bottom: 12px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .baztab-allnews-hero__title {
        font-size: 1.55rem;
    }

    .baztab-allnews-hero__lead {
        margin-top: 8px;
        font-size: .88rem;
        line-height: 1.85;
    }

    .baztab-allnews-grid--highlights,
    .baztab-allnews-grid--services {
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
    }

    .baztab-allnews-services {
        margin-top: 22px;
    }

    .baztab-allnews-card {
        padding: 14px;
        border-radius: 13px;
    }

    .baztab-allnews-card .af-side-allnews li {
        padding-top: 9px;
        padding-bottom: 9px;
        font-size: .86rem;
        line-height: 1.82;
    }
}

/* 8) Persian article rhythm: never stretch spaces with full justification. */
.single-post .af-single-content .af-single-mc p,
.single-post .af-single-content .af-single-mc > ul,
.single-post .af-single-content .af-single-mc > ol,
.single-post .af-single-content .af-single-mc > blockquote,
.single-post .af-single-content .af-single-mc li {
    text-align: right !important;
    text-align-last: auto;
    word-spacing: normal;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

@supports (text-wrap: pretty) {
    .single-post .af-single-content .af-single-mc p,
    .single-post .af-single-content .af-single-mc li {
        text-wrap: pretty;
    }
}

@media (max-width: 767.98px) {
    .single-post .af-single-content .af-single-mc p,
    .single-post .af-single-content .af-single-mc > ul,
    .single-post .af-single-content .af-single-mc > ol,
    .single-post .af-single-content .af-single-mc > blockquote {
        line-height: 1.96 !important;
    }
}


/* ============================================================
 * 2.4.43 — Article justification, quote flow, comments spacing,
 * popular-number parity, and responsive information/all-news typography.
 * Scoped final overrides only.
 * ============================================================ */

/* 1) Long-form Persian text: restore a clean justified left edge while
 * keeping the final line naturally RTL. Applies to paragraphs, lists and quotes. */
.single-post .af-single-content .af-single-mc .baztab-article-body :where(p, li, blockquote),
.page .baztab-article-body :where(p, li, blockquote) {
    text-align: justify !important;
    text-align-last: right;
    text-justify: inter-word;
    word-spacing: normal;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

/* Preserve right alignment for non-reading UI embedded in article content. */
.single-post .baztab-article-body :where(figcaption, .wp-caption-text, cite),
.page .baztab-article-body :where(figcaption, .wp-caption-text, cite) {
    text-align: right !important;
    text-align-last: auto;
}

/* 2) Quotes: justified and allowed to participate in the legacy floated
 * feature-image flow. overflow:hidden created a new formatting context and
 * prevented the quote from naturally continuing below a left/right image. */
.single-post .af-single-content .af-single-mc blockquote,
.single-post .af-single-content .af-single-mc .wp-block-quote {
    display: block;
    width: auto;
    max-width: none;
    clear: none;
    overflow: visible;
    text-align: justify !important;
    text-align-last: right;
    text-justify: inter-word;
}

.single-post .af-single-content .af-single-mc blockquote p,
.single-post .af-single-content .af-single-mc .wp-block-quote p {
    text-align: justify !important;
    text-align-last: right;
    text-justify: inter-word;
}

/* Keep classic left/right featured images in the normal float stream so the
 * opening copy — including a quote — can occupy the side space and then return
 * to full width below the image, as in the original theme behavior. */
@media (min-width: 768px) {
    .single-post .af-single-layout--feature-right > img.af-single-first,
    .single-post .af-single-layout--feature-left > img.af-single-second {
        clear: none !important;
        shape-outside: inset(0 round 10px);
        shape-margin: 10px;
    }

    .single-post .af-single-layout--feature-right .baztab-article-body,
    .single-post .af-single-layout--feature-left .baztab-article-body {
        display: block;
        width: auto;
        max-width: none;
        clear: none;
        overflow: visible;
    }
}

/* Mobile keeps the feature image full width, then resumes normal justified text. */
@media (max-width: 767.98px) {
    .single-post .af-single-content .af-single-mc .baztab-article-body :where(p, li, blockquote) {
        text-align: justify !important;
        text-align-last: right;
        text-justify: inter-word;
        line-height: 2 !important;
    }
}

/* 3) Comments heading: protect the icon/title from touching the article frame. */
.single-post .af-single-comment .baztab-comments-header {
    box-sizing: border-box;
    padding: 0 12px 17px;
}

@media (max-width: 767.98px) {
    .single-post .af-single-comment .baztab-comments-header {
        padding: 0 8px 14px;
    }
}

/* 4) Homepage popular ranks: match the established single-story sidebar scale. */
.home .af-home-top-sidebar .af-tab-index .tab-pane li {
    padding-right: 38px;
}

.home .af-home-top-sidebar .af-tab-index .tab-pane li::before {
    top: 5px;
    right: 2px;
    width: 30px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

@media (max-width: 899.98px) {
    .home .af-home-top-sidebar .af-tab-index .tab-pane li {
        padding-right: 38px;
    }

    .home .af-home-top-sidebar .af-tab-index .tab-pane li::before {
        top: 6px;
        font-size: 1.5rem;
    }
}

/* 5) Information and all-news pages: explicitly inherit the site's IRANSansX
 * stack and use a denser responsive title scale. */
.page .af-info-page-shell,
.page .af-info-page-shell :where(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, em, address, label, button),
.baztab-allnews-page,
.baztab-allnews-page :where(h1, h2, h3, h4, h5, h6, p, li, a, span, strong, em, button) {
    font-family: var(--bz-font-family);
}

.baztab-allnews-hero {
    padding: clamp(20px, 2.5vw, 28px);
}

.baztab-allnews-hero__title {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.55;
}

.baztab-allnews-hero__lead {
    margin-top: 7px;
    font-size: .91rem;
    line-height: 1.9;
}

@media (max-width: 767.98px) {
    .page .af-info-page-shell {
        padding-right: 15px;
        padding-left: 15px;
    }

    .page .af-info-page-article .af-page-title {
        font-size: clamp(1.32rem, 5.5vw, 1.62rem);
    }

    .page .af-info-page-article .baztab-article-body p,
    .page .af-info-page-article .baztab-article-body li,
    .page .af-info-page-article .baztab-article-body address {
        font-size: .98rem;
        line-height: 2;
    }

    .baztab-allnews-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .baztab-allnews-hero {
        padding: 17px 15px;
        border-radius: 14px;
    }

    .baztab-allnews-hero__title {
        font-size: 1.3rem;
        line-height: 1.65;
    }

    .baztab-allnews-hero__lead {
        font-size: .84rem;
        line-height: 1.85;
    }

    .baztab-allnews-card {
        padding: 15px 13px;
    }
}

/* ============================================================
 * 2.4.44 — /allnews/ single-surface layout
 * Remove the nested/double-card effect and align the page with
 * the restrained card language used on the homepage.
 * ============================================================ */
.baztab-allnews-page {
    padding-bottom: 48px;
    background: var(--bz-white);
}

.baztab-allnews-container {
    width: min(calc(100% - 24px), 1220px);
    max-width: 1220px;
    margin-right: auto;
    margin-left: auto;
    padding: 22px 0 0;
}

.baztab-allnews-hero {
    margin-bottom: 18px;
    padding: 20px 22px;
    background: var(--nr2-surface, var(--bz-white));
    border: 1px solid var(--nr2-border, var(--bz-border));
    border-radius: var(--nr2-radius, 15px);
    box-shadow: var(--nr2-shadow, 0 5px 16px rgba(var(--bz-black-rgb), .045));
}

.baztab-allnews-hero__content {
    max-width: 820px;
}

.baztab-allnews-hero__title {
    font-size: clamp(1.28rem, 1.8vw, 1.62rem);
    line-height: 1.55;
}

.baztab-allnews-hero__lead {
    max-width: 760px;
    margin-top: 5px;
    font-size: .88rem;
    line-height: 1.85;
}

.baztab-allnews-grid {
    gap: var(--nr2-gap, 18px);
}

/* The ARTICLE is only a grid/advertising wrapper. The list inside is the
 * one and only visual card. This prevents nested border + shadow surfaces. */
.baztab-allnews-card {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.baztab-allnews-card .af-side-allnews,
.baztab-allnews-card .af-service-section {
    height: 100%;
    margin: 0;
    padding: 20px 18px;
    overflow: hidden;
    background: var(--nr2-surface, var(--bz-white));
    border: 1px solid var(--nr2-border, var(--bz-border));
    border-radius: var(--nr2-radius, 15px);
    box-shadow: var(--nr2-shadow, 0 5px 16px rgba(var(--bz-black-rgb), .045));
}

.baztab-allnews-card .af-head-title {
    margin: 0 0 12px;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--nr2-border-soft, var(--bz-border));
    font-size: .98rem;
    line-height: 1.65;
}

.baztab-allnews-card .af-head-title::before {
    width: 5px;
    height: 22px;
    margin: 1px 0 0 8px;
    border-radius: 4px;
}

.baztab-allnews-card .af-head-title::after {
    display: none;
}

.baztab-allnews-card .af-side-allnews > ul {
    margin-top: 0;
}

.baztab-allnews-services {
    margin-top: 26px;
}

.baztab-allnews-section-head {
    margin-bottom: 13px;
}

@media (max-width: 767.98px) {
    .baztab-allnews-page {
        padding-bottom: 30px;
    }

    .baztab-allnews-container {
        width: min(calc(100% - 20px), 1220px);
        padding-top: 12px;
    }

    .baztab-allnews-hero {
        margin-bottom: 12px;
        padding: 15px 14px;
        border-radius: 13px;
    }

    .baztab-allnews-hero__title {
        font-size: 1.2rem;
        line-height: 1.65;
    }

    .baztab-allnews-hero__lead {
        margin-top: 4px;
        font-size: .82rem;
        line-height: 1.8;
    }

    .baztab-allnews-grid--highlights,
    .baztab-allnews-grid--services {
        gap: 10px;
    }

    .baztab-allnews-card .af-side-allnews,
    .baztab-allnews-card .af-service-section {
        padding: 15px 13px;
        border-radius: 12px;
    }

    .baztab-allnews-card .af-head-title {
        margin-bottom: 10px;
        padding-bottom: 9px;
        font-size: .94rem;
    }

    .baztab-allnews-services {
        margin-top: 20px;
    }
}

/* ============================================================
 * 2.4.46 — Opening quote + floated featured-image composition
 * Restores the original editorial flow for the two side-image story layouts.
 * The opening quote occupies only the free side of the floated image, then
 * subsequent copy naturally flows below whichever element ends first.
 * ============================================================ */
@media (min-width: 768px) {
    .single-post .af-single-layout--feature-left > .baztab-article-body > :is(blockquote, .wp-block-quote):first-child {
        box-sizing: border-box;
        float: right;
        width: calc(100% - min(50%, 465px) - 30px);
        max-width: calc(100% - min(50%, 465px) - 30px);
        min-width: 0;
        clear: none;
        margin: 20px 0 22px !important;
        overflow: hidden;
    }

    .single-post .af-single-layout--feature-right > .baztab-article-body > :is(blockquote, .wp-block-quote):first-child {
        box-sizing: border-box;
        float: left;
        width: calc(100% - min(50%, 465px) - 30px);
        max-width: calc(100% - min(50%, 465px) - 30px);
        min-width: 0;
        clear: none;
        margin: 20px 0 22px !important;
        overflow: hidden;
    }

    /* The first paragraph after an opening quote may use the free space below
     * the shorter float; no forced clear is introduced here by design. */
    .single-post .af-single-layout--feature-left > .baztab-article-body > :is(blockquote, .wp-block-quote):first-child + *,
    .single-post .af-single-layout--feature-right > .baztab-article-body > :is(blockquote, .wp-block-quote):first-child + * {
        clear: none;
    }
}

@media (max-width: 767.98px) {
    .single-post .af-single-layout--feature-left > .baztab-article-body > :is(blockquote, .wp-block-quote):first-child,
    .single-post .af-single-layout--feature-right > .baztab-article-body > :is(blockquote, .wp-block-quote):first-child {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 18px !important;
        overflow: hidden;
    }
}

/* ============================================================
 * 2.4.48 — Stable featured-image/content flow for side layouts
 * Restores the original theme model: the floated featured image and article
 * copy share one formatting context. This prevents quotes/galleries from
 * painting over the feature image or disappearing underneath it.
 * ============================================================ */
@media (min-width: 768px) {
    /* Feature image lives inside the article body, exactly before the content. */
    .single-post .af-single-layout--feature-right > .baztab-article-body > img.af-single-first {
        display: block;
        float: right !important;
        width: min(50%, 465px) !important;
        max-width: 50%;
        height: auto;
        clear: none !important;
        margin: 20px 0 20px 30px !important;
        position: relative;
        z-index: 1;
    }

    .single-post .af-single-layout--feature-left > .baztab-article-body > img.af-single-second {
        display: block;
        float: left !important;
        width: min(50%, 465px) !important;
        max-width: 50%;
        height: auto;
        clear: none !important;
        margin: 20px 30px 20px 0 !important;
        position: relative;
        z-index: 1;
    }

    /* Disable the 2.4.46 quote-as-a-second-float model. A formatting-context
     * quote naturally occupies only the remaining space beside the image,
     * without its background covering the image. */
    .single-post .af-single-layout--feature-left > .baztab-article-body > :is(blockquote, .wp-block-quote):first-of-type,
    .single-post .af-single-layout--feature-right > .baztab-article-body > :is(blockquote, .wp-block-quote):first-of-type {
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        clear: none !important;
        margin-top: 20px !important;
        overflow: hidden !important;
        position: relative;
        z-index: 2;
    }

    /* Paragraphs/lists remain in normal flow and can use the free area beside
     * the floated feature image, just like the original Baztab templates. */
    .single-post .af-single-layout--feature-left > .baztab-article-body > :where(p, ul, ol),
    .single-post .af-single-layout--feature-right > .baztab-article-body > :where(p, ul, ol) {
        clear: none;
    }

    /* Galleries are full editorial units. They should begin only after the
     * feature float, preventing thumbnails from being hidden beneath it. */
    .single-post .af-single-layout--feature-left > .baztab-article-body > :where(.gallery, .wp-block-gallery, figure.wp-block-gallery),
    .single-post .af-single-layout--feature-right > .baztab-article-body > :where(.gallery, .wp-block-gallery, figure.wp-block-gallery) {
        clear: both !important;
        width: 100%;
        max-width: 100%;
    }
}

/* The body owns both the feature float and content, so its clear now reliably
 * contains the image before tags/metadata/related-content begin. */
.single-post .af-single-layout--feature-left > .baztab-article-body::after,
.single-post .af-single-layout--feature-right > .baztab-article-body::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 767.98px) {
    .single-post .af-single-layout--feature-right > .baztab-article-body > img.af-single-first,
    .single-post .af-single-layout--feature-left > .baztab-article-body > img.af-single-second {
        display: block;
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        height: auto;
        clear: both !important;
        margin: 14px 0 18px !important;
    }

    .single-post .af-single-layout--feature-left > .baztab-article-body > :is(blockquote, .wp-block-quote),
    .single-post .af-single-layout--feature-right > .baztab-article-body > :is(blockquote, .wp-block-quote) {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: none !important;
        overflow: visible !important;
    }

    .single-post .af-single-layout--feature-left > .baztab-article-body > :where(.gallery, .wp-block-gallery, figure.wp-block-gallery),
    .single-post .af-single-layout--feature-right > .baztab-article-body > :where(.gallery, .wp-block-gallery, figure.wp-block-gallery) {
        clear: both !important;
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
 * 2.4.50 — Preserve editor-defined gallery columns
 * The featured-image flow only clears galleries below the side float. It must
 * not replace the native Classic Gallery grid or Gutenberg Gallery layout.
 * Column count therefore remains owned by WordPress/editor markup and CSS.
 * ============================================================ */
.single-post .af-single-layout--feature-left > .baztab-article-body > .gallery,
.single-post .af-single-layout--feature-right > .baztab-article-body > .gallery {
    clear: both !important;
}

.single-post .af-single-layout--feature-left > .baztab-article-body > .wp-block-gallery,
.single-post .af-single-layout--feature-right > .baztab-article-body > .wp-block-gallery {
    clear: both !important;
}

/* ============================================================
 * 2.4.53 — Homepage media backgrounds: approved 2026 artwork.
 * Unique filenames bypass stale browser/CDN image caches.
 * Preserve the established desktop fixed-background scroll effect
 * and the touch-safe mobile scroll behavior.
 * ============================================================ */
body.home .af-video-index:not(.af-picture-video-layout) {
    background-color: var(--bz-brand-900) !important;
    background-image: url('../imgs/videobg-2458.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body.home .af-video-index.af-picture-video-layout {
    background-color: var(--bz-brand-900) !important;
    background-image: url('../imgs/photoreportbg-2459.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body.home .af-picture-service.af-pishkhan-picture-service {
    background-color: var(--bz-brand-900) !important;
    background-image: url('../imgs/pishkhanbg-2459.jpg') !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

@supports (background-image: image-set(url('../imgs/videobg-2458.webp') type('image/webp'))) {
    body.home .af-video-index:not(.af-picture-video-layout) {
        background-image: image-set(
            url('../imgs/videobg-2458.webp') type('image/webp'),
            url('../imgs/videobg-2458.jpg') type('image/jpeg')
        ) !important;
    }

    body.home .af-video-index.af-picture-video-layout {
        background-image: image-set(
            url('../imgs/photoreportbg-2459.webp') type('image/webp'),
            url('../imgs/photoreportbg-2459.jpg') type('image/jpeg')
        ) !important;
    }

    body.home .af-picture-service.af-pishkhan-picture-service {
        background-image: image-set(
            url('../imgs/pishkhanbg-2459.webp') type('image/webp'),
            url('../imgs/pishkhanbg-2459.jpg') type('image/jpeg')
        ) !important;
    }
}

@media (min-width: 900px) {
    body.home .af-video-index:not(.af-picture-video-layout),
    body.home .af-video-index.af-picture-video-layout,
    body.home .af-picture-service.af-pishkhan-picture-service {
        background-attachment: fixed !important;
    }
}

@media (max-width: 899.98px) {
    body.home .af-video-index:not(.af-picture-video-layout),
    body.home .af-video-index.af-picture-video-layout,
    body.home .af-picture-service.af-pishkhan-picture-service {
        background-attachment: scroll !important;
    }
}

/* ============================================================
 * 2.4.55 — Restore original white editorial typography on the new
 * darker section backgrounds for Baztab TV, Photo Reports and Pishkhan.
 * ============================================================ */
body.home .af-video-index .af-head-title,
body.home .af-video-index.af-picture-video-layout .af-head-title,
body.home .af-picture-service.af-pishkhan-picture-service .af-head-title,
body.home .af-pishkhan .af-head-title {
    color: var(--bz-white) !important;
    text-shadow: 0 2px 10px rgba(var(--bz-black-rgb), .28) !important;
}

body.home .af-video-index .af-video-main h3,
body.home .af-video-index .af-video-main h3 a,
body.home .af-video-index .af-video-desc,
body.home .af-video-index .af-video-desc a,
body.home .af-video-index .af-video-item h3,
body.home .af-video-index .af-video-item h3 a,
body.home .af-video-index.af-picture-video-layout .af-video-main h3,
body.home .af-video-index.af-picture-video-layout .af-video-main h3 a,
body.home .af-video-index.af-picture-video-layout .af-video-desc,
body.home .af-video-index.af-picture-video-layout .af-video-desc a,
body.home .af-video-index.af-picture-video-layout .af-video-item h3,
body.home .af-video-index.af-picture-video-layout .af-video-item h3 a,
body.home .af-picture-service.af-pishkhan-picture-service .af-picture-big h3,
body.home .af-picture-service.af-pishkhan-picture-service .af-picture-big h3 a,
body.home .af-picture-service.af-pishkhan-picture-service .af-picture-small h3,
body.home .af-picture-service.af-pishkhan-picture-service .af-picture-small h3 a,
body.home .af-picture-service.af-pishkhan-picture-service .af-pishkhan-picture-content h3,
body.home .af-picture-service.af-pishkhan-picture-service .af-pishkhan-picture-content h3 a {
    color: var(--bz-white) !important;
    text-shadow: 0 2px 10px rgba(var(--bz-black-rgb), .28) !important;
}

/* ============================================================
 * 2.4.62 — Homepage lead typography hierarchy.
 * Headlines 2–3 are intentionally a little larger than 4–5,
 * without changing card geometry, line clamping or mobile order.
 * ============================================================ */
@media (min-width: 900px) {
    .home .af-home-lead-card--side h3 {
        font-size: 1.03rem;
    }
}

@media (max-width: 899.98px) and (min-width: 576px) {
    .home .af-home-lead-card--side h3 {
        font-size: .99rem;
    }
}

@media (max-width: 575.98px) {
    .home .af-home-lead-card--side h3 {
        font-size: .95rem;
    }
}



/* 2.4.67 — category/search pagination restored without legacy shortcode. */
.bz-archive-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 28px 0 8px;
}
.bz-pagination__summary {
    color: var(--bz-text-muted, #64717f);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.8;
}
.bz-pagination-nav {
    max-width: 100%;
    margin: 0;
}
.bz-pagination-nav .pagination {
    margin: 0;
}
@media (max-width: 575.98px) {
    .bz-archive-pagination {
        align-items: stretch;
        gap: 8px;
        margin-top: 22px;
    }
    .bz-pagination__summary {
        text-align: center;
    }
    .bz-pagination-nav {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }
    .bz-pagination-nav .pagination {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
    }
}
