/* ============================================================
    PakishNews Urdu Theme — RTL-First Layout
    Dedicated Urdu/RTL theme — system-first sans typography
    ============================================================ */

/* ── CSS Variables ── */
:root {
    /* PakishNews Brand — Trust Green */
    --color-primary: #005A43;
    --color-primary-dark: #003D2E;
    --color-secondary: #0F172A;
    --color-accent: #0E7490;
    --color-bg: #ffffff;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #0F172A;
    --color-text: #222222;
    --color-text-light: #666666;
    --color-text-muted: #475569;
    --color-border: #E2E8F0;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography — Urdu-first */
    --font-primary: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-headline: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-latin: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, monospace;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Layout */
    --max-width: 1280px;
    --max-width-narrow: 720px;
    --border-radius: 4px;
    --transition: 0.2s ease;

    /* 2026 UX system tokens */
    --grid-unit: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-soft-hover: 0 12px 32px rgba(15, 23, 42, 0.14);
    --transition-standard: 0.22s ease;

    /* Category accent colors */
    --cat-pakistan: #059669;
    --cat-world: #2563EB;
    --cat-business: #D97706;
    --cat-technology: #7C3AED;
    --cat-sports: #E11D48;
    --cat-entertainment: #C026D3;
    --cat-health: #0891B2;
    --cat-opinion: #475569;

    --color-hero-overlay: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.05) 100%);
}

/* ── Dark Mode ── */
.dark-mode {
    --color-bg: #0F172A;
    --color-bg-alt: #1E293B;
    --color-bg-dark: #020617;
    --color-text: #E2E8F0;
    --color-text-light: #94A3B8;
    --color-text-muted: #64748B;
    --color-border: #334155;
}

/* ============================================================
   2026 GOLD STANDARD LAYER (UR)
   ============================================================ */
:root {
    --gold-bg: #ffffff;
    --gold-surface: #f7f9fc;
    --gold-ink: #0b1220;
    --gold-muted: #334155;
    --gold-border: #cbd5e1;
    --gold-brand: #0f5132;
    --gold-brand-strong: #08351f;
}

.main-nav {
    background: #0b1220;
}

.main-nav__link {
    font-size: 0.9rem;
    font-weight: 700;
}

.gold-hero {
    padding: 1.25rem 0 1.5rem;
}

.gold-hero__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    min-height: 65vh;
}

.gold-hero__lead {
    grid-row: 1 / 3;
    grid-column: 2;
}

.gold-hero__link {
    display: block;
    position: relative;
    height: 100%;
    border-radius: 0.6rem;
    overflow: hidden;
}

.gold-hero__media {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0f172a, #1e293b);
}

.gold-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.gold-hero__media--small img {
    aspect-ratio: 21 / 9;
}

.gold-hero__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-hero__placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: clamp(1.4rem, 2vw, 2.1rem);
}

.gold-hero__overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2rem 1.2rem 1.1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
    color: #ffffff;
    text-align: right;
}

.gold-hero__overlay--small {
    padding: 1.25rem 1rem 0.8rem;
}

.gold-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: #052814;
    color: #ffffff;
    padding: 0.2rem 0.55rem;
    border-radius: 0.3rem;
}

.gold-hero__title {
    font-size: clamp(2.45rem, 2.2vw + 1.25rem, 3rem);
    line-height: 1.38;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.gold-hero__side-title {
    font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
    line-height: 1.45;
    font-weight: 800;
}

.gold-hero__excerpt {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.9;
}

.gold-home {
    padding: 1.1rem 0 2rem;
}

.gold-home__layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.9rem;
    align-items: start;
}

.gold-home__main {
    grid-column: 2;
    display: grid;
    gap: 1.25rem;
}

.gold-sidebar {
    grid-column: 1;
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1rem;
}

.gold-home .category-section {
    margin-bottom: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.gold-home .category-section__header {
    margin-bottom: 0.75rem;
}

.gold-home .card__content {
    padding: 0.8rem 0.8rem 0.95rem;
}

.gold-home .card__title {
    margin: 2px 0 6px;
    line-height: 1.7;
}

.gold-home .card__excerpt {
    margin-bottom: 6px;
    line-height: 1.65;
}

.gold-home .card__image,
.gold-tag-page .card__image {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.gold-home .card__image--placeholder,
.gold-tag-page .card__image--placeholder {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    padding: 0;
    display: grid;
    place-items: center;
}

.gold-home .card__image--placeholder::before,
.gold-tag-page .card__image--placeholder::before {
    display: none;
}

.gold-home .card__image--placeholder::after,
.gold-tag-page .card__image--placeholder::after {
    content: 'تصویر دستیاب نہیں';
    position: static;
    font-size: 0.78rem;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.8);
}

.gold-home .card--featured .card__image {
    aspect-ratio: 16 / 9;
}

.ad-slot,
.adsbygoogle,
[id*="google_ads"],
[class*="ad-unit"] {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    margin: 12px 0;
}

.gold-sidebar--inline {
    position: static;
    max-width: 520px;
    margin: 1.5rem auto 0;
}

.gold-widget {
    background: var(--gold-surface);
    border: 1px solid var(--gold-border);
    border-radius: 0.65rem;
    padding: 1rem;
}

.gold-widget__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-ink);
    margin-bottom: 0.75rem;
}

.gold-widget__desc {
    color: var(--gold-muted);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.gold-trending {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gold-trending li + li {
    border-top: 1px solid var(--gold-border);
}

.gold-trending a {
    display: grid;
    grid-template-columns: 1fr 30px;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0;
}

.gold-trending__index {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-brand);
    line-height: 1;
    text-align: left;
}

.gold-trending__text {
    color: var(--gold-ink);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 600;
}

.gold-newsletter {
    display: grid;
    gap: 0.55rem;
}

.gold-newsletter input {
    min-height: 48px;
    border: 1px solid #94a3b8;
    border-radius: 0.55rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: #0b1220;
    background: #ffffff;
}

.gold-newsletter button {
    min-height: 52px;
    border: none;
    border-radius: 0.65rem;
    background: var(--gold-brand);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.gold-newsletter button:hover {
    background: var(--gold-brand-strong);
}

.gold-post-widgets {
    padding: 0.5rem 0 1.2rem;
}

.gold-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .gold-home__layout {
        grid-template-columns: 1fr;
    }

    .gold-home__main,
    .gold-sidebar {
        grid-column: auto;
    }

    .gold-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .gold-hero__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }

    .gold-hero__lead {
        grid-row: auto;
        grid-column: 1;
    }

    .gold-hero__title {
        font-size: clamp(1.8rem, 4vw + 0.7rem, 2rem);
    }

    .gold-hero__side-title {
        font-size: 1.25rem;
    }

    .gold-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Ghost Koenig Editor Card Widths ── */
.kg-width-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.kg-width-full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-width-wide img, .kg-width-full img { max-width: 100%; }

/* ── Reset & Base — RTL by default ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Skip to main content link (accessibility) */
.skip-nav {
    position: absolute;
    top: -100%;
    right: 50%;
    transform: translateX(50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 700;
    font-family: var(--font-primary);
    z-index: 9999;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
}

/* OAuth branding verification bar */
.brand-verify-bar {
    background: #f4f8ff;
    border-top: 1px solid #d7e4ff;
    border-bottom: 1px solid #d7e4ff;
}

.brand-verify-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.brand-verify-bar__text {
    margin: 0;
    color: #0d224a;
    font-size: 0.94rem;
    line-height: 1.6;
}

.brand-verify-bar__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-verify-bar__links a {
    font-weight: 700;
    color: #0a3d91;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .brand-verify-bar__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

html {
    font-size: clamp(15px, 1vw + 12px, 18px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    direction: rtl;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 2;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.container--narrow { max-width: var(--max-width-narrow); }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
    background: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
    height: 40px;
    line-height: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,90,67,0.25);
}

.breaking-ticker,
.breaking-ticker .container,
.breaking-ticker__inner {
    height: 40px !important;
    overflow: hidden !important;
    max-height: 40px !important;
}

.breaking-ticker .container {
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.breaking-ticker__inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    flex-direction: row-reverse;
}

.breaking-ticker__label {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: rgba(0,0,0,0.3) !important;
    position: relative !important;
    z-index: 2 !important;
    font-family: var(--font-primary);
}

.breaking-ticker__track {
    height: 40px !important;
    line-height: 40px !important;
    overflow: hidden !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.breaking-ticker__content {
    white-space: nowrap;
    display: inline-flex;
    gap: 48px;
    animation: ticker-scroll-rtl 40s linear infinite;
    will-change: transform;
}

.breaking-ticker__item {
    color: var(--color-white);
    white-space: nowrap;
    padding-left: var(--spacing-2xl);
    position: relative;
}

.breaking-ticker__item::after {
    content: '•';
    position: absolute;
    left: var(--spacing-lg);
}

.breaking-ticker__item:hover { text-decoration: underline; }

@keyframes ticker-scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-top {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-direction: row;
}

.site-logo__image { height: 40px; width: auto; }

.site-logo__text {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-primary);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    padding: 2px;
}

.lang-switcher__link {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.lang-switcher__link--active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Search */
.header-search__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--color-text);
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* Main Navigation */
.main-nav { background: var(--color-bg-dark); }

.main-nav__list {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    direction: rtl;
}

.main-nav__list::-webkit-scrollbar { display: none; }

.main-nav__link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background var(--transition);
    border-bottom: 3px solid transparent;
}

.main-nav__link:hover,
.main-nav__link--active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--color-primary);
}

