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

/* --- Zenith Theme Variables --- */
:root {
    --primary-color: #3498db;
    --primary-hover-color: #2980b9;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --border-color: #e9ecef;
    --text-color: #5a6a7a;
    --headings-color: #2c3e50;
    --font-family: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --shadow: 0 5px 15px rgba(44, 62, 80, 0.07);
    --border-radius: 6px;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
    margin-bottom: 1.25rem;
}

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

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

ul {
    list-style-type: none;
}

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

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

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

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

.site-title a {
    color: inherit;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--headings-color);
    padding-bottom: 8px;
    position: relative;
    text-decoration: none;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.main-nav a.active {
    color: var(--primary-color);
}


/* --- Main Content Layout --- */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

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

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

/* --- Articles List --- */
.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .full-width .articles-list {
         grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .full-width .articles-list {
         grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .full-width .articles-list {
         grid-template-columns: 1fr;
    }
}


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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(44, 62, 80, 0.1);
}

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

.article-card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.article-card-content h2 a {
    color: var(--headings-color);
    text-decoration: none;
}
.article-card-content h2 a:hover {
    color: var(--primary-color);
}

.article-card-content p {
    flex-grow: 1;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

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

/* --- Single Article Page --- */
.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.6rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: -1rem;
    font-weight: 600;
}

.article-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.article-content h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}
.article-content h3 {
    margin-top: 2rem;
}
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }

.cta-section {
    background-color: #eaf5fb;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin: 3rem 0 1rem;
    text-align: center;
    border-left: 5px solid var(--primary-color);
}
.cta-section h3 {
    color: var(--headings-color);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--surface-color);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--headings-color);
}

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

.sidebar-widget ul li a {
    font-weight: 600;
}
.sidebar-widget ul li a:hover {
    text-decoration: none;
}

.sidebar-promo p {
    font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--headings-color);
    color: #bdc3c7;
    padding: 3rem 0;
    margin-top: auto;
}

.site-footer a {
    color: #ffffff;
    font-weight: 600;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-content .copyright {
    margin: 0;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

/* --- Specific Page Styles --- */
.intro-section {
    text-align: center;
    padding: 3.5rem 2rem;
    margin-bottom: 3rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.intro-section h1 {
    margin-bottom: 1rem;
}
.intro-section p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

.page-header {
    margin-bottom: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}
.page-header h1 {
    color: var(--headings-color);
}

.about-content, .contact-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.contact-content p {
    font-size: 1.1rem;
}
.contact-content strong {
    color: var(--headings-color);
}
