/* ---
Theme: Nature Inspired
Font: Merriweather
Tone: Friendly & Casual
--- */

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

/* --- CSS Variables --- */
:root {
    --bg-color: #FBF9F4;
    --surface-color: #F1F3EB;
    --primary-color: #4A6C4A;
    --primary-color-dark: #3B563B;
    --text-color: #3C3633;
    --text-muted-color: #7D7463;
    --border-color: #DCD6C8;
    --font-family-main: 'Merriweather', serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* --- Global Resets & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 17px;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.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: var(--primary-color-dark);
    text-decoration: underline;
}

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

/* --- Layout & Container --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 3rem 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.site-title a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.site-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-nav a {
    color: var(--text-muted-color);
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Hero Section (Homepage) --- */
.hero {
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

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

/* --- Blog Article Card --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

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

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

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

.article-card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.article-card-content p {
    color: var(--text-muted-color);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: auto;
    font-weight: 700;
    border: 1px solid var(--primary-color);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
}

.read-more-btn:hover {
    background-color: var(--primary-color-dark);
    text-decoration: none;
    transform: scale(1.05);
}

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

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

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

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

.sidebar-widget ul li a {
    color: var(--text-color);
    font-weight: 400;
}
.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

/* --- Article Page & Content Pages --- */
.article-full, .content-page {
    background-color: var(--bg-color);
    padding: 0;
}

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

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

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

.cta-section {
    border-top: 2px solid var(--border-color);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
}

.cta-section h3 {
    font-size: 1.8rem;
}

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

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

.footer-links a {
    color: var(--text-muted-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}