:root {
  /* Backgrounds */
  --bg-primary: #fefaf6;
  --bg-secondary: #fff5ee;
  --bg-card: #ffffff;
  --bg-footer: #1a1a2e;

  /* Accents */
  --accent-coral: #ff6b6b;
  --accent-coral-hover: #e85d5d;
  --accent-lavender: #a78bfa;
  --accent-sage: #6bcb77;
  --accent-amber: #fbbf24;
  --accent-sky: #38bdf8;

  /* Text */
  --text-heading: #1a1a2e;
  --text-body: #4a4a68;
  --text-muted: #9ca3af;
  --text-inverse: #fefaf6;

  /* Borders & Shadows */
  --border-light: rgba(26, 26, 46, 0.08);
  --border-medium: rgba(26, 26, 46, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.12);
  --shadow-coral: 0 8px 30px rgba(255, 107, 107, 0.25);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  --radius-round: 50%;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;

  /* Status */
  --success-color: #10b981;
  --error-color: #ef4444;

  --sg-bg: #fefaf6;
  --sg-card: #ffffff;
  --sg-text: #1a1a2e;
  --sg-body: #4a4a68;
  --sg-border: rgba(26, 26, 46, 0.08);
  --sg-coral-tint: rgba(255, 107, 107, 0.08);
}

.sg-body {
  background-color: var(--sg-bg);
  color: var(--sg-body);
  font-family: "DM Sans", sans-serif;
  margin: 0;
  padding: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(254, 250, 246, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-medium);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  text-decoration: none;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--duration-fast) var(--ease-bounce);
}

.logo a:hover {
  transform: scale(1.03);
}

.logo img {
  height: 32px;
  transition: transform var(--duration-normal) var(--ease-bounce);
  width: auto;
}

.logo a:hover img {
  transform: rotate(-12deg) scale(1.1);
}

.btn-sg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bg-card);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
  background: var(--accent-coral);
  padding: 10px 16px;
  border-radius: 5px;
  box-shadow: var(--shadow-md);
}

.btn-sg-back:hover {
  transform: translateX(-2px);
  box-shadow: var(--shadow-coral);
  background: var(--error-color);
}

/* --- Main Layout --- */
.sg-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.sg-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 2.5rem;
}

.sg-hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--sg-text);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.sg-hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--sg-body);
  margin-bottom: 0;
}

/* Trust bar */
.sg-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) auto var(--space-4xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--sg-border);
  max-width: 800px;
}

.sg-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sg-text);
}

.sg-trust-item i {
  color: var(--accent-coral);
}

/* Section headings (reused above cards + steps) */
.sg-section-title {
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--sg-text);
  margin-bottom: var(--space-xs);
}

.sg-section-sub {
  text-align: center;
  font-size: 0.98rem;
  color: var(--sg-body);
  max-width: 620px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.55;
}

/* Destination Cards — flex so an uneven last row centers instead of
   leaving a dangling gap in a fixed 3-col grid */
.sg-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.sg-card {
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 340px;
  transition:
    transform 0.3s var(--ease-bounce),
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.sg-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-coral);
}

.sg-card-flag {
  width: 7rem;
  height: 4rem;
  position: absolute;
  right: 0px;
  top: 0px;
}

.sg-card-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-card-doctype {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  background: var(--sg-coral-tint);
  border: 1px solid rgba(255, 107, 107, 0.15);
  color: var(--accent-coral);
  border-radius: var(--radius-pill);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.sg-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sg-text);
  margin-bottom: var(--space-sm);
}

.sg-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sg-body);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.sg-card-points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sg-card-points li {
  font-size: 0.82rem;
  color: var(--sg-body);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sg-card-points li i {
  color: var(--accent-coral);
  font-size: 0.7rem;
  margin-top: 4px;
}

.btn-sg-action {
  padding: 0.7rem 1.4rem;
  background: var(--accent-coral);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-coral);
  transition: all 0.25s var(--ease-out);
  margin-top: auto;
}

.btn-sg-action:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-2px);
}

/* --- How it works --- */
.sg-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.sg-step {
  flex: 1 1 260px;
  max-width: 320px;
  text-align: center;
  background: var(--bg-card);
  padding: 2rem 1rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.sg-step:hover {
  box-shadow: var(--shadow-coral);
}

.sg-step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--sg-coral-tint);
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
}

