/* ---
Theme: Minimalist Clean
Font: Inter (Sans-Serif)
--- */

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

:root {
    --primary-color: #2c3e50; /* Dark Slate Blue */
    --secondary-color: #3498db; /* Bright Blue */
    --background-color: #ffffff;
    --text-color: #34495e; /* Wet Asphalt */
    --light-gray: #ecf0f1; /* Clouds */
    --border-color: #bdc3c7; /* Silver */
    --font-family: 'Inter', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    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 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1.5rem;
}

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

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--background-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    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: 600;
    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(--secondary-color);
    transition: width var(--transition-speed);
}

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

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

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

main {
    width: 100%;
}

aside {
    width: 100%;
}

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

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

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

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

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

.article-card {
    background-color: var(--background-color);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

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

.article-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

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

.article-card h3 a:hover {
    color: var(--secondary-color);
}

.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
}

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

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

.article-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.article-content a {
    text-decoration: underline;
}

.article-content img {
    margin: 2rem 0;
}

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

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

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

.widget ul li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.widget ul li:last-child a {
    border-bottom: none;
}

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

.cta-section h2 {
    color: var(--background-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--background-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: #2980b9;
    transform: scale(1.05);
    color: var(--background-color);
}

/* --- Contact Form --- */
.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.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    cursor: pointer;
    border: none;
}

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

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

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

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

.copyright {
    font-size: 0.9rem;
}

/* --- Mobile Nav --- */
/* Simple mobile nav could be added if needed, but for now, it just wraps */
@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; }
    h3 { font-size: 1.5rem; }
}
