/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #0d1b2a; /* Dark Blue */
    --secondary-color: #415a77; /* Shadow Blue */
    --accent-color: #3498db; /* Bright Blue */
    --background-color: #f8f9fa; /* Very Light Gray */
    --surface-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --font-family: 'Inter', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

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

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

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

p {
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

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

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

.main-nav a {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- Main 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 {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* --- Sidebar --- */
.sidebar {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: fit-content;
}

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

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar-widget ul {
    list-style: none;
}

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

.sidebar-promo {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}
.sidebar-promo p {
    margin: 0;
    font-weight: 600;
}

/* --- Homepage Specific --- */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

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

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

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

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.read-more-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

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

.article-header h1 {
    font-size: 2.8rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -0.5rem;
}

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

.article-content h2 {
    margin-top: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}
.article-content h3 {
    margin-top: 1.5rem;
}
.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--secondary-color);
}
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.cta-box {
    background: #eaf5ff;
    border: 2px dashed var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    border-radius: var(--border-radius);
}
.cta-box h3 {
    margin-top: 0;
}

/* --- Simple Page Styles --- */
.simple-page-content {
    min-height: 50vh;
}
.simple-page-content p {
    font-size: 1.1rem;
}

/* Contact Page Form Placeholder */
.contact-info {
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
    background: #eaf5ff;
    border-radius: var(--border-radius);
}

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