/* =============================================================================
 * Vitalum Roadmap — faithful scoped port of vam.html's #roadmap block.
 *
 * Source rules (line numbers are the original theme file):
 *   style-jasmine.css :4681-5124  → .roadmap, .roadmap-s1(-alt), .roadmap-done,
 *                                    .roadmap-wrap*, .roadmap-step*, .roadmap-head*,
 *                                    .roadmap-time-s1, .roadmap-title-s1,
 *                                    .roadmap-step-list-s1
 *   vam.css           :473-524    → Vitalum green overrides + row-2 spine
 *
 * All selectors are scoped under .vrm-scope, and .tc-light rules are inlined
 * (roadmap section is always on a dark background).
 * ============================================================================= */

/* -------- Reset -------- */
.vrm-scope,
.vrm-scope *,
.vrm-scope *::before,
.vrm-scope *::after { box-sizing: border-box; }

.vrm-scope {
  --vrm-primary: #1ebf95;
  --vrm-primary-halo: rgba(30,191,149,0.18);
  --vrm-time-color:  rgba(255,255,255,0.8);
  --vrm-title-color: rgba(255,255,255,0.95);
  --vrm-list-color:  rgba(255,255,255,0.72);
  --vrm-dashed:      rgba(255,255,255,0.3);
  --vrm-bg:          #0d1a14;

  /* Stub (vertical line from dot to title) — Elementor Style controls drive these */
  --vrm-stub-height:    60px;
  --vrm-stub-thickness: 1px;
  --vrm-stub-style:     dashed;
  --vrm-stub-color:     rgba(255,255,255,0.35);
  --vrm-stub-gap:       10px;    /* space between dot and start of stub */
  --vrm-title-gap:      25px;    /* space between stub end and title */

  display: block;
  width: 100%;
  color: #ffffff;
  background: transparent;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.vrm-scope ul,
.vrm-scope ol { list-style: none !important; margin: 0; padding: 0; }
.vrm-scope li { list-style: none !important; }

/* -------- Full dark section wrap -------- */
.vrm-scope.vrm-section-wrap {
  background: var(--vrm-bg);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
@media (max-width: 991px) {
  .vrm-scope.vrm-section-wrap { padding: 60px 0; }
}

/* -------- .container (bootstrap-ish) -------- */
.vrm-scope .container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}
@media (max-width: 1199px) { .vrm-scope .container { max-width: 960px; } }
@media (max-width: 991px)  { .vrm-scope .container { max-width: 720px; } }
@media (max-width: 767px)  { .vrm-scope .container { max-width: 540px; } }
@media (max-width: 575px)  { .vrm-scope .container { max-width: 100%; } }

/* -------- Bootstrap grid subset -------- */
.vrm-scope .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: 0;
  margin-left: 0;
}
.vrm-scope .g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.vrm-scope .g-0 > * { padding-right: 0; padding-left: 0; }
.vrm-scope .flex-row-reverse { flex-direction: row-reverse; }
.vrm-scope [class*="col-"] { position: relative; width: 100%; }
.vrm-scope .col-lg-3 { flex: 0 0 auto; width: 100%; }

@media (min-width: 992px) {
  .vrm-scope .col-lg-3       { width: 25%; }
  .vrm-scope .text-lg-center { text-align: center !important; }
}

/* -------- Utility mimics -------- */
.vrm-scope .mb-0    { margin-bottom: 0 !important; }
.vrm-scope .ms-0    { margin-left:   0 !important; }
@media (min-width: 992px) { .vrm-scope .mb-lg-0 { margin-bottom: 0 !important; } }
.vrm-scope .mgb-m50 { margin-bottom: -50px !important; }

.vrm-scope .nk-block { margin-top: 0; }
.vrm-scope .nk-block-left { text-align: left; }

/* ============================================================================
 * .roadmap  — theme lines 4681-4711
 * ========================================================================== */
.vrm-scope .roadmap {
  position: relative;
  z-index: 10;
  padding-bottom: 30px;
}

/* Mobile (default): vertical spine on the LEFT of each column */
.vrm-scope .roadmap-s1::before,
.vrm-scope .roadmap-s1::after {
  position: absolute;
  content: "";
  left: -1px;
  height: 50%;
  border-left-width: 3px;
  border-left-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}