.main-nav__link--live {
    color: #ff4444;
    font-weight: 600;
}

/* ============================================================
   2026-03 UX GOLD STANDARD IMPLEMENTATION (UR)
   Header/logo polish, modern sidebar, consistent media system,
   visual hierarchy + micro-interactions + WCAG-safe contrast
   ============================================================ */

.header-top {
    padding-top: var(--grid-unit);
    padding-bottom: calc(var(--grid-unit) * 0.5);
}

.header-top__inner {
    min-height: calc(var(--grid-unit) * 7);
    gap: calc(var(--grid-unit) * 1.5);
}

.site-logo a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: calc(var(--grid-unit) * 0.25);
    padding-block: calc(var(--grid-unit) * 0.25);
    line-height: 1;
}

.site-logo__image {
    height: 42px;
    margin: 0;
}

.site-logo__text {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--grid-unit) * 0.75);
}

.site-logo__tagline {
    font-size: 0.74rem;
    letter-spacing: 0;
    line-height: 1.8;
    color: var(--color-text-light);
    font-weight: 600;
    text-align: right;
}

/* Hard-disable legacy logo taglines / stray second-line spans */
.site-logo__tagline,
.site-logo a > span:not(.site-logo__text),
.site-logo a > br {
    display: none !important;
}

.main-nav {
    margin-top: 0;
}

.main-nav__link {
    padding: calc(var(--grid-unit) * 1.25) calc(var(--grid-unit) * 1.75);
    line-height: 1.7;
    transition: background-color var(--transition-standard), color var(--transition-standard), transform var(--transition-standard), border-color var(--transition-standard);
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
    background: rgba(15, 81, 50, 0.24);
    border-bottom-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
}

.gold-widget,
.top-stories {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    background: var(--color-bg);
    transition: box-shadow var(--transition-standard), transform var(--transition-standard), border-color var(--transition-standard);
}

.gold-widget:hover,
.top-stories:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-hover);
    border-color: #cbd5e1;
}

.gold-widget,
.top-stories,
.top-story-card__date,
.gold-widget__desc {
    font-size: 0.94rem;
}

.gold-widget__title,
.top-stories .section-title {
    font-size: clamp(1.05rem, 1.1vw + 0.75rem, 1.25rem);
    line-height: 1.65;
    font-weight: 800;
}

.gold-trending a,
.top-story-card {
    transition: color var(--transition-standard), background-color var(--transition-standard), transform var(--transition-standard);
}

.gold-trending a:hover,
.gold-trending a:focus-visible,
.top-story-card:hover,
.top-story-card:focus-within {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.top-story-card__title,
.hero-story__title,
.hero-bento__title,
.hero-sub__title,
.card--featured .card__title,
.post-header__title {
    font-weight: 800;
}

.card__title {
    line-height: 1.9;
}

.card__excerpt,
.post-content p,
.post-header__excerpt {
    color: var(--color-text-light);
}

.top-story-card__image,
.top-story-card__image img,
.card__image,
.card__image img,
.hero-sub__image,
.hero-sub__image img,
.hero-bento__image,
.hero-bento__image img,
.post-image img,
.post-content img,
.kg-image,
.kg-image-card img,
.related-posts__grid img {
    border-radius: var(--radius-md);
}

.card__image,
.gold-home .card__image,
.gold-tag-page .card__image,
.related-posts__grid .card__image {
    aspect-ratio: 16 / 9;
}

.card,
.hero-sub__card,
.gold-widget,
.top-stories {
    border-radius: var(--radius-md);
}

.card {
    transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}

.card:hover,
.hero-sub__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-hover);
}

/* Pixel tuning pass: premium rhythm + hierarchy (UR) */
.gold-home__layout {
    gap: calc(var(--grid-unit) * 3);
}

.gold-sidebar {
    gap: calc(var(--grid-unit) * 1.5);
}

.gold-widget,
.top-stories {
    padding: calc(var(--grid-unit) * 2);
}

.gold-widget__title,
.top-stories .section-title {
    margin-bottom: calc(var(--grid-unit) * 1.25);
}

.card--featured .card__title,
.hero-bento__title,
.post-header__title {
    font-size: clamp(1.35rem, 1.45vw + 0.9rem, 1.9rem);
    line-height: 1.8;
}

.top-story-card__title {
    font-size: 1rem;
}

@media (max-width: 980px) {
    .header-top__inner {
        min-height: calc(var(--grid-unit) * 6.5);
    }

    .main-nav__link {
        padding: calc(var(--grid-unit) * 1.1) calc(var(--grid-unit) * 1.4);
        font-size: 0.9rem;
    }
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding-top: 80px;
}

.search-overlay.active { display: block; }

.search-overlay__inner {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.search-overlay__input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-white);
    color: var(--color-white);
    font-size: 2rem;
    padding: var(--spacing-md) 0;
    outline: none;
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
}

.search-overlay__close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--spacing-md);
}

.search-results { color: var(--color-white); }

/* ============================================================
   HERO SECTION — Immersive RTL
   ============================================================ */
.hero-section {
    padding: var(--spacing-xl) 0 var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   BENTO BOX HERO GRID — Asymmetric RTL "Above the Fold"
   ============================================================ */
.hero-bento {
    display: grid;
    grid-template-columns: 1fr 2fr;  /* RTL: sidebar left, hero right */
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    min-height: 480px;
}

.hero-bento__main {
    grid-column: 2;
    grid-row: 1 / 3;
}

.hero-bento__link {
    display: block;
    height: 100%;
}

.hero-bento__image {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--color-secondary);
    border-radius: var(--border-radius);
}

.hero-bento__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-bento__link:hover .hero-bento__image img {
    transform: scale(1.04);
}

.hero-bento__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-hero-overlay);
    pointer-events: none;
    z-index: 1;
}

.hero-bento__image--placeholder {
    background: linear-gradient(160deg, #0F172A 0%, #1e3a5f 50%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bento__placeholder-text {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    color: rgba(255,255,255,0.06);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 0;
}

.hero-bento__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: var(--spacing-3xl) var(--spacing-xl) var(--spacing-xl);
    color: var(--color-white);
    text-align: right;
}

