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

:root {
    --bg-color: #f9f7f3;
    --text-color: #2c3e50;
    --heading-color: #1a2530;
    --accent-color: #c0392b;
    --meta-color: #7f8c8d;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

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

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

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

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

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.2rem; margin-top: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.6rem; color: var(--accent-color); margin-top: 2rem; }

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

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

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

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

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

.main-nav a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

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

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

main {
    background-color: transparent;
}

/* --- Homepage Specific --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
}
.hero-section h1 {
    font-size: 3.5rem;
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--meta-color);
}

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

.article-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.article-card h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--heading-color);
}
.article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card p {
    color: var(--text-color);
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}


/* --- Sidebar --- */
.sidebar {
    padding-top: 2.5rem;
}

.sidebar-widget {
    margin-bottom: 2.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
    margin-top: 1rem;
}

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

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

/* --- Article Page --- */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.article-header h1 {
    font-size: 3.2rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--meta-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-content {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.article-content p:first-of-type::first-letter {
  color: var(--accent-color);
  float: left;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.8;
  padding: 0.5rem 0.5rem 0 0;
}
.article-content ul {
    list-style-type: square;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.article-content ul li {
    margin-bottom: 0.5rem;
}
.cta-box {
    background-color: var(--bg-color);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 5px 5px 0;
}
.cta-box h3 {
    margin-top: 0;
}

/* --- Contact Page --- */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
}
.contact-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.contact-form button:hover {
    background-color: var(--heading-color);
}


/* --- Footer --- */
.site-footer {
    color: var(--meta-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .hero-section h1 { font-size: 2.8rem; }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
    }
    .article-content { padding: 1.5rem; }
}

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