/*
Theme Name: NewsHub Pro
Theme URI: https://example.com/newshub-pro
Author: Your Name
Author URI: https://example.com
Description: A professional news theme inspired by modern news websites, featuring a clean layout, responsive design, and optimized for readability.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newshub-pro
Tags: news, blog, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #c8102e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a00d25;
}

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

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 3px solid #c8102e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 32px;
    font-weight: bold;
    color: #c8102e;
    margin: 0;
}

.site-title a {
    color: #c8102e;
}

/* Navigation */
.main-navigation {
    background-color: #1a1a1a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    padding: 12px 18px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background-color: #c8102e;
    color: #fff;
}

/* Main Content */
.site-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.content-area {
    background-color: #fff;
    padding: 20px;
}

/* Featured Post */
.featured-post {
    margin-bottom: 30px;
    border-bottom: 3px solid #c8102e;
    padding-bottom: 20px;
}

.featured-post .post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    width: 100%;
    transition: transform 0.3s ease;
}

.featured-post .post-thumbnail:hover img {
    transform: scale(1.05);
}

.featured-post h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-post .entry-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.featured-post .entry-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-card .post-thumbnail {
    overflow: hidden;
    height: 200px;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 15px;
}

.post-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-card .entry-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}

.post-card .entry-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Sidebar */
.sidebar {
    background-color: #fff;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    border-bottom: 3px solid #c8102e;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

/* Single Post */
.single-post .entry-header {
    margin-bottom: 20px;
}

.single-post .entry-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.single-post .entry-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.single-post .post-thumbnail {
    margin-bottom: 25px;
}

.single-post .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #c8102e;
    margin-bottom: 15px;
}

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

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

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post h2 {
        font-size: 24px;
    }
    
    .single-post .entry-title {
        font-size: 28px;
    }
}