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

:root {
    --primary-color: #2980b9;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --font-family: 'Inter', sans-serif;
}

/* --- General Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

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

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

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

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
}

.site-nav a:hover, .site-nav a.active {
    color: var(--primary-color);
}

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

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

.page-header {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* --- Blog Post Grid (Homepage) --- */
.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) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

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

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

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

.card-excerpt {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: #666;
}

.read-more-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    text-align: center;
    align-self: flex-start;
    font-weight: 600;
}

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

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

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

.article-content a {
    font-weight: 600;
}

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

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

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 6rem; /* Account for sticky header */
}

.widget {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.widget ul a {
    color: var(--text-color);
    font-weight: 600;
}

.widget ul a:hover {
    color: var(--primary-color);
}


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

.site-footer a {
    color: #fff;
}
