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

:root {
  --bg-color: #F8F9FA;
  --text-color: #212529;
  --heading-color: #343A40;
  --accent-color: #004E98;
  --border-color: #DEE2E6;
  --card-bg-color: #FFFFFF;
  --footer-bg-color: #343A40;
  --footer-text-color: #F8F9FA;

  --heading-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
  margin-bottom: 1.25rem;
}

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

a:hover, a:focus {
  opacity: 0.8;
  text-decoration: underline;
}

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

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

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

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

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

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

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

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

/* --- Main Layout --- */
.main-content {
  padding: 3rem 0;
}

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

/* --- Homepage Specific --- */
.intro-section {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Article Card --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.article-card-header {
  margin-bottom: 1rem;
}

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

.article-meta {
  font-size: 0.85rem;
  color: #6C757D;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent-color);
  align-self: flex-start;
}

/* --- Sidebar --- */
.sidebar-widget {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.sidebar-widget ul {
  list-style: none;
}

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

.sidebar-widget ul li a::before {
  content: '→';
  margin-right: 10px;
  color: var(--accent-color);
}

.promo-text {
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  background-color: var(--bg-color);
  font-style: italic;
}

/* --- Article Page --- */
.article-content {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.article-content header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-content header .article-meta {
    font-size: 1rem;
}

.article-content h1 {
  font-size: 3rem;
}

.article-content h2 {
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content ol, .article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
}
.article-content ul li {
    margin-bottom: 0.5rem;
}

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

/* --- Simple Pages (About, Contact, etc.) --- */
.simple-page {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    padding: 3rem;
    min-height: 50vh;
}
.simple-page h1 { text-align: center; }
.country-list {
    list-style: none;
    margin-top: 2rem;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}
.country-list li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
}

/* --- Media Queries (Mobile First) --- */

/* Tablet */
@media (min-width: 768px) {
  body { font-size: 17px; }

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-layout {
    grid-template-columns: 2.5fr 1fr;
  }
  
  .article-page-layout {
      grid-template-columns: 2.5fr 1fr;
  }

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

  .article-content { padding: 3rem; }
}

/* Desktop */
@media (min-width: 1024px) {
  body { font-size: 18px; }

  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}