:root {
    --primary-color: #0a2540;
    --secondary-color: #007bff;
    --accent-color: #2ecc71;
    --text-color: #333;
    --light-grey: #f8f9fa;
    --border-color: #dee2e6;
    --card-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Global Resets & Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

ul {
    list-style-type: none;
}

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

/* --- Main Content Layout --- */
.page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Intro Section --- */
.intro-section {
    padding: 2rem;
    background-color: var(--light-grey);
    border-radius: 8px;
    text-align: center;
}

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

.article-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-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 16px rgba(0,0,0,0.1);
}

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

.article-card p {
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

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

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

.article-content ul, .article-content ol {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 1rem;
}
.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }

.cta-section {
    background-color: var(--accent-color);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.cta-section h3 {
    color: #fff;
}

.cta-section a.btn {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Sidebar --- */
.sidebar {
    padding: 20px;
    background-color: var(--light-grey);
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget-list li {
    margin-bottom: 10px;
}

.widget-list a {
    font-weight: 600;
}

.promo-text {
    font-size: 0.95rem;
}

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

.site-footer a {
    color: #fff;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

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

/* Desktop */
@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
