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

:root {
    --bg-color: #FFFFFF;
    --text-color: #111827;
    --text-muted: #6B7280;
    --accent-color: #3B82F6;
    --border-color: #E5E7EB;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* --- Header & Navigation --- */
.header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

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

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

.main-nav a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--accent-color);
}

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

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

/* --- Article Previews (Homepage) --- */
.article-previews {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.article-preview h3 {
    margin-bottom: 0.5rem;
}

.article-preview h3 a {
    color: var(--text-color);
    text-decoration: none;
}
.article-preview h3 a:hover {
    color: var(--accent-color);
}

.article-preview .btn {
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
}

.btn:after {
    content: ' →';
}

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

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--text-muted);
}

.article-content ul, .article-content ol {
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cta-box {
    background-color: #F9FAFB;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
}
.cta-box h3 {
    margin-top: 0;
}
.cta-box .btn {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
}
.cta-box .btn:hover {
    background-color: #1D4ED8;
    text-decoration: none;
}
.cta-box .btn:after {
    content: '';
}


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

.sidebar .widget h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

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

.sidebar .widget ul li a {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
}
.sidebar .widget ul li a:hover {
    color: var(--accent-color);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    h1 { font-size: 2.25rem; }
    .article-header h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
