
/* === Magazine / Editorial Theme === */
/* Fonts: Playfair Display (Headings), Inter (Body) */
/* Tone: Friendly & Casual */

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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-primary: #c8102e; /* A classic, bold red */
    --border-color: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* === BASE & RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

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

ul {
    list-style: none;
}

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

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

/* === HEADER & NAVIGATION === */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

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

.site-title {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

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

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

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

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

/* === MAIN CONTENT & LAYOUT === */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

main {
    flex: 1;
}

.intro-section {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.intro-section .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === BLOG ARTICLES SECTION (HOMEPAGE) === */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.articles-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-primary);
}


.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

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

.card-content h3 a:hover {
    color: var(--accent-primary);
}

.card-content p {
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.read-more-link {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.read-more-link:hover {
    color: var(--accent-primary);
    text-decoration: none;
}

/* === SIDEBAR === */
.sidebar {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
}

.sidebar-widget {
    margin-bottom: 2.5rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.sidebar-widget ul a {
    color: var(--text-secondary);
}

.sidebar-widget ul a:hover {
    color: var(--text-primary);
}

.promo-text {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.footer-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === ARTICLE PAGE SPECIFIC STYLES === */
.article-header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta span {
    margin: 0 1rem;
}

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

.article-content h2 {
    margin-top: 3rem;
}

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

.article-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.75rem;
    padding-left: 5px;
}

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

.cta-section {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    text-align: center;
    border-radius: 4px;
    margin: 3rem 0;
}

.cta-section h2 {
    font-family: var(--font-body);
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #a00c24;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* === OTHER STATIC PAGES (ABOUT, CONTACT, etc.) === */
.static-page-header {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

.contact-form button {
    align-self: flex-start;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    background-color: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #a00c24;
    transform: translateY(-2px);
}