.sg-step h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: var(--sg-text);
  margin-bottom: 4px;
  font-size: 1rem;
}

.sg-step p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sg-body);
  margin: 0;
}

/* --- Closing CTA --- */
.sg-cta {
  text-align: center;
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.sg-cta h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: var(--sg-text);
  margin-bottom: var(--space-xs);
  font-size: 1.3rem;
}

.sg-cta p {
  font-size: 0.95rem;
  color: var(--sg-body);
  margin-bottom: var(--space-lg);
}

/* --- Destination Guide Styling (used on the per-country pages) --- */
.guide-header-area {
  margin-bottom: var(--space-2xl);
  border-bottom: 2px solid var(--sg-border);
  padding-bottom: var(--space-md);
}

.guide-badge-flag {
  font-size: 2.2rem;
  margin-bottom: var(--space-xs);
  display: inline-block;
}

.guide-title {
  font-family: "Outfit", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--sg-text);
  margin-bottom: var(--space-xs);
}

.guide-subtitle {
  font-size: 1.05rem;
  color: var(--sg-body);
  line-height: 1.5;
}

.guide-section {
  background: var(--sg-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.guide-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sg-text);
  border-bottom: 1px solid var(--sg-border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.guide-section-header i {
  color: var(--accent-coral);
}

.guide-text-block p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sg-body);
  margin-bottom: var(--space-md);
}

.guide-text-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.guide-text-block li {
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guide-text-block li i {
  color: var(--accent-coral);
  margin-top: 3px;
  font-size: 0.85rem;
}

.guide-text-block strong {
  color: var(--sg-text);
}

.btn-back {
  background: none;
  color: var(--accent-coral);
  box-shadow: none;
}

.btn-back:hover {
  color: var(--accent-coral-hover);
  box-shadow: none;
  background: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sg-hero h1 {
    font-size: 2.1rem;
  }

  .sg-hero p {
    font-size: 1rem;
  }

  .sg-card {
    max-width: 100%;
    flex-basis: 100%;
  }

  .guide-section {
    padding: var(--space-lg);
  }

  .sg-cta {
    padding: var(--space-xl);
  }
}

.country-guide {
  /* width: min(1180px, 92%); */
  margin: 0 auto;
}

.country-guide-header {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.guide-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-lavender);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.country-guide-header h2 {
  margin: 0 0 1rem;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.country-guide-header p {
  margin: 0;
  color: var(--text-body);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

/* --------------------------------------------------------- COUNTRY CARD --------------------------------------------------------- */
.country-guide-card {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 2rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light, #ece8e4);
  border-radius: 24px;
  box-shadow: var(--shadow-sm, 0 8px 30px rgba(26, 26, 46, 0.06));
}

.country-guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-radius: 24px 0 0 24px;
}

.country-usa::before {
  background: #3b82f6;
}

.country-canada::before {
  background: #ef4444;
}

.country-australia::before {
  background: #f59e0b;
}

.country-newzealand::before {
  background: #0ea5e9;
}

.country-europe::before {
  background: #8b5cf6;
}

/* --------------------------------------------------------- CARD HEADER --------------------------------------------------------- */
.country-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-light, #ece8e4);
}

.country-flag {
  display: grid;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: var(--bg-secondary);
  font-size: 2rem;
}

.country-number {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-muted, #85859a);
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.country-card-top h3 {
  margin: 0;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
}

.country-card-top p {
  margin: 0.25rem 0 0;
  color: var(--text-body);
  font-size: 0.9rem;
}

/* --------------------------------------------------------- CONTENT SECTIONS --------------------------------------------------------- */
.country-section {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.country-section:last-of-type {
  margin-bottom: 0;
}

.country-section h4 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
}

.country-section h4 i {
  color: var(--accent-sage);
  font-size: 0.9rem;
}

.country-limit h4 i {
  color: var(--accent-amber);
}

.country-section ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.country-section li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-body);
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  line-height: 1.7;
}

.country-section li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-lavender);
}

.country-section li strong {
  color: var(--text-heading);
}

/* --------------------------------------------------------- VERDICT --------------------------------------------------------- */
.country-verdict {
  margin-top: 1.7rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: var(--bg-secondary);
  color: var(--text-body);
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
}

