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

:root {
    --primary-color: #2c3e50; /* Dark Slate Blue */
    --secondary-color: #3498db; /* Bright Blue */
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --border-color: #dddddd;
    --font-family: 'Inter', sans-serif;
}

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

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

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

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

p {
    margin-bottom: 1.5rem;
}

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

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

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

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

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

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary-color);
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

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

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

main {
    width: 100%;
}

/* --- Homepage Specific --- */
.intro-section {
    padding: 40px 0;
    text-align: center;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 40px;
}

.intro-section h1 {
    margin-bottom: 1rem;
}

.intro-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

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

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

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

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

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

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


/* --- Sidebar --- */
aside {
    padding: 25px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
}

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

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    font-weight: 600;
}

.promo-text {
    font-style: italic;
    text-align: center;
    padding: 15px;
    background: #e9f5ff;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

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

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

.article-meta {
    font-size: 0.9rem;
    color: #777;
}

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

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

.article-content li {
    margin-bottom: 0.5rem;
}

.cta-section {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    margin-bottom: 1rem;
}

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

/* --- Static Pages (About, Contact, etc.) --- */
.static-page-header {
    text-align: center;
    padding: 50px 0;
    background: var(--light-gray);
    margin-bottom: 40px;
}

.static-page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .article-header h1 { font-size: 2.2rem; }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}
