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

/* --- CSS Variables (Minimalist Clean Theme) --- */
:root {
    --primary-font: 'Inter', sans-serif;
    --background-color: #ffffff;
    --light-gray-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #212529;
    --subtle-text-color: #6c757d;
    --accent-color: #007bff;
    --accent-hover-color: #0056b3;
    --header-footer-bg: #343a40;
    --header-footer-text: #f8f9fa;
    --container-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 1rem 0;
    border-bottom: 3px solid var(--accent-color);
}

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

.site-title a {
    color: var(--header-footer-text);
    font-size: 1.8rem;
    font-weight: 700;
}
.site-title a:hover {
    text-decoration: none;
    color: #fff;
}

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

.main-nav a {
    color: var(--header-footer-text);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

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

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

/* --- Hero Section (Homepage) --- */
.hero {
    background-color: var(--light-gray-bg);
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}
.hero h1 {
    color: var(--text-color);
}
.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--subtle-text-color);
}

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

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


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

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

.post-card-image {
    height: 200px;
    background-color: var(--light-gray-bg);
    background-size: cover;
    background-position: center;
}

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

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

.post-card-excerpt {
    color: var(--subtle-text-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

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


/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: var(--light-gray-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

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

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

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

.promo-text p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--subtle-text-color);
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.article-header h1 {
    font-size: 2.8rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin-top: 0.5rem;
}
.article-meta span {
    margin-right: 1rem;
}

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

.article-content img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}
.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--subtle-text-color);
}

/* --- Static Pages (About, Contact, etc.) --- */
.static-page-header {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--light-gray-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form label {
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--primary-font);
    font-size: 1rem;
}
.contact-form button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}
.contact-form button:hover {
    background-color: var(--accent-hover-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--header-footer-bg);
    color: var(--header-footer-text);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}
.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}
