/* --- Global Styles --- */
:root {
    --primary-text: #212529;
    --secondary-text: #6c757d;
    --background-color: #ffffff;
    --border-color: #dee2e6;
    --accent-color: #007bff;
    --card-background: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--background-color);
    margin: 0;
    font-size: 16px;
}

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

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

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

h1, h2, h3 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

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

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

/* --- Header & Navigation --- */
.header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text);
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-text);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--primary-text);
    font-weight: 400;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- Main Content Layout --- */
.page-content {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* --- Homepage Specifics --- */
.featured-article {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-article img {
    width: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.featured-content h2 a {
    color: var(--primary-text);
}

.featured-content p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.latest-articles h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-content h3 a {
    color: var(--primary-text);
}

.card-content p {
    color: var(--secondary-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    align-self: flex-start;
}

.category-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--card-background);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.sidebar-widget p {
    color: var(--secondary-text);
    margin-bottom: 0;
}

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

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

/* --- Article Page --- */
.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.article-content img {
    margin: 30px 0;
    border-radius: 8px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-text);
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

.footer p {
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-content {
        flex-direction: column;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}
