
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --bg-main: #F8F8F8;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --primary-accent: #9A2A2A;
    --border-color: #DDDDDD;
    --card-bg: #FFFFFF;
}

/* --- Base Styles --- */
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #333;
}

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 0;
}

/* --- Header & Navigation --- */
.site-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-header h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--text-dark);
}

.site-header h1 a {
    color: inherit;
}

.site-header p {
    font-size: 1.1rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
}

.main-nav {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

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

/* --- Main Content & Layout --- */
.main-content {
    padding: 2rem 0;
}

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

@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 2.5fr 1fr;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Article Card --- */
.article-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card .card-content {
    padding: 1.5rem;
}

.card-content .category {
    color: var(--primary-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.3;
}

.card-content h3 a {
    color: var(--text-dark);
}

.card-content .read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.featured-article {
    border: none;
    padding: 0;
    box-shadow: none;
}
.featured-article:hover {
     box-shadow: none;
}

.featured-article img {
    height: auto;
}

.featured-article .card-content {
    padding: 2rem 0 0;
}

.featured-article h2 {
    font-size: 2.8rem;
}

.featured-article h2 a {
     color: var(--text-dark);
}

.featured-article p {
    font-size: 1.1rem;
    color: #555;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-accent);
}

.sidebar-widget p {
    color: #555;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    background-color: #EFEFEF;
    color: #555;
}

/* --- Category & Article Page Specifics --- */
.page-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    border-bottom: 2px solid var(--primary-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}
.page-title-wrapper {
    text-align: center;
}

.article-page header {
    text-align: center;
    margin-bottom: 2rem;
}
.article-page header .category {
    color: var(--primary-accent);
    font-weight: 700;
    text-transform: uppercase;
}
.article-page header h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
}
.article-page header .meta {
    color: #777;
}
.article-page .featured-image {
    margin-bottom: 2rem;
}
.prose {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}
.prose h2 {
    font-size: 2rem;
    margin-top: 2.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
}
.prose p {
    margin-bottom: 1.5em;
}
.prose a {
    text-decoration: underline;
    font-weight: 700;
}
.prose .lead {
    font-size: 1.3rem;
    font-style: italic;
    color: #555;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.related-articles li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.related-articles li:last-child {
    border-bottom: none;
}
.related-articles a {
    color: var(--text-dark);
    font-weight: 700;
}
.related-articles a:hover {
    color: var(--primary-accent);
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .site-header h1 { font-size: 2.8rem; }
    .page-title, .article-page header h1 { font-size: 2.2rem; }
    .featured-article h2 { font-size: 2rem; }
}

@media (max-width: 767px) {
    .site-header h1 { font-size: 2.2rem; }
    .main-nav ul { justify-content: space-around; }
}
