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

/* ---=== Root Variables (Editorial & Newsy Theme 2025) ===--- */
:root {
    --primary-color: #007BFF; /* Bold Blue */
    --primary-hover-color: #0056b3; /* Darker Blue */
    --bg-color: #F8F9FA; /* Light Gray */
    --surface-color: #FFFFFF;
    --text-color: #212529; /* Near Black */
    --text-muted: #6C757D; /* Medium Gray */
    --border-color: #DEE2E6;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.06);
    --border-radius: 4px; /* Sharper corners for a more serious look */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    border: 1px solid var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    text-decoration: none;
}

/* ---=== Header & Navigation ===--- */
.site-header {
    background: var(--surface-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.site-header .logo a {
    color: var(--text-color);
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-header .logo a:hover {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding-bottom: 5px;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

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

/* ---=== Main Content & Grid Layout ===--- */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* ---=== Hero Section ===--- */
.hero {
    text-align: center;
    padding: 3.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}
.hero h1 {
    font-size: 2.8rem;
}
.hero p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

/* ---=== Articles Grid (Homepage) ===--- */
.articles-grid h2 {
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.articles-grid .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease-in-out;
    border: 1px solid var(--border-color);
    padding: 20px;
}
.article-card:hover {
    box-shadow: var(--shadow-md);
}

.article-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.article-card .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ---=== Sidebar ===--- */
.sidebar-widget {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.widget-list li {
    margin-bottom: 12px;
}
.widget-list li a {
    color: var(--text-color);
    font-weight: 600;
}
.widget-list li a:hover {
    color: var(--primary-color);
}

.promo-widget {
    text-align: center;
    background: var(--primary-color);
    color: white;
}
.promo-widget h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}
.promo-widget p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}
.promo-widget .btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--surface-color);
    width: 100%;
}
.promo-widget .btn:hover {
    background: #e9ecef;
}


/* ---=== Full Article & Static Pages ===--- */
.full-article, .static-page {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 30px 40px;
    border-radius: var(--border-radius);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.2rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
}

.full-article h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.full-article ul, .full-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.full-article ul {
    list-style-type: disc;
}
.full-article ol {
    list-style-type: decimal;
}

.full-article li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    padding-left: 5px;
}

.cta-section {
    background-color: var(--bg-color);
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.cta-section h2 {
    font-size: 1.6rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

.site-footer .footer-links {
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: var(--text-muted);
    margin: 0 15px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---=== Media Queries (Responsive Design) ===--- */

/* For Tablets */
@media (min-width: 768px) {
    .main-content-grid {
        grid-template-columns: 2.5fr 1fr;
    }

    .articles-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 { font-size: 3rem; }
}

/* For Desktops */
@media (min-width: 1024px) {
    .articles-grid .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}