.vrm-scope .roadmap-s1::before { height: 45px; top: 0; }
.vrm-scope .roadmap-s1::after  { height: calc(100% - 45px); right: auto; top: 45px; }

/* -alt makes it a dashed 1px rail instead of solid 3px */
.vrm-scope .roadmap-s1-alt::before,
.vrm-scope .roadmap-s1-alt::after {
  left: 1px;
  border-left-width: 1px;
  border-left-style: dashed;
  border-color: var(--vrm-dashed);
}
.vrm-scope .flex-row-reverse .roadmap-s1-alt::before,
.vrm-scope .flex-row-reverse .roadmap-s1-alt::after {
  right: auto; left: 1px;
}
.vrm-scope .roadmap-s1-alt.roadmap-done::before,
.vrm-scope .roadmap-s1-alt.roadmap-current::before { top: 0; }
.vrm-scope .roadmap-s1-alt.roadmap-done::after,
.vrm-scope .roadmap-s1-alt.roadmap-current::after  { top: 45px; }
.vrm-scope .roadmap-s1-alt.roadmap-done::before,
.vrm-scope .roadmap-s1-alt.roadmap-done::after,
.vrm-scope .roadmap-s1-alt.roadmap-current::before {
  left: 0;
  border-left-width: 3px;
  border-left-style: solid;
  border-color: var(--vrm-primary);
}
.vrm-scope .roadmap-s1.roadmap-done::before,
.vrm-scope .roadmap-s1.roadmap-done::after,
.vrm-scope .roadmap-s1.roadmap-current::before { border-color: var(--vrm-primary); }

/* ============================================================================
 * .roadmap-wrap  — theme lines 4791-4813
 * ========================================================================== */
.vrm-scope .roadmap-wrap {
  position: relative;
  padding: 40px 0 10px;
  margin-bottom: 40px;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}
.vrm-scope .nk-block-left .roadmap-wrap { margin-left: 0; margin-right: 0; }
.vrm-scope .roadmap-wrap-s1 { padding-bottom: 0; padding-top: 0; max-width: 90%; }

/* ============================================================================
 * .roadmap-step  — theme lines 4853-4905
 * ========================================================================== */
.vrm-scope .roadmap-step {
  position: relative;
  margin-left: 50px;
  padding: 20px 20px 15px;
  max-width: 380px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}
.vrm-scope .roadmap-step::before,
.vrm-scope .roadmap-step::after { position: absolute; content: ''; }
.vrm-scope .roadmap-step::before {
  height: 18px; width: 18px;
  border-radius: 50%;
  border: 5px solid var(--vrm-bg);
  background: var(--vrm-primary);
  left: -41px; top: 34px; z-index: 1;
}
.vrm-scope .roadmap-step::after {
  height: 2px; width: 22px;
  background: rgba(255, 255, 255, 0.1);
  left: -22px; top: 42px;
}

.vrm-scope .roadmap-step-s1 {
  margin-left: 0;
  border: none;
  padding-top: 0;
  padding-right: 25px;
  padding-left: 25px;
  z-index: 1;
  max-width: 100%;
  background: transparent;
}
.vrm-scope .roadmap-step-s1::before { display: none; }
.vrm-scope .roadmap-step-s1::after {
  width: 38px !important;
  left: 0 !important;
  height: 0;
  top: 49px;
  z-index: -1;
  background: none !important;
  border-top: 1px solid;
  border-color: rgba(255, 255, 255, 0.1);
}
.vrm-scope .roadmap-s1-alt .roadmap-step-s1::after { border-top-style: dashed; }

.vrm-scope .roadmap-step p:last-child { margin-bottom: 0; }

/* ============================================================================
 * .roadmap-head  — theme lines 4919-4933
 * ========================================================================== */
