
/* --- Google Font Import: Lobster & Poppins --- */
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:wght@400;700;900&display=swap');

/* --- CSS Variables (Bold & Colorful) --- */
:root {
    --bg-color: #F8F9FA; /* Light Gray */
    --surface-color: #FFFFFF;
    --text-color: #495057; /* Dark Gray */
    --heading-color: #212529; /* Almost Black */
    --primary-color: #007BFF; /* Electric Blue */
    --secondary-color: #E83E8C; /* Magenta */
    --accent-color: #FFC107; /* Bright Yellow */
    --accent-color-hover: #e0a800;
    --border-color: #DEE2E6;
    --font-family-headings: 'Lobster', cursive;
    --font-family-body: 'Poppins', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 1px;
}

h1 { font-size: 4rem; color: var(--primary-color); }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; color: var(--secondary-color); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    position: relative;
    color: var(--heading-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-bg);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

p { margin-bottom: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

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

li { margin-bottom: 0.75rem; }

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

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

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.site-title a {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.site-title a:hover {
    opacity: 0.8;
}

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

.main-nav a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--gradient-bg);
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
    left: 0;
    right: auto;
}
.main-nav a.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 4.5rem;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--text-color);
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

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

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: var(--heading-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background: var(--gradient-bg);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    align-self: flex-start;
    border-radius: 50px;
}

.read-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(232, 62, 140, 0.4);
    color: #fff;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 100px;
}
.widget { 
    margin-bottom: 2rem; 
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 0.75rem; }
.widget ul li a { display: block; padding: 0.5rem; border-radius: 5px; transition: background-color 0.2s ease, padding-left 0.2s ease;}
.widget ul li a:hover { background-color: #f1f1f1; padding-left: 1rem; }

/* --- Article & Page Styles --- */
.page-header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.article-header h1 {
    font-size: 4rem;
    line-height: 1.2;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 1rem;
    font-weight: 700;
}

.article-content h2 { margin-top: 2.5rem; font-size: 2.25rem; color: var(--primary-color);}
.article-content h3 { margin-top: 2rem; font-size: 1.75rem; color: var(--secondary-color); font-family: 'Poppins', sans-serif; font-weight: 700;}

.article-content blockquote {
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background-color: #fffbe6;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.article-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.cta-section {
    background: var(--gradient-bg);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-section h2 { color: white; margin-top: 0; font-size: 2.5rem; }
.cta-section p { color: white; opacity: 0.9; }

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--heading-color);
    padding: 0.8rem 2.5rem;
    font-weight: 900;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.cta-button:hover {
    background-color: var(--surface-color);
    color: var(--heading-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

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

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-container p { color: #adb5bd; margin-bottom: 1rem; }

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: var(--bg-color);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 700;
    opacity: 0.8;
}
.footer-links a:hover { opacity: 1; color: var(--accent-color); }
