
/* --- CSS Variables --- */
:root {
    --primary-color: #1a3a6b;
    --primary-hover: #132a4e;
    --bg-color: #f8f7f4;
    --card-bg-color: #ffffff;
    --text-color: #444444;
    --heading-color: #222222;
    --border-color: #e0e0e0;
    --font-family-body: 'Roboto', sans-serif;
    --font-family-heading: 'Merriweather', serif;
    --container-width: 1100px;
    --border-radius: 4px;
    --shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

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

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

ul {
    list-style: none;
}

/* --- Header --- */
header {
    background-color: var(--card-bg-color);
    box-shadow: var(--shadow);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-family-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -1px;
}
.logo:hover { text-decoration: none; }

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
nav a:hover, nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 80px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

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

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

/* --- Articles Grid (Homepage) --- */
.articles-grid {
    padding: 70px 0;
}

.articles-grid h2 {
    text-align: center;
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}
.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    align-self: flex-start;
}

/* --- Article & Page Content --- */
main {
    padding: 50px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

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

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

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

.article-header .meta {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-family-body);
}

.full-article section {
    margin-bottom: 30px;
}

.full-article h2 {
    font-size: 1.7rem;
    margin-top: 20px;
}

.full-article ul {
    list-style-position: inside;
    list-style-type: '– ';
}
.full-article ul li {
    margin-bottom: 10px;
}

/* --- CTA Section --- */
.cta {
    background-color: #eaf0f6;
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid #d0dbe8;
    text-align: center;
}
.cta h2 { color: var(--heading-color); }

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 25px;
}

.sidebar h3 {
    font-size: 1.15rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar ul li:not(:last-child) {
    margin-bottom: 15px;
}

/* --- Offer List (Offers Page) --- */
.offer-list li a {
    display: block;
    background-color: var(--card-bg-color);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.offer-list li a:hover {
    border-color: var(--primary-color);
    background-color: #fcfcfc;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-family-body);
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-family-body);
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    background-color: #f1f1f1;
}
footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.quick-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.quick-links a {
    color: #555;
    font-weight: 700;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1, .article-header h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1, .article-header h1 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 20px;
    }
}
