/* Duniya News — Main Styles */
:root {
    --primary: #c41e3a;
    --primary-dark: #9a1830;
    --bg: #f8f6f3;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #5c5c6f;
    --border: #e8e4de;
    --header-bg: #0d1b2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --font-sans: 'Noto Sans Devanagari', system-ui, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --container-max: 1400px;
    --container-pad: 28px;
    --sidebar-width: 360px;
    --ad-sidebar-max: 336px;
    --ad-leaderboard-max: 970px;
    --ad-inline-max: 580px;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

/* Header */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--header-bg);
    color: #94a3b8;
    font-size: 13px;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header-links a:not(.header-guest-post-btn) { color: #cbd5e1; }
.header-links a:not(.header-guest-post-btn):hover { color: #fff; }

.lang-switcher { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lang-switcher a.active { color: #fff; font-weight: 700; text-decoration: underline; }
.lang-switcher span { opacity: 0.4; }

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: min(220px, 45vw);
    object-fit: contain;
    display: block;
}

.logo-icon { font-size: 36px; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 28px;
    color: var(--primary);
    font-family: var(--font-serif);
}

.logo-text small {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 480px;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.search-form button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 18px;
}

/* Guest Post — black top bar */
.header-guest-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, transform 0.15s;
}

.header-guest-post-btn:hover,
.header-guest-post-btn.is-active {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.header-guest-post-btn i {
    font-size: 13px;
}

/* Main navigation — Home + categories (one row on desktop) */
.main-nav {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.main-nav .nav-backdrop {
    display: none;
}

.main-nav-panel {
    width: 100%;
}

.main-nav-panel-head {
    display: none;
}

.main-nav-panel-body {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.nav-categories-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.nav-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 8px 0 10px;
    gap: 4px;
}

.nav-list a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--primary);
    color: #fff;
}

/* Breaking ticker */
.breaking-bar {
    display: flex;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    overflow: hidden;
}

.breaking-label {
    background: #000;
    padding: 8px 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    padding: 8px 0;
}

.ticker-track {
    display: flex;
    gap: 24px;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}

.ticker-track a:hover { text-decoration: underline; }
.ticker-dot { opacity: 0.5; }

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

/* Main layout */
.site-main { padding: 28px 0 48px; }

.content-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 40px;
    margin-top: 36px;
}

@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
}

/* Homepage hero — 75% slider + 25% panel */
.home-hero-band {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 16px;
    margin-bottom: 20px;
    align-items: stretch;
}

.hero-slider-col {
    min-width: 0;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--header-bg);
    height: 100%;
    min-height: 420px;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 0;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-media {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px 36px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 70%);
}

.hero-slide-overlay .category-badge {
    align-self: flex-start;
    margin-bottom: 10px;
}

.hero-slide-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-slide-title a {
    color: #fff;
}

.hero-slide-title a:hover {
    color: #fecdd3;
}

.hero-slide-excerpt {
    font-size: 14px;
    opacity: 0.92;
    margin: 0 0 8px;
    max-width: 90%;
    line-height: 1.5;
}

.hero-slide-meta {
    font-size: 13px;
    opacity: 0.8;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.hero-slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.hero-slider-prev { left: 14px; }
.hero-slider-next { right: 14px; }

.hero-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.hero-slider-dot.is-active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

.hero-panel-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hero-panel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.hero-panel-card {
    display: flex;
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    flex: 1;
    min-height: 0;
    align-items: center;
}

.hero-panel-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
}

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

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

