:root {
    --bg-dark: #121212;
    --surface-dark: #1E1E1E;
    --text-light: #E0E0E0;
    --text-muted: #888888;
    --accent-purple: #9B59B6;
    --accent-hover: #8E44AD;
    --border-color: #333333;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --shadow: 0 4px 12px rgba(0,0,0,0.2);
    --border-radius: 6px;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: var(--transition);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

ul {
    list-style: none;
}

/* --- Header --- */
.site-header {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF;
    text-decoration: none;
}
.logo a:hover {
    color: #FFFFFF;
}
.logo span {
    color: var(--accent-purple);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-light);
    text-decoration: none;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

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

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

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

/* --- Article Cards (Homepage) --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.article-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
    border-color: var(--accent-purple);
}

.article-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    flex-grow: 1;
}

.article-card h3 a {
    color: #FFFFFF;
    text-decoration: none;
}
.article-card h3 a:hover {
    color: var(--accent-purple);
}

.article-card p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--surface-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar ul li a {
    color: var(--text-muted);
    font-weight: 500;
}
.sidebar ul li a:hover {
    color: var(--accent-purple);
}

.widget-promo {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-purple));
    color: white;
    text-align: center;
}
.widget-promo p {
    color: white;
}
.widget-promo a {
    display: inline-block;
    margin-top: 1rem;
    background-color: white;
    color: var(--accent-purple);
    padding: 0.6rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.widget-promo a:hover {
    background-color: var(--bg-dark);
    color: white;
    transform: translateY(-2px);
}

/* --- Article & Page Content --- */
.page-header h1,
.article-header h1 {
    font-size: 2.75rem;
}
.page-header {
    margin-bottom: 2rem;
}
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.article-meta {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-purple);
}
.article-body ul,
.article-body ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}
.article-body ul li::marker {
    color: var(--accent-purple);
}
.article-body ul {
    list-style: disc;
}
.article-body ol {
    list-style: decimal;
}
.article-body li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--accent-purple);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}
blockquote p {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-light);
}

.cta-box {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
}
.cta-box h3 {
    font-size: 1.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-dark);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: 3rem;
    color: var(--text-muted);
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.footer-nav {
    display: flex;
    gap: 1.5rem;
}
.footer-nav a {
    color: var(--text-muted);
    font-weight: 500;
}
.footer-nav a:hover {
    color: var(--accent-purple);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .hero-subtitle {
        font-size: 1rem;
    }
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-nav ul {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .page-header h1,
    .article-header h1 {
        font-size: 2.25rem;
    }
    .content-area {
        padding: 1.5rem;
    }
}