/* ==========================================================================
   NUSANTARA CODE — Halaman Detail Roadmap
   ========================================================================== */

.roadmap-page {
  min-height: 100vh;
  background: var(--sky);
  color: #0b1c39;
  font-family: "Poppins", var(--text);
}

/* ---------- Kartu Hero ---------- */
.rm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1353px, calc(100% - 88px));
  min-height: 518px;
  margin: 46px auto 0;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  color: var(--white);
}

.rm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 60, 210, 0.25) 0%, rgba(6, 80, 230, 0.05) 55%, rgba(4, 55, 190, 0.35) 100%),
    url("../assets/image%202.png") center / cover no-repeat,
    var(--blue);
}

.rm-hero__title {
  margin: 144px auto 0;
  padding: 0 36px;
  font-family: "Poppins", var(--text);
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--white);
}

.rm-hero__sub {
  max-width: 828px;
  margin: 24px auto 0;
  padding: 0 36px;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  color: var(--white);
}

/* ---------- Konten 2 Kolom ---------- */
.rm-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 36px;
  width: min(1240px, calc(100% - 112px));
  margin: 72px auto 0;
}

.rm-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  list-style: none;
}

/* ---------- Kartu Tahapan ---------- */
.rm-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 4px;
  align-items: center;
  min-height: 141px;
  padding: 26px 36px;
  border-radius: 26px;
  background: var(--white);
  box-shadow:
    0 10px 25px -5px rgba(16, 44, 88, 0.08),
    0 4px 10px -2px rgba(16, 44, 88, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rm-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px rgba(16, 44, 88, 0.14);
}

.rm-step__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.rm-step__icon svg,
.rm-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rm-step__num {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
}

.rm-step > div:last-child {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.rm-step__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1c39;
}

.rm-step__desc {
  max-width: 540px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #586b87;
}

/* ---------- Sidebar ---------- */
.rm-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.rm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px 36px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--white);
  text-align: center;
  box-shadow:
    0 12px 28px -6px rgba(16, 44, 88, 0.1),
    0 4px 12px -2px rgba(16, 44, 88, 0.05);
}

.rm-card__img {
  width: 100%;
  max-width: 240px;
  max-height: 185px;
  margin: 0 auto 20px;
  border-radius: 18px;
  object-fit: contain;
}

.rm-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rm-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #0b1c39;
}

.rm-card__text,
.rm-card__body p {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #586b87;
}

.rm-card__body {
  padding: 0;
}

.rm-card--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 16px 32px -8px rgba(0, 102, 255, 0.35);
}

.rm-card--blue .rm-card__title,
.rm-card--blue .rm-card__body p {
  color: var(--white);
}

.rm-card--blue .rm-card__text {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Navigasi Antar Roadmap ---------- */
.rm-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1240px, calc(100% - 112px));
  margin: 56px auto 0;
}

.rm-switch a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #cddcf3;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.rm-switch a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.roadmap-page .rm-switch a[aria-current="page"] {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

/* ---------- Footer di Halaman Roadmap ---------- */
.roadmap-page .site-footer {
  margin-top: 96px;
}

/* ---------- Responsif Tablet & Mobile ---------- */
@media (max-width: 1180px) {
  .rm-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-side {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
  }

  .rm-card {
    flex: 1 1 320px;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .rm-hero {
    width: calc(100% - 32px);
    margin-top: 16px;
    border-radius: 24px;
  }

  .rm-hero__title {
    margin: 56px 20px 0;
  }

  .rm-hero__sub {
    padding: 0 20px;
    font-size: 16px;
  }

  .rm-body {
    width: calc(100% - 32px);
    margin-top: 64px;
  }

  .rm-step {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .rm-step__icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 12px;
  }

  .rm-step__num {
    grid-column: 1;
    grid-row: 2;
  }

  .rm-step > div:last-child {
    grid-column: 1;
    grid-row: 3;
  }

  .rm-step__desc {
    max-width: none;
  }

  .rm-switch {
    width: calc(100% - 32px);
  }

  .roadmap-page .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: auto;
    margin-top: 64px;
    padding: 28px 20px;
  }
}