/* --- Global Styles & Variables --- */
:root {
    --background-color: #fdf6e3; /* Cream */
    --secondary-background-color: #fffcf2;
    --text-color: #586e75; /* Muted Dark Grey/Blue */
    --heading-color: #cb4b16; /* Muted Orange */
    --accent-color: #2aa198; /* Muted Teal */
    --border-color: #eee8d5;
    --font-family-heading: 'Lobster', cursive;
    --font-family-body: 'Roboto Slab', serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family-body);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 17px;
    -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-family: var(--font-family-heading);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

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

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--secondary-background-color);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

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

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

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

.main-nav a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--heading-color);
    border-bottom-color: var(--heading-color);
}

/* --- 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: 3rem;
    background-color: transparent;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

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

/* --- 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(--secondary-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.article-card p {
    flex-grow: 1;
    font-size: 1rem;
}

.read-more {
    font-weight: 700;
    align-self: flex-start;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more:hover {
    background-color: var(--heading-color);
    transform: scale(1.05);
}

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

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

.article-meta {
    color: #93a1a1;
    font-size: 1rem;
    font-weight: 700;
}
.article-meta a {
    color: var(--text-color);
}
.article-meta a:hover {
    color: var(--heading-color);
}

.article-content h2 {
    margin-top: 3rem;
    font-size: 2.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content ul {
    list-style-type: '❤ ';
    padding-left: 30px;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    padding-left: 15px;
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 2.5rem 0;
    color: var(--heading-color);
    background-color: var(--secondary-background-color);
    font-size: 1.2rem;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

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

.sidebar .widget h3 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    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;
}

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

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

.site-footer .footer-links a {
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 700;
    text-decoration: none;
}

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

/* --- Utility & Other Pages --- */
.page-header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.content-section {
    background: var(--secondary-background-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content-section p, .content-section ul {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.offers-grid .article-card {
    text-align: center;
    padding: 2.5rem;
}
.offers-grid .article-card h3 a {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    color: var(--accent-color);
    text-decoration: none;
}
.offers-grid .article-card h3 a:hover {
    color: var(--heading-color);
}
