/* --- Basic Reset & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --bg-color: #f8f9fa;
    --content-bg-color: #ffffff;
    --text-color: #212529;
    --primary-color: #0056b3;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

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

a:hover {
    color: #003d82;
    text-decoration: underline;
}

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

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}
.site-title:hover {
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 700;
    color: var(--text-color);
    padding: 0.5rem;
}

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

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

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

main, aside {
    background-color: var(--content-bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--content-bg-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-top: 0;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

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

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

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
}

.article-content ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.cta-box {
    background-color: #e9f4ff;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

/* --- Sidebar --- */
.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

.sidebar-widget ul li {
    margin-bottom: 0.5rem;
}

.sidebar-widget ul a {
    font-weight: normal;
}

.promo-text {
    background-color: #e9f4ff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--content-bg-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Utility Classes --- */
.mb-2 {
    margin-bottom: 2rem;
}

/* --- Media Queries for Mobile Navigation --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        justify-content: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* --- Simple Content Page Styling --- */
.simple-page {
    min-height: 60vh;
}
