/* ---
Theme: Minimalist Clean
Font: Inter
--- */

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

:root {
    --primary-color: #007bff; /* Bright Blue */
    --background-color: #ffffff; /* White */
    --surface-color: #f8f9fa; /* Off-White */
    --text-color: #212529; /* Almost Black */
    --text-muted-color: #6c757d; /* Gray */
    --border-color: #dee2e6; /* Light Gray */
    --font-family-main: 'Inter', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition-speed: 0.2s ease-in-out;
}

/* --- General Resets & Defaults --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

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

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

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

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.main-nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted-color);
    position: relative;
    padding-bottom: 5px;
}

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

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

.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: 3rem;
    padding: 3rem 0;
}

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

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--text-muted-color);
}

/* --- Blog Articles Section --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.article-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 var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

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

.article-card h3 {
    margin-top: 0;
}

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

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

.article-card p {
    flex-grow: 1;
    color: var(--text-muted-color);
    font-size: 0.95rem;
}

.read-more-link {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
}

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

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

.article-content a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

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

.widget-title {
    font-size: 1.2rem;
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-muted-color);
}

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

/* --- Call to Action --- */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    color: #fff;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-button:hover {
    background-color: #f0f0f0;
    color: #0056b3;
    transform: scale(1.05);
    text-decoration: none;
}

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

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

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

.contact-form button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color var(--transition-speed);
}
.contact-form button:hover {
    background-color: #0056b3;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--text-color);
    color: var(--surface-color);
    padding: 3rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

.footer-links a {
    color: var(--surface-color);
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
}