.hero-panel-body h3 {
    font-size: 13px;
    line-height: 1.35;
    margin: 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-panel-body h3 a:hover { color: var(--primary); }

.hero-panel-ad {
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: stretch;
}

.hero-panel-ad .ad-slot {
    max-width: 100%;
    width: 100%;
    min-height: 100%;
}

.cat-link { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.time { font-size: 12px; color: var(--text-muted); }

@media (max-width: 992px) {
    .home-hero-band {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-slider-track {
        min-height: 360px;
    }

    .hero-slide-media img {
        min-height: 360px;
    }

    .hero-panel-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero-slide-overlay {
        padding: 20px 16px 32px;
    }

    .hero-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.news-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
    .news-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .news-grid,
    .news-grid.cols-3,
    .news-grid.cols-4 { grid-template-columns: 1fr; }
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body { padding: 16px; }

.card-body h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 8px 0;
    font-family: var(--font-serif);
}

.card-body h3 a:hover { color: var(--primary); }

.excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.category-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.category-badge.small { font-size: 10px; padding: 3px 8px; }

/* Sections */
.section-block { margin-bottom: 40px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

.section-head h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.view-all:hover { text-decoration: underline; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

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

.trending-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.trending-list li:last-child { border: none; }

.rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.4;
    min-width: 28px;
}

.trending-list a {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.trending-list a:hover { color: var(--primary); }
.trending-list small { color: var(--text-muted); font-size: 12px; }

.cat-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-chips a {
    display: block;
    padding: 6px 12px;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.cat-chips a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Article sidebar nav */
.article-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.article-nav-link:hover {
    background: var(--bg);
    color: var(--primary);
}

.article-nav-link.is-active {
    background: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.article-nav-link i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.article-nav-link.is-active i {
    color: var(--primary);
}

.article-nav-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.article-nav-widget h3 i,
.trending-widget h3 i {
    margin-right: 6px;
    color: var(--primary);
    font-size: 0.95em;
}

/* Google Ad placeholders (article sidebar) */
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: var(--ad-sidebar-max);
    margin: 0 auto;
    padding: 18px 14px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    text-align: center;
    box-sizing: border-box;
}

.ad-slot--rectangle {
    min-height: 280px;
    max-width: var(--ad-sidebar-max);
}

.ad-slot--rectangle-wide {
    min-height: 300px;
    max-width: var(--ad-inline-max);
}

.ad-slot--leaderboard {
    min-height: 100px;
    max-width: var(--ad-leaderboard-max);
}

.ad-slot--skyscraper {
    min-height: 620px;
    max-width: var(--ad-sidebar-max);
}

.home-ad-strip {
    display: flex;
    justify-content: center;
    margin: 20px 0 8px;
}

.home-ad-strip .ad-slot {
    width: 100%;
    max-width: var(--ad-leaderboard-max);
}

.home-ad-inline .ad-slot {
    max-width: var(--ad-inline-max);
    width: 100%;
}

.home-ad-inline {
    display: flex;
    justify-content: center;
    margin: 8px 0 28px;
}

.home-sidebar {
    position: sticky;
    top: 12px;
    align-self: start;
}

.ad-slot-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ad-slot-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 220px;
}

.ad-slot-size {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    font-family: ui-monospace, monospace;
}

.ad-slot--live {
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.ad-slot--live ins,
.ad-slot--live iframe {
    max-width: 100%;
}

@media (max-width: 900px) {
    .article-sidebar,
    .home-sidebar {
        position: static;
        order: 2;
    }

    .article-page-layout .single-article {
        order: 1;
    }

    .ad-slot--skyscraper {
        min-height: 280px;
    }

    .home-ad-strip,
    .home-ad-inline {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Single article */
.article-page-wrap {
    padding-top: 8px;
}

.article-page-layout {
    margin-top: 0;
    align-items: start;
}

.article-page-layout .single-article {
    max-width: none;
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: 12px;
}

.single-article { max-width: 100%; }

.article-header { margin-bottom: 24px; }

.article-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.25;
    margin: 16px 0;
}

.article-featured-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
    line-height: 0;
}

.article-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
    word-wrap: break-word;
}

.article-content p {
    margin: 0 0 1.25em;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text);
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-serif);
    line-height: 1.3;
    margin: 1.5em 0 0.75em;
    color: var(--text);
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.15rem; }

.article-content ul,
.article-content ol {
    margin: 0 0 1.25em 1.5em;
    padding: 0;
}

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

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.25em;
    border-left: 4px solid var(--primary);
    background: var(--surface);
    color: var(--text-muted);
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.25em 0;
    display: block;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25em 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}

.article-content th {
    background: var(--surface);
    font-weight: 600;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* Article comments */
.article-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.comments-head h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-head h2 i {
    color: var(--primary);
}

.comments-count {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--surface);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.comment-alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 15px;
}

.comment-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.comment-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.comments-empty {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comment-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 15px;
    color: var(--text);
}

.comment-meta time {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    word-break: break-word;
}

.comment-form-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.comment-form-box h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-family: var(--font-serif);
}

.comment-form .comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .comment-form .comment-form-row {
        grid-template-columns: 1fr;
    }
}

