/* Global Styles - News Portal Theme */
:root {
    --primary-color: #10B981; /* Emerald Green - Growth & Access */
    --primary-dark: #059669;
    --secondary-color: #374151; /* Slate Gray - Professional Text */
    --accent-color: #F59E0B; /* Amber - Highlights */
    --text-color: #1F2937;
    --light-text: #6B7280;
    --background-light: #F3F4F6;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --font-main: 'Open Sans', sans-serif; /* Distinct from Site 1 */
    --font-heading: 'Merriweather', serif; /* Editorial feel */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }

.container {
    width: 90%;
    max-width: 1100px; /* Slightly narrower for reading focus */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 0;
    font-size: 0.75rem;
    text-align: right;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero / Featured Section */
.hero-news {
    background-color: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-content .tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.featured-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.featured-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(4px);
}

.featured-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Main Content Grid */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Content + Sidebar */
    gap: 3rem;
    padding: 3rem 0;
}

/* Article Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-body {
    padding: 1.5rem;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
}

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

.sidebar-links a {
    font-weight: 500;
    display: block;
}

.sidebar-links span {
    display: block;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #9CA3AF;
    padding: 3rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.legal-disclaimer {
    background-color: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.legal-disclaimer p {
    color: #D1D5DB;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-news {
        padding: 2rem 0;
    }
}
