:root {
  -av-primary: #17684d;
  -av-primary-dark: #0f3d2e;
  -av-accent: #f4b63f;
  -av-text: #142646;
  -av-muted: #58667d;
  -av-bg: #f6f8fb;
  -av-card: #ffffff;
  -av-border: rgba(20, 38, 70, 0.12);
  -av-shadow: 0 12px 28px rgba(20, 38, 70, 0.06);
-av-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--av-text);
  background: var(--av-bg);
  line-height: 1.6;
}

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

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

a:hover,
a:focus-visible {
  color: var(--av-primary-dark);
  text-decoration: underline;
}

button,
select,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--av-border);
  box-shadow: 0 4px 20px rgba(20, 38, 70, 0.04);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--av-text);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.site-logo,
.brand .site-logo,
.brand img.site-logo {
  display: block;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.06rem;
}

.brand-text small {
  color: var(--av-muted);
  font-size: 0.85rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--av-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--av-primary);
}

.lang-switcher select {
  border: 1px solid var(--av-border);
  border-radius: 999px;
  padding: 9px 12px;
  background: #ffffff;
  color: var(--av-text);
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--av-border);
  background: #ffffff;
  color: var(--av-text);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef8f3 0%, #ffffff 48%, #fff7e4 100%);
  padding: 62px 0 54px;
  border-bottom: 1px solid var(--av-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 104, 77, 0.18);
  border-radius: 999px;
  background: #e7f5ef;
  color: var(--av-primary-dark);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 800px;
  color: var(--av-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.badges span {
  border: 1px solid var(--av-border);
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 12px;
  color: var(--av-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--av-primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 104, 77, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--av-primary-dark);
  color: #ffffff;
}

.btn-ghost {
  border-color: rgba(23, 104, 77, 0.25);
  background: #ffffff;
  color: var(--av-primary-dark);
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--av-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 45px rgba(20, 38, 70, 0.1);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card .pad {
  padding: 22px;
}

.small {
  color: var(--av-muted);
  font-size: 0.94rem;
}

/* Content */
.content-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.content-card,
.notice,
.fee-table,
.cta-strip,
.faq-section,
.intro-panel,
.fee-grid,
.steps,
.mistakes,
.why-grid,
.faq-box {
  margin-bottom: 34px;
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--av-shadow);
}

.content-card h2,
.notice h2,
.fee-table h2,
.faq-section h2,
.intro-panel h2 {
  margin-top: 0;
}

.content-card p,
.content-card li,
.notice p,
.fee-table p,
.fee-table li,
.faq-section p,
.section p,
.section li,
.page-content p,
.page-content li {
  font-size: 1.03rem;
  line-height: 1.76;
}

.page-content ul,
.page-content ol,
.content-card ul,
.content-card ol,
.section ul,
.section ol {
  padding-left: 24px;
}

.section {
  margin-bottom: 44px;
}

.section h2,
.page-content h2 {
  margin: 38px 0 16px;
  font-size: clamp(1.55rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.section h3,
.page-content h3 {
  margin: 26px 0 10px;
  font-size: 1.22rem;
}

.section.section-card {
  max-width: 1180px;
  margin: 32px auto;
  padding: 32px;
  border: 1px solid rgba(15, 107, 79, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 107, 79, 0.08);
}

.section.section-card h2 {
  margin-top: 0;
  color: var(--av-primary-dark);
  line-height: 1.2;
}

.section.section-card h3 {
  color: #12372f;
  line-height: 1.25;
}

.section.section-card .cta-row {
  margin-top: 22px;
}

.content-section {
  padding: 34px 0;
  border-bottom: 1px solid #e5e7eb;
}

.content-section h2 {
  margin-top: 0;
}

.content-section h3 {
  margin-top: 22px;
}

.article-body {
  font-size: 1rem;
  line-height: 1.75;
}

.notice {
  border-color: #f1d6a8;
  background: #fff9ed;
}

.support-grid,
.fee-grid,
.note-grid,
.grid-2,
.grid-3,
.cost-grid {
  display: grid;
  gap: 20px;
}

.support-grid,
.fee-grid,
.note-grid,
.grid-2,
.cost-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.mini-card,
.card,
.fee-box,
.cost-card {
  border: 1px solid rgba(20, 38, 70, 0.1);
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
}

.mini-card,
.card,
.fee-box {
  background: #f7fafc;
}

.mini-card h3,
.card h3,
.fee-box h3 {
  margin-top: 0;
}

.checklist {
  padding-left: 22px;
}

.checklist li {
  margin-bottom: 10px;
}

.pro-tip,
.note-box {
  margin: 18px 0;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--av-primary);
  border-radius: 16px;
  background: #eff6ff;
  padding: 18px;
}

.faq-section .faq-item,
.faq-box .faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--av-border);
}

