/* =========================================
   Design Tokens & Resets
   ========================================= */
:root {
    --primary: #d32f2f; /* A bold news red */
    --primary-hover: #b71c1c;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-alt: #f5f5f5;
    --border-color: #eaeaea;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-article: 'Lora', serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-alt);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

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

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

/* =========================================
   Typography & Buttons
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.dot {
    color: var(--primary);
}

.btn-primary, .btn-outline, .btn-submit {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary, .btn-submit {
    background-color: var(--primary);
    color: white;
}

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

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

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

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 10;
}

/* =========================================
   Header & Navigation
   ========================================= */
.main-header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo h1 {
    font-size: 28px;
    letter-spacing: -1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
}

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

/* =========================================
   Home Page Layout
   ========================================= */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.featured-article {
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.featured-article:hover {
    box-shadow: var(--shadow-md);
}

.article-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.03);
}

.article-content {
    padding: 25px;
}

.meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 15px;
}

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

.article-content p {
    color: var(--text-muted);
    font-size: 16px;
}

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

.widget {
    background: var(--bg-main);
    padding: 35px 30px;
    border-radius: var(--radius);
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    min-height: 400px;
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.trending-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 28px;
}

.trending-list li:last-child {
    margin-bottom: 0;
}

.number {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
}

.trend-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.trend-content h4 a:hover {
    color: var(--primary);
}

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

/* Latest News Grid */
.latest-news {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h3 {
    font-size: 24px;
}

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

/* Split Grid Layout */
.split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.split-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-horizontal {
    display: flex;
    background: var(--bg-main);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 180px;
}

.card-horizontal:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.card-horizontal .img-wrap {
    flex: 0 0 40%;
    overflow: hidden;
}

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

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

.card-horizontal .content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-horizontal h4 {
    font-size: 20px;
    font-family: var(--font-serif);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-horizontal h4 a {
    color: var(--text-main);
    text-decoration: none;
}

.card-horizontal h4 a:hover {
    color: var(--primary);
}

.card-horizontal .excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-vertical {
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

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

.card-vertical .img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

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

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

.card-vertical h4 {
    font-size: 17px;
    font-family: var(--font-serif);
    line-height: 1.4;
}

.card-vertical h4 a {
    color: var(--text-main);
    text-decoration: none;
}

.card-vertical h4 a:hover {
    color: var(--primary);
}

/* =========================================
   Blog Page Layout
   ========================================= */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 1000;
}
  
.progress-bar {
    height: 4px;
    background: var(--primary);
    width: 0%;
}

.single-post {
    max-width: 900px;
    margin: 60px auto 80px;
    background: var(--bg-main);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    overflow: hidden;
}

.post-header {
    padding: 60px 80px 40px;
    text-align: center;
    position: relative;
}

.post-header .category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 6px 14px;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0;
}

.post-hero-image {
    width: 100%;
    margin: 0;
    position: relative;
}

.post-hero-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.post-hero-image figcaption {
    padding: 12px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.post-content {
    font-family: var(--font-article);
    font-size: 20px;
    line-height: 1.85;
    color: #2b2b2b;
    padding: 50px 80px 80px;
}

/* Beautiful Drop Cap for the first paragraph */
.post-content > p:first-of-type::first-letter {
    font-size: 85px;
    float: left;
    line-height: 0.7;
    margin-right: 12px;
    margin-top: 8px;
    color: var(--primary);
    font-family: var(--font-serif);
    font-weight: bold;
}

.post-content .lead {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 500;
}

.post-content h2 {
    font-family: var(--font-sans);
    font-size: 28px;
    margin: 40px 0 20px;
}

.post-content h3 {
    font-family: var(--font-sans);
    font-size: 22px;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-alt);
    font-style: italic;
    font-size: 22px;
    color: var(--text-main);
}

.post-content ul {
    margin: 0 0 25px 40px;
    list-style-type: disc;
}

.post-content ul li {
    margin-bottom: 10px;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag {
    background: var(--bg-alt);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

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

/* =========================================
   Contact Page Layout
   ========================================= */
.contact-section {
    max-width: 900px;
    margin: 50px auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 18px;
    color: var(--text-muted);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.contact-info {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 800px;
}

.info-card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.contact-form-container {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

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

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #111;
    color: white;
    padding: 60px 0 0;
    margin-top: 60px;
}

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

.footer-brand h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #999;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    background: #0a0a0a;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .featured-section {
        grid-template-columns: 1fr;
    }
    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .main-nav {
        display: none; /* Hide for mobile, can toggle with JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .single-post {
        margin: 20px auto;
        border-radius: 0;
        box-shadow: none;
    }
    .post-header {
        padding: 40px 20px 20px;
    }
    .post-title {
        font-size: 36px;
    }
    .post-hero-image img {
        height: 300px;
    }
    .post-content {
        padding: 30px 20px 50px;
        font-size: 18px;
    }
    .card-horizontal {
        flex-direction: column;
        height: auto;
    }
    .card-horizontal .img-wrap {
        height: 200px;
    }
}
@media (max-width: 480px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

.article-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto 80px;
    align-items: start;
    padding: 0 20px;
}

.article-layout .single-post {
    margin: 0;
    max-width: 100%;
}

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

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        margin: 40px auto;
    }
}
