
/* --- SilentBlog Theme --- */
/* --- Font: Montserrat --- */
/* --- Tone: Informative & Straightforward --- */

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

:root {
    --primary-color: #2c5282; /* A calm, deep blue */
    --secondary-color: #e2e8f0; /* Light gray for backgrounds */
    --accent-color: #38a169; /* A friendly green for CTAs and links */
    --text-color: #2d3748; /* Dark gray for text */
    --light-text-color: #f7fafc;
    --background-color: #ffffff;
    --border-color: #cbd5e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

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

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

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

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-title a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
}
.site-title a:hover {
    color: var(--secondary-color);
}

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

.main-nav a {
    color: var(--light-text-color);
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

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

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

/* --- Article Cards --- */
.articles-section {
    padding: 2rem 0;
}

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

.article-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    margin-top: 0;
}

.article-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-card .read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.widget {
    margin-bottom: 2.5rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
}

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

.widget li a {
    color: var(--text-color);
    font-weight: 600;
}

.widget-promo p {
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.article-meta {
    font-size: 0.9rem;
    color: #718096;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

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

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    color: var(--light-text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2f855a;
    color: var(--light-text-color);
}

/* --- Form Styles (Contact Page) --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #2b6cb0;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--text-color);
    color: #a0aec0;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* --- Media Queries for Responsive Design --- */
@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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