
/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;600&display=swap');

:root {
    --primary-color: #2d3a4b; /* Deep Slate Blue */
    --secondary-color: #5a6878; /* Muted Slate */
    --accent-color: #b58900; /* Dark Gold/Mustard */
    --background-color: #fdfdfd; /* Soft Off-White */
    --surface-color: #ffffff;
    --text-color: #333333;
    --border-color: #eeeeee;
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    text-decoration: underline;
    color: #8a6800;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.site-title a {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

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

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

main {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 2.5rem;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-family: var(--font-family-heading);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}
.sidebar-widget ul li a {
    color: var(--text-color);
}
.sidebar-widget ul li a:hover {
    color: var(--accent-color);
}
.sidebar-promo {
    background-color: #f8f4e8;
    border-left: 4px solid var(--accent-color);
    color: var(--primary-color);
    padding: 1.5rem;
    text-align: center;
}
.sidebar-promo p {
    margin: 0;
    font-weight: 600;
}

/* --- Homepage Specific --- */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

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

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

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    font-family: var(--font-family-heading);
    margin-top: 0;
    font-size: 1.4rem;
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #8a6800;
    text-decoration: none;
    color: white;
}

/* --- Article Page Specific --- */
.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.article-header h1 {
    font-size: 3.2rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
}
.article-content h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-family: var(--font-family-heading);
}
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}

.cta-box {
    background: #f8f4e8;
    border: 1px solid #e0d6b3;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    border-radius: var(--border-radius);
}
.cta-box h3 {
    margin-top: 0;
}

/* --- Simple Page Styles --- */
.simple-page-content {
    min-height: 50vh;
    max-width: 900px;
    margin: 0 auto;
}
.simple-page-content p {
    font-size: 1.1rem;
}

/* Contact Page Form Placeholder */
.contact-info {
    font-size: 1.1rem;
    text-align: center;
    padding: 2.5rem;
    background: #f8f4e8;
    border-radius: var(--border-radius);
}

/* Responsive Navigation for small screens */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .article-header h1 { font-size: 2.5rem; }

    .sidebar {
        position: static;
    }
}
