:root {
    --primary: #1a2a3a;
    --accent: #d4af37;
    --text: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border: #e0e0e0;
}

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

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

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

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

header {
    padding: 20px 0;
    border-bottom: 3px double var(--border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--primary);
}

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

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-article img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(20%);
}

/* News Grid */
.news-section {
    margin-bottom: 60px;
}

.section-title {
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    margin-bottom: 30px;
    padding-right: 50px;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
    background: var(--light-bg);
    padding: 25px;
    border: 1px solid var(--border);
}

.sidebar h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    color: #bdc3c7;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-article img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    nav ul {
        gap: 15px;
        padding: 10px 0;
        flex-wrap: wrap;
    }
    nav a {
        font-size: 0.8rem;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.6rem;
    }
    nav ul {
        gap: 10px;
    }
    nav li {
        width: 45%;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .featured-article img {
        height: 250px;
    }
    h1 {
        font-size: 1.8rem;
    }
}

/* Contextual Link Styling */
.context-link {
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

.context-link:hover {
    background: var(--accent);
    color: var(--white);
}
