/* ========================================
   DAILY LYALLPUR NEWS — Editorial Stylesheet
   ======================================== */

:root {
    /* Palette — editorial Pakistan-inspired */
    --emerald-900: #0a3d2e;
    --emerald-800: #0d4f3c;
    --emerald-700: #166b50;
    --emerald-600: #1f8a68;
    --emerald-500: #2da27d;
    --gold-500:    #c89b3c;
    --gold-400:    #d8b15a;
    --ink-900:     #161914;
    --ink-700:     #2a2f29;
    --ink-500:     #4f5450;
    --ink-400:     #757a76;
    --ink-300:     #a7aaa6;
    --paper:       #faf7f2;
    --paper-2:     #f3eee3;
    --card:        #ffffff;
    --border:      #e8e3d8;
    --border-2:    #d9d3c4;
    --red-news:    #b41e2c;
    --red-news-dk: #8e1622;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(22, 25, 20, 0.04);
    --shadow:    0 6px 24px -10px rgba(22, 25, 20, 0.18), 0 1px 3px rgba(22, 25, 20, 0.06);
    --shadow-lg: 0 24px 60px -24px rgba(22, 25, 20, 0.35), 0 4px 12px rgba(22, 25, 20, 0.08);

    --font-serif: 'Fraunces', 'Georgia', serif;
    --font-sans:  'Source Sans 3', system-ui, -apple-system, sans-serif;
    --font-urdu:  'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    --font-mono:  'JetBrains Mono', ui-monospace, monospace;

    --container: 1240px;
}

/* Dark theme */
body.dark {
    --paper:    #0e1410;
    --paper-2:  #141b16;
    --card:     #182018;
    --border:   #283128;
    --border-2: #364136;
    --ink-900:  #f1efe8;
    --ink-700:  #d4d2cc;
    --ink-500:  #a3a8a2;
    --ink-400:  #7a807a;
    --ink-300:  #4f544f;
    --emerald-800: #1c8a68;
    --emerald-700: #2da27d;
    --shadow:   0 6px 24px -10px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lg:0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(ellipse at top, rgba(200, 155, 60, 0.04), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(13, 79, 60, 0.04), transparent 60%),
        var(--paper);
    color: var(--ink-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

/* Subtle paper texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* Urdu-friendly typography */
[lang="ur"], h2:lang(ur), h3:lang(ur), .urdu,
.hero-title, .hero-excerpt, .news-card h3, .latest-item h4,
.popular-list a, .side-story h3, .top-hijri, .nav-ur,
.story-title, .story-excerpt, .featured-story h2,
.column-item a, .ticker-item:not(:lang(en)) {
    font-feature-settings: "kern", "liga";
}

.ticker-item, .hero-title, .news-card h3, .latest-item h4,
.side-story h3, .popular-list a, .column-item a {
    /* Auto-detect Urdu by direction won't work; rely on font fallback */
}

/* ===========================
   BREAKING TICKER
   =========================== */
.breaking-ticker {
    background: linear-gradient(90deg, var(--red-news-dk), var(--red-news));
    color: #fff;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    position: relative;
}

.breaking-label {
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 22px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 32px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding-left: 24px;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    font-size: 14.5px;
    font-weight: 500;
}

.ticker-track:hover .ticker-content { animation-play-state: paused; }

.ticker-item {
    direction: rtl;
    text-align: right;
}
.ticker-item:lang(en), .ticker-content > .ticker-item:nth-child(2n) {
    direction: ltr;
}

.ticker-sep {
    color: var(--gold-400);
    font-size: 10px;
    opacity: 0.8;
}

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

/* ===========================
   TOP BAR
   =========================== */
.top-bar {
    background: var(--emerald-900);
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(200, 155, 60, 0.2);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-date {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: #fff;
}

.top-divider { color: var(--gold-400); opacity: 0.6; }

.top-hijri {
    font-family: var(--font-urdu);
    font-size: 16px;
    color: var(--gold-400);
    line-height: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weather-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(200, 155, 60, 0.3);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
}

.weather-chip .weather-temp {
    color: var(--gold-400);
    font-weight: 700;
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(200, 155, 60, 0.2);
    border-color: var(--gold-400);
}

.theme-icon-dark { display: none; }
body.dark .theme-icon-light { display: none; }
body.dark .theme-icon-dark { display: inline; }

.top-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1.5px solid var(--gold-400);
    transition: color 0.2s;
}
.top-link:hover { color: var(--gold-400); }

/* ===========================
   MASTHEAD
   =========================== */
.site-header {
    background: var(--card);
    padding: 36px 0 30px;
    border-bottom: 1px double var(--border-2);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-2);
}

.masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.masthead-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--ink-500);
}
.masthead-meta-left { text-align: left; }
.masthead-meta-right { text-align: right; }

