@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary: #1a1a1a;
    --secondary: #333333;
    --accent: #c41e3a;
    --text: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
    --white: #ffffff;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

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

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    padding: 1.5rem 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-link {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.header-link:hover {
    color: var(--accent);
}

.btn-subscribe {
    background: var(--accent);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background: #a01729;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

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

/* Hero Section */
.hero-section {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-top: 1rem;
}

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

.featured-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.featured-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.featured-content .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured-content .excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.section-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.section-link:hover {
    text-decoration: underline;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.article-title a {
    color: var(--primary);
}

.article-title a:hover {
    color: var(--accent);
}

.article-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.sidebar-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-item h4 a {
    color: var(--primary);
}

.sidebar-item h4 a:hover {
    color: var(--accent);
}

.sidebar-item .meta {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Newsletter */
.newsletter-box {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-box h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-btn {
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #a01729;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.9rem;
}

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

.footer-links {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 968px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 0.75rem 0;
    }
    
    .featured-content h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
