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

/* === VARIABLES & GLOBAL STYLES === */
:root {
    --primary-color: #3B4B64; /* Deep, muted blue */
    --secondary-color: #2F3E53; /* Slightly darker blue for contrast */
    --accent-color: #D4A373; /* Muted gold/terracotta for CTAs */
    --text-color: #4A4A4A;
    --background-color: #F8F7F4; /* Soft off-white / light beige */
    --white-color: #FFFFFF;
    --border-color: #EAE8E1;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    --transition-speed: 0.3s ease;
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
}

/* === HEADER & NAVIGATION === */
.site-header {
    background-color: rgba(248, 247, 244, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 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-header .logo a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary-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(--accent-color);
    transition: width var(--transition-speed);
}

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

/* === PAGE LAYOUT (MAIN & SIDEBAR) === */
.page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
    flex: 1;
}

@media (min-width: 800px) {
    .page-content {
        grid-template-columns: 2.5fr 1fr;
    }
}

main.main-content {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
section.intro, section.articles-section {
    padding: 0;
    border: none;
}


/* === HOMEPAGE: ARTICLES SECTION === */
.articles-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

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

.article-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.article-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}
.article-card p {
    flex-grow: 1;
    color: #555;
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 700;
    color: var(--accent-color);
}
.read-more:hover {
    color: var(--primary-color);
}

/* === SIDEBAR & WIDGETS === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

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

.widget-list a {
    display: block;
    transition: padding-left var(--transition-speed), color var(--transition-speed);
    font-weight: 400;
}

.widget-list a:hover {
    padding-left: 8px;
    color: var(--accent-color);
}

.promo-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === BLOG POST & PAGE STYLES === */
.blog-post, .page {
    padding: 0;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

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

.post-meta {
    font-size: 0.9rem;
    color: #888;
}

.blog-post h2, .page h2 {
    margin-top: 3rem;
}

.blog-post ul, .page ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.blog-post ul li, .page ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.8rem;
    position: relative;
}
.blog-post ul li::before, .page ul li::before {
    content: '›';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: 5px;
}

/* === CTA (CALL TO ACTION) === */
.cta-section {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-top: 3rem;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    letter-spacing: 0.5px;
    font-size: 1rem;
    border: none;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white-color);
}


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

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

.site-footer a {
    color: var(--primary-color);
    margin: 0 0.75rem;
    font-weight: 400;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 799px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

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

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

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

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