.masthead-meta .meta-label {
    text-transform: uppercase;
    color: var(--ink-400);
    font-size: 10px;
}
.masthead-meta .meta-value {
    font-weight: 700;
    color: var(--emerald-800);
    font-size: 14px;
    font-family: var(--font-serif);
    letter-spacing: 0;
}

.masthead-center { text-align: center; }

.masthead-flourish {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-bottom: 10px;
}

.flourish-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.flourish-star {
    color: var(--gold-500);
    font-size: 14px;
}

.site-title {
    font-family: var(--font-serif);
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 900;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variation-settings: "opsz" 144;
    margin: 0;
}

.site-subtitle-urdu {
    font-family: var(--font-urdu);
    font-size: 22px;
    color: var(--emerald-800);
    margin-top: 6px;
    line-height: 1.4;
}

.site-subtitle {
    font-size: 11.5px;
    color: var(--ink-500);
    font-weight: 600;
    letter-spacing: 0.25em;
    margin-top: 10px;
}

/* ===========================
   NAVIGATION
   =========================== */
.main-nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s, background 0.4s;
}

.main-nav.scrolled {
    box-shadow: 0 4px 20px -8px rgba(22, 25, 20, 0.15);
    background: var(--card);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s;
    line-height: 1;
}

.nav-en {
    font-family: var(--font-sans);
}

.nav-ur {
    font-family: var(--font-urdu);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-400);
    margin-top: 4px;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--emerald-700);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover { color: var(--emerald-800); }
.nav-link:hover .nav-ur { color: var(--emerald-700); }
.nav-link:hover::after { width: 60%; }

.nav-link.active { color: var(--emerald-800); }
.nav-link.active .nav-ur { color: var(--emerald-700); }
.nav-link.active::after { width: 60%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 40px 9px 16px;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--ink-900);
    width: 200px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--emerald-700);
    width: 260px;
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(13, 79, 60, 0.08);
}

.search-input::placeholder { color: var(--ink-400); }

.search-icon {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-500);
}

.subscribe-btn {
    background: var(--emerald-800);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    font-family: var(--font-sans);
}

.subscribe-btn .btn-arrow {
    transition: transform 0.25s;
}

.subscribe-btn:hover {
    background: var(--emerald-900);
    box-shadow: 0 8px 20px -8px var(--emerald-800);
}
.subscribe-btn:hover .btn-arrow { transform: translateX(3px); }

/* ===========================
   MAIN WRAPPER & HERO
   =========================== */
.main-wrapper {
    padding: 40px 0 60px;
}

.hero-section {
    margin-bottom: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.hero-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--emerald-700), var(--gold-500));
}

.hero-decoration {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 280px;
    color: var(--emerald-800);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    font-family: var(--font-serif);
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-500);
    letter-spacing: 0.06em;
}

.hero-title {
    font-family: var(--font-urdu);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink-900);
    direction: rtl;
    text-align: right;
    margin-bottom: 6px;
}

.hero-title-en {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink-500);
    margin-bottom: 18px;
    font-style: italic;
    font-variation-settings: "opsz" 24, "SOFT" 50;
}

.hero-excerpt {
    font-family: var(--font-urdu);
    font-size: 18px;
    line-height: 2;
    color: var(--ink-700);
    direction: rtl;
    text-align: right;
    margin-bottom: 24px;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px dashed var(--border-2);
    flex-wrap: wrap;
    gap: 12px;
}

.read-full {
    color: var(--emerald-800);
    text-decoration: none;
    font-family: var(--font-urdu);
    font-weight: 600;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-full .arrow-anim {
    font-family: var(--font-sans);
    transition: transform 0.25s;
}

.read-full:hover .arrow-anim { transform: translateX(4px); }

.hero-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--ink-500);
}

/* Hero side stories */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-story {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
}

.side-story:hover {
    transform: translateX(-3px);
    border-color: var(--emerald-700);
    box-shadow: var(--shadow);
}

