:root {
    --bg-color: #12121c;
    --primary-color: #1a1a2e;
    --secondary-color: #24243e;
    --accent-color: #4a4aff;
    --text-color: #e0e0e0;
    --text-muted-color: #a0a0c0;
    --border-color: #3a3a5a;
    --font-family: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.site-title span {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

/* Main Content Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

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

main, aside {
    padding: 1.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; font-weight: 700; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem;}
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; color: var(--accent-color); }

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

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

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3a3ad5;
    text-decoration: none;
    opacity: 1;
}

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

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

.article-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.article-card p {
    flex-grow: 1;
    color: var(--text-muted-color);
}

/* Sidebar */
aside .widget {
    margin-bottom: 2rem;
}

aside h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 0.75rem;
}

aside ul li a {
    color: var(--text-muted-color);
}

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

.promo-box {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

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

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

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

.article-content h2 {
    margin-top: 2rem;
}

.article-content ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.article-content ul li {
    margin-bottom: 0.5rem;
}

.cta-section {
    background-color: var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted-color);
}
