/* === VARIABLES & GLOBAL STYLES === */
:root {
    --primary-color: #005A9C; /* A professional blue */
    --secondary-color: #003F6B;
    --accent-color: #FDB813; /* A warm yellow for accents */
    --text-color: #333;
    --light-gray-color: #f4f4f4;
    --white-color: #fff;
    --border-radius: 5px;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    --transition-speed: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

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

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

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

.main-nav a {
    font-weight: 500;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed);
}

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

/* === PAGE LAYOUT (MAIN & SIDEBAR) === */
.page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
    flex: 1;
}

@media (min-width: 768px) {
    .page-content {
        grid-template-columns: 2.5fr 1fr; /* Main content takes more space */
    }
}

/* === HOMEPAGE: ARTICLES SECTION === */
.articles-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.article-card {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.article-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* === SIDEBAR & WIDGETS === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--light-gray-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.widget-list li {
    margin-bottom: 0.5rem;
}

.widget-list a {
    display: block;
    padding: 0.2rem 0;
}

.promo-text {
    font-style: italic;
    line-height: 1.4;
}

/* === BLOG POST & PAGE STYLES === */
.blog-post, .page {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.post-meta {
    font-size: 0.9rem;
    color: #666;
}

.blog-post h2, .page h2 {
    margin-top: 2rem;
}

.blog-post ul, .page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post ul li, .page ul li {
    margin-bottom: 0.5rem;
}

.offer-list {
    font-size: 1.1rem;
    list-style-type: '🛒';
    padding-left: 2rem;
}
.offer-list li {
    padding-left: 0.5rem;
}


/* === CTA (CALL TO ACTION) === */
.cta-section {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-button:hover {
    background-color: #fbc53b;
    transform: scale(1.05);
    color: var(--secondary-color);
}


/* === FOOTER === */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer a {
    color: var(--white-color);
    margin: 0 0.5rem;
}

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

/* === MOBILE RESPONSIVENESS FOR NAV === */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .blog-post, .page {
        padding: 1.5rem;
    }
}
