/* === VARIABLES & GLOBAL STYLES === */
:root {
    --primary-color: #27ae60; /* Fresh green for savings */
    --secondary-color: #2c3e50; /* Dark charcoal for text and headers */
    --accent-color: #f1c40f; /* Bright yellow for attention */
    --text-color: #34495e;
    --light-gray-color: #ecf0f1;
    --white-color: #fff;
    --border-color: #bdc3c7;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    --transition-speed: 0.3s ease;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-gray-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

a:hover {
    color: #2ecc71; /* Lighter green on hover */
    text-decoration: none;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
}

ul {
    list-style: none;
}

/* === HEADER & NAVIGATION === */
.site-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    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.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}
.site-header .logo a:hover {
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.5rem;
    position: relative;
    transition: color var(--transition-speed);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

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

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}


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

@media (min-width: 800px) {
    .page-content {
        grid-template-columns: 3fr 1fr;
    }
}

main.main-content {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
section.intro, section.articles-section {
    padding: 0;
    box-shadow: none;
}


/* === HOMEPAGE: ARTICLES SECTION === */
.articles-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.article-card {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.article-card h3, .article-card p, .article-card a {
    padding: 0 1.5rem;
}
.article-card h3 {
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}
.article-card p {
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding-bottom: 1.5rem !important;
    font-weight: bold;
    color: var(--primary-color);
}

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

.widget {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.widget-list a {
    display: block;
    padding: 0.3rem 0;
    transition: padding-left var(--transition-speed);
}

.widget-list a:hover {
    padding-left: 5px;
}

.promo-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

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

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

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

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

.blog-post ul li, .page ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.blog-post ul li::before, .page ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


.offer-list {
    font-size: 1.1rem;
    padding-left: 0;
}
.offer-list li {
    padding-left: 2rem;
}
.offer-list li::before {
    content: '🛒';
    font-weight: normal;
}


/* === CTA (CALL TO ACTION) === */
.cta-section {
    background: linear-gradient(45deg, var(--secondary-color), #34495e);
    color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2.5rem;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    border: none;
}

.cta-button:hover {
    background-color: #f39c12;
    transform: translateY(-3px) scale(1.05);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* === FOOTER === */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--light-gray-color);
    text-align: center;
    padding: 2.5rem 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 === */
@media (max-width: 799px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

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

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

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