/* Reset and Base Styles */
:root {
    --primary-color: #2ECC71;
    --secondary-color: #2C3E50;
    --background-color: #F7F9F9;
    --surface-color: #FFFFFF;
    --text-color: #34495E;
    --border-color: #EAEDED;
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.08);
    --border-radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1.5rem; }

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

a:hover {
    color: #27AE60;
}

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

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

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-family-headings);
}

.site-title a {
    color: var(--secondary-color);
}
.site-title a:hover {
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.main-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}


/* Main Layout */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .page-wrapper {
        grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    }
}

.main-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-bottom: 3rem;
}
.hero h1 {
    font-size: 3rem;
}
.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Articles Grid & Lists */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.article-card-content h3 {
    margin-top: 0;
}

.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
}

/* Sidebar */
.sidebar {
    align-self: start;
}

.widget {
    margin-bottom: 2.5rem;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.75rem;
}
.widget li a {
    color: var(--text-color);
}
.widget li a:hover {
    color: var(--primary-color);
}


/* Full Article Page */
.full-article header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    font-size: 0.9rem;
    color: #7F8C8D;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.article-body h2 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
}
.article-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}

.cta-section {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 2rem;
    margin-top: 2.5rem;
    text-align: center;
    border-radius: var(--border-radius);
}
.cta-section h3 {
    color: #065F46;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    margin-top: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.cta-button:hover {
    background-color: #27AE60;
    transform: translateY(-2px);
    color: #fff;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 2rem;
    background: var(--secondary-color);
    color: #BDC3C7;
}

.site-footer p {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #fff;
    margin: 0 0.5rem;
}
.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        gap: 1.5rem;
    }
    .main-content {
        padding: 1.5rem;
    }
}
