
/* --- General Setup & Variables --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color: #212529;
    --text-light: #495057;
    --bg-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --font-family: 'Inter', sans-serif;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* --- Base & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { 
    margin-bottom: 1.5rem; 
    color: var(--text-light);
}

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

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

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

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

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

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

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

.site-nav a {
    font-weight: 500;
    color: var(--text-light);
    padding-bottom: 0.5rem;
    position: relative;
}

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

.site-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

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

.main-content, .sidebar {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- Homepage Hero/Intro --- */
.intro-section {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.intro-section h1 {
    font-size: 3.2rem;
}
.intro-section p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 1rem auto 0;
}

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.article-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #fff;
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
}

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

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

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

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

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

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

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

.article-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.article-content {
    font-size: 1.1rem;
}

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

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.cta-section {
    margin: 3rem 0;
    padding: 2.5rem;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.site-footer p {
    margin: 0;
    color: var(--secondary-color);
}

/* --- Sub-pages (About, Contact etc.) --- */
.page-header {
    text-align: center;
    padding: 3rem 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .intro-section h1 { font-size: 2.5rem; }
    .article-header h1 { font-size: 2.5rem; }

    .site-header {
        padding: 1rem 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .main-content, .sidebar, .page-content {
        padding: 1.5rem;
    }
}