.hero-bento__overlay--compact {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.hero-bento__tag {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    font-family: var(--font-headline);
}

.hero-bento__title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.75rem);
    font-weight: 800;
    line-height: 2.0;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-bento__title--sm {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.35rem);
    line-height: 1.8;
}

.hero-bento__excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-bento__date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-top: var(--spacing-xs);
    font-family: var(--font-latin);
}

.hero-bento__image--sm {
    min-height: 220px;
}

/* ── Sub-Hero Row (RTL) — BBC Pakistan Style ── */
.hero-sub {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.hero-sub__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    grid-column: 2;
    grid-row: 1;
    align-items: stretch;
}

/* BBC-style vertical card: colored top-border + fixed image height */
.hero-sub__card {
    background: var(--color-bg);
    border-top: 3px solid var(--color-primary);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-sub__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hero-sub__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image — aspect-ratio for consistent sizing without dead space */
.hero-sub__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.hero-sub__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-sub__card:hover .hero-sub__image img {
    transform: scale(1.04);
}

/* Placeholder: category name on green gradient — visible when no image */
.hero-sub__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-headline);
    letter-spacing: 1px;
}

.hero-sub__content {
    padding: 10px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-sub__tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-sub__title {
    font-family: var(--font-headline);
    font-size: clamp(0.95rem, 1.2vw + 0.35rem, 1.15rem);
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-block-end: 0.2rem;
}

.hero-sub__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted, #666);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.hero-sub__card:hover .hero-sub__title {
    color: var(--color-primary);
}

.hero-sub__time {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    font-family: var(--font-latin);
    display: block;
    margin-top: 5px;
    direction: ltr;
    text-align: right;
}

.top-stories {
    grid-column: 1;
    grid-row: 1;
}

/* Bento responsive — RTL */
@media (max-width: 900px) {
    .hero-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }
    .hero-bento__main { grid-column: 1; grid-row: auto; }
    .hero-bento__image--sm { min-height: 180px; }
    .hero-sub {
        grid-template-columns: 1fr;
    }
    .hero-sub__cards {
        grid-template-columns: 1fr 1fr;
        grid-column: 1;
    }
    .top-stories { grid-column: 1; }
}

@media (max-width: 600px) {
    .hero-sub__cards {
        grid-template-columns: 1fr;
    }
}

/* ── Legacy hero-grid (kept for backward compat) ── */
.hero-grid {
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 0;
    align-items: start;
}

/* Main hero story: overlay text on image */
.hero-story { position: relative; }

.hero-story__link {
    display: block;
    position: relative;
    height: auto;
}

.hero-story__image {
    position: relative;
    margin-bottom: 0;
    border-radius: 0;
    height: 480px;
    overflow: hidden;
    contain: layout;
}

.hero-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.hero-story__link:hover .hero-story__image img { transform: scale(1.04); }

/* Gradient overlay */
.hero-story__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-hero-overlay);
    pointer-events: none;
    z-index: 1;
}

/* Text on top of image — RTL aligned */
.hero-story__content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 2;
    padding: var(--spacing-3xl) var(--spacing-xl) var(--spacing-xl);
    color: var(--color-white);
    text-align: right;
}

.hero-story__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 2px;
    font-family: var(--font-primary);
}

.hero-story__tag {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.hero-story__title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.75rem);
    font-weight: 800;
    line-height: 2.0;
    color: var(--color-white) !important;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-story__excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-story__date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-family: var(--font-latin);
}

/* Hero placeholder */
.hero-story__image--placeholder {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%) !important;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-story__image--placeholder::before {
    content: 'پاکش نیوز';
    font-family: var(--font-headline);
    font-size: clamp(1.4rem, 5vw, 3.5rem);
    font-weight: 900;
    color: rgba(255,255,255,0.07);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.hero-story__image--placeholder::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--color-primary);
}

/* ── Top Stories Sidebar ── */
.top-stories {
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.top-stories__header { margin-bottom: var(--spacing-md); }

.top-stories .section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.top-story-card {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    transition: background 0.15s;
}

.top-story-card:last-child { border-bottom: none; }
.top-story-card:hover { background: rgba(0,0,0,0.03); }

.top-story-card__link {
    display: grid;
    grid-template-columns: 28px 68px 1fr;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.top-story-card__rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-latin);
    line-height: 1;
    width: 28px;
    text-align: center;
}

.top-story-card__image-wrap { flex-shrink: 0; }

.top-story-card__image {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--color-bg-alt);
}

