
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    --bg-dark: #0a0f1f;
    --bg-medium: #1a2035;
    --bg-light: #2a314b;
    --text-light: #e0e7ff;
    --text-medium: #a0a8c2;
    --text-dark: #1a2035;
    --accent-primary: #38bdf8; /* sky-400 */
    --accent-secondary: #6366f1; /* indigo-500 */
    --border-color: #3e486d;
    --font-family: 'Inter', sans-serif;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; color: var(--accent-primary); margin-top: 1.5rem; }

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

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-medium);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
}

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

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

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-medium);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

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

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

main {
    background-color: var(--bg-medium);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- Homepage Specific --- */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.hero-section h1 {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    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 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.article-card p {
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.read-more-btn:hover {
    opacity: 0.9;
    color: #fff;
}


/* --- Sidebar --- */
.sidebar {
    background-color: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-widget ul {
    list-style: none;
    margin-top: 1rem;
}

.sidebar-widget ul li {
    margin-bottom: 0.5rem;
}

.sidebar-widget ul li a::before {
    content: '»';
    margin-right: 8px;
    color: var(--accent-primary);
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-medium);
}
.article-content ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.article-content ul li {
    margin-bottom: 0.5rem;
}

.cta-box {
    background-color: var(--bg-light);
    border-left: 5px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* --- Contact Page --- */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-family);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.contact-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-dark);
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
.contact-form button:hover {
    opacity: 0.9;
    color: #fff;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--bg-medium);
    color: var(--text-medium);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}


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

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