/* ============================================================
   PakishNews Theme — BBC News-Style Layout
   ============================================================ */

/* ── 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;

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

    /* Typography */
    --font-headline: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-primary: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-urdu: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, 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;
}

/* ── 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;
}

/* ── 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 ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skip to main content link (accessibility) */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 700;
    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.92rem;
    line-height: 1.45;
}

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

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

/* ── Urdu/RTL Support ── */
.rtl, .urdu-page, .tag-hash-ur {
    direction: rtl;
    text-align: right;
}

body.urdu-page, body.tag-hash-ur,
.urdu-page .post-content, .tag-hash-ur .post-content,
.urdu-page .card__title, .tag-hash-ur .card__title,
.urdu-page .hero-story__title, .tag-hash-ur .hero-story__title {
    font-family: var(--font-urdu);
    line-height: 2;
}

.urdu-page .main-nav__list, .tag-hash-ur .main-nav__list {
    direction: rtl;
}

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: 36px;
    line-height: 36px;
    font-size: 0.85rem;
    font-weight: 600;
}

.breaking-ticker__inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.breaking-ticker__label {
    background: var(--color-primary-dark);
    padding: 0 var(--spacing-md);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.breaking-ticker__track {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.breaking-ticker__content {
    display: flex;
    gap: var(--spacing-2xl);
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

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

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

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

@keyframes ticker-scroll {
    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;
}

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

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

.site-logo__text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

/* 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;
}

.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: 500;
    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
   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-start;
    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.72rem;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--color-text-light);
    font-weight: 600;
    text-wrap: balance;
}

/* Deprecated: tagline disabled to prevent legacy encoded/broken header strings */
.site-logo__tagline {
    display: none !important;
}

/* Hard-disable any unexpected direct second-line spans under logo link */
.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.25;
    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.35;
    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.4;
}

.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 */
.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.5vw + 0.9rem, 1.95rem);
    letter-spacing: -0.01em;
}

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

@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.88rem;
    }
}

/* 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);
}

.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 styles defined below in v2 section)
   ============================================================ */

/* Top Stories Sidebar — base styles */
.top-stories {
    border-inline-start: 1px solid var(--color-border);
    padding-inline-start: var(--spacing-xl);
}

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

.top-story-card:first-of-type {
    padding-top: 0;
}

.top-story-card__link {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.top-story-card__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}

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

.top-story-card__tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.top-story-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 4px;
}

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