.vrm-scope .roadmap-head {
  margin-bottom: 10px;
  padding-right: 35px;
  position: relative;
}
.vrm-scope .roadmap-head-s1 {
  padding-right: 0;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================================
 * .roadmap-time  — theme lines 4935-4951
 * ========================================================================== */
.vrm-scope .roadmap-time {
  display: block;
  color: var(--vrm-time-color);
  font-size: 13px;
  text-transform: uppercase;
}
.vrm-scope .roadmap-time-s1 {
  padding-bottom: 27px;
  line-height: 25px;
  width: 100%;
  display: inline-block;
  font-weight: 700;
  font-size: 0.81rem;
  position: relative;
  color: var(--vrm-time-color);
  text-transform: uppercase;
}
.vrm-scope .roadmap-time-s1::after,
.vrm-scope .roadmap-time-s1::before {
  position: absolute;
  content: "";
  left: -24px;
  border-radius: 50%;
}
.vrm-scope .roadmap-time-s1::after {
  bottom: -2px;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  background: #ffffff;
}
.vrm-scope .roadmap-time-s1::before {
  bottom: -10px;
  width: 27px; height: 27px;
  margin-left: -13.5px;
  margin-top: -13.5px;
  background: transparent;
}
.vrm-scope .roadmap-done .roadmap-time-s1::before,
.vrm-scope .roadmap-current .roadmap-time-s1::before { background: rgba(255, 255, 255, 0.1); }

/* vam.css overrides — dot becomes Vitalum green + halo is green tint */
.vrm-scope .roadmap-time-s1::after { background: var(--vrm-primary); }
.vrm-scope .roadmap-done .roadmap-time-s1::before,
.vrm-scope .roadmap-current .roadmap-time-s1::before { background: var(--vrm-primary-halo); }

/* ============================================================================
 * .roadmap-title  — theme lines 4983-4987
 * ========================================================================== */
.vrm-scope .roadmap-title {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.vrm-scope .roadmap-title-s1 {
  padding-top: 25px;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--vrm-title-color);
}

/* ============================================================================
 * .roadmap-step-list  — theme lines 4865-4873
 * ========================================================================== */
.vrm-scope .roadmap-step-list       { list-style: none; margin: 0; padding: 0; color: var(--vrm-list-color); }
.vrm-scope .roadmap-step-list-s1 li {
  list-style: none !important;
  padding: 8px 0;
  position: relative;
  color: var(--vrm-list-color);
  font-size: 0.9rem;
  line-height: 1.5;
}
.vrm-scope .roadmap-step-list-s1 li::marker { content: "" !important; }
.vrm-scope .roadmap-step-list-s1 li::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 1px;
  transform: translateX(-50%);
  background: currentColor;
}
.vrm-scope .roadmap-step-list-s1 li:last-child::after { display: none; }

/* ============================================================================
 * DESKTOP (≥992px) — timeline becomes horizontal.  theme lines 5096-5123
 * ========================================================================== */
