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

:root {
  --color-navy: #0b1e3d;
  --color-navy-light: #122c54;
  --color-green: #00c853;
  --color-green-dark: #00a344;
  --color-bg: #f0f2f5;
  --color-white: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --max-width: 1100px;
  --max-width-wide: 1380px;
  --header-height: 64px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  background: var(--color-navy);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  overflow: visible;
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--color-green);
}

/* ── Header Navigation ──────────────────────────────── */

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav > a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-nav > a:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--color-white);
}

.header-nav > a.active {
  color: var(--color-white);
}

/* ── Country Dropdown ──────────────────────────────── */

.country-dropdown {
  position: relative;
}

.country-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  white-space: nowrap;
}

.country-dropdown-toggle:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .35);
}

.country-dropdown-toggle .flag {
  font-size: 1.1rem;
  line-height: 1;
}

.country-dropdown-toggle .chevron {
  font-size: 0.65rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.country-dropdown.open .country-dropdown-toggle {
  background: rgba(255, 255, 255, .15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .35);
}

.country-dropdown.open .chevron {
  transform: rotate(180deg);
}

.country-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
  min-width: 210px;
  padding: 6px;
  z-index: 200;
}

.country-dropdown.open .country-dropdown-menu {
  display: block;
}

.country-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.15s ease;
}

.country-dropdown-menu a:hover {
  background: var(--color-bg);
}

.country-dropdown-menu a.active {
  background: var(--color-green);
  color: var(--color-white);
}

.country-dropdown-menu .flag {
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Mobile nav toggle ──────────────────────────────── */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-white);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── Main Content ───────────────────────────────────── */

.main-content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  width: 100%;
}

.main-content.wide {
  max-width: var(--max-width-wide);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-navy);
}

.page-subtitle {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ── Two-Column Layout (widget + sidebar) ───────────── */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* ── Widget Container ───────────────────────────────── */

.widget-container {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .04);
  padding: 24px;
  min-height: 400px;
}

/* ── Sidebar ────────────────────────────────────────── */

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-ad {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .04);
}

.sidebar-ad img {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-ad-label {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Landing Page ───────────────────────────────────── */

.landing-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.landing-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.landing-hero h1 span {
  color: var(--color-green);
}

.landing-hero p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .03);
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.country-card:hover {
  border-color: var(--color-green);
  box-shadow: 0 4px 16px rgba(0, 200, 83, .15);
  transform: translateY(-2px);
}

.country-card .flag {
  font-size: 2rem;
  line-height: 1;
}

.country-card .label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
}

.country-card .arrow {
  margin-left: auto;
  color: var(--color-text-light);
  transition: transform 0.2s ease;
}

.country-card:hover .arrow {
  transform: translateX(3px);
  color: var(--color-green);
}

/* ── Prose / Content Pages ──────────────────────────── */

.prose {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .04);
  padding: 40px 48px;
  max-width: 760px;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 32px;
  margin-bottom: 8px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose ul {
  margin: 0 0 16px 20px;
  color: var(--color-text);
  line-height: 1.7;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--color-green-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-green);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-card {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 24px;
}

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .prose {
    padding: 24px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  background: var(--color-navy);
  margin-top: auto;
}

.footer-main {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--color-green);
}

.footer-tagline {
  color: rgba(255, 255, 255, .6);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .65);
  padding: 4px 0;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover {
  color: rgba(255, 255, 255, .95);
}

.footer-col .flag {
  font-size: 1rem;
  line-height: 1;
}

.footer-bottom {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, .4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, .75);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .main-content {
    padding: 20px 16px 32px;
  }

  .site-logo {
    font-size: 1.1rem;
  }
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-navy-light);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav > a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .country-dropdown {
    width: 100%;
  }

  .country-dropdown-toggle {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    justify-content: space-between;
  }

  .country-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, .05);
    margin-top: 4px;
    border-radius: 8px;
  }

  .country-dropdown-menu a {
    color: rgba(255, 255, 255, .7);
  }

  .country-dropdown-menu a:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--color-white);
  }

  .country-dropdown-menu a.active {
    background: var(--color-green);
    color: var(--color-white);
  }

  .site-header {
    position: relative;
  }

  .landing-hero h1 {
    font-size: 1.6rem;
  }

  .landing-hero p {
    font-size: 0.95rem;
  }

  .country-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .widget-container {
    padding: 16px;
    border-radius: 8px;
  }

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

  .sidebar {
    position: static;
    display: flex;
    justify-content: center;
  }

  .sidebar-ad {
    max-width: 300px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
