/* Reset and Base Styles */
:root {
    --primary-color: #007BFF;
    --secondary-color: #343A40;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #495057;
    --border-color: #dee2e6;
    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Header & Navigation */
.site-header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-family-headings);
}

.site-title a {
    color: var(--secondary-color);
}
.site-title a:hover {
    text-decoration: none;
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
}

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

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

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
}

/* Articles Grid & Lists */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

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

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

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

.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
}

/* Sidebar */
.sidebar {
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-self: start;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.75rem;
}

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

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

.article-body h2 {
    margin-top: 2.5rem;
}
.article-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 1rem;
}
.cta-button:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #fff;
}

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

.site-footer p {
    margin-bottom: 0.5rem;
    color: #ccc;
}
.footer-links a {
    color: #fff;
    margin: 0 0.5rem;
}
