:root {
  --primary: #b00020;
  --primary-strong: #d11f32;
  --primary-deep: #65000f;
  --ink: #1b1c1c;
  --muted: #65413f;
  --line: #efc8c4;
  --surface: #fffafa;
  --surface-soft: #fff0ef;
  --surface-muted: #f7dedb;
  --dark: #22080a;
  --teal: #0b6469;
  --teal-light: #b9f2ea;
  --white: #ffffff;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 7vw, 4.65rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 249, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--primary);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav a:hover,
.nav a[aria-current="page"],
.read-more:hover,
.back-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0 18px;
}

.nav-cta:hover {
  background: var(--primary-strong);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.language-switcher a {
  display: inline-flex;
  min-width: 30px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.language-switcher a[aria-current="true"] {
  background: var(--primary);
  color: var(--white);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
  padding: 0 24px;
  font-weight: 800;
}

.button:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 92px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 37, 44, 0.88) 0%, rgba(10, 76, 86, 0.62) 46%, rgba(10, 76, 86, 0.08) 100%),
    url("/assets/img/indonesia-health-arrival.jpg") center / cover no-repeat;
}

.hero-content p {
  max-width: 780px;
  color: #e4e2e1;
  font-size: 1.125rem;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--teal-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section .eyebrow,
.page-hero .eyebrow,
.post-hero .eyebrow {
  color: var(--primary);
}

.dark .eyebrow,
.final-cta .eyebrow {
  color: var(--teal-light);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.feature-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.strip-grid span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: 1px;
}

.section {
  padding: 76px 0;
}

.muted {
  background: var(--surface-soft);
}

.dark {
  background:
    linear-gradient(135deg, var(--primary-deep) 0%, #8f000d 58%, #c92734 100%);
  color: var(--white);
}

.dark h2,
.dark h3,
.dark p,
.dark li,
.dark span {
  color: var(--white);
}

.dark p,
.dark li,
.dark span {
  color: #f2d9d6;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.callout,
.panel,
.info-card,
.post-card,
details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.callout {
  padding: 28px;
  border-left: 5px solid var(--primary);
}

.callout strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.1rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.post-grid {
  display: grid;
  gap: 24px;
}

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

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

.info-card,
.post-card {
  padding: 28px;
}

.info-card h3,
.post-card h2 {
  color: var(--ink);
}

.info-card h3::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--primary);
}

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

.steps article {
  text-align: center;
}

.steps span {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "+";
  margin-right: 10px;
  color: #ffb4ac;
  font-weight: 800;
}

.panel {
  padding: 32px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.form-sections {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-sections li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.form-sections li:last-child {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 22px;
}

summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 12px;
}

.final-cta,
.post-hero,
.page-hero {
  background: var(--dark);
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}

.final-cta p,
.page-hero p,
.post-hero p {
  color: #e4e2e1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 0;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.page-hero h1,
.post-hero h1 {
  max-width: none;
}

.post-date,
.back-link,
.read-more {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.post-card h2 {
  font-size: 1.45rem;
}

.post-card-image {
  display: block;
  margin: -28px -28px 22px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background: var(--surface-soft);
}

.post-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination a {
  color: var(--primary);
  font-weight: 800;
}

.post-content {
  padding: 64px 0;
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  color: var(--ink);
  scroll-margin-top: 104px;
}

.post-featured {
  margin: 0 0 2rem;
}

.post-featured-image {
  display: block;
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.post-featured figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-summary,
.post-toc {
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.post-summary {
  padding: 26px 28px;
  border-left: 5px solid var(--primary);
}

.post-summary h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.post-summary ul,
.post-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.post-summary li,
.post-toc li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.post-toc {
  padding: 22px 24px;
}

.post-toc strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.post-toc a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.post-toc a:hover {
  text-decoration: underline;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.apply-intro {
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.apply-intro .eyebrow {
  color: var(--primary);
}

.apply-intro h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.apply-intro p {
  margin-bottom: 0;
}

.apply-section {
  min-height: 620px;
  padding: 28px 0 64px;
  background: var(--surface);
}

#visa-form {
  min-height: 520px;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .brand {
    align-self: center;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 2px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar,
  .strip-grid::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 0.95rem;
  }

  .language-switcher {
    justify-self: end;
    gap: 2px;
    padding: 3px;
  }

  .language-switcher a {
    min-width: 28px;
    min-height: 26px;
    font-size: 0.68rem;
  }

  .hero {
    padding: 58px 0 68px;
    background:
      linear-gradient(180deg, rgba(6, 37, 44, 0.9) 0%, rgba(10, 76, 86, 0.66) 54%, rgba(10, 76, 86, 0.34) 100%),
      url("/assets/img/indonesia-health-arrival.jpg") center / cover no-repeat;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 10vw, 3.15rem);
    line-height: 1.05;
  }

  .hero-content p {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 290px;
  }

  .actions .button {
    width: 100%;
  }

  .strip-grid {
    grid-template-columns: repeat(5, 180px);
    gap: 22px;
    padding: 18px 0 16px;
    scroll-snap-type: x mandatory;
  }

  .strip-grid span {
    scroll-snap-align: start;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 28px;
    text-align: left;
  }

  .two-col,
  .card-grid.four,
  .card-grid.three,
  .post-grid,
  .steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: visible;
    padding-top: 3px;
  }

  .nav-cta {
    min-height: 34px;
    padding: 0 12px;
  }

  .nav a[href$="#requirements"],
  .nav a[href$="#steps"] {
    display: none;
  }

  .hero {
    padding: 48px 0 58px;
  }

  .hero h1 {
    max-width: 11ch;
    margin-bottom: 16px;
    font-size: clamp(2rem, 10.4vw, 2.75rem);
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .button {
    min-height: 46px;
    padding-inline: 18px;
  }

  .info-card,
  .post-card,
  .callout,
  .panel,
  .post-summary,
  .post-toc {
    padding: 22px;
  }

  .final-cta,
  .page-hero,
  .post-hero {
    padding: 58px 0;
  }
}
