/*
Theme Name: Modern Newspaper
Theme URI: https://yourwebsite.com
Author: You
Description: A responsive, SEO-friendly newspaper theme built for publishing and Adwords monetization.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: modern-newspaper
*/

/* --- CSS Variables --- */
:root {
    --bg-color: #fcfcfc; /* Off-white newsprint feel */
    --text-color: #1a1a1a;
    --border-color: #dddddd;
    --accent-color: #8b0000; /* Dark red accent for newspaper feel */
    --font-heading: 'Merriweather', 'Georgia', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Base Styles (RWD & Mobile First) --- */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-color); text-decoration: none; }
a:hover { color: var(--accent-color); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin-bottom: 0.5em; }

/* --- Layout Container --- */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
.site-header {
    border-bottom: 4px double var(--text-color);
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}
.site-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}
.main-navigation ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; justify-content: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.main-navigation li { margin: 0 15px; }
.main-navigation a {
    display: block; padding: 10px 0;
    font-weight: bold; text-transform: uppercase; font-size: 0.9rem;
}

/* --- Ad Zones --- */
.ad-slot {
    background: #eaeaea; color: #888;
    text-align: center; padding: 20px;
    margin: 20px auto; border: 1px dashed #ccc;
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; /* Standard leaderboard height */
}

/* --- Homepage Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.post-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
/* Featured Post Styling */
.post-card.featured-post {
    grid-column: 1 / -1;
    border-bottom: 3px solid var(--text-color);
}
.featured-post .post-title { font-size: 2.5rem; }
.post-title { font-size: 1.5rem; margin-top: 10px; }
.post-meta { font-size: 0.85rem; color: #666; margin-bottom: 10px; }

/* --- Single Post & Pages --- */
.single-content, .page-content {
    max-width: 800px; margin: 0 auto;
    font-size: 1.1rem; border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

/* --- Responsive Layout --- */
@media(min-width: 768px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 1024px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .site-main { display: flex; justify-content: space-between; }
    .primary-content { width: 70%; }
    .sidebar { width: 25%; padding-left: 20px; border-left: 1px solid var(--border-color); }
}
