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

/* --- CSS Variables --- */
:root {
    --primary-color: #2563eb; /* A nice blue */
    --secondary-color: #f3f4f6; /* Light gray background */
    --text-color: #1f2937; /* Dark gray for text */
    --text-light-color: #6b7280; /* Lighter gray for secondary text */
    --border-color: #d1d5db; /* Border color */
    --white-color: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #1f2937;
    --footer-text: #e5e7eb;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

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

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

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

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}
.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* --- Main Content Layout --- */
.main-content {
    flex: 1;
    padding: 2rem 0;
    display: grid;
    gap: 2rem;
}

/* --- Homepage Specific --- */
.hero {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.125rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-section {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    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;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.blog-card-content h3 {
    margin-bottom: 0.5rem;
}

.blog-card-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

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

.read-more-btn:hover {
    background-color: #1d4ed8; /* Darker blue */
    text-decoration: none;
}

/* --- Page & Article Layout --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.main-column {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

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

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

.article-content h2 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}
.article-content ul {
    list-style-position: inside;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 100px; /* Adjust based on header height */
    align-self: start;
}

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

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

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

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

.sidebar-widget a {
    font-weight: 600;
}

.promo-widget p {
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
}

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

/* --- Contact Form (Simple Styling) --- */
.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: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.contact-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #1d4ed8;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}