@media (min-width: 992px) {
  .vrm-scope .roadmap { display: flex; }

  /* Dot + halo → centered under the date text of each column */
  .vrm-scope .roadmap-time-s1::after,
  .vrm-scope .roadmap-time-s1::before { left: 50%; }

  /* Vertical dashed stub from the dot down to the title */
  .vrm-scope .roadmap-step-s1 { position: relative; }
  .vrm-scope .roadmap-step-s1::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: calc(52px + var(--vrm-stub-gap)) !important;   /* dot bottom (52px) + gap */
    height: var(--vrm-stub-height) !important;
    border-left: var(--vrm-stub-thickness) var(--vrm-stub-style) var(--vrm-stub-color) !important;
    transform: translateX(calc(var(--vrm-stub-thickness) / -2)) !important;
    display: block !important;
    width: 0 !important;
    z-index: 0 !important;
    background: none !important;
  }
  /* Push the title down so it sits below the (now variable-height) stub */
  .vrm-scope .roadmap-title-s1 {
    padding-top: calc(var(--vrm-stub-gap) + var(--vrm-stub-height) + var(--vrm-title-gap));
  }
  /* Kill the old horizontal stub */
  .vrm-scope .roadmap-step-s1::after { display: none !important; }

  /* Horizontal spine — each column paints half on left (::before) + half on right (::after) */
  .vrm-scope .roadmap-s1::before,
  .vrm-scope .roadmap-s1::after {
    top: 41px;
    height: 0;
    width: 50%;
    border-top-width: 3px;
    border-top-style: solid;
    border-left-width: 0;
    border-color: rgba(255, 255, 255, 0.1);
  }
  .vrm-scope .roadmap-s1::before { left: 0; }
  .vrm-scope .flex-row-reverse .roadmap-s1::before { right: 0; left: auto; }
  .vrm-scope .roadmap-s1::after  { left: auto; right: 0; z-index: -1; }
  .vrm-scope .flex-row-reverse .roadmap-s1::after { right: auto; left: 0; }

  .vrm-scope .roadmap-s1-alt::before,
  .vrm-scope .roadmap-s1-alt::after {
    top: 42px;
    border-top-width: 1px;
    border-top-style: dashed;
    border-color: var(--vrm-dashed);
  }
  .vrm-scope .roadmap-s1-alt::after { right: 0; }
  .vrm-scope .roadmap-s1-alt.roadmap-done::before,
  .vrm-scope .roadmap-s1-alt.roadmap-done::after {
    top: 41px;
    border-top-width: 3px;
    border-top-style: solid;
    border-color: var(--vrm-primary);
  }
  .vrm-scope .roadmap-s1-alt.roadmap-done::after { right: 0; left: auto; }
  .vrm-scope .roadmap-s1-alt.roadmap-current::before {
    top: 41px;
    border-top-width: 3px;
    border-top-style: solid;
    border-color: var(--vrm-primary);
  }
  .vrm-scope .roadmap-s1-alt.roadmap-current::after { top: 42px; }

  /* -------- Roadmap-wrap: curved connector between rows -------- */
  .vrm-scope .roadmap-wrap    { padding: 40px 0 10px; margin-bottom: 60px; max-width: 100%; }
  .vrm-scope .roadmap-wrap-s1 { padding-top: 0; }
  .vrm-scope .roadmap-wrap-s1::after {
    position: absolute;
    content: "";
    width: 15px;
    height: calc(100% + 3px);
    border-width: 3px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    top: 41px;
  }
  .vrm-scope .roadmap-wrap-s1-alt::after {
    height: calc(100% + 1px);
    border-width: 1px;
    border-style: dashed;
    border-color: var(--vrm-dashed);
    top: 42px;
  }
  .vrm-scope .roadmap-wrap-s1-alt.roadmap-wrap-done::after {
    height: calc(100% + 3px);
    border-width: 3px;
    border-style: solid;
    border-color: var(--vrm-primary);
    top: 41px;
  }
  .vrm-scope .roadmap-wrap-s1.roadmap-wrap-done::after { border-color: var(--vrm-primary); }
  .vrm-scope .roadmap-wrap-s1:nth-child(odd)::after   { right: -15px; border-radius: 0 20px 20px 0; border-left-width: 0; }
  .vrm-scope .roadmap-wrap-s1:nth-child(even)::after  { left:  -15px; border-radius: 20px 0 0 20px; border-right-width: 0; }
  .vrm-scope .roadmap-wrap-s1:last-child::after       { display: none; }

  /* -------- Row-2 flat spine (vam.css :495-513) ----
     Draws a single green line edge-to-edge across the reversed row and
     kills the per-column spines. */
  .vrm-scope .roadmap-row-2 { position: relative; }
  .vrm-scope .roadmap-row-2::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 41px;
    border-top: 3px solid var(--vrm-primary);
    z-index: 1;
  }
  .vrm-scope .roadmap-row-2 .roadmap-s1::before,
  .vrm-scope .roadmap-row-2 .roadmap-s1::after,
  .vrm-scope .roadmap-row-2 .roadmap-spacer::before,
  .vrm-scope .roadmap-row-2 .roadmap-spacer::after { display: none !important; }

  /* Spacer column — invisible but reserves its column width */
  .vrm-scope .roadmap-spacer-col .roadmap-step-s1::before,
  .vrm-scope .roadmap-spacer-col .roadmap-step-s1::after,
  .vrm-scope .roadmap-spacer-col .roadmap-time-s1::before,
  .vrm-scope .roadmap-spacer-col .roadmap-time-s1::after,
  .vrm-scope .roadmap-spacer-col .roadmap-step-list,
  .vrm-scope .roadmap-spacer-col .roadmap-head { display: none !important; }
}
