:root {
    --primary-red: #cc0000;
    --primary-red-dark: #990000;
    --text-black: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-light-gray: #f0f0f0;
    --border-color: #dddddd;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Merriweather', serif; /* Classic news font */
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-black);
    background-color: var(--bg-light-gray);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-red);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= Header ================= */
.main-header {
    background-color: var(--bg-white);
    border-bottom: 4px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--text-black);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 5px 0;
}

.container-flex {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    margin-left: 15px;
    color: var(--text-light);
}

.social-links a:hover {
    color: var(--primary-red);
}

.nav-wrapper {
    padding: 15px 0;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-adv {
    background-color: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-news {
    font-weight: 300;
    color: var(--text-black);
    letter-spacing: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-black);
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--text-black);
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    border-bottom-color: var(--primary-red);
}

/* ================= Layout ================= */
.main-container {
    max-width: var(--container-width);
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px; /* Main content + Sidebar */
    gap: 30px;
}

/* ================= Hero Section ================= */
.hero-card {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    background: var(--text-black);
}

.hero-image-wrapper {
    position: relative;
    height: 450px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-red);
    color: white;
    padding: 5px 15px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title a:hover {
    text-decoration: underline;
    color: white;
}

.hero-excerpt {
    font-size: 1.1rem;
    margin-bottom: 10px;
    max-width: 800px;
    opacity: 0.9;
}

.published-time {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    opacity: 0.7;
}

/* ================= News Grid ================= */
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-category {
    font-family: var(--font-heading);
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 10px 0;
    line-height: 1.3;
}

.card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 10px;
}

/* ================= Sidebar ================= */
.widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 30px;
}

.widget-header h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.weather-widget {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border: none;
}

.weather-widget .widget-header h4 {
    border-bottom-color: rgba(255,255,255,0.3);
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.weather-icon {
    font-size: 3rem;
}

.temperature {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: bold;
    display: block;
}

.condition {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ad-placeholder {
    height: 300px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--font-heading);
    color: #999;
    font-size: 1.2rem;
    border: 2px dashed #ccc;
}

.notice-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--bg-light-gray);
    padding-bottom: 10px;
}

.notice-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notice-list i {
    color: var(--primary-red);
    margin-top: 5px;
}

/* ================= Footer ================= */
.main-footer {
    background-color: #111;
    color: #aaa;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h4, .footer-legal h4 {
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--primary-red);
}

.copyright-bar {
    background-color: black;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar-primary {
        order: 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-image-wrapper {
        height: 300px;
    }
}
