/* --- Magazine / Editorial Theme Variables --- */
:root {
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
    --background-color: #F8F7F4;
    --text-color: #2C3E50;
    --primary-color: #BFA181; /* Muted Gold */
    --dark-accent: #001f3f; /* Deep Navy */
    --border-color: #EAEAEA;
    --card-background: #FFFFFF;
    --header-height: 80px;
    --container-width: 1200px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--dark-accent);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

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

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

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

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

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
}

.main-navigation a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
}

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

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


/* --- Main Layout Container --- */
.container {
    max-width: var(--container-width);
    margin: 3rem auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

main.main-content {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.hero h1 {
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.seo-content {
    margin-bottom: 3rem;
}

/* --- Blog Articles Section --- */
.blog-articles h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.blog-articles h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

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

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

.article-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card img {
    height: 250px;
    object-fit: cover;
}

.article-card h3 {
    margin: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.article-card p {
    margin: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 500;
    font-family: var(--body-font);
    margin: 0 1.5rem 1.5rem;
    align-self: flex-start;
}

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

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

.widget-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    font-weight: 500;
    font-size: 1.1rem;
}

.widget-promo {
    text-align: center;
    padding: 1.5rem;
    background-color: #fdfaf6;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.widget-promo h4 {
    font-size: 1.25rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-accent);
    color: var(--background-color);
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
}

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

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--background-color);
    margin: 0 15px;
    font-size: 1.1rem;
}

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

.copyright {
    font-size: 1rem;
    color: #bdc3c7;
}

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

.full-article .article-meta {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: -1rem;
    font-style: italic;
}

.full-article .article-content h2,
.full-article .article-content h3 {
    margin-top: 2.5rem;
}

.full-article .article-content ul,
.full-article .article-content ol {
    margin-left: 25px;
    margin-bottom: 1.5rem;
}

.full-article .article-content ul {
    list-style: disc;
}

.full-article .article-content ol {
    list-style: decimal;
}

.cta-section {
    background-color: #fdfaf6;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.cta-section h3 {
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--dark-accent);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 1rem;
    text-decoration: none;
    border: 1px solid var(--dark-accent);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--card-background);
    color: var(--dark-accent);
}

/* --- Other Pages (Offers, About, Contact) --- */
.page-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form label {
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(191, 161, 129, 0.5);
}

.contact-form button {
    align-self: flex-start;
    padding: 15px 30px;
    border: 1px solid var(--dark-accent);
    border-radius: 5px;
    background-color: var(--dark-accent);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--card-background);
    color: var(--dark-accent);
}