/* ============================================================
   NXT Autos — News Blog Design System
   ============================================================ */

:root {
    --primary: #ff6b35;
    --primary-hover: #e85a28;
    --primary-light: rgba(255, 107, 53, 0.12);
    --accent: #00d4ff;
    --accent-light: rgba(0, 212, 255, 0.1);
    --red: #ef4444;
    --red-light: rgba(239, 68, 68, 0.1);

    --bg: #f8f7f4;
    --bg-alt: #f0efeb;
    --surface: #ffffff;
    --surface-hover: #faf9f7;
    --surface-raised: #ffffff;
    --border: #e5e4e0;
    --border-light: #ecebe8;

    --text: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition: 300ms var(--ease-out);

    --font-display: 'Outfit', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;

    --max-width: 1280px;
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-alt: #161616;
    --surface: #1a1a1a;
    --surface-hover: #222222;
    --surface-raised: #1e1e1e;
    --border: #2a2a2a;
    --border-light: #222222;

    --text: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);

    --primary-light: rgba(255, 107, 53, 0.15);
    --accent-light: rgba(0, 212, 255, 0.1);
    --red-light: rgba(239, 68, 68, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

/* ============================================================
   TOP BAR — Date, Ticker, Social
   ============================================================ */

.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-date {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.edition-label {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.top-bar-center {
    flex: 1;
    min-width: 0;
}

.top-bar-right {
    display: flex;
    gap: 12px;
}

.top-bar-right a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.ticker-label {
    background: var(--red);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-track {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-scroll {
    display: inline-block;
    animation: tickerSlide 30s linear infinite;
}

.ticker-scroll span {
    display: inline-block;
    margin-right: 48px;
    font-weight: 500;
    color: var(--text-secondary);
}

.ticker-scroll span a {
    color: var(--text);
    font-weight: 600;
}

.ticker-scroll span a:hover {
    color: var(--primary);
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 2px solid var(--text);
    height: 64px;
    transition: background var(--transition), border-color var(--transition);
}

[data-theme="dark"] .navbar {
    border-bottom-color: var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo-nxt {
    color: var(--text);
}

.logo-autos {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

#theme-toggle,
#search-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

#theme-toggle:hover,
#search-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 600px;
}

.search-container input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.15rem;
    font-family: var(--font-body);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-container input:focus {
    border-color: var(--primary);
}

.search-results {
    margin-top: 12px;
    max-height: 50vh;
    overflow-y: auto;
}

.search-results .result-item {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-results .result-item:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
}

/* ============================================================
   HERO: Lead Story (News Blog Style)
   ============================================================ */

.hero-news {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.hero-news-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.hero-lead-story {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition);
}

.hero-lead-story:hover {
    transform: translateY(-2px);
}

.hero-lead-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-lead-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.hero-lead-story:hover .hero-lead-image img {
    transform: scale(1.03);
}

.hero-lead-overlay {
    padding: 24px 0 0;
}

.hero-lead-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge-breaking {
    background: var(--red);
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-lead-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-lead-overlay h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-lead-overlay p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 660px;
    margin-bottom: 16px;
}

.hero-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-read-more i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.hero-lead-story:hover .hero-read-more i {
    transform: translateX(4px);
}

/* Hero Sidebar */
.hero-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-heading {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-heading i {
    color: var(--primary);
}

.trending-item {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition-fast);
    position: relative;
}

.trending-item:last-child {
    border-bottom: none;
}

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

.trending-item .trending-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    float: left;
    margin-right: 12px;
    margin-top: 2px;
}

[data-theme="dark"] .trending-item .trending-num {
    color: var(--border);
}

.trending-item .trending-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.06em;
    position: relative;
    z-index: 2;
    transition: color var(--transition-fast);
}

.trending-item .trending-cat:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.trending-item .trending-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin-top: 2px;
}

.trending-item .trending-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */

.section {
    padding: 64px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.update-stamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.update-stamp i {
    color: var(--primary);
}

/* ============================================================
   FEATURED & NEWS CARDS
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-img-wrap {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

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

.card-content {
    padding: 20px;
}

.card-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: color var(--transition-fast);
}

.card-category:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-lead-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.35;
    font-family: var(--font-display);
}

.card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 4px;
}

.card-footer i {
    margin-right: 4px;
}

/* Featured Hero Card */
.featured-hero-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 340px;
}

.featured-hero-card .card-img-wrap {
    height: 100%;
    min-height: 340px;
}

.featured-hero-card .card-img {
    height: 100%;
}

.featured-hero-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.featured-hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* ============================================================
   NEWS LAYOUT — Main + Sidebar
   ============================================================ */

.news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.news-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-block {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.headline-list {
    list-style: none;
}

.headline-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.headline-list a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text);
    transition: color var(--transition-fast);
}

.headline-list a:hover {
    color: var(--primary);
}

.headline-num {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    min-width: 20px;
}

.headline-text {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.newsletter-form-sidebar {
    flex-direction: column;
}

.newsletter-form-sidebar .btn {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.category-count {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    color: var(--primary);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter {
    padding: 64px 0;
}

.newsletter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
}

.newsletter-card h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.newsletter-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    padding: 64px 0 32px;
    background: var(--surface);
    border-top: 3px solid var(--text);
}

[data-theme="dark"] .footer {
    border-top-color: var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   ARTICLE PAGE STYLES
   ============================================================ */

.article-page {
    padding-top: 24px;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.breadcrumb span {
    color: var(--text);
}

.article-header {
    margin-bottom: 36px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-header .card-category {
    font-size: 0.75rem;
    margin-bottom: 14px;
}

.article-deck {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 14px 0 24px;
    font-family: var(--font-serif);
    max-width: 700px;
}

.article-hero {
    margin: 0 0 40px;
}

.article-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.article-hero figcaption {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.article-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 0;
    line-height: 1.12;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-info i {
    color: var(--primary);
    font-size: 0.8rem;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.article-body p {
    margin-bottom: 22px;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    color: var(--text);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--text);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 28px 0;
    background: var(--bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-family: var(--font-serif);
    color: var(--text);
}

.article-body ul, .article-body ol {
    margin: 14px 0 22px 24px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body .citation {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.article-body .citation a {
    color: var(--accent);
    word-break: break-all;
}

.article-body .inline-image {
    border-radius: var(--radius-md);
    margin: 28px 0;
    box-shadow: var(--shadow-sm);
}

.article-body .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 28px 0;
}

.article-body .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Article Footer */
.article-footer {
    max-width: 720px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.article-source-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

.article-source-note a {
    color: var(--primary);
}

/* In-article CTA */
.article-cta {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 28px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.article-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.share-buttons span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.share-buttons a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Related Articles */
.related-articles {
    padding: 64px 0;
    background: var(--bg-alt);
}

.related-articles .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ============================================================
   ABOUT & CONTACT PAGES
   ============================================================ */

.page-header {
    padding: 64px 0 36px;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
}

.about-content,
.contact-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 0 64px;
}

.about-content h2 {
    margin: 40px 0 14px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.team-member:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.team-member .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
}

.team-member h4 {
    margin-bottom: 4px;
}

.team-member .role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition-fast);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

.category-page {
    padding: 40px 0 64px;
}

.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 2000;
    pointer-events: none;
}

.progress-inner {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
}

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

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

    .hero-sidebar {
        position: static;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .top-bar-center {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .navbar .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: block;
    }

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

    .featured-hero-card {
        grid-template-columns: 1fr;
    }

    .featured-hero-card .card-img-wrap {
        min-height: 200px;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .section {
        padding: 48px 0;
    }

    .hero-news {
        padding: 20px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .top-bar-right {
        display: none;
    }

    .top-bar-left {
        width: 100%;
        justify-content: center;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-lead-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-lead-meta {
        gap: 6px;
    }

    .badge-breaking {
        font-size: 0.6rem;
    }

    .edition-label {
        display: none;
    }
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

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

.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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