
/* --- Google Font Import: Roboto Slab --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

/* --- CSS Variables (Magazine / Editorial Theme) --- */
:root {
    --bg-color: #ffffff;
    --surface-color: #f9f9f9;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --primary-color: #005f73; /* Deep teal for a professional accent */
    --secondary-color: #0a9396;
    --border-color: #e0e0e0;
    --text-muted-color: #6c757d;
    --font-family-main: 'Roboto Slab', serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 5px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 18px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
.section-title {
    font-size: 2.2rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}


p { margin-bottom: 1.5rem; }

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

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li { margin-bottom: 0.75rem; }

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
}

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

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

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

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

.site-title {
    font-size: 1.7rem;
    font-weight: 700;
}

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

.main-nav ul {
    list-style-type: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
}

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

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

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted-color);
    max-width: 800px;
    margin: 1rem auto 0;
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

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

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 3rem;
}
.widget { 
    margin-bottom: 3rem; 
    padding: 1.75rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { 
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a { color: var(--text-color); font-weight: 700;}

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

.article-header h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-muted-color);
    margin-top: 1rem;
}
.article-meta a { color: var(--secondary-color); font-weight: 700; }

.article-content h2 { margin-top: 3rem; font-size: 2rem; }
.article-content h3 { margin-top: 2.5rem; font-size: 1.6rem; }

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--heading-color);
}

.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3.5rem 0;
}

.cta-section h2 { color: #fff; margin-top: 0; font-size: 2.2rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); }

.cta-button {
    display: inline-block;
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
    color: #fff;
}

/* --- Static Pages --- */
.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}
.page-header h1 { font-size: 3rem; }
.page-header p { font-size: 1.2rem; color: var(--text-muted-color); }

.page-content {
    background-color: #fff;
}
.page-content p strong { color: var(--heading-color); }

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

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

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 1.5rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
