/* --- Global Styles & Variables --- */
:root {
    --background-color: #fdf6e3; /* Creamy background */
    --card-background-color: #fff;
    --text-color: #586e75; /* Dark grey-blue */
    --heading-color: #cb4b16; /* Burnt orange */
    --accent-color: #b58900; /* Gold */
    --accent-color-hover: #cb4b16;
    --border-color: #eee8d5; /* Light cream */
    --font-family-heading: 'Lobster', cursive;
    --font-family-body: 'Roboto Slab', serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

*,
*::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: 1.5rem;
    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(--accent-color-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: #fff;
    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;
    flex-wrap: wrap;
}

.site-header .logo a {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    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: 30px;
}

.main-nav a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 5px;
    text-decoration: none;
    border-bottom: 3px 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);
    text-decoration: none;
}

/* --- 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: 4rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 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: 1px solid var(--border-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(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

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

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

.read-more {
    font-weight: 700;
    font-size: 1rem;
    align-self: flex-start;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}
.read-more:hover {
    color: var(--heading-color);
    border-bottom-color: var(--heading-color);
    text-decoration: none;
}

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

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

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

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

.article-content h2 {
    margin-top: 3rem;
    font-size: 2.2rem;
}

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

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

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #6c7a80;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-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: 2rem;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

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

.widget-list a {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    transition: padding-left 0.3s ease;
}

.widget-list a:hover {
    padding-left: 10px;
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background-color: #657b83; /* Slate grey */
    color: var(--background-color);
    text-align: center;
    padding: 3rem 0;
    margin-top: 40px;
    border-top: 4px solid var(--heading-color);
}

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

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

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

/* --- Utility & Other Pages --- */
.page-header {
    text-align: center;
    border-bottom: 3px double var(--border-color);
    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 .article-card {
    text-align: center;
}
.offers-grid .article-card h3 a {
    font-size: 2.5rem;
    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.8rem; }
    .hero h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }

    main.container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

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