.top-story-card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-size: clamp(1.15rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 800;
    color: var(--color-text);
    padding-bottom: var(--spacing-sm);
    border-bottom: 4px solid var(--color-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.section-title__urdu {
    font-family: var(--font-urdu);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-inline-start: var(--spacing-sm);
}

/* ============================================================
   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-lg);
}

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

/* Prevent empty grid cells from creating gaps */
.category-grid .card:empty {
    display: none;
}

/* Ensure section doesn't show if it has no content */
.category-section .category-grid:empty {
    display: none;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

.card--featured .card__image img {
    height: 100%;
    min-height: 300px;
}

.card:hover .card__image img {
    transform: scale(1.03);
}

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

.card__tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.card__title {
    font-size: clamp(0.95rem, 1.5vw + 0.25rem, 1.15rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.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.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    flex: 1;
}

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

/* ============================================================
   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);
}

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

.trending-list {
    list-style: none;
    counter-reset: trending;
}

.trending-item {
    border-bottom: 1px solid var(--color-border);
}

.trending-item a {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

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

.trending-item__rank {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 36px;
    line-height: 1;
}

.trending-item__time {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
    min-width: 50px;
}

.trending-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================================
   POST / ARTICLE PAGE
   ============================================================ */
.post-header {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.post-header__tag {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2px var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.post-header__title {
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

.post-header__excerpt {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    border-inline-start: 4px solid var(--color-primary);
    padding-inline-start: var(--spacing-md);
}

.post-header__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.post-header__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.post-header__author-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header__author a {
    font-weight: 600;
    color: var(--color-text);
}

.post-header__reading-time {
    color: var(--color-text-muted);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
    transition: opacity var(--transition);
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #000000; }
.share-btn--whatsapp { background: #25D366; }

/* Featured Image */
.post-image {
    margin-bottom: var(--spacing-2xl);
}

.post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-image figcaption {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-sm);
    text-align: center;
    font-style: italic;
}

/* Post Content */
.post-content {
    padding-bottom: var(--spacing-2xl);
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--spacing-2xl) 0 var(--spacing-md);
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

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

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.post-content blockquote {
    border-inline-start: 4px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    background: var(--color-bg-alt);
    font-style: italic;
    font-size: 1.1rem;
}

.post-content ul, .post-content ol {
    margin: var(--spacing-md) 0;
    padding-inline-start: var(--spacing-xl);
}

.post-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

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

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

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

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

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

.tag-link {
    display: inline-block;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

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

/* Related Posts */
.related-posts {
    background: var(--color-bg-alt);
    padding: var(--spacing-2xl) 0;
}

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

/* ============================================================
   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: start;
    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: 1.75;
}

.page-content p {
    margin-bottom: var(--spacing-md);
}

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

.pagination__link {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}

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

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

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

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

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

/* Tablet */
@media (max-width: 1024px) {
    .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);
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

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

    .post-header__title {
        font-size: 1.6rem;
    }

    .post-header__excerpt {
        font-size: 1rem;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .search-overlay__input {
        font-size: 1.2rem;
    }

    .lang-switcher {
        display: flex;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .card__image img {
        height: 160px;
    }

    .post-header__title {
        font-size: 1.4rem;
    }
}

/* ============================================================
   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;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

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

    .post-content {
        font-size: 12pt;
    }
}

/* ============================================================
   WORLD-CLASS DESIGN IMPROVEMENTS v2
   Inspired by: BBC News, Al Jazeera, Dawn.com
   ============================================================ */

/* ── Enhanced Typography (Inter variable font loaded via <link> in default.hbs) ── */
:root {
    --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%);
}

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

.hero-bento__main {
    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-size: clamp(2rem, 5vw, 4rem);
    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);
}

.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;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-bento__title {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    line-height: 1.2;
    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.3;
}

.hero-bento__excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    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);
}

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

/* ── Sub-Hero Row ── */
.hero-sub {
    display: grid;
    grid-template-columns: 2fr 1fr;
    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-lg);
}

.hero-sub__card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.hero-sub__card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.hero-sub__image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.hero-sub__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sub__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-sub__content {
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
}

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

.hero-sub__title {
    font-size: clamp(1rem, 1.4vw + 0.3rem, 1.2rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
    margin-block-end: 0.3rem;
}

.hero-sub__excerpt {
    font-size: 0.88rem;
    color: var(--color-text-secondary, #666);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

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

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

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

/* ── Breaking Ticker Enhancement ── */
.breaking-ticker {
    height: 40px;
    line-height: 40px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0,90,67,0.25);
}

/* FIX: prevent "BREAKING" label from shrinking/overlapping ticker text */
.breaking-ticker__label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.35);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;        /* CRITICAL: prevent shrinking */
    white-space: nowrap;   /* CRITICAL: prevent wrapping */
    z-index: 2;
    position: relative;
}

/* Ensure track hides overflow so content doesn't bleed left */
.breaking-ticker__track {
    overflow: hidden;
    flex: 1;
    position: relative;
    min-width: 0;
}

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

/* ── HERO Improvements: Badge + Placeholder ── */
.hero-story__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: var(--color-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 3px 8px;
    border-radius: 2px;
}

/* Hero placeholder when no image available */
.hero-story__image--placeholder {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a1a40 100%);
    height: 480px;
}

.hero-story__image--placeholder::before {
    content: 'PAKISHNEWS.COM';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.06);
    font-family: var(--font-headline);
    font-size: 3.5rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -1px;
    pointer-events: none;
    z-index: 0;
}

/* ── TOP STORIES: BBC-Style Numbered List ── */

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

/* Reset old card-based top story, use new numbered grid layout */
.top-story-card {
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    transition: background 0.15s;
}

.top-story-card:last-child {
    border-bottom: none;
}

.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-headline);
    line-height: 1;
    flex-shrink: 0;
    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;
}

/* Placeholder when no image */
.top-story-card__image--no-img {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #003D2E));
    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-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    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;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    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.85rem;
    font-weight: 700;
    line-height: 1.3;
    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;
}

/* Image error fallback — hide broken img, show placeholder bg */
.top-story-card__image.img-error img,
.card__image.img-error img {
    display: none;
}

/* Card image placeholder */
.card__image--placeholder {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    position: relative;
    aspect-ratio: 16/8;
}

.card__image--placeholder::after {
    content: attr(data-cat);
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

/* ── PageSpeed: contain layout shifts for images ── */
.card__image,
.hero-story__image {
    contain: layout;
}

/* ── Trending 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__rank {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-headline);
    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;
}

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

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

/* ── Mobile: top stories stacks vertically ── */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .top-stories {
        border-inline-start: none;
        padding-inline-start: 0;
        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;
    }

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


/* ── IMMERSIVE HERO — Text overlay on image (BBC/Al Jazeera style) ── */
.hero-section {
    padding: 0;
    border-bottom: none;
}

.hero-grid {
    grid-template-columns: 3fr 1.2fr;
    gap: 0;
    align-items: stretch;
}

/* 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;
}

.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 floats on top of the image */
.hero-story__content {
    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);
}

.hero-story__tag {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    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.75rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    line-height: 1.15;
    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.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Top Stories Sidebar — stronger visual contrast */
.top-stories {
    border-inline-start: none;
    padding-inline-start: 0;
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-stories .section-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    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:hover {
    background: rgba(0,0,0,0.03);
}

.top-story-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

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

/* ── Enhanced Section Title ── */
.section-title {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 800;
    position: relative;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

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

/* ── Enhanced Article Cards ── */
.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__image {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-primary-dark, #003D2E);
    position: relative;
    min-height: 160px;
}

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

.card:hover .card__image img {
    transform: scale(1.04);
}

.card__content {
    padding: var(--spacing-md);
}

.card__tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.card__title {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 4px 0 8px;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__link:hover .card__title {
    color: var(--color-primary);
}

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

.card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

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

/* ── WORLD-CLASS POST PAGE REDESIGN ── */
.post-full {
    max-width: 100%;
}

/* Post Header — dramatic, editorial */
.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.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    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.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.post-header__excerpt {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    border-inline-start: 3px solid var(--color-primary);
    padding-inline-start: 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);
}

.post-header__date {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.post-header__reading-time {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* Share buttons in dark header */
.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: full-width, cinematic */
.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 — editorial reading experience */
.post-content {
    padding: var(--spacing-3xl) 0;
}

.post-content .container--narrow {
    max-width: 740px;
}

/* Ghost Koenig content styles */
.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    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.7rem;
    font-weight: 800;
    line-height: 1.2;
    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.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 2em 0 0.5em;
}

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

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    font-family: Georgia, serif;
    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-inline-start: 2em;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

/* First paragraph drop cap */
.post-content > p:first-of-type::first-letter {
    font-family: var(--font-headline);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 0.8;
    float: left;
    margin-right: 8px;
    margin-top: 6px;
    color: var(--color-primary);
}

/* Tag Cloud */
.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.82rem;
    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 Enhancement */
.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);
}

/* ── Category Section Improvements ── */
.category-section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

/* Tighter section header to eliminate dead space */
.category-section__header {
    margin-bottom: var(--spacing-md);
}

/* Denser category grid gaps */
.category-grid {
    gap: var(--spacing-md);
}

/* Category color-coded top 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); }

/* ── Header Improvements ── */
.site-header {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-name {
    font-family: var(--font-headline);
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.main-nav__link {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Footer Improvements ── */
.site-footer {
    border-top: 3px solid var(--color-primary);
}

/* ── 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 {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

/* ── Broken Image Graceful 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-primary-dark, #003D2E);
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .post-header__title {
        font-size: 1.75rem;
    }

    .post-content p {
        font-size: 1rem;
    }

    .post-content > p:first-of-type::first-letter {
        font-size: 2.5rem;
    }

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

@media (max-width: 480px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .hero-story__image {
        height: 220px;
    }

    .post-header {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
}

/* ============================================================
   V3 IMPROVEMENTS — Logo · Ticker · Placeholders · PageSpeed
   ============================================================ */

/* ── Site Logo: SVG star + brand text ── */
.site-logo__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-headline, 'Playfair Display', Georgia, serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-primary, #005A43);
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.site-logo__icon {
    color: var(--color-primary, #005A43);
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Breaking Ticker: FULL chain-fix so BREAKING never overlaps ── */
/* Force the whole ticker bar to exactly 40px everywhere */
.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;
}

.breaking-ticker__label {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 0.68rem !important;
    letter-spacing: 2px !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;
}

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

/* ── Card Placeholder: height guarantee even with no img ── */
.card__image {
    min-height: 160px;
}

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

/* ── Category Placeholder Backgrounds (data-cat on the card img div) ── */
/* Each category gets its own brand colour gradient                      */
.card__image--placeholder {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

/* Generic dark fallback */
.card__image--placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Subtle newspaper-grid pattern via CSS */
    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;
}

/* Category label watermark at bottom-left */
.card__image--placeholder::after {
    content: attr(data-cat);
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    z-index: 1;
}

/* ── Per-category colour palette ── */
.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%); }
.card__image--placeholder[data-cat="opinion"]       { background: linear-gradient(135deg, #37474f 0%, #1a2328 100%); }

/* ── Hero Placeholder: show site name watermark & category stripe ── */
.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: 'PAKISHNEWS.COM';
    font-family: var(--font-headline, 'Playfair Display', serif);
    font-size: clamp(1.4rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    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, #005A43);
}

/* ── Top-story placeholder: category-tinted thumbnail ── */
.top-story-card__image--no-img {
    background: linear-gradient(135deg, var(--color-primary, #005A43), rgba(0,0,0,0.6)) !important;
}

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

/* ============================================================
   BBC ENGLISH STYLE ENHANCEMENTS
   Aligns design with BBC News English homepage layout
   ============================================================ */

/* Hero section top accent — BBC red bar above hero content */
.hero-section {
    border-top: 3px solid var(--color-primary);
    padding: 0;
    border-bottom: none;
}

/* Top stories sidebar: more compact cards to match BBC's concise sidebar */
.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;
}

/* Category section header: BBC-style separator line */
.category-section__header {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

/* ── 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 adjustments */
.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;
}

/* Accordion item — uses native <details>/<summary> */
.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, #bb1919);
}

/* Question — <summary> element */
.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);
}

/* Chevron icon — rotates on open */
.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, #bb1919);
    border-block-end: 2.5px solid var(--color-primary, #bb1919);
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

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

/* Question icon (emoji) */
.faq-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Answer panel */
.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;
}

/* Legacy support: old div-based FAQ items still look decent */
.faq-num { color: var(--color-primary, #bb1919); font-weight: 800; flex-shrink: 0; }
.faq-a-label { color: var(--color-primary, #bb1919); font-weight: 700; flex-shrink: 0; }

/* Dark mode support */
@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 on mobile */
.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, #bb1919);
    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;
}

/* Split-screen: push main content laterally when chat opens */
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, #bb1919);
    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, #bb1919);
    border-color: var(--color-primary, #bb1919);
    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, #bb1919);
    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, #bb1919);
    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, #bb1919);
}
.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, #bb1919); }
.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, #bb1919);
    box-shadow: 0 0 0 3px rgba(187,25,25,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, #bb1919);
    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;
}
.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;
}

/* ── Professional Desk Byline ── */
.post-header__author--desk {
    gap: 0;
}

.post-header__author-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    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;
    text-transform: uppercase;
    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;
    right: 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: 'd';
}

.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
   ══════════════════════════════════════════════════ */

.live-page { padding-block: 0 3rem; min-height: 80vh; }

/* Header */
.live-header {
    background: #bb1919;
    color: #fff;
    padding: 1rem 0;
    margin-block-end: 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 */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #bb1919;
    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: #bb1919;
    border-radius: 50%;
    animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* New updates banner */
.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: #bb1919;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.45rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.live-new-banner__btn:hover { background: #880000; }

/* Layout */
.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; }
}

/* Feed items */
.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;
    transition: background 0.4s;
}
.live-item--new {
    animation: live-flash 3s ease-out;
}
@keyframes live-flash {
    0%   { background: #fff8e1; }
    100% { background: transparent; }
}

/* Time column */
.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: #bb1919;
    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: #bb1919;
    box-shadow: 0 0 0 3px #ffd0d0;
    animation: live-pulse 1.4s ease-in-out infinite;
}
.live-item__timeline-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: #ebebeb;
}

/* Content */
.live-item__content { min-width: 0; }
.live-item__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bb1919;
    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.35;
    margin: 0 0 0.4rem;
}
.live-item__title a { color: inherit; text-decoration: none; }
.live-item__title a:hover { color: #bb1919; }
.live-item__excerpt {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    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: #bb1919;
    text-decoration: none;
    font-weight: 600;
}
.live-item__read-more:hover { text-decoration: underline; }

/* Thumbnail */
.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-item__time { font-size: 0.72rem; }
}

/* Sidebar */
.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;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #bb1919;
    margin: 0 0 0.75rem;
    padding-block-end: 0.5rem;
    border-block-end: 2px solid #bb1919;
}
.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: #bb1919; }
.live-sidebar__cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #bb1919;
    letter-spacing: 0.05em;
}
.live-sidebar__title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    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: #bb1919;
    color: #fff;
}

