
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #1abc9c; /* Vibrant Teal */
    --primary-hover: #16a085;
    --background-color: #f4f6f8; /* Light Grey */
    --surface-color: #ffffff;
    --border-color: #e3e6e8;
    --text-color: #555;
    --heading-color: #2c3e50; /* Dark Slate Blue */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 3rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--heading-color); }

p {
    margin-bottom: 1rem;
}

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

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

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
li { margin-bottom: 0.5rem; }

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a.active {
    color: var(--heading-color);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--heading-color);
    color: var(--surface-color);
    text-align: center;
    padding: 5rem 1.5rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
    color: rgba(255,255,255,0.8);
}


/* --- Main Content Layout --- */
.site-content {
    flex: 1;
}

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

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

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

/* --- Articles Grid (Homepage) --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-card h3 a {
    color: var(--heading-color);
    text-decoration: none;
}
.article-card h3 a:hover {
    color: var(--primary-color);
}
.article-card h3 {
    margin-bottom: 0.5rem;
}

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

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Sidebar --- */
.sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.sidebar .widget h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
}
.sidebar .widget ul li:last-child {
    margin-bottom: 0;
}
.sidebar .widget ul a {
    text-decoration: none;
    font-weight: 600;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease;
    border: none;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}


/* --- Single Article Page --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 4rem auto;
}
@media (min-width: 992px) {
    .article-layout {
        grid-template-columns: 3fr 1fr;
    }
}
.article-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.article-header h1 { margin-bottom: 0.5rem; font-size: 2.5rem; }
.article-meta { font-size: 0.9rem; color: #777; font-weight: 600; }

.article-content h2 { margin: 2.5rem 0 1rem 0; font-size: 1.75rem; }
.article-content h3 { margin: 2rem 0 1rem 0; font-size: 1.3rem; }
.article-content strong { color: var(--heading-color); font-weight: 600; }

.tip-box {
    background-color: #e8f8f5;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.tip-box p:last-child { margin: 0; }

/* --- Static Content Pages (About, Contact, Offers) --- */
.page-header {
    text-align: center;
    padding: 4rem 1.5rem;
    margin: 4rem 0;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.page-header h1 { font-size: 2.5rem; }
.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.page-content {
    padding: 0 0 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.offer-grid-item a {
    display: block;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-grid-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: #a7b4c2;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    margin: 0 1rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright {
    font-size: 0.9rem;
}