.country-verdict strong {
  color: var(--text-heading);
}

/* --------------------------------------------------------- QUICK DECISION --------------------------------------------------------- */
.country-decision {
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light, #ece8e4);
  border-radius: 24px;
  box-shadow: var(--shadow-sm, 0 8px 30px rgba(26, 26, 46, 0.06));
}

.decision-header {
  max-width: 680px;
  margin-bottom: 1.8rem;
}

.decision-header h3 {
  margin: 0 0 0.7rem;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
}

.decision-header p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.7;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.decision-item {
  padding: 1.2rem;
  border: 1px solid var(--border-light, #ece8e4);
  border-radius: 16px;
  background: var(--bg-primary);
}

.decision-item>span {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.7rem;
}

.decision-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}

.decision-item p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* --------------------------------------------------------- FINAL CHECKLIST --------------------------------------------------------- */
.country-checklist {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.7rem;
  border: 1px solid rgba(107, 203, 119, 0.25);
  border-radius: 20px;
  background: rgba(107, 203, 119, 0.07);
}

.checklist-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: rgba(107, 203, 119, 0.15);
  color: var(--accent-sage);
  font-size: 1.25rem;
}

.country-checklist h3 {
  margin: 0 0 0.8rem;
  color: var(--text-heading);
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
}

.country-checklist ol {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

.checklist-note {
  margin: 0;
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --------------------------------------------------------- BACK / CTA CARD --------------------------------------------------------- */
.guide-back-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.7rem;
  border-radius: 20px;
  background: var(--bg-footer);
  text-align: justify;
}

.guide-back-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-coral);
  font-size: 1.25rem;
}

.guide-back-card h3 {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
}

.guide-back-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  margin: 4px 0px;
  border-radius: 10px;
  background: var(--accent-coral);
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.guide-back-button:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-2px);
}

.guide-back-button i {
  font-size: 0.75rem;
}

.guide-back-items {
  color: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------- TABLET --------------------------------------------------------- */
@media (max-width: 992px) {
  .decision-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .decision-item:last-child {
    grid-column: 1 / -1;
  }

  .country-guide-card {
    padding: 1.6rem;
  }
}

/* --------------------------------------------------------- MOBILE --------------------------------------------------------- */
@media (max-width: 768px) {
  /* .country-guide {
    width: min(94%, 680px);
  } */

  .country-guide-header {
    margin-bottom: 2rem;
  }

  .country-guide-header h2 {
    font-size: 2rem;
  }

  .country-guide-card {
    padding: 1.3rem;
    border-radius: 18px;
  }

  .country-card-top {
    gap: 0.8rem;
    margin-bottom: 1.4rem;
  }

  .country-flag {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.6rem;
  }

  .country-card-top h3 {
    font-size: 1.4rem;
  }

  .country-card-top p {
    font-size: 0.82rem;
  }

  .country-section li {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .country-decision {
    padding: 1.3rem;
    border-radius: 18px;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-item:last-child {
    grid-column: auto;
  }

  .country-checklist {
    grid-template-columns: 1fr;
    padding: 1.3rem;
  }

  .guide-back-card {
    grid-template-columns: 1fr;
    padding: 1.3rem;
  }

  /* .guide-back-button {
    grid-column: 1 / -1;
    width: 100%;
  } */
}

/* --------------------------------------------------------- SMALL MOBILE --------------------------------------------------------- */
@media (max-width: 480px) {
  .sg-hero {
    padding-top: 0rem;
  }

  .country-guide-header h2 {
    font-size: 1.75rem;
  }

  .country-guide-header p {
    font-size: 0.9rem;
  }

  .country-guide-card {
    padding: 1.1rem;
  }

  .country-card-top {
    align-items: flex-start;
  }

  .country-number {
    font-size: 0.68rem;
  }

  .country-card-top h3 {
    font-size: 1.3rem;
  }

  .country-card-top p {
    font-size: 0.78rem;
  }

  .country-section h4 {
    font-size: 0.98rem;
  }

  .country-section li {
    padding-left: 1.1rem;
    font-size: 0.84rem;
  }

  .country-verdict {
    padding: 1rem;
    font-size: 0.84rem;
  }

  .decision-header h3 {
    font-size: 1.4rem;
  }
}