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

/* --- CSS Variables --- */
:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --border-color: #DEE2E6;
    --text-color: #212529;
    --text-muted: #6C757D;
    --accent-color: #007BFF;
    --accent-hover: #0056b3;
    --header-bg: #FFFFFF;
    --font-family: 'Inter', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* --- General Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

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

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

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

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

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

.site-title a:hover {
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 600;
    color: var(--text-muted);
}

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

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

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

.main-content {
    width: 100%;
}

.sidebar {
    width: 100%;
}

/* --- Blog Post Grid (Homepage) --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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


.post-card {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Sidebar Widgets --- */
.widget {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.widget ul {
    list-style: none;
}

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

.widget ul li a {
    color: var(--text-color);
}


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

.footer-container p {
    margin: 0;
    color: #ced4da;
}

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

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

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

.article-content p, .article-content ul, .article-content blockquote {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.article-content ul {
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

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

.cta-box {
    background-color: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* --- Simple Page Styles (About, Contact, etc.) --- */
.page-header {
    background-color: var(--secondary-bg);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Contact Form Styles --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
}

.contact-form button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--accent-hover);
}
    