:root {
    --primary-color: #0f172a; /* Darker, more professional slate */
    --secondary-color: #dc2626; /* Professional news red */
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Roboto Serif', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    color: white;
    margin-bottom: 0.75rem;
}
.category-badge.small { padding: 0.15rem 0.5rem; font-size: 0.65rem; }
.category-badge.dark { background-color: var(--primary-color); }
.category-badge.alert { background-color: #b91c1c; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-meta .author { font-weight: 600; color: var(--primary-color); }

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #e2e8f0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}
.top-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.top-links a:hover { color: white; }

/* Main Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
}
.logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}
.logo-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2.05rem);
    letter-spacing: -0.03em;
    text-transform: lowercase;
    white-space: nowrap;
    text-transform: capitalize;
}
.logo-primary {
    color: var(--primary-color);
}
.logo-accent {
    color: var(--secondary-color);
}
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* Breaking News Ticker */
.breaking-news {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-bottom: 2rem;
}
.breaking-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.breaking-label {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
}
.breaking-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Featured News Grid */
.featured-news-section {
    margin-bottom: 3rem;
}
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #cbd5e1;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
a:hover .image-wrapper img { transform: scale(1.05); }

.hero-article {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.hero-article a {
    display: block;
    height: 100%;
}
.hero-article .image-wrapper { height: 450px; }
.hero-article .image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 45%, transparent 100%);
    pointer-events: none;
}
.hero-article .category-badge {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    z-index: 10;
    margin: 0;
}
.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 6.5rem;
    z-index: 10;
    color: white;
}
.hero-content h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-content p {
    font-size: 1.05rem;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-content .article-meta { color: #cbd5e1; }
.hero-content .article-meta .author { color: white; }

.side-featured {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.side-article {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.side-article .image-wrapper {
    height: 150px;
}
.side-article .category-badge {
    position: absolute;
    bottom: 0; left: 0;
    margin: 0;
    z-index: 10;
}
.side-content {
    padding: 1rem 0;
}
.side-content h2 {
    font-size: 1.2rem;
}

/* Main Content Layout */
.main-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 1rem;
    margin-bottom: 4rem;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}
.section-heading h2 {
    font-size: 1.8rem;
    position: relative;
}
.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -0.65rem; left: 0; width: 50px; height: 4px;
    background-color: var(--secondary-color);
}
.view-all {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}
.view-all:hover { color: var(--secondary-color); }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.list-article a {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    align-items: center;
}
.list-article .image-wrapper {
    height: 180px;
}
.list-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.list-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-article a:hover h3 { color: var(--secondary-color); }

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 20px;
}
.widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.widget h3::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; width: 40px; height: 2px;
    background-color: var(--primary-color);
}

.trending-list {
    list-style: none;
    counter-reset: trending-counter;
}
.trending-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    counter-increment: trending-counter;
}
.trending-list li::before {
    content: counter(trending-counter);
    position: absolute;
    left: 0; top: -0.2rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
}
.trending-list li a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}
.trending-list li a:hover { color: var(--secondary-color); }

.newsletter-widget {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 4px;
}
.newsletter-widget h3 { border-color: rgba(255,255,255,0.2); }
.newsletter-widget h3::after { background-color: var(--secondary-color); }
.newsletter-widget p { font-size: 0.9rem; margin-bottom: 1rem; color: #cbd5e1; }
.newsletter-status {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    background-color: rgba(255,255,255,0.06);
    color: #e2e8f0;
    line-height: 1.55;
}
.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}
.newsletter-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}
.newsletter-form button:hover { background-color: #b91c1c; }

.ad-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
}
.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.ad-placeholder {
    background-color: #f1f5f9;
    padding: 2rem 1rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.ad-placeholder p { font-family: var(--font-heading); font-weight: 700; color: var(--primary-color); }
.donate-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.donate-btn:hover { background-color: var(--primary-color); color: white; }

.sidebar-preview-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.sidebar-preview-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.9rem;
    align-items: start;
}
.sidebar-preview-card .image-wrapper {
    height: 82px;
    border-radius: 4px;
}
.sidebar-preview-card h4 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.sidebar-preview-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-preview-card a:hover h4 {
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: #020617;
    color: white;
    padding-top: 4rem;
}
.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: clamp(2.9rem, 2.4rem + 1.8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: capitalize;
    margin: 0 0 1rem;
}
.footer-logo-primary {
    color: #ffffff;
    font-size: 28px;
}
.footer-logo-accent {
    color: var(--secondary-color);
    font-size: 28px;
}
.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
}
.footer-social a:hover { background-color: var(--secondary-color); }

