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

:root {
    --accent-color: #007bff; /* Bright Blue */
    --hover-color: #0056b3;
    --bg-color: #ffffff;
    --surface-color: #f8f9fa; /* Very light grey */
    --text-color: #343a40; /* Dark Grey Text */
    --heading-color: #212529; /* Almost Black */
    --border-color: #dee2e6;
    --font-family: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }

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

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

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

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

/* --- Main Layout --- */
main.container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

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

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

/* --- Content Area --- */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 3rem;
}
.hero h1 {
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #6c757d;
}

.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #6c757d;
}

.read-more {
    font-weight: 700;
    align-self: flex-start;
}

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

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

.sidebar ul {
    list-style: none;
}

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

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: #adb5bd;
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--bg-color);
    margin-bottom: 1rem;
}

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

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

.footer-widget a {
    color: #adb5bd;
    text-decoration: none;
}
.footer-widget a:hover {
    color: var(--bg-color);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 2rem;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

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

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

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

.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
}

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

.article-content li::marker {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none;
}

.cta-box {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-top: 2.5rem;
}

.cta-box p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