.top-story-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-story-card__image--no-img {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #003D2E)) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.top-story-card__cat-icon {
    color: rgba(255,255,255,0.85);
    font-size: 0.55rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

.top-story-card__content { min-width: 0; flex: 1; }

.top-story-card__tag {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-story-card__title {
    font-family: var(--font-headline);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 2.0;
    color: var(--color-text);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-story-card:hover .top-story-card__title { color: var(--color-primary); }

.top-story-card__date {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
    font-family: var(--font-latin);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-family: var(--font-headline);
    font-size: clamp(1.15rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 800;
    color: var(--color-text);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
}

.section-title__icon { font-size: 1.1rem; }

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.category-section:nth-child(even) { background: var(--color-bg-alt); }

.category-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

.section-title__more {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
}

.section-title__more:hover { text-decoration: underline; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

/* Featured card spans full width on 2-col grid */
@media (min-width: 768px) {
    .category-grid .card--featured {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-grid .card--featured {
        grid-column: span 1;
    }
}

.category-grid .card:empty { display: none; }
.category-section .category-grid:empty { display: none; }

/* Category color-coded borders */
.category-section[data-cat="pakistan"] .section-title::after { background: var(--cat-pakistan); }
.category-section[data-cat="world"] .section-title::after { background: var(--cat-world); }
.category-section[data-cat="business"] .section-title::after { background: var(--cat-business); }
.category-section[data-cat="technology"] .section-title::after { background: var(--cat-technology); }
.category-section[data-cat="sports"] .section-title::after { background: var(--cat-sports); }
.category-section[data-cat="entertainment"] .section-title::after { background: var(--cat-entertainment); }
.category-section[data-cat="health"] .section-title::after { background: var(--cat-health); }

/* ============================================================
   CARDS — RTL
   ============================================================ */
.card {
    background: var(--color-bg);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-bottom-color: transparent;
    z-index: 1;
    position: relative;
}

.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__image {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-primary-dark, #003D2E);
    position: relative;
    min-height: 160px;
    contain: layout;
}

.card--featured .card__image { min-height: 260px; }

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card--featured .card__image img { height: 100%; min-height: 300px; }
.card:hover .card__image img { transform: scale(1.04); }

.card__content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.card__title {
    font-family: var(--font-headline);
    font-size: clamp(0.95rem, 1.5vw + 0.25rem, 1.15rem);
    font-weight: 700;
    line-height: 2.0;
    color: var(--color-text);
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card--featured .card__title { font-size: clamp(1.15rem, 2vw + 0.25rem, 1.5rem); }
.card__link:hover .card__title { color: var(--color-primary); }

.card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    flex: 1;
}

.card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: auto;
    font-family: var(--font-latin);
}

/* Card image placeholder */
.card__image--placeholder {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.card__image--placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 24px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 24px);
    pointer-events: none;
}

.card__image--placeholder::after {
    content: attr(data-cat);
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    z-index: 1;
}

/* Per-category colours */
.card__image--placeholder[data-cat="pakistan"] { background: linear-gradient(135deg, #b71c1c 0%, #6a1010 100%); }
.card__image--placeholder[data-cat="world"] { background: linear-gradient(135deg, #1565c0 0%, #0d3470 100%); }
.card__image--placeholder[data-cat="business"] { background: linear-gradient(135deg, #1b5e20 0%, #0a2f0f 100%); }
.card__image--placeholder[data-cat="technology"] { background: linear-gradient(135deg, #6a1b9a 0%, #301045 100%); }
.card__image--placeholder[data-cat="sports"] { background: linear-gradient(135deg, #e65100 0%, #7f2900 100%); }
.card__image--placeholder[data-cat="entertainment"] { background: linear-gradient(135deg, #ad1457 0%, #5d0b2f 100%); }
.card__image--placeholder[data-cat="health"] { background: linear-gradient(135deg, #00695c 0%, #003330 100%); }

/* No-image card fallback */
.card:not(:has(.card__image)) .card__content {
    border-right: 3px solid var(--color-primary);
    padding-right: var(--spacing-md);
}

/* ============================================================
   POSTS GRID (Tag/Author pages)
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* ============================================================
   TRENDING / MOST READ SECTION
   ============================================================ */
.trending-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.trending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.trending-column .section-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: var(--spacing-md);
}

.trending-list { list-style: none; padding: 0; margin: 0; }

.trending-item a {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: start;
    text-decoration: none;
}

.trending-item:hover a { color: var(--color-primary); }

.trending-item__rank {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-latin);
    line-height: 1.1;
}

.trending-item__time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(0,90,67,0.08);
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.8;
    font-family: var(--font-latin);
}

.trending-item__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text);
}

.trending-item:hover .trending-item__title { color: var(--color-primary); }

/* ============================================================
   POST / ARTICLE PAGE — RTL
   ============================================================ */
.post-full { max-width: 100%; }

/* Post Header — dark background editorial style */
.post-header {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-bottom: 0;
}

.post-header .container--narrow { max-width: 860px; }

.post-header__tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: var(--spacing-md);
    text-decoration: none;
}

.post-header__tag:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.post-header__title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.75rem);
    font-weight: 800;
    line-height: 2.0;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
}

.post-header__excerpt {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    border-right: 3px solid var(--color-primary);
    padding-right: var(--spacing-md);
}

.post-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: var(--spacing-md);
}

.post-header__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.post-header__author-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.post-header__author a { font-weight: 600; color: rgba(255,255,255,0.9); }
.post-header__date { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-family: var(--font-latin); }
.post-header__reading-time { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: var(--spacing-md);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-white) !important;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
}

.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter { background: #000000; }
.share-btn--whatsapp { background: #25d366; }

/* Featured Image */
.post-image { margin: 0; line-height: 0; }
.post-image .container { max-width: 100%; padding: 0; }

.post-image img {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-image figcaption {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding: 8px var(--spacing-md);
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

/* Post Content — RTL editorial reading */
.post-content { padding: var(--spacing-3xl) 0; }
.post-content .container--narrow { max-width: 740px; }

.post-content p {
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--color-text);
    margin: 0 0 1.5em;
    font-family: var(--font-primary);
}

.post-content h2 {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 2.0;
    color: var(--color-text);
    margin: 2.5em 0 0.75em;
    padding-top: 0;
    border-top: 0;
}

.post-content h3 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 2.0;
    color: var(--color-text);
    margin: 2em 0 0.5em;
}

.post-content blockquote {
    border-right: 4px solid var(--color-primary);
    border-left: none;
    margin: 2em 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 2;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-content a:hover { color: var(--color-primary); }
.post-content strong { font-weight: 700; color: var(--color-text); }

.post-content ul, .post-content ol {
    margin: 1em 0 1.5em;
    padding-right: 2em;
    padding-left: 0;
    font-size: 1.05rem;
    line-height: 2;
}

.post-content li { margin-bottom: 0.5em; }

.post-content img {
    border-radius: var(--border-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    margin: 1.5em auto;
}

.post-content pre {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    direction: ltr;
    text-align: left;
}

.post-content code {
    font-family: var(--font-mono);
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    direction: ltr;
}

.post-content pre code { background: transparent; padding: 0; }

/* Tags */
.post-tags {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all 0.15s;
}

.tag-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Related Posts */
.related-posts {
    background: var(--color-bg-alt);
    padding: var(--spacing-3xl) 0;
    border-top: 3px solid var(--color-primary);
}

.related-posts .section-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.related-posts .card {
    background: var(--color-bg);
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

/* ============================================================
   TAG / AUTHOR PAGE HEADERS
   ============================================================ */
.tag-header, .author-header {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    text-align: center;
}

.tag-header__title, .author-header__name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.tag-header__description, .author-header__bio {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto var(--spacing-sm);
}

.tag-header__count, .author-header__count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.author-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    text-align: right;
    justify-content: center;
}

.author-header__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-header__location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* ============================================================
   PAGE
   ============================================================ */
.page-full { padding: var(--spacing-2xl) 0; }

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xl);
}

.page-content { font-size: 1.05rem; line-height: 2; }
.page-content p { margin-bottom: var(--spacing-md); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-3xl) 0;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.15s;
}

.pagination__link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.pagination__count, .pagination__info {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 3px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-column__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

.footer-column__text {
    font-size: 0.9rem;
    color: #bbbbbb;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.footer-social { display: flex; gap: var(--spacing-md); }
.footer-social__link { color: #bbbbbb; transition: color var(--transition); }
.footer-social__link:hover { color: var(--color-primary); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--spacing-sm); }
.footer-links a { color: #bbbbbb; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-white); }

/* Footer Newsletter */
.footer-newsletter { display: flex; gap: var(--spacing-sm); }

.footer-newsletter__input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #444;
    background: #333;
    color: var(--color-white);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    direction: rtl;
}

.footer-newsletter__input::placeholder { color: #888; }

.footer-newsletter__btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.footer-newsletter__btn:hover { background: var(--color-primary-dark); }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a { color: var(--color-primary); }
.footer-bottom a[href*="pakish.net"] { font-weight: 700; text-decoration: none; transition: opacity 0.2s; }
.footer-bottom a[href*="pakish.net"]:hover { opacity: 0.75; text-decoration: underline; }

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }

    .top-stories {
        border-top: 1px solid var(--color-border);
        padding-top: var(--spacing-lg);
    }

    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .post-header__title { font-size: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.active { display: block; }
    .main-nav__list { flex-direction: column; }
    .main-nav__link { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

    .hero-story__image { height: 280px; }
    .hero-story__title { font-size: 1.5rem; }
    .hero-story__excerpt { display: none; }

    .top-stories { background: var(--color-bg); padding: var(--spacing-md) 0; }
    .trending-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }

    .post-header__title { font-size: 1.75rem; }
    .post-content p { font-size: 1rem; }
    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
    .post-content h2 { font-size: 1.3rem; }

    .share-buttons { gap: 6px; }
    .share-btn { padding: 6px 10px; font-size: 0.78rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-overlay__input { font-size: 1.2rem; }
    .lang-switcher { display: flex; }
}

@media (max-width: 600px) {
    .top-stories { grid-template-columns: 1fr; }
    .top-story-card__link { grid-template-columns: 24px 56px 1fr; gap: 6px; }
    .top-story-card__rank { font-size: 1.1rem; }
    .top-story-card__image { width: 56px; height: 56px; }
    .trending-grid { grid-template-columns: 1fr; gap: var(--spacing-xl); }
    .hero-story__image--placeholder { height: 240px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container { padding: 0 var(--spacing-sm); }
    .hero-story__title { font-size: 1.15rem; }
    .card__image img { height: 160px; }
    .post-header__title { font-size: 1.4rem; }
    .hero-story__image { height: 220px; }
    .post-header { padding: var(--spacing-xl) 0 var(--spacing-lg); }
    .related-posts__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Broken Image Fallback */
img[src=""], img:not([src]), img[src="undefined"] { display: none; }
.card__image, .hero-story__image, .top-story-card__image, .post-image { background: var(--color-bg-alt); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header, .breaking-ticker, .site-footer,
    .share-buttons, .related-posts, .pagination { display: none !important; }
    .post-content { font-size: 12pt; }
}

/* ============================================================
   URDU NASTALIQ TITLE OVERLAP PREVENTION — Global Safety Net
   Noto Nastaliq Urdu has very tall ascenders/descenders.
   All headline elements must have at least line-height: 2.0
   to prevent title text from overlapping adjacent lines.
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.hero-story__title,
.card__title,
.card--featured .card__title,
.top-story-card__title,
.post-header__title,
.section-title,
.tag-header__title,
.author-header__name,
.page-title,
.trending-item__title {
    line-height: 2.0;
}

/* ============================================================
   BBC URDU STYLE ENHANCEMENTS
   Aligns design with BBC Urdu homepage layout
   ============================================================ */

/* Hero section top accent — BBC-style red bar above the hero */
.hero-section {
    border-top: 3px solid var(--color-primary);
}

/* Top stories sidebar: more compact for BBC-style height matching */
.top-story-card {
    padding: 8px 0;
}

.top-story-card__link {
    grid-template-columns: 24px 56px 1fr;
    gap: 8px;
}

.top-story-card__image {
    width: 56px;
    height: 56px;
}

.top-story-card__rank {
    font-size: 1.2rem;
    width: 24px;
}

/* BBC-style: add a thin separator between the hero section and categories */
.category-section:first-of-type {
    border-top: none;
}

/* Category section: add red accent to the section header — BBC style */
.category-section__header {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

/* Trending section: RTL column order — most-read on right, latest on left */
.trending-grid {
    direction: rtl;
}

/* Featured card in grid: span from right (correct for RTL) */
.category-grid {
    direction: rtl;
}

/* Card content text alignment should follow RTL */
.card__content {
    text-align: right;
}

/* Trending items RTL layout */
.trending-item a {
    direction: rtl;
    grid-template-columns: 1fr 32px;
}

.trending-item__rank {
    order: 2;
    text-align: left;
}

.trending-item__title {
    order: 1;
}

.trending-item__time {
    order: 2;
    text-align: left;
}

/* ── Medium screens (tablet landscape): hero stacks to single column ── */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .top-stories {
        border-top: 2px solid var(--color-border);
        padding-top: var(--spacing-lg);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 var(--spacing-lg);
    }

    .top-stories__header {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .top-stories {
        grid-template-columns: 1fr;
    }
}

/* ── Related Coverage Section ── */
.related-coverage {
    margin-block-start: var(--spacing-lg, 1.5rem);
    padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
    border-radius: 8px;
    background: #f8f9fa;
    border-inline-start: 4px solid var(--color-primary, #005A43);
}

.related-coverage h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-block-end: 0.75rem;
    color: var(--color-heading, #1a1a1a);
}

.related-coverage ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-coverage li {
    padding-block: 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.related-coverage li:last-child {
    border-bottom: none;
}

.related-coverage a {
    color: var(--color-primary, #005A43);
    text-decoration: none;
    font-weight: 500;
}

.related-coverage a:hover {
    text-decoration: underline;
}

.internal-link-context {
    font-style: italic;
    color: var(--color-text-secondary, #555);
}

.at-a-glance {
    background: #f0f7f4;
    border-inline-start: 4px solid var(--color-primary, #005A43);
    padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
    margin-block: var(--spacing-md, 1rem);
    border-radius: 8px;
}

.at-a-glance li {
    padding-block: 0.25rem;
}

/* ── Social Media Embeds (Twitter/X, YouTube) ── */
.social-embed {
    margin-block: var(--spacing-lg, 1.5rem);
    border-radius: 12px;
    overflow: hidden;
    max-inline-size: 650px;
    margin-inline: auto;
}

.social-embed--youtube {
    background: #000;
    border-radius: 12px;
}

.social-embed--youtube .yt-embed-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.social-embed--twitter {
    display: flex;
    justify-content: center;
}

.social-embed--twitter .twitter-tweet {
    margin-inline: auto !important;
}

.dark-mode .social-embed--youtube {
    background: #111;
}

/* ── FAQ Section — Interactive Accordion (Google FAQ Rich Snippet Style) ── */
.article-faqs {
    margin-block-start: var(--spacing-xl, 2.5rem);
    padding: var(--spacing-lg, 1.5rem);
    border-radius: 12px;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border: 1px solid var(--color-border, #e0e0e0);
}

.article-faqs h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-block-end: var(--spacing-md, 1.2rem);
    color: var(--color-text, #1a1a2e);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-faqs h2::before {
    content: '\2753';
    font-size: 1.3rem;
}

.faq-item {
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 10px;
    margin-block-end: 0.6rem;
    overflow: hidden;
    background: var(--color-bg, #fff);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:last-child {
    margin-block-end: 0;
}

.faq-item[open] {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-color: var(--color-primary, #006E4E);
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-bg, #fff);
    color: var(--color-text, #1a1a2e);
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question:hover {
    background: var(--color-bg-secondary, #f8f8f8);
}

.faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 0.6rem;
    height: 0.6rem;
    margin-inline-start: auto;
    border-inline-end: 2.5px solid var(--color-primary, #006E4E);
    border-block-end: 2.5px solid var(--color-primary, #006E4E);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.faq-item[open] > .faq-question::after {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    line-height: 1;
}

.faq-answer {
    padding: 0 1.25rem 1.1rem 1.25rem;
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--color-text-secondary, #444);
    border-block-start: 1px solid var(--color-border, #eee);
    animation: faqSlideDown 0.3s ease;
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    margin: 0.75rem 0 0;
}

.faq-answer p:first-child {
    margin-block-start: 0.85rem;
}

.faq-num { color: var(--color-primary, #006E4E); font-weight: 800; flex-shrink: 0; }
.faq-a-label { color: var(--color-primary, #006E4E); font-weight: 700; flex-shrink: 0; }

@media (prefers-color-scheme: dark) {
    .article-faqs,
    .faq-item,
    .faq-question,
    .faq-answer {
        background: var(--color-bg) !important;
        color: var(--color-text) !important;
        border-color: var(--color-border) !important;
    }
}

/* ── Pakish AI Chat Sidebar & Bottom Chatbar ── */

/* Overlay behind sidebar */
.pakish-chat__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
body.pakish-chat-open .pakish-chat__overlay {
    opacity: 1;
    pointer-events: auto;
}

.pakish-chat__toggle {
    position: fixed;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary, #006E4E);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
    gap: 2px;
    z-index: 9000;
}
.pakish-chat__toggle-label { font-size: 9px; font-weight: 700; letter-spacing: 0.03em; line-height: 1; }
.pakish-chat__toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.32); }
body.pakish-chat-open .pakish-chat__toggle { opacity: 0; pointer-events: none; }

.pakish-chat-sidebar__panel {
    position: fixed; top: 0; inset-inline-end: 0; width: 400px; height: 100vh;
    background: #fff; box-shadow: -4px 0 30px rgba(0,0,0,0.12); display: flex;
    flex-direction: column; transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 9999; overflow: hidden;
}
[dir="rtl"] .pakish-chat-sidebar__panel { box-shadow: 4px 0 30px rgba(0,0,0,0.12); transform: translateX(-110%); }
body.pakish-chat-open .pakish-chat-sidebar__panel { transform: translateX(0) !important; }
body.pakish-chat-open .post-full, body.pakish-chat-open .related-posts, body.pakish-chat-open .article-chatbar { transition: margin-inline-end 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-inline-end: 400px; }

.pakish-chat-sidebar__header { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; background: var(--color-primary, #006E4E); color: #fff; flex-shrink: 0; }
.pakish-chat-sidebar__title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.pakish-chat-sidebar__close { background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0 0.2rem; opacity: 0.85; }
.pakish-chat-sidebar__close:hover { opacity: 1; }

.pakish-chat-sidebar__greeting { padding: 0.85rem 1.25rem; background: #f8f8f8; border-block-end: 1px solid #e8e8e8; flex-shrink: 0; }
.pakish-chat-sidebar__greeting p, .pakish-chat-sidebar__greeting-text { margin: 0; font-size: 0.88rem; color: #444; line-height: 1.5; }

.pakish-chat-sidebar__faqs { padding: 0.65rem 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; border-block-end: 1px solid #ebebeb; flex-shrink: 0; max-height: 220px; overflow-y: auto; }
.pakish-chat__faq-header { font-size: 0.7rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.06em; margin-block-end: 0.2rem; }
.pakish-chat__faq-btn { background: #fff; border: 1px solid #e0e0e0; border-radius: 20px; padding: 0.45rem 0.9rem; font-size: 0.82rem; cursor: pointer; text-align: start; line-height: 1.35; color: #333; transition: background 0.12s, border-color 0.12s, color 0.12s; font-family: inherit; }
.pakish-chat__faq-btn:hover { background: var(--color-primary, #006E4E); border-color: var(--color-primary, #006E4E); color: #fff; }

.pakish-chat-sidebar__messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pakish-chat__msg { max-width: 88%; padding: 0.6rem 0.9rem; border-radius: 14px; font-size: 0.875rem; line-height: 1.5; word-break: break-word; }
.pakish-chat__msg--bot { align-self: flex-start; background: #f0f0f0; color: #222; border-bottom-left-radius: 4px; }
.pakish-chat__msg--user { align-self: flex-end; background: var(--color-primary, #006E4E); color: #fff; border-bottom-right-radius: 4px; }
.pakish-chat__msg--error { color: #c0392b; background: #fdf2f2; font-size: 0.82rem; }
[dir="rtl"] .pakish-chat__msg--bot { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
[dir="rtl"] .pakish-chat__msg--user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }

.pakish-chat-sidebar__input-row { display: flex; border-block-start: 1px solid #e0e0e0; flex-shrink: 0; }
.pakish-chat-sidebar__input { flex: 1; border: none; padding: 0.85rem 1rem; font-size: 0.9rem; outline: none; font-family: inherit; min-width: 0; background: transparent; }
.pakish-chat-sidebar__send { background: var(--color-primary, #006E4E); border: none; color: #fff; padding: 0 1rem; cursor: pointer; display: flex; align-items: center; flex-shrink: 0; }
.pakish-chat-sidebar__send:hover { opacity: 0.85; }
.pakish-chat-sidebar__footer { text-align: center; padding: 0.35rem; font-size: 0.72rem; color: #999; border-block-start: 1px solid #f0f0f0; flex-shrink: 0; }

/* ── Article-End Chatbar (Gemini-style) ── */
.article-chatbar { background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); border: 1.5px solid #e0e0e0; border-radius: 16px; margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; box-shadow: 0 2px 16px rgba(0,0,0,0.06); transition: margin-inline-end 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.article-chatbar__header { display: flex; align-items: center; margin-block-end: 0.5rem; }
.article-chatbar__logo { display: flex; align-items: center; gap: 0.45rem; color: var(--color-primary, #006E4E); }
.article-chatbar__logo svg { width: 22px; height: 22px; flex: 0 0 22px; display: block; }
.article-chatbar__brand { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em; }
.article-chatbar__prompt { display: flex; align-items: flex-start; gap: 0.5rem; color: #333; font-size: 0.95rem; font-weight: 500; line-height: 1.45; flex-wrap: wrap; margin-block-end: 0.75rem; }
.article-chatbar__greeting { display: flex; align-items: center; }
.article-chatbar__greeting svg { flex-shrink: 0; color: var(--color-primary, #006E4E); }
.article-chatbar__faqs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-end: 0.75rem; }
.article-chatbar__faqs:empty { display: none; }
.article-chatbar__faqs .pakish-chat__faq-header { width: 100%; }
.article-chatbar__faqs .pakish-chat__faq-btn { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
.article-chatbar__thread { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; margin-block-end: 0.75rem; padding: 0.5rem; background: #fafafa; border-radius: 10px; }
.article-chatbar__form { display: flex; border: 2px solid #e0e0e0; border-radius: 50px; overflow: hidden; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; margin-block-end: 0.6rem; }
.article-chatbar__form:focus-within { border-color: var(--color-primary, #006E4E); box-shadow: 0 0 0 3px rgba(0,110,78,0.08); }
.article-chatbar__input { flex: 1; border: none; padding: 0.7rem 1.1rem; font-size: 0.92rem; outline: none; font-family: inherit; background: transparent; min-width: 0; }
.article-chatbar__btn { background: var(--color-primary, #006E4E); border: none; color: #fff; padding: 0.5rem 1.25rem; cursor: pointer; font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; font-family: inherit; white-space: nowrap; flex-shrink: 0; border-radius: 0 48px 48px 0; transition: opacity 0.15s; }
[dir="rtl"] .article-chatbar__btn svg { width: 18px; height: 18px; display: block; }
[dir="rtl"] .article-chatbar__btn { border-radius: 48px 0 0 48px; }
.article-chatbar__btn:hover { opacity: 0.85; }
.article-chatbar__disclaimer { margin: 0; font-size: 0.73rem; color: #999; line-height: 1.45; }

/* ── Responsive: Chat sidebar + chatbar ── */
@media (max-width: 768px) {
    .pakish-chat-sidebar__panel { width: 100%; height: 82vh; top: auto; bottom: 0; transform: translateY(110%); border-radius: 16px 16px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
    [dir="rtl"] .pakish-chat-sidebar__panel { transform: translateY(110%); }
    body.pakish-chat-open .pakish-chat-sidebar__panel { transform: translateY(0) !important; }
    body.pakish-chat-open .post-full, body.pakish-chat-open .related-posts, body.pakish-chat-open .article-chatbar { margin-inline-end: 0; }
}
@media (max-width: 600px) {
    .article-chatbar__form { flex-direction: column; border-radius: 12px; }
    .article-chatbar__btn { border-radius: 0 0 10px 10px; justify-content: center; padding: 0.65rem; }
    [dir="rtl"] .article-chatbar__btn { border-radius: 0 0 10px 10px; }
}

/* ── "For You" Personalized Section ── */
.for-you-section {
    padding-block: var(--spacing-lg, 1.5rem);
    background: var(--color-bg-secondary, #f8f8f8);
    border-block-end: 2px solid var(--color-border, #e0e0e0);
}

.for-you-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md, 1rem);
}

/* ── Post Feature Image Standardization (stable override) ── */
.post-full .post-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.post-full .post-image img {
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
    height: min(560px, 68vh);
    min-height: 240px;
}

/* ── Author / Byline Accessibility ── */
.post-header__author,
.post-header__author a,
.post-header__author-role {
    color: rgba(255,255,255,0.98) !important;
}

.post-header__author-image {
    border-color: rgba(255,255,255,0.65);
}

.post-header__author a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
}

.post-header__author-role {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ── Article Audio Player (modernized) ── */
.article-audio {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    margin-block-end: var(--spacing-lg, 1.5rem);
    background: var(--color-bg-secondary, #f8f8f8);
    border-radius: 12px;
    border: 1px solid var(--color-border, #e0e0e0);
}

.article-audio__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 190px;
}

.article-audio__logo {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 90, 67, 0.08);
}

.article-audio__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.78;
    display: block;
}

.article-audio__badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary, #005a43);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.article-audio__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-audio__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text, #1a1a2e);
    line-height: 1.2;
}

.article-audio__hint {
    font-size: 0.78rem;
    color: var(--color-text-light, #666);
    line-height: 1.35;
}

.article-audio__player {
    width: 100%;
    min-width: 0;
    height: 38px;
}

.article-audio__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.article-audio__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--color-primary, #005a43);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.article-audio__play:hover,
.article-audio__play:focus-visible {
    background: #0b7a58;
}

.article-audio__download {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary, #005a43);
    text-decoration: none;
    white-space: nowrap;
}

.article-audio__download:hover,
.article-audio__download:focus-visible {
    text-decoration: underline;
}

@media (max-width: 740px) {
    .article-audio {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .article-audio__meta {
        min-width: 0;
    }

    .article-audio__download {
        justify-self: start;
    }

    .article-audio__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ── News Shorts (vertical snap-scroll) ── */
.shorts-page {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.shorts-container {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.short-card {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.short-card__overlay {
    width: 100%;
    padding: 2rem 1.5rem 3rem;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 50%);
    color: #fff;
}

.short-card__tag {
    display: inline-block;
    background: var(--color-primary, #bb1919);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.short-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.4rem 0;
}

.short-card__title a {
    color: #fff;
    text-decoration: none;
}

.short-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0.5rem 0;
}

.short-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    opacity: 0.8;
    margin-top: 0.75rem;
}

.short-card__read-more {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.shorts-nav {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
}

.shorts-nav__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.shorts-nav__btn:hover {
    background: rgba(255,255,255,0.4);
}

.shorts-nav__counter {
    color: #fff;
    font-size: 0.72rem;
    opacity: 0.7;
}

/* ── Smart Engagement Layer ── */
.share-btn--bookmark {
    background: transparent;
    border: 1px solid var(--color-border, #e0e0e0);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #666);
    transition: all 0.15s;
}

.share-btn--bookmark:hover,
.share-btn--bookmark.bookmarked {
    background: var(--color-primary, #bb1919);
    color: #fff;
    border-color: var(--color-primary, #bb1919);
}

.share-btn--bookmark.bookmarked .bookmark-label::after {
    content: ' ✓';
}

.post-header__engagement {
    margin-top: 0.5rem;
}

.reader-count {
    font-size: 0.78rem;
    color: var(--color-text-secondary, #999);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.reader-count::before {
    content: '●';
    color: #22c55e;
    font-size: 0.5rem;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.reading-streak {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 152, 0, 0.12);
    color: #e65100;
    margin-inline-end: 0.5rem;
}

/* ══════════════════════════════════════════════════
   LIVE PAGE — BBC-style reverse-chronological feed (UR)
   ══════════════════════════════════════════════════ */

.live-page { padding-block: 0 3rem; min-height: 80vh; }
.live-header {
    background: #006E4E;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.live-header__inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.live-header__text { flex: 1; }
.live-header__title { font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 700; margin: 0; color: #fff; }
.live-header__desc { font-size: 0.85rem; opacity: 0.85; margin: 0.2rem 0 0; }
.live-header__meta { font-size: 0.8rem; opacity: 0.8; }
.live-header__updated { white-space: nowrap; }
.live-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #fff; color: #006E4E;
    font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.live-badge__dot {
    width: 8px; height: 8px; background: #006E4E; border-radius: 50%;
    animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.live-new-banner {
    display: flex; justify-content: center; padding: 0.6rem 1rem;
    background: #fff3cd; border-block-end: 2px solid #ffc107;
    position: sticky; top: 56px; z-index: 90;
}
.live-new-banner__btn {
    background: #006E4E; color: #fff; border: none; border-radius: 20px;
    padding: 0.45rem 1.4rem; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.live-new-banner__btn:hover { background: #004d36; }
.live-layout {
    display: grid; grid-template-columns: 1fr 300px; gap: 2rem;
    padding-block-start: 1.5rem; align-items: start;
}
@media (max-width: 900px) { .live-layout { grid-template-columns: 1fr; } .live-sidebar { order: -1; } }
.live-feed { display: flex; flex-direction: column; }
.live-item {
    display: grid; grid-template-columns: 70px 1fr auto; gap: 0 1rem;
    padding: 1.1rem 0; border-block-end: 1px solid #ebebeb; align-items: start;
}
.live-item--new { animation: live-flash 3s ease-out; }
@keyframes live-flash { 0%{background:#fff8e1} 100%{background:transparent} }
.live-item__time-col { display: flex; flex-direction: column; align-items: center; padding-block-start: 0.15rem; }
.live-item__time { font-size: 0.8rem; font-weight: 700; color: #006E4E; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-item__timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; margin-block: 0.4rem; flex-shrink: 0; }
.live-item__timeline-dot--latest { background: #006E4E; box-shadow: 0 0 0 3px #b2dfdb; animation: live-pulse 1.4s ease-in-out infinite; }
.live-item__timeline-line { width: 2px; flex: 1; min-height: 20px; background: #ebebeb; }
.live-item__content { min-width: 0; }
.live-item__cat { display: inline-block; font-size: 0.7rem; font-weight: 700; color: #006E4E; margin-block-end: 0.3rem; text-decoration: none; }
.live-item__cat:hover { text-decoration: underline; }
.live-item__title { font-size: clamp(0.95rem, 2vw, 1.1rem); font-weight: 700; line-height: 1.4; margin: 0 0 0.4rem; }
.live-item__title a { color: inherit; text-decoration: none; }
.live-item__title a:hover { color: #006E4E; }
.live-item__excerpt { font-size: 0.875rem; color: #555; line-height: 1.6; margin: 0 0 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-item__footer { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: #888; }
.live-item__read-more { color: #006E4E; text-decoration: none; font-weight: 600; }
.live-item__read-more:hover { text-decoration: underline; }
.live-item__thumb { width: 130px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.live-item__thumb img { width: 100%; height: 82px; object-fit: cover; display: block; border-radius: 6px; }
@media (max-width: 600px) { .live-item { grid-template-columns: 55px 1fr; } .live-item__thumb { display: none; } }
.live-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.live-sidebar__card { background: #f9f9f9; border-radius: 10px; padding: 1rem; border: 1px solid #ebebeb; }
.live-sidebar__heading { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: #006E4E; margin: 0 0 0.75rem; padding-block-end: 0.5rem; border-block-end: 2px solid #006E4E; }
.live-sidebar__item + .live-sidebar__item { margin-block-start: 0.6rem; }
.live-sidebar__link { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; color: inherit; }
.live-sidebar__link:hover .live-sidebar__title { color: #006E4E; }
.live-sidebar__cat { font-size: 0.65rem; font-weight: 700; color: #006E4E; letter-spacing: 0.05em; }
.live-sidebar__title { font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: #222; transition: color 0.2s; }
.live-sidebar__cats { display: flex; flex-direction: column; gap: 0.4rem; }
.live-sidebar__cat-link { display: block; padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.82rem; font-weight: 600; color: #333; text-decoration: none; transition: background 0.2s, color 0.2s; }
.live-sidebar__cat-link:hover { background: #006E4E; color: #fff; }
@media (prefers-color-scheme: dark) {
    .live-item { border-block-end-color: #2a2a2a; }
    .live-item__excerpt { color: #aaa; }
    .live-item__timeline-line { background: #2a2a2a; }
    .live-sidebar__card { background: #1a1a1a; border-color: #2a2a2a; }
    .live-sidebar__title { color: #eee; }
    .live-sidebar__cat-link { color: #ccc; }
    .live-sidebar__cat-link:hover { background: #006E4E; color: #fff; }
    .live-new-banner { background: #2a2700; border-color: #a07800; }
}

/* ── OAuth / AdSense Compliance: App identity + legal links ── */
.app-purpose {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-alt);
    border-block: 1px solid var(--color-border);
}

.app-purpose__card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-right: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    text-align: right;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem 1rem;
    align-items: center;
}

.app-purpose__title {
    font-size: clamp(1.2rem, 1vw + 1rem, 1.55rem);
    line-height: 1.7;
    margin: 0;
}

.app-purpose__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.85;
    margin: 0;
}

.app-purpose__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .app-purpose__card {
        grid-template-columns: 1fr;
    }

    .app-purpose__links {
        justify-content: flex-start;
    }
}

.app-purpose__links a,
.footer-legal__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.app-purpose__links a:hover,
.footer-legal__list a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.footer-legal {
    margin-top: var(--spacing-md);
}

.footer-legal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* ── Hotfix: post body visibility + UR trending layout stability (March 2026) ── */
.post-content,
.post-content .container,
.post-content .container--narrow {
    display: block;
    visibility: visible;
    opacity: 1;
}

.post-header__author-role {
    color: #f8fafc;
    font-weight: 700;
}

.post-image {
    margin: 1rem 0 2rem;
    line-height: normal;
}

.post-image .container {
    max-width: 1120px;
    padding: 0 var(--spacing-md);
}

.post-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.post-image figcaption {
    margin-top: 0.45rem;
    padding: 0;
    background: transparent;
    border: 0;
}

.gold-post-widgets .gold-sidebar--inline {
    max-width: min(100%, 560px);
}

.gold-trending a {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    direction: rtl;
    align-items: flex-start;
    column-gap: 0.7rem;
    row-gap: 0;
}

.gold-trending__index {
    flex: none;
    width: 2rem;
    text-align: center;
    line-height: 1.2;
}

.gold-trending__text {
    flex: none;
    min-width: 0;
    display: block;
    line-height: 1.85;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    unicode-bidi: plaintext;
}

/* Hide legacy GEO quick-answer block on already published posts */
.post-content .geo-answer-block {
    display: none !important;
}

/* Keep first FAQ block only (fallback if legacy content has duplicate FAQ sections) */
.post-content .article-faqs ~ .article-faqs {
    display: none !important;
}

/* ============================================================
   2026 UX CONSISTENCY PATCH — UR
   ============================================================ */
.site-header {
    backdrop-filter: saturate(150%) blur(8px);
}

.header-top {
    padding: 12px 0;
}

.header-top__inner {
    min-height: 56px;
    gap: 12px;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
}

.site-logo__image {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.main-nav__link {
    padding: 10px 14px;
}

.top-stories,
.gold-widget {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
}

.top-story-card__image,
.card__image,
.hero-sub__image,
.post-image img {
    border-radius: 10px;
}

.card,
.top-story-card,
.gold-widget,
.main-nav__link,
.article-audio,
.share-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.card:hover,
.top-story-card:hover,
.gold-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.post-content p,
.card__excerpt,
.hero-sub__excerpt {
    color: #334155;
}

.article-audio {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.article-audio__logo {
    width: 138px;
    min-width: 138px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article-audio__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-audio__badge {
    display: none;
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }

    .site-logo__image {
        height: 38px;
    }

    .article-audio__logo {
        width: 120px;
        min-width: 120px;
        height: 34px;
    }
}

/* ============================================================
   2026 URGENT FORCE OVERRIDES (NO-OVERRIDE MODE)
   ============================================================ */
html[lang="ur"],
html[lang="ur"] body,
body,
body p,
body li,
body .post-content p,
body .card__excerpt,
body .hero-sub__excerpt {
    font-family: var(--font-primary) !important;
    line-height: 1.8 !important;
}

.site-header,
.header-top,
.header-top__inner,
.main-nav {
    overflow: visible !important;
}

.site-main,
.gold-home__layout,
.gold-home__main,
.gold-sidebar,
.top-stories,
.gold-widget,
.post-content,
.post-content .container--narrow {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.gold-sidebar,
.top-stories,
.gold-widget {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.header-top {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.header-top__inner {
    min-height: 52px !important;
    gap: 8px !important;
    align-items: center !important;
}

.site-logo__image {
    height: 40px !important;
}

.main-nav__list {
    align-items: center !important;
}

.main-nav__link {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

/* ============================================================
   2026 POST UI FINE-TUNING — UR (RTL)
   ============================================================ */
:root {
    --post-rhythm-4: 4px;
    --post-rhythm-8: 8px;
    --post-rhythm-16: 16px;
    --post-rhythm-24: 24px;
    --post-rhythm-32: 32px;
}

.post-header__stack {
    display: grid;
    row-gap: var(--post-rhythm-16);
}

.post-header__title,
.post-header__excerpt,
.post-header__meta,
.post-header__share,
.post-header__engagement {
    margin: 0;
}

.post-header__title {
    text-wrap: balance;
}

.post-header__meta {
    gap: var(--post-rhythm-16);
    padding-top: var(--post-rhythm-16);
}

.post-header__meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.share-buttons--post {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--post-rhythm-8);
    padding: var(--post-rhythm-8);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.25);
}

.share-buttons--post .share-btn {
    min-height: 40px;
    padding: var(--post-rhythm-8) 12px;
    justify-content: center;
}

.share-buttons--post .share-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
}

.post-full__featured {
    margin-top: var(--post-rhythm-24);
    margin-bottom: var(--post-rhythm-32);
}

.post-full__content .container--narrow {
    max-width: min(72ch, 100%);
}

.gold-post-widgets--post .container {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    column-gap: var(--post-rhythm-32);
    align-items: start;
}

.gold-post-widgets--post .gold-sidebar--inline {
    grid-column: 1;
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 1024px) {
    .gold-post-widgets--post .container {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .gold-post-widgets--post .gold-sidebar--inline {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .post-header .container--narrow,
    .post-full__featured .container,
    .post-full__content .container--narrow,
    .gold-post-widgets--post .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .post-header__stack {
        row-gap: var(--post-rhythm-8);
    }

    .share-buttons--post {
        padding: var(--post-rhythm-8);
    }

    .share-buttons--post .share-btn {
        flex: 1 1 calc(50% - var(--post-rhythm-8));
    }
}

/* ============================================================
   2026 POST UI FINE-TUNING — SCREENSHOT PASS 2 (UR)
   ============================================================ */
.post-full__featured {
    margin-top: 32px;
    margin-bottom: 40px;
}

.post-header__stack {
    row-gap: 20px;
}

.post-header__meta {
    margin-top: 4px;
}

.post-header__share {
    margin-top: 4px;
}

.share-buttons--post {
    padding: 10px;
}

.share-buttons--post .share-btn {
    line-height: 1.2;
    text-align: center;
}

.post-full__content .container--narrow > :is(h2, h3, h4) {
    scroll-margin-top: 96px;
}

.post-full__content .container--narrow > h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.post-full__content .container--narrow > h3,
.post-full__content .container--narrow > h4 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-full__content .container--narrow > p,
.post-full__content .container--narrow > ul,
.post-full__content .container--narrow > ol,
.post-full__content .container--narrow > blockquote,
.post-full__content .container--narrow > .kg-card,
.post-full__content .container--narrow > figure {
    margin-bottom: 16px;
}

.article-faqs {
    margin-top: 32px;
    padding: 16px;
}

.article-faqs h2 {
    margin: 0 0 12px;
    line-height: 1.45;
}

.faq-item {
    margin-bottom: 8px;
}

.faq-question {
    padding: 12px 16px;
    align-items: flex-start;
}

.faq-answer {
    padding: 0 16px 16px;
}

.faq-answer p + p {
    margin-top: 8px;
}

.gold-post-widgets--post {
    padding-top: 24px;
    padding-bottom: 32px;
}

.gold-post-widgets--post .container {
    column-gap: 40px;
}

@media (max-width: 768px) {
    .post-full__featured {
        margin-top: 24px;
        margin-bottom: 28px;
    }

    .post-header__stack {
        row-gap: 12px;
    }

    .post-full__content .container--narrow > h2 {
        margin-top: 32px;
        margin-bottom: 12px;
    }

    .post-full__content .container--narrow > h3,
    .post-full__content .container--narrow > h4 {
        margin-top: 24px;
        margin-bottom: 10px;
    }
}