.footer-links-group h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-links-group h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 30px; height: 2px;
    background-color: var(--secondary-color);
}
.footer-links-group ul { list-style: none; }
.footer-links-group ul li { margin-bottom: 0.75rem; }
.footer-links-group ul a {
    color: #94a3b8;
    font-size: 0.95rem;
}
.footer-links-group ul a:hover { color: white; padding-left: 5px; }

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Article inner pages styling (preserved loosely) */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}
.article-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.article-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 4px; margin-bottom: 2rem; }
.article-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.article-content h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; }
.article-content h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.25rem;
    padding-left: 1.25rem;
}
.article-content li {
    margin-bottom: 0.75rem;
}
.article-content strong {
    color: var(--primary-color);
}
.article-content .article-lead {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    margin-top: 20px;
}
.contact-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.contact-card h2 {
    margin-top: 0;
}
.contact-email {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}
.contact-form-page {
    display: grid;
    gap: 0.85rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.contact-form-page label {
    font-weight: 700;
    color: var(--primary-color);
}
.contact-form-page input,
.contact-form-page textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
}
.contact-form-page textarea {
    resize: vertical;
    min-height: 180px;
}
.contact-form-page input:focus,
.contact-form-page textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.contact-form-page button {
    justify-self: start;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.contact-form-page button:hover {
    background-color: #b91c1c;
}
.article-content .fact-list {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    padding: 1.25rem 1.25rem 0.5rem;
    margin-left: 0;
}
.article-content .fact-list li {
    margin-left: 1rem;
}
.article-content .article-table {
    overflow-x: auto;
    margin-bottom: 2rem;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
}
.article-content th,
.article-content td {
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}
.article-content th {
    background-color: #eaf0f8;
    color: var(--primary-color);
    font-size: 0.95rem;
}
.article-content tr:last-child td {
    border-bottom: none;
}
.article-content .article-intro-card,
.article-content .article-note,
.article-content .article-warning,
.article-content .article-quote,
.article-content .article-steps,
.article-content .article-timeline,
.article-content .article-compare,
.article-content .article-card-grid {
    margin-bottom: 2rem;
}
.article-content .article-intro-card {
    background: linear-gradient(135deg, #f7fafc 0%, #eef4ff 100%);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
}
.article-content .article-intro-card p:last-child,
.article-content .article-note p:last-child,
.article-content .article-warning p:last-child,
.article-content .article-quote p:last-child {
    margin-bottom: 0;
}
.article-content .article-note {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 4px;
}
.article-content .article-warning {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.25rem;
    border-radius: 4px;
}
.article-content .article-warning strong,
.article-content .article-note strong {
    display: inline-block;
    margin-bottom: 0.35rem;
}
.article-content .article-quote {
    background-color: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
}
.article-content .article-quote strong {
    color: #fff;
}
.article-content .article-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.article-content .article-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.1rem 1.15rem;
}
.article-content .article-card h3,
.article-content .article-card h4 {
    margin-top: 0;
}
.article-content .article-card p:last-child,
.article-content .article-card ul:last-child {
    margin-bottom: 0;
}
.article-content .article-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.article-content .article-step {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.15rem;
    position: relative;
}
.article-content .article-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.article-content .article-step h3,
.article-content .article-step h4 {
    margin-top: 0;
}
.article-content .article-step p:last-child {
    margin-bottom: 0;
}
.article-content .article-timeline {
    border-left: 3px solid #dbe4f0;
    padding-left: 1.3rem;
}
.article-content .timeline-item {
    position: relative;
    margin-bottom: 1.3rem;
}
.article-content .timeline-item:last-child {
    margin-bottom: 0;
}
.article-content .timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 4px #fff;
}
.article-content .timeline-item h3,
.article-content .timeline-item h4 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}
.article-content .timeline-item p:last-child {
    margin-bottom: 0;
}
.article-content .article-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.article-content .compare-card {
    border-radius: 6px;
    padding: 1.15rem 1.2rem;
}
.article-content .compare-card h3 {
    margin-top: 0;
}
.article-content .compare-card.good {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.article-content .compare-card.bad {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
}
.article-content .compare-card ul {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr; }
    .hero-article .image-wrapper { height: 350px; }
    .side-featured { flex-direction: row; }
    .side-article { flex: 1; }
    
    .main-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-content .article-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .logo-wordmark {
        font-size: 1.35rem;
        gap: 0.25rem;
    }
    .top-bar { display: none; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-white);
        padding: 1rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 1rem; border-bottom: 1px solid var(--border-color); }
    .mobile-menu-btn { display: block; }
    .header-search { display: none; }
    
    .side-featured { flex-direction: column; }
    .hero-content { padding: 1rem; }
    .hero-content h1 { font-size: 1.5rem; }
    
    .list-article a { grid-template-columns: 1fr; gap: 1rem; }
    .list-article .image-wrapper { height: 200px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; gap: 1rem; text-align: center; }
    .article-content .article-card-grid,
    .article-content .article-steps,
    .article-content .article-compare {
        grid-template-columns: 1fr;
    }
}
