/* assets/css/style.css */
:root {
    --primary-color: #0056b3; /* Classic news blue */
    --secondary-color: #dc3545; /* Alert/Breaking red */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --container-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

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

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

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

/* Header */
header {
    background: #fff;
    border-bottom: 3px solid var(--primary-color);
}

.top-bar {
    background: #f4f4f4;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

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

.logo h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.header-ad {
    max-width: 728px;
    height: 90px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.header-ad img { max-width: 100%; height: auto; }

/* Navigation */
.main-nav {
    background: #222;
    color: #fff;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.main-nav li a:hover {
    background: var(--primary-color);
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px 0;
}

/* Sidebar */
.sidebar-widget {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.widget-title {
    margin-top: 0;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.section-title {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    margin: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 1.2rem;
}

/* Post Grids */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.post-card {
    background: #fff;
    /* border: 1px solid var(--border-color); */
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
}

.post-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.post-card .meta {
    font-size: 0.85rem;
    color: #777;
}

/* Feature Post (for Latest) */
.featured-post {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.featured-post img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.featured-post .content h2 {
    font-size: 2rem;
    margin-top: 0;
}

.featured-post .excerpt {
    font-size: 1.1rem;
    color: #555;
}

/* Single Post */
.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.article-meta {
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Utilities */
.ad-container {
    margin: 20px 0;
    text-align: center;
}
.ad-container img { max-width: 100%; }

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-post img { height: 250px; }
    .main-header { flex-direction: column; text-align: center; gap: 15px; }
}
