
/* ---
Theme: Magazine / Editorial
Font: Merriweather
Language: English (UK)
Tone: Professional & Authoritative
--- */

/* === ROOT VARIABLES === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-primary: #222222;
    --text-secondary: #555555;
    --accent-primary: #004080; /* Deep Blue */
    --accent-secondary: #d1e7dd; /* Light Green for highlights */
    --border-color: #dddddd;
    --font-family-serif: 'Merriweather', serif;
    --font-family-sans: 'Lato', sans-serif;
}

/* === GENERAL STYLES === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 2.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.6rem; color: var(--accent-primary); }
p { margin-bottom: 1.5rem; color: var(--text-secondary); }

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

a:hover {
    text-decoration: underline;
}

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

ul {
    list-style: none;
    padding-left: 0;
}

/* === HEADER & NAVIGATION === */
.site-header {
    background-color: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-family-serif);
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.logo a:hover { text-decoration: none; }

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
}
.main-nav a:hover {
    color: var(--accent-primary);
    text-decoration: none;
}

/* === MAIN LAYOUT & SIDEBAR === */
.main-content {
    padding: 4rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

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

/* === BLOG ARTICLES SECTION (HOMEPAGE) === */
.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.article-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.card-content h3 a:hover {
    text-decoration: underline;
}

.card-content p {
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #002b54;
    text-decoration: none;
}

/* === SIDEBAR === */
.sidebar-widget {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.sidebar-widget ul li {
    margin-bottom: 1rem;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 1rem;
}
.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}


.sidebar-widget ul li a {
    color: var(--text-secondary);
    font-weight: 600;
}

.sidebar-widget ul li a:hover {
    color: var(--accent-primary);
}

.promo-text p {
    background-color: var(--accent-secondary);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--accent-primary);
    font-style: normal;
    font-weight: 500;
    color: #004d00;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--text-primary);
    color: #f0f0f0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* === ARTICLE PAGE SPECIFIC STYLES === */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.article-meta {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-meta span { margin: 0 1rem; }

.article-content ul {
    list-style: circle;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.cta-box {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 5px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

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

.cta-btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1rem;
    letter-spacing: 1px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    background-color: #002b54;
    text-decoration: none;
}

/* === STATIC PAGES (About, Contact, etc) === */
.static-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.static-page p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
}

/* === CONTACT FORM (EXAMPLE) === */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-family-serif);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-family-sans);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 64, 128, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #002b54;
}

/* Responsive Menu for Mobile */
#menu-toggle {
    display: none;
}
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 2rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2.4rem; }

    .menu-icon {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-nav ul li {
        padding: 1.2rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    #menu-toggle:checked ~ .main-nav {
        display: block;
    }
}
