/* --- Global Styles & Variables --- */
:root {
    --background-color: #F8F6F2; /* Light beige */
    --card-background-color: #fff;
    --text-color: #5D4037; /* Earthy brown */
    --heading-color: #2E7D32; /* Deep green */
    --accent-color: #689F38; /* Leafy green */
    --accent-color-hover: #4CAF50; /* Brighter green */
    --border-color: #E0E0E0;
    --font-family-body: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --border-radius: 12px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

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

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--card-background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.site-header .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}
.site-header .logo a:hover {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* --- Main Content Layout --- */
main.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    main.container {
        grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    }
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

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

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #757575;
}

/* --- Blog Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.article-card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    position: relative;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.market-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    object-fit: cover;
}

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

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

.article-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #616161;
}

.read-more {
    font-weight: 700;
    font-size: 0.9rem;
    align-self: flex-start;
    color: var(--accent-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background-color: #E8F5E9;
    transition: background-color 0.3s, color 0.3s;
}

.read-more:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* --- Article Page --- */
.article-full-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    height: 400px;
    object-fit: cover;
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}

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

.article-meta {
    color: #757575;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}
.article-meta a {
    color: var(--text-color);
}

.article-content h2 {
    margin-top: 3rem;
    font-size: 2rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.article-content ul {
    list-style-type: none;
    padding-left: 5px;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.8rem;
    padding-left: 30px;
    position: relative;
}

.article-content ul li::before {
    content: '🌱';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #424242;
    background-color: #E8F5E9;
    padding: 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.sidebar .widget h3 {
    font-size: 1.6rem;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list a {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-list a::before {
    content: '→';
    transition: transform 0.3s ease;
}

.widget-list a:hover::before {
    transform: translateX(5px);
}
.widget-list a:hover {
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background-color: #37474F; /* Dark slate */
    color: #CFD8DC;
    text-align: center;
    padding: 3rem 0;
    margin-top: 40px;
    border-top: 5px solid var(--heading-color);
}

.site-footer p {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}

.site-footer .footer-links a {
    color: #fff;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

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

/* --- Utility & Other Pages --- */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}
.page-header h1 {
    font-size: 3rem;
}

.content-section {
    padding: 1rem 0;
}

.content-section p, .content-section ul {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.offers-grid .offer-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.offers-grid .offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.offers-grid .offer-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.offers-grid .offer-card-content h3 a {
    font-size: 1.8rem;
    color: var(--heading-color);
    text-decoration: none;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }

    main.container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card .card-content {
        padding: 20px;
    }
}