/* --- Variables & Reset --- */
:root {
    --bg-color: #f9f9f9;
    --surface-color: #ffffff;
    --primary-color: #A92C2C; /* Deep Red */
    --text-color: #222222;
    --text-muted-color: #666666;
    --border-color: #e0e0e0;
    --font-family-sans: 'Inter', sans-serif;
    --font-family-serif: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family-sans);
    line-height: 1.7;
}

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

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

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

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

h1, h2, h3 {
    font-family: var(--font-family-serif);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-family-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-muted-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}


/* --- Main Layout --- */
main.container {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    main.container {
        grid-template-columns: 3fr 1fr;
    }
}

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

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

@media (min-width: 1200px) {
    .main-content > .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--surface-color);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.article-card a {
    color: var(--text-color);
}

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

.card-content {
    padding: 1.5rem;
}

.card-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted-color);
}

/* --- Category & Article Page --- */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    font-size: 2.5rem;
}

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

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

.article-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.article-meta {
    margin: -1rem 0 1.5rem;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-full-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 2.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-body h3 {
    margin-top: 2.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* --- Sidebar --- */
.sidebar .promo-box, .sidebar .related-articles {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.sidebar h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.sidebar p {
    color: var(--text-muted-color);
}

.related-articles {
    margin-top: 2rem;
}

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

/* --- Footer --- */
.site-footer {
    background-color: var(--text-color);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    color: var(--bg-color);
}
.site-footer .container {
    color: var(--text-muted-color);
}