.comment-form .form-field {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.comment-form .required {
    color: var(--primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.btn-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-comment-submit:hover {
    background: var(--primary-dark);
}

.btn-comment-submit:active {
    transform: scale(0.98);
}

/* ========== MOBILE RESPONSIVE ========== */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-toggle-label {
    line-height: 1;
}

@media (max-width: 768px) {
    :root {
        --container-pad: 16px;
    }

    .header-top-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        padding: 8px 16px;
    }

    .header-links {
        width: 100%;
        justify-content: flex-end;
    }

    .header-guest-post-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .date-line {
        font-size: 12px;
    }

    .header-main {
        padding: 12px 16px;
        gap: 12px;
    }

    .logo-text strong {
        font-size: 22px;
    }

    .search-form {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: none;
        align-items: stretch;
        justify-content: flex-end;
        border: none;
        background: transparent;
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .main-nav .nav-backdrop {
        display: block;
        flex: 1;
        min-width: 0;
        padding: 0;
        margin: 0;
        border: none;
        background: rgba(13, 27, 42, 0.55);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .main-nav-panel {
        width: min(320px, 92vw);
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: var(--surface);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .main-nav-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .main-nav-panel-title {
        font-weight: 700;
        font-size: 16px;
    }

    .nav-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 8px;
        background: var(--bg);
        color: var(--text);
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav-panel-body {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        max-width: none;
        margin: 0;
    }

    .nav-categories-scroll {
        flex: 1;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 16px;
    }

    .nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 8px 0;
    }

    .nav-list a {
        white-space: normal;
        border-radius: 0;
        padding: 12px 18px;
        font-size: 15px;
    }

    .breaking-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .breaking-label {
        text-align: center;
        padding: 6px 12px;
        font-size: 12px;
    }

    .site-main {
        padding: 20px 0 36px;
    }

    .content-layout {
        gap: 24px;
        margin-top: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article-header h1 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .article-content {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .article-content img,
    .article-content iframe,
    .article-content video {
        max-width: 100%;
        height: auto;
    }

    .comment-form .comment-form-row {
        grid-template-columns: 1fr;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        font-size: 16px;
    }

    .btn-comment-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-top .date-line {
        display: none;
    }

    .hero-slider,
    .hero-slider-track,
    .hero-slide-media img {
        min-height: 280px;
    }

    .hero-slide-overlay h2 {
        font-size: 1.1rem;
    }

    .card-body h3 {
        font-size: 1rem;
    }
}

.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.related-articles h3 {
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 4px solid var(--primary);
}

.page-icon { font-size: 48px; }

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
}

/* Search */
.search-page-form {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    max-width: 720px;
}

.search-page-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
}

.search-page-form button {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.result-count { margin-bottom: 20px; color: var(--text-muted); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
}

.pagination a:hover { background: var(--primary-dark); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius);
}

.empty-state a {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--header-bg);
    color: #cbd5e1;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 52px var(--container-pad);
}

.footer-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .footer-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .footer-grid,
    .footer-grid--4 { grid-template-columns: 1fr; }
}

.footer-logo {
    max-height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.footer-social {
    margin-top: 14px;
}

.footer-social-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
}

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

.footer-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.footer-social-icons a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-list a,
.footer-contact-list span {
    color: #cbd5e1;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact-list a:hover { color: #fff; }

.footer-contact-list i {
    margin-top: 3px;
    color: var(--primary);
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-sitemap-link {
    font-size: 13px;
    color: #94a3b8;
}

.footer-sitemap-link:hover { color: #fff; }

.footer-brand strong {
    font-size: 1.3rem;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.footer-cats h4,
.footer-about h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-cats ul { list-style: none; }
.footer-cats li { margin-bottom: 6px; }
.footer-cats a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
}
