/* CW Custom Timeline (isolated) */
.cw-custom-timeline {
  --cw-green: #55B341;
  --cw-white: #ffffff;
  --cw-heading: #190D00;
  --cw-para: #242424;

  --cw-gap: 32px;   /* distance from circles to text */
  --cw-dot: 36px;   /* circle size */
  --cw-line: 6px;   /* line thickness */

  width: 100%;
}

.cw-custom-timeline * {
  box-sizing: border-box;
}

.cw-custom-timeline .cw-timeline {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ============ Desktop (horizontal) ============ */
.cw-custom-timeline .cw-steps {
  display: flex;
  align-items: flex-start;
}

.cw-custom-timeline .cw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.cw-custom-timeline .cw-dot {
  width: var(--cw-dot);
  height: var(--cw-dot);
  border-radius: 999px;
  background: var(--cw-green);
  color: var(--cw-white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  z-index: 1;
  user-select: none;
}

.cw-custom-timeline .cw-step:not(:last-child)::after {
  content: "";
  height: var(--cw-line);
  background: var(--cw-green);
  border-radius: 999px;

  width: 100%;
  position: relative;
  top: calc(var(--cw-dot) / 2);
  left: 50%;
  order: -1;
  z-index: 0;
}

.cw-custom-timeline .cw-content {
  margin-top: var(--cw-gap);
  width: 100%;
  max-width: 320px;

  /* New: padding on all devices except mobile */
  padding: 0 15px;
}

.cw-custom-timeline .cw-content h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--cw-heading);
}

.cw-custom-timeline .cw-content p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--cw-para);
  line-height: 1.5;
}

/* ============ Mobile (vertical) ============ */
@media (max-width: 767px) {
  .cw-custom-timeline .cw-steps {
    flex-direction: column;
  }

  .cw-custom-timeline .cw-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 28px;
  }

  .cw-custom-timeline .cw-step:not(:last-child)::after {
    content: none;
  }

  .cw-custom-timeline .cw-step::before {
    content: "";
    position: absolute;
    left: calc(var(--cw-dot) / 2);
    top: var(--cw-dot);
    width: var(--cw-line);
    height: calc(100% - var(--cw-dot));
    background: var(--cw-green);
    transform: translateX(-50%);
    border-radius: 999px;
  }

  .cw-custom-timeline .cw-step:last-child::before {
    content: none;
  }

  .cw-custom-timeline .cw-dot {
    flex: 0 0 var(--cw-dot);
  }

  .cw-custom-timeline .cw-content {
    margin-top: 0;
    margin-left: var(--cw-gap);
    max-width: none;

    /* Mobile exception: remove the padding */
    padding: 0;
  }
}
