/* Clean Blog Theme - 2025 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #343a40;
    --heading-color: #212529;
    --background-color: #ffffff;
    --border-color: #dee2e6;
    --link-hover-color: #0056b3;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
    color: var(--heading-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    padding: 5px 0;
    transition: color 0.3s ease;
}

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

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
}

h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.articles-section h2 {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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


/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.article-card p {
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

/* Sidebar */
aside .sidebar-widget {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget a {
    font-weight: normal;
}

.promo-widget {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}
.promo-widget a {
    color: white;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: normal;
}

/* Single Article & Page Styles */
.article-full, .page-content {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.article-full-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.article-meta {
    color: #6c757d;
    margin-bottom: 15px;
    font-style: italic;
    font-size: 0.9rem;
}

.article-full p, .page-content p {
    margin-bottom: 1.2em;
}

.article-full ul, .page-content ul {
    list-style-position: inside;
    margin-bottom: 1.2em;
    padding-left: 15px;
}

.article-full .cta-button, .page-content .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.article-full .cta-button:hover, .page-content .cta-button:hover {
    background-color: var(--link-hover-color);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    .site-title {
        font-size: 1.5rem;
    }
    h1 {
        font-size: 2rem;
    }
}