.side-story h3 {
    font-family: var(--font-urdu);
    font-size: 18px;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    color: var(--ink-900);
    font-weight: 600;
}

.side-story:nth-child(3) h3 {
    direction: ltr;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
}

.side-time {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-400);
    text-transform: uppercase;
}

/* ===========================
   CATEGORY PILLS
   =========================== */
.cat-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.cat-world      { background: #b41e2c; }
.cat-politics   { background: #1c3a6b; }
.cat-sports     { background: var(--emerald-800); }
.cat-business   { background: #b8770e; }
.cat-national   { background: #5e2a8c; }
.cat-crime      { background: #2a2f29; }
.cat-ent        { background: #c64674; }

/* ===========================
   CONTENT LAYOUT
   =========================== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.content-main { min-width: 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 48;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink-900);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gold-500);
}

.section-rule {
    width: 4px;
    height: 28px;
    background: var(--emerald-700);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-sub {
    font-family: var(--font-urdu);
    font-size: 22px;
    font-weight: 500;
    color: var(--emerald-700);
    margin-left: auto;
    line-height: 1;
}

/* PDF Section */
.pdf-section { margin-bottom: 50px; }

.pdf-section .section-header {
    margin-bottom: 0;
}

.pdf-section .section-title {
    margin-bottom: 18px;
    width: 100%;
}

.newspaper-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.newspaper-selector label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 600;
}

.newspaper-selector select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    background: var(--paper-2);
    color: var(--ink-900);
    transition: border-color 0.2s;
}

.newspaper-selector select:hover { border-color: var(--emerald-700); }
.newspaper-selector select:focus {
    outline: none;
    border-color: var(--emerald-700);
    box-shadow: 0 0 0 3px rgba(13, 79, 60, 0.1);
}

.pdf-viewer-section {
    background: var(--paper-2);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-height: 700px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.pdf-viewer-section::-webkit-scrollbar { width: 10px; }
.pdf-viewer-section::-webkit-scrollbar-track { background: transparent; }
.pdf-viewer-section::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 10px;
}
.pdf-viewer-section::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

.pdf-page-in-article {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.pdf-loading, .pdf-error {
    padding: 60px 20px;
    text-align: center;
    color: var(--ink-500);
    font-size: 14px;
}

.pdf-error code {
    background: var(--paper-2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--red-news);
    margin: 0 4px;
    border: 1px solid var(--border);
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.pdf-loading p { margin-top: 12px; }

.loader-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--emerald-700);
    border-radius: 50%;
    margin: 0 4px;
    animation: dotBounce 1.2s infinite ease-in-out;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===========================
   NEWS GRID
   =========================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.news-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-700);
}

.card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-900));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img::before {
    content: attr(data-label);
    font-family: var(--font-urdu);
    font-size: 72px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    position: absolute;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.cat-card-world .card-img    { background: linear-gradient(135deg, #8e1622, #b41e2c); }
.cat-card-politics .card-img { background: linear-gradient(135deg, #1c3a6b, #2e5499); }
.cat-card-sports .card-img   { background: linear-gradient(135deg, #0d4f3c, #1f8a68); }
.cat-card-business .card-img { background: linear-gradient(135deg, #8b5a08, #c89b3c); }
.cat-card-national .card-img { background: linear-gradient(135deg, #4a1f6e, #7a3aab); }
.cat-card-crime .card-img    { background: linear-gradient(135deg, #1a1a1a, #3d3d3d); }
.cat-card-ent .card-img      { background: linear-gradient(135deg, #8c2a52, #c64674); }

.img-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    z-index: 2;
}

.card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-body .cat-pill { align-self: flex-start; }

.news-card h3 {
    font-family: var(--font-urdu);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    color: var(--ink-900);
}

.news-card p {
    font-family: var(--font-urdu);
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-500);
    direction: rtl;
    text-align: right;
}

.card-time {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-400);
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 8px;
}

/* ===========================
   LATEST NEWS
   =========================== */
.latest-news {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    margin-top: 50px;
}

.latest-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.latest-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--paper-2);
    border-radius: var(--radius);
    transition: all 0.25s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.latest-item:hover {
    background: var(--card);
    border-left-color: var(--emerald-700);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.latest-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    color: var(--emerald-700);
    line-height: 1;
    min-width: 36px;
    font-variation-settings: "opsz" 48;
    opacity: 0.85;
}

.latest-body { flex: 1; min-width: 0; }

.latest-item h4 {
    font-family: var(--font-urdu);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.news-time {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-400);
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--ink-900);
    padding: 20px 22px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--ink-900);
    position: relative;
    margin: 0;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 22px;
    width: 50px;
    height: 2px;
    background: var(--gold-500);
}

.widget-sub {
    font-family: var(--font-urdu);
    font-size: 16px;
    font-weight: 500;
    color: var(--emerald-700);
    margin-left: auto;
    line-height: 1;
}

.trending-icon {
    font-size: 18px;
    filter: saturate(1.2);
}

/* Trending list with numbered ranks */
.popular-list {
    list-style: none;
    padding: 6px 0;
}

.popular-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 1px dashed var(--border);
    transition: background 0.2s;
}

.popular-list li:last-child { border-bottom: none; }
.popular-list li:hover { background: var(--paper-2); }

.trend-rank {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 900;
    color: var(--gold-500);
    line-height: 1;
    min-width: 28px;
    font-variation-settings: "opsz" 48;
    -webkit-text-stroke: 1px var(--gold-500);
    color: transparent;
}

.popular-list li:hover .trend-rank {
    color: var(--gold-500);
    -webkit-text-stroke: 0;
}

.popular-list a {
    color: var(--ink-900);
    text-decoration: none;
    font-family: var(--font-urdu);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    flex: 1;
    transition: color 0.2s;
}

.popular-list a:hover { color: var(--emerald-800); }

/* Weather widget */
.weather-widget {
    position: relative;
    color: #fff;
    border: 1px solid var(--emerald-900);
}

.weather-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(216, 177, 90, 0.35), transparent 50%),
        linear-gradient(135deg, var(--emerald-900), var(--emerald-800) 60%, #166b50);
    z-index: 0;
}

.weather-content {
    position: relative;
    z-index: 1;
    padding: 24px 26px 22px;
}

.weather-city {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.weather-city-ur {
    font-family: var(--font-urdu);
    font-size: 15px;
    color: var(--gold-400);
    margin-left: 6px;
    font-weight: 400;
}

.weather-now {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 6px;
}

.weather-big {
    font-family: var(--font-serif);
    font-size: 62px;
    font-weight: 900;
    line-height: 1;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.04em;
}

.weather-emoji {
    font-size: 38px;
    filter: drop-shadow(0 0 14px rgba(255, 200, 80, 0.4));
}

.weather-cond {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.forecast-day span:first-child {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.forecast-day span:last-child {
    color: var(--gold-400);
    font-weight: 700;
    font-size: 13px;
}

/* Newsletter widget */
.newsletter-widget {
    background:
        linear-gradient(135deg, rgba(200, 155, 60, 0.1), transparent 60%),
        var(--card);
    padding: 26px 24px 24px;
    position: relative;
    overflow: hidden;
}

.newsletter-decoration {
    position: absolute;
    top: 6px;
    right: 14px;
    font-size: 90px;
    color: var(--emerald-800);
    opacity: 0.06;
    line-height: 1;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 4px;
    font-variation-settings: "opsz" 36;
}

.newsletter-sub {
    font-family: var(--font-urdu);
    font-size: 15px;
    color: var(--emerald-700);
    margin-bottom: 14px;
    direction: rtl;
    text-align: right;
}

.newsletter-desc {
    font-size: 13.5px;
    color: var(--ink-500);
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper-2);
    font-size: 13.5px;
    font-family: var(--font-sans);
    color: var(--ink-900);
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--emerald-700);
    box-shadow: 0 0 0 3px rgba(13, 79, 60, 0.08);
}

.newsletter-form button {
    background: var(--emerald-800);
    color: #fff;
    border: none;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-sans);
}

.newsletter-form button:hover {
    background: var(--emerald-900);
    box-shadow: 0 8px 18px -8px var(--emerald-800);
}

body.dark .newsletter-form button {
    background: var(--emerald-700);
    color: #fff;
}
body.dark .newsletter-form button:hover {
    background: var(--emerald-600);
}

/* Columns widget */
.column-list {
    padding: 6px 0;
}

.column-item {
    padding: 14px 22px;
    border-bottom: 1px dashed var(--border);
}
.column-item:last-child { border-bottom: none; }

.column-author {
    font-family: var(--font-urdu);
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-500);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.column-item:nth-child(2) .column-author {
    font-family: var(--font-serif);
    font-style: italic;
}

.column-item a {
    font-family: var(--font-urdu);
    font-size: 15px;
    color: var(--ink-900);
    text-decoration: none;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    display: block;
    transition: color 0.2s;
}

.column-item:nth-child(2) a {
    font-family: var(--font-serif);
    direction: ltr;
    text-align: left;
}

.column-item a:hover { color: var(--emerald-800); }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    --footer-bg: #161914;
    --footer-bg-2: #0e1410;
    --footer-text: rgba(255, 255, 255, 0.78);
    --footer-muted: rgba(255, 255, 255, 0.6);
    --footer-dim: rgba(255, 255, 255, 0.5);
    --footer-border: rgba(255, 255, 255, 0.1);

    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 24px;
    margin-top: 60px;
    border-top: 4px solid #0d4f3c;
    position: relative;
}

body.dark .site-footer {
    --footer-bg: #050807;
    --footer-bg-2: #020403;
    --footer-border: rgba(255, 255, 255, 0.08);
    border-top-color: #1c8a68;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d4f3c 0%, #c89b3c 50%, #0d4f3c 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-brand .footer-title {
    font-family: var(--font-serif);
    font-size: 30px;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 900;
    font-variation-settings: "opsz" 48;
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-family: var(--font-urdu);
    font-size: 18px;
    color: #d8b15a;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--footer-muted);
    margin-bottom: 18px;
    max-width: 380px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s;
}

.footer-social a:hover {
    background: #c89b3c;
    border-color: #c89b3c;
    color: #161914;
    transform: translateY(-2px);
}

.footer-col .footer-heading {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d8b15a;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-col li a:hover {
    color: #d8b15a;
    padding-left: 6px;
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--footer-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* ===========================
   BACK TO TOP
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--emerald-800);
    color: #fff;
    border: 2px solid var(--gold-500);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--emerald-900);
    transform: translateY(-4px);
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children inside hero/news grids */
.hero-side .side-story,
.news-grid .news-card,
.latest-news-list .latest-item {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-side .side-story:nth-child(1) { animation-delay: 0.1s; }
.hero-side .side-story:nth-child(2) { animation-delay: 0.2s; }
.hero-side .side-story:nth-child(3) { animation-delay: 0.3s; }

.news-grid .news-card:nth-child(1) { animation-delay: 0.05s; }
.news-grid .news-card:nth-child(2) { animation-delay: 0.1s; }
.news-grid .news-card:nth-child(3) { animation-delay: 0.15s; }
.news-grid .news-card:nth-child(4) { animation-delay: 0.2s; }
.news-grid .news-card:nth-child(5) { animation-delay: 0.25s; }
.news-grid .news-card:nth-child(6) { animation-delay: 0.3s; }
.news-grid .news-card:nth-child(7) { animation-delay: 0.35s; }
.news-grid .news-card:nth-child(8) { animation-delay: 0.4s; }
.news-grid .news-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
    .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { padding: 0 18px; }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .top-bar-right { width: 100%; justify-content: space-between; }

    .masthead {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .masthead-meta-left,
    .masthead-meta-right {
        text-align: center;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    .site-title { font-size: 40px; }

    .breaking-label {
        padding: 8px 16px;
        font-size: 10.5px;
        clip-path: none;
    }
    .ticker-content { font-size: 13px; gap: 18px; }

    .nav-inner {
        flex-direction: column;
        gap: 0;
        padding: 0 18px;
    }
    .nav-menu {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 4px 0;
    }
    .nav-link { padding: 12px 14px; font-size: 12px; }
    .nav-ur { font-size: 12px; }
    .nav-right {
        width: 100%;
        padding-bottom: 14px;
        justify-content: space-between;
    }
    .search-input { width: 100%; }
    .search-input:focus { width: 100%; }

    .hero-main { padding: 28px 22px; }
    .hero-title { font-size: 26px; line-height: 1.7; }
    .hero-title-en { font-size: 16px; }
    .hero-excerpt { font-size: 16px; }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-news { padding: 24px 20px; }
    .latest-news-list { grid-template-columns: 1fr; }

    .section-title { font-size: 22px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 460px) {
    .footer-grid { grid-template-columns: 1fr; }
    .nav-menu { gap: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ticker-content { animation: none; }
    .reveal { opacity: 1; transform: none; }
}

/* Selection */
::selection {
    background: var(--gold-500);
    color: var(--ink-900);
}