/* CTA */
.cta-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--av-primary-dark), var(--av-primary));
  color: #ffffff;
}

.cta-strip h2 {
  margin-top: 0;
  color: #ffffff;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.92);
}

.cta-strip .btn {
  display: inline-flex;
  margin: 8px 8px 0 0;
}

.benin-visa-types{max-width:1200px;margin:0 auto;padding:40px 20px}
    .visa-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:20px}
    .visa-card{
      border:1px solid #e5e5e5;
      border-radius:10px;
      padding:20px;
      background:#fff;
      box-shadow:0 2px 10px rgba(0,0,0,.05);
    }
    .visa-card h4{margin-top:0}

/* Footer */
.footer {
  border-top: 1px solid var(--av-border);
  background: #ffffff;
  color: var(--av-text);
  padding: 48px 0 24px;
}

.footer .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid,
.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.footer h2,
.footer h3,
.footer h4,
.footer-col h2,
.footer-col h3,
.footer-col h4 {
  margin: 0 0 14px;
  color: var(--av-primary-dark);
  line-height: 1.25;
}

.footer h4,
.footer-col h4 {
  font-size: 1rem;
}

.footer p,
.footer .muted,
.footer-bottom {
  color: var(--av-muted);
}

.footer a,
.footer-col a,
.footer .footer-links a {
  display: inline-block;
  max-width: 100%;
  color: var(--av-text);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible,
.footer-col a:hover,
.footer-col a:focus-visible,
.footer .footer-links a:hover,
.footer .footer-links a:focus-visible {
  color: var(--av-primary);
  text-decoration: underline;
}

.footer-links,
.footer .footer-links,
.footer ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li,
.footer .footer-links li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.9;
}

.footer-bottom {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--av-border);
  text-align: center;
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 8px 0 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid,
  .footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section.section-card {
    margin: 24px 16px;
    padding: 26px;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }

  .topbar-inner {
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--av-border);
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(20, 38, 70, 0.12);
  }

  .nav-wrap.active {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lang-switcher select {
    width: 100%;
  }

  .hero {
    padding: 42px 0;
  }

  .hero-grid,
  .support-grid,
  .fee-grid,
  .note-grid,
  .grid-2,
  .grid-3,
  .cost-grid,
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    padding: 38px 16px;
  }

  .content-card,
  .notice,
  .fee-table,
  .cta-strip,
  .faq-section,
  .intro-panel,
  .steps,
  .mistakes,
  .why-grid,
  .faq-box {
    padding: 22px;
  }

  .hero h1 {
    letter-spacing: -0.025em;
  }
}

@media (max-width: 640px) {
  .section.section-card {
    margin: 18px 12px;
    padding: 22px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .site-logo,
  .brand .site-logo,
  .brand img.site-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-basis: 44px;
  }

  .hero-card .pad {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    gap: 10px;
  }

  .badges span {
    font-size: 0.82rem;
  }

  .footer {
    padding: 34px 0 20px;
  }

  .footer .container {
    padding: 0 16px;
  }

  .footer-grid,
  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    text-align: left;
  }
}