/* Country directory + rich country detail pages (feilaifeiquvisa) */
.country-directory-hero,
.country-seo-hero {
  position: relative;
  overflow: hidden;
  padding: 158px 0 54px;
  color: #fff;
  background:
    radial-gradient(760px 360px at 86% 8%, rgba(223, 192, 139, 0.2), transparent 66%),
    radial-gradient(620px 380px at 8% 100%, rgba(36, 82, 76, 0.42), transparent 68%),
    linear-gradient(135deg, #081b20 0%, #123531 58%, #1d4a43 145%);
}

.country-directory-hero::before,
.country-seo-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: radial-gradient(ellipse 90% 90% at 56% 12%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 56% 12%, #000 35%, transparent 78%);
}

.country-directory-hero .container,
.country-seo-hero .container {
  position: relative;
  z-index: 1;
}

.country-directory-hero .country-breadcrumb,
.country-seo-hero .country-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.country-directory-hero .country-breadcrumb a,
.country-seo-hero .country-breadcrumb a {
  color: rgba(255, 255, 255, 0.74);
}

.country-directory-hero .country-breadcrumb a:hover,
.country-seo-hero .country-breadcrumb a:hover {
  color: var(--gold-2);
}

.country-directory-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.country-directory-hero h1 span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--sans);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.country-directory-hero > .container > p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.9;
}

.directory-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.directory-stat-row b {
  color: var(--gold-2);
  font-family: var(--english);
  font-size: 20px;
  font-weight: 500;
}

.country-directory-main {
  padding: 40px 0 90px;
  background: var(--paper);
}

.featured-country-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.featured-country-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(20, 41, 43, 0.11);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 35, 37, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.featured-country-link:hover {
  border-color: rgba(23, 59, 56, 0.36);
  box-shadow: 0 16px 38px rgba(12, 38, 37, 0.11);
  transform: translateY(-3px);
}

.featured-country-link > span {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f0f3f2;
  font-size: 24px;
}

.featured-country-link b,
.featured-country-link small {
  display: block;
}

.featured-country-link b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.featured-country-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.featured-country-link strong {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.directory-search {
  display: flex;
  height: 50px;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid rgba(20, 41, 43, 0.14);
  border-radius: 13px;
  background: #fff;
}

.directory-search svg {
  width: 18px;
  flex: 0 0 18px;
  color: var(--muted);
}

.directory-search input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-filters button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(20, 41, 43, 0.14);
  border-radius: 999px;
  color: #52615f;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.directory-filters button em {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: #6b7471;
  background: #edf1f0;
  font-family: var(--english);
  font-size: 10px;
  font-style: normal;
}

.directory-filters button.active {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.directory-filters button.active em {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.directory-result-count {
  display: block;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.directory-continent {
  border: 1px solid rgba(20, 41, 43, 0.12);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.directory-continent + .directory-continent {
  margin-top: 18px;
}

.directory-continent summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.directory-continent summary::-webkit-details-marker {
  display: none;
}

.directory-continent summary h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.directory-continent summary span {
  color: var(--muted);
  font-size: 12px;
}

.directory-continent summary i {
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.directory-continent[open] summary i {
  transform: rotate(225deg);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 24px 24px;
}

.directory-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(20, 41, 43, 0.11);
  border-radius: 15px;
  background: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.directory-card:hover {
  border-color: rgba(23, 59, 56, 0.36);
  box-shadow: 0 18px 40px rgba(12, 38, 37, 0.1);
  transform: translateY(-4px);
}

.directory-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-card-head > span {
  display: grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #f0f3f2;
  font-size: 24px;
}

.directory-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.directory-card-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--english);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.directory-card-region {
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #845d2e;
  background: #f6ebda;
  font-size: 10px;
  font-weight: 700;
}

.directory-card p {
  margin: 14px 0 18px;
  color: #6f7a78;
  font-size: 12px;
  line-height: 1.75;
}

.directory-card-go {
  margin-top: auto;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.country-no-results {
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* Rich country detail */
.country-seo-hero {
  padding-top: 132px;
  padding-bottom: 0;
}

.country-seo-hero .container {
  padding-bottom: 54px;
}

.country-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 42px;
  align-items: center;
}

.country-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 8px;
  border: 1px solid rgba(223, 192, 139, 0.36);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(223, 192, 139, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.country-kicker > span {
  font-size: 19px;
  line-height: 1;
}

.country-seo-hero h1 {
  max-width: 780px;
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.country-seo-hero h1 span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.country-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.9;
}

.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.country-chips span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 600;
}

.country-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.country-updated {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.country-brief {
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(16px);
}

.country-brief-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.country-brief-head > span {
  font-size: 32px;
}

.country-brief-head small {
  color: var(--gold-2);
  font-family: var(--english);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.country-brief-head b {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.country-brief-row {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.country-brief-row span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.country-brief-row b {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.55;
}

.country-brief-note {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.65;
}

.country-fact-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.1);
}

.country-fact {
  padding: 17px 19px;
  background: rgba(4, 18, 21, 0.58);
}

.country-fact span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.country-fact b {
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
}

.country-main {
  padding: 54px 0 80px;
}

.country-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.country-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.country-toc,
.country-consult {
  border: 1px solid rgba(20, 41, 43, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(14, 35, 37, 0.05);
}

.country-toc {
  padding: 17px;
}

.country-toc h2 {
  margin-bottom: 10px;
  font-size: 13px;
}

.country-toc nav {
  display: grid;
}

.country-toc a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #52615f;
  font-size: 12px;
  font-weight: 600;
}

.country-toc a:hover {
  color: var(--forest);
  background: #eef2f1;
}

.country-consult {
  padding: 19px;
  color: #fff;
  background: linear-gradient(150deg, #081b20, #123531);
}

.country-consult h2 {
  font-size: 16px;
}

.country-consult p {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.7;
}

.country-consult img {
  width: 126px;
  height: 126px;
  margin: 0 auto 12px;
  object-fit: cover;
  background: #fff;
}

.country-consult .button {
  width: 100%;
  margin-top: 8px;
}

.country-consult small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.6;
}

.country-content {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.country-section {
  padding: 29px;
  border: 1px solid rgba(20, 41, 43, 0.11);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(14, 35, 37, 0.055);
  scroll-margin-top: 96px;
}

.country-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-family: var(--english);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.country-section-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.country-section h2 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

.country-section-lead {
  margin: 9px 0;
  color: #53605e;
  font-size: 14px;
  line-height: 1.85;
}

.country-note {
  margin-top: 17px;
  padding: 15px 17px;
  border: 1px solid rgba(184, 140, 80, 0.24);
  border-radius: 13px;
  color: #72583a;
  background: linear-gradient(120deg, rgba(184, 140, 80, 0.08), rgba(223, 192, 139, 0.08));
  font-size: 13px;
  line-height: 1.8;
}

.country-insurance-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 27px 29px;
  border-radius: 19px;
  color: #fff;
  background: var(--forest);
}

.country-insurance-strip h2 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.country-insurance-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.country-insurance-strip .cis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.country-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.country-type {
  padding: 20px;
  border: 1px solid rgba(20, 41, 43, 0.1);
  border-radius: 14px;
  background: #fff;
}

.country-type-num {
  color: var(--gold);
  font-family: var(--english);
  font-size: 12px;
  font-weight: 700;
}

.country-type h3 {
  margin: 13px 0 7px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.country-type p {
  margin: 0;
  color: #6f7a78;
  font-size: 12px;
  line-height: 1.75;
}

.country-steps {
  display: grid;
  gap: 0;
}

.country-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.country-step:last-child {
  border-bottom: 0;
}

.country-step-num {
  color: var(--gold);
  font-family: var(--english);
  font-size: 19px;
}

.country-step h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.country-step p {
  margin: 0;
  color: #6f7a78;
  font-size: 12px;
  line-height: 1.75;
}

.country-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.country-material {
  padding: 19px;
  border: 1px solid rgba(20, 41, 43, 0.1);
  border-radius: 14px;
  background: #fff;
}

.country-material h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.country-material ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-material li {
  position: relative;
  padding-left: 15px;
  color: #687572;
  font-size: 12px;
  line-height: 1.6;
}

.country-material li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.country-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.country-tip {
  padding: 18px;
  border-radius: 13px;
  background: #f0f3f2;
}

.country-tip span {
  color: var(--gold);
  font-family: var(--english);
  font-size: 13px;
  font-weight: 700;
}

.country-tip p {
  margin: 9px 0 0;
  color: #63706e;
  font-size: 12px;
  line-height: 1.7;
}

.country-faqs details {
  border-bottom: 1px solid var(--line);
}

.country-faqs summary {
  position: relative;
  padding: 17px 30px 17px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.country-faqs summary::after {
  position: absolute;
  top: 13px;
  right: 4px;
  color: var(--gold);
  content: "+";
  font-family: var(--english);
  font-size: 20px;
}

.country-faqs details[open] summary::after {
  content: "−";
}

.country-faqs details p {
  margin: -2px 30px 17px 0;
  color: #6f7a78;
  font-size: 12px;
  line-height: 1.8;
}

.country-official-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.country-official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(20, 41, 43, 0.11);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.country-official-link:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-2px);
}

.country-official-link i {
  color: var(--gold);
  font-family: var(--english);
  font-size: 16px;
  font-style: normal;
}

.country-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.country-related a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(20, 41, 43, 0.11);
  border-radius: 11px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.country-related a:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.country-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.country-contact-card {
  padding: 17px;
  border-radius: 13px;
  background: #f0f3f2;
}

.country-contact-card .ic {
  font-size: 19px;
}

.country-contact-card h3 {
  margin: 10px 0 4px;
  font-size: 13px;
}

.country-contact-card p {
  margin: 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

.country-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 21px;
  border-radius: 15px;
  color: #fff;
  background: var(--forest);
}

.country-cta h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.country-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.country-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-disclaimer {
  margin: 16px 0 0;
  color: #929995;
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .featured-country-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .directory-toolbar {
    grid-template-columns: 1fr;
  }

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

  .country-brief {
    max-width: 620px;
  }

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

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

@media (max-width: 760px) {
  .country-directory-hero,
  .country-seo-hero {
    padding-top: 118px;
  }

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

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

  .directory-continent summary {
    padding: 18px;
  }

  .directory-grid {
    padding: 4px 16px 16px;
  }

  .directory-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .directory-filters button {
    flex: 0 0 auto;
  }

  .country-fact-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .country-section {
    padding: 22px 18px;
  }

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

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

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

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

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

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

  .country-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .directory-stat-row {
    gap: 8px 18px;
  }

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