/* --- Bold & Colorful Theme --- */
:root {
    --background-color: #F7FFF7;
    --card-background: #FFFFFF;
    --text-color: #2D3748;
    --heading-color: #1A202C;
    --primary-color: #4ECDC4;
    --accent-color: #FF6B6B;
    --border-color: #E2E8F0;
    --header-footer-bg: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--header-footer-bg);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 700;
}

.logo a {
    color: var(--heading-color);
    letter-spacing: -1px;
}
.logo a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--heading-color);
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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


/* --- Main Content Layout --- */
.main-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.articles-section {
    grid-column: 1 / 2;
}

.sidebar {
    grid-column: 2 / 3;
}

/* --- Article Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

.article-card {
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.article-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}


.article-card-content {
    padding: 25px 30px;
    flex-grow: 1;
}

.article-card-content .category-tag {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.article-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.article-card-content h3 a {
    color: var(--heading-color);
}
.article-card-content h3 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.article-card-content p {
    font-size: 1rem;
    margin: 0;
}

/* --- Section Headers --- */
.section-header {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
    color: var(--heading-color);
    letter-spacing: -1px;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}


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

.sidebar-widget h4 {
    margin-top: 0;
    font-size: 1.4rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

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

.sidebar-widget ul li {
    margin-bottom: 12px;
}
.sidebar-widget ul li a {
    color: var(--text-color);
    font-weight: 500;
}

/* --- Article Page --- */
.article-full {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: var(--heading-color);
    font-weight: 700;
}

.article-meta {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 500;
}

.article-meta .category {
    font-weight: 700;
    color: var(--accent-color);
}

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

.article-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    color: var(--heading-color);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.article-content h3 {
    font-size: 1.6rem;
    margin-top: 30px;
    color: var(--heading-color);
    font-weight: 700;
}

.article-content p, .article-content ul, .article-content blockquote {
    margin-bottom: 1.5em;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    color: #4A5568;
    margin-left: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.article-featured-image {
    margin: 30px 0;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: var(--background-color);
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

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

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2.4rem;
    }
    .main-nav ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-full {
        padding: 20px;
    }
    .article-header h1 {
        font-size: 2rem;
    }
     .logo {
        font-size: 2rem;
    }
}
