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

/* --- CSS Variables: Dark Mode Elegance --- */
:root {
    --font-family-main: 'Merriweather', serif;
    --color-bg: #111827; /* Dark Blue/Gray */
    --color-surface: #1F2937; /* Lighter Dark Blue/Gray */
    --color-text-primary: #F3F4F6; /* Off-white */
    --color-text-secondary: #9CA3AF; /* Light Gray */
    --color-accent: #60A5FA; /* Light Blue */
    --color-accent-hover: #3B82F6; /* Brighter Blue */
    --color-border: #374151; /* Mid Gray */
    --color-footer-bg: #111827;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

h1, h2, h3, h4 {
    color: var(--color-text-primary);
    line-height: 1.3;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }

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

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-weight: 400;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-text-primary);
    background-color: rgba(96, 165, 250, 0.2);
    text-decoration: none;
}

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

.main-content {
    grid-column: span 1;
}

.sidebar {
    grid-column: span 1;
}

.sidebar-inner {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    position: sticky;
    top: 5.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-promo {
    margin-top: 2rem;
    background-color: rgba(96, 165, 250, 0.1);
    border-left: 4px solid var(--color-accent);
    color: var(--color-text-primary);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
.sidebar-promo a {
    font-weight: 700;
}

/* --- Homepage Specific --- */
.hero-section {
    text-align: center;
    padding: 4rem 0 3rem 0;
}
.hero-section h1 {
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto;
}

.articles-section-title {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

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

.article-card {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.article-card h3 {
    margin-bottom: 0.5rem;
}
.article-card h3 a {
    color: var(--color-text-primary);
}
.article-card h3 a:hover {
    color: var(--color-accent);
    text-decoration: none;
}
.article-card p {
    margin-bottom: 1rem;
    flex-grow: 1;
}
.read-more-link {
    font-weight: 700;
}

.seo-content-section {
    margin-top: 4rem;
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

/* --- Generic Page Styles --- */
.page-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.page-content {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.page-content h1 {
    margin-bottom: 1.5rem;
}

.prose-style p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-family: sans-serif; /* A sans-serif font often looks better for buttons */
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: var(--color-accent-hover);
    text-decoration: none;
    color: #fff;
}

/* Country Page */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.country-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.country-card:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent-hover);
}
.country-card:hover h2 {
    color: var(--color-bg);
}

/* Contact Page */
.contact-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}
.contact-email {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* --- Article Page Specific --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}
.article-meta {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.article-meta .category {
    font-weight: 700;
    color: var(--color-accent);
}
.article-title {
    font-size: 2.5rem;
}
.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content a {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}
.article-content a:hover {
    text-decoration-color: var(--color-accent-hover);
}
.article-content ol, .article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    background-color: var(--color-surface);
    border: 1px solid var(--color-accent);
}
.cta-box h3 {
    color: var(--color-accent);
}
.cta-box p {
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-secondary);
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}

/* --- Responsive Design --- */

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .article-title { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
    .main-layout { grid-template-columns: repeat(3, 1fr); }
    .main-content { grid-column: span 2; }
    .sidebar { grid-column: span 1; }
}