/* Dark mode */
@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: #bb1919; 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-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    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.3;
    margin: 0;
}

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

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

.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 + article layout stability (March 2026) ── */
.post-content,
.post-content .container,
.post-content .container--narrow {
    display: block;
    visibility: visible;
    opacity: 1;
}

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

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

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

/* ── 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__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__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;
    }
}

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

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

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

.gold-trending__text {
    min-width: 0;
    display: block;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 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;
}

@media (max-width: 600px) {
    .app-purpose__links,
    .footer-legal__list {
        justify-content: flex-start;
    }
}

/* ============================================================
   2026 GOLD STANDARD LAYER (EN)
   ============================================================ */
: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;
    text-transform: none;
    letter-spacing: 0;
}

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

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

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

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

.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.5rem, 2.6vw + 1.2rem, 3rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

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

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

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

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

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

.gold-home__main .category-section {
    margin-bottom: 0;
    padding: 0.75rem 0;
    background: var(--gold-bg);
    border-bottom: 1px solid #e2e8f0;
}

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

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

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

.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: 'Image unavailable';
    position: static;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.78);
}

.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: 30px 1fr;
    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;
}

.gold-trending__text {
    color: var(--gold-ink);
    font-size: 0.92rem;
    line-height: 1.5;
    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-sidebar {
        position: static;
    }

    .app-purpose__card {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

/* ============================================================
   2026 UX CONSISTENCY PATCH — EN
   ============================================================ */
.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;
    font-weight: 600;
}

.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__title,
.hero-sub__title,
.top-story-card__title {
    letter-spacing: -0.01em;
}

.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 (UR TEMPLATE FALLBACK)
   ============================================================ */
html[lang="ur"],
html[lang="ur"] body,
body.urdu-page,
body.urdu-page p,
body.urdu-page li,
body.urdu-page .post-content p,
body.urdu-page .card__excerpt,
body.urdu-page .hero-sub__excerpt {
    font-family: var(--font-urdu) !important;
    line-height: 1.8 !important;
}

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

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

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

/* ============================================================
   2026 POST UI FINE-TUNING — EN/UR SAFE, BEM-SCOPED
   ============================================================ */
: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;
    line-height: 1.2;
}

.post-header__excerpt {
    max-width: 68ch;
}

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

.post-full__content p {
    font-size: clamp(1rem, 0.25vw + 0.96rem, 1.08rem);
}

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

.gold-post-widgets--post .gold-sidebar--inline {
    grid-column: 2;
    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 (EN)
   ============================================================ */
.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.3;
}

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