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

/* --- CSS Variables --- */
:root {
    --font-family-main: 'Poppins', sans-serif;
    --color-bg: #F9FAFB;
    --color-text-primary: #1F2937;
    --color-text-secondary: #4B5563;
    --color-text-light: #F9FAFB;
    --color-white: #FFFFFF;
    --color-accent: #3B82F6;
    --color-accent-hover: #2563EB;
    --color-border: #E5E7EB;
    --color-footer-bg: #1F2937;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- 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.6;
}

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

a:hover {
    text-decoration: underline;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

ul, ol {
    list-style-position: inside;
    padding-left: 1rem;
}

/* --- 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-white);
    box-shadow: var(--shadow-md);
    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: 500;
    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-accent);
    background-color: #EFF6FF;
    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-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 5.5rem; /* Header height + spacing */
}

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

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

.sidebar-list a {
    color: var(--color-text-secondary);
}
.sidebar-list a:hover {
    color: var(--color-accent);
}

.sidebar-promo {
    margin-top: 2rem;
    background-color: #EFF6FF;
    border-left: 4px solid var(--color-accent);
    color: #1E40AF;
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.sidebar-promo p {
    font-weight: 500;
}
.sidebar-promo a {
    text-decoration: underline;
    color: #1D4ED8;
    font-weight: 600;
}

/* --- Homepage Specific --- */
.hero-section {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto;
}

.articles-section-title {
    font-size: 2rem;
    font-weight: 700;
    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-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-xl);
    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: 600;
    color: var(--color-accent);
    align-self: flex-start;
}

.read-more-link:hover {
    text-decoration: underline;
}

.seo-content-section {
    margin-top: 4rem;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.seo-content-section h2 {
    margin-bottom: 1rem;
}

.seo-content-section p {
    line-height: 1.75;
}

/* --- Generic Page Styles --- */
.page-content {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

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

.page-content p {
    font-size: 1.125rem;
    line-height: 1.75;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    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;
}

/* 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-white);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.country-card h2 {
    font-size: 1.25rem;
}
.country-card:hover {
    background-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
.country-card:hover h2 {
    color: var(--color-white);
}

/* Contact Page */
.contact-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}
.contact-email {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    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;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}
.article-meta .category {
    font-weight: 600;
    color: var(--color-accent);
}
.article-title {
    font-size: 2.25rem;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-content p {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}
.article-content a {
    text-decoration: underline;
    font-weight: 500;
}
.article-content ol, .article-content ul {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
}
.cta-box h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}
.cta-box p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    margin-top: 4rem;
}

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

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

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }
    .article-title {
        font-size: 2.75rem;
    }
}

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