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

/* --- CSS Variables (Dark Mode Elegance) --- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #bb86fc; /* A sophisticated purple */
    --secondary-color: #03dac6; /* A contrasting teal */
    --text-color: #e0e0e0;
    --text-muted-color: #a0a0a0;
    --heading-color: #ffffff;
    --border-color: #333333;
    --font-family-main: 'Inter', sans-serif;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    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, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

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

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

p { margin-bottom: 1.25rem; }

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

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

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

li { margin-bottom: 0.5rem; }

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

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

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

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

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

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

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

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

.main-nav a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

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

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

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

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--heading-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    color: var(--text-muted-color);
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--secondary-color);
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 6rem;
}
.widget { 
    margin-bottom: 2.5rem; 
    padding: 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { 
    margin-bottom: 0.7rem;
}
.widget ul li a { color: var(--text-color); font-weight: 400;}
.widget ul li a:hover { color: var(--secondary-color); }

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

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

.article-content h2 { margin-top: 2.5rem; font-size: 1.8rem; color: var(--primary-color);}
.article-content h3 { margin-top: 2rem; font-size: 1.4rem; }

.article-content blockquote {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted-color);
}

.cta-section {
    background-color: var(--surface-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 { color: var(--primary-color); margin-top: 0; font-size: 1.8rem; }
.cta-section p { color: var(--text-muted-color); }

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* --- Static Pages --- */
.page-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}
.page-header h1 { font-size: 2.8rem; }
.page-header p { font-size: 1.1rem; color: var(--text-muted-color); }

.page-content p strong { color: var(--secondary-color); }

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: var(--text-muted-color);
    margin: 0 1rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--primary-color); text-decoration: none; }
