/* --- General Setup & Variables --- */
:root {
    --primary-color: #005A9C; /* A professional blue */
    --secondary-color: #003F6B; /* A darker blue for hover/headers */
    --accent-color: #FDB813; /* A warm yellow for accents */
    --text-color: #333333;
    --light-gray-color: #f4f4f4;
    --border-color: #dddddd;
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1100px;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --border-radius: 5px;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
    font-size: 16px;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    margin-bottom: 1rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

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

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* --- Main Content Layout --- */
.main-content {
    padding: 40px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.hero {
    background-color: var(--light-gray-color);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    text-align: center;
}

.hero h1 {
    color: var(--primary-color);
}

.intro-text {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.section-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- Articles List (Homepage) --- */
.articles-list {
    display: grid;
    gap: 30px;
}

.article-summary {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

/* --- Full Article & Page Content --- */
.full-article, .page-content {
    background-color: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

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

.article-header h1 {
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--light-gray-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.widget-title {
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
}

.sidebar ul li:last-child a {
    border-bottom: none;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

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

.site-footer a {
    color: #ffffff;
    margin: 0 10px;
}

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

/* --- Buttons & CTAs --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
}

.cta-section h2 {
    color: #ffffff;
}

.cta-section .btn {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.cta-section .btn:hover {
    background-color: #fff;
}

/* --- Specific Page Styles --- */
.offer-list li, .contact-info p {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.offer-list li:last-child {
    border-bottom: none;
}
.contact-info a {
    font-weight: 500;
}

/* --- Responsive Design --- */
@media (max-width: 767px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    .main-nav a {
      font-size: 1rem;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 20px;
    }

    .full-article, .page-content {
        padding: 20px;
    }
}
