* {
  box-sizing: border-box;
}

.ats-timeline-section {
  --bg: #4d4545;

  --base-line-color: rgba(237, 141, 141, 0.22);
  --progress-line-color: #ed8d8d;

  --title-color: #ed8d8d;
  --heading-color: #ed8d8d;
  --text-color: #f4b2b2;

  --circle-bg: #ed8d8d;
  --circle-text: #4d4545;

  --ball-fill: #ffd6d6;
  --ball-stroke: #ed8d8d;

  --max-width: 1140px;
  --track-gap: 180px;
  --circle-size: 54px;
  --line-width: 4px;
  --curve-radius: 18px;

  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  /*padding: 30px 28px 140px;*/
  background: var(--bg);
  color: var(--text-color);
  font-family: Arial, sans-serif;
}

.ats-timeline-title {
  position: relative;
  z-index: 2;
  margin: 0 0 38px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--title-color);
}

.ats-timeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.ats-timeline-base,
.ats-timeline-progress {
  fill: none;
  stroke-width: var(--line-width);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ats-timeline-base {
  stroke: var(--base-line-color);
}

.ats-timeline-progress {
  stroke: var(--progress-line-color);
}

.ats-timeline-ball {
  fill: var(--ball-fill);
  stroke: var(--ball-stroke);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(237, 141, 141, 0.9));
}

.ats-timeline-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  align-items: center;
}

.ats-timeline-item.left .ats-timeline-circle-wrap {
  grid-column: 1;
  justify-self: center;
}

.ats-timeline-item.left .ats-timeline-content {
  grid-column: 2;
  text-align: left;
  justify-self: start;
  max-width: 760px;
}

.ats-timeline-item.right .ats-timeline-content {
  grid-column: 2;
  text-align: right;
  justify-self: end;
  max-width: 760px;
}

.ats-timeline-item.right .ats-timeline-circle-wrap {
  grid-column: 3;
  justify-self: center;
}

.ats-timeline-circle-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ats-timeline-circle {
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  background: var(--circle-bg);
  color: var(--circle-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(237, 141, 141, 0.08);
}

.ats-timeline-point {
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ats-timeline-point.is-active {
  background: #ffffff;
  color: #4d4545;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14);
  transform: scale(1.08);
}

.ats-timeline-content h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--heading-color);
}

.ats-timeline-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-color);
}

.ats-timeline-content p:last-child {
  margin-bottom: 0;
}

.ats-timeline-track {
  height: var(--track-gap);
}

/* =========================================
   DESKTOP - LEFT ONLY
========================================= */

@media (min-width: 769px) {

  .ats-timeline-section.ats-layout-left .ats-timeline-item {
    grid-template-columns: 140px 1fr;
  }

  .ats-timeline-section.ats-layout-left
  .ats-timeline-circle-wrap {
    grid-column: 1;
    justify-self: center;
  }

  .ats-timeline-section.ats-layout-left
  .ats-timeline-content {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    max-width: 760px;
  }
}

/* =========================================
   DESKTOP - RIGHT ONLY
========================================= */

@media (min-width: 769px) {

  .ats-timeline-section.ats-layout-right .ats-timeline-item {
    grid-template-columns: 1fr 140px;
  }

  .ats-timeline-section.ats-layout-right
  .ats-timeline-circle-wrap {
    grid-column: 2;
    justify-self: center;
  }

  .ats-timeline-section.ats-layout-right
  .ats-timeline-content {
    grid-column: 1;
    justify-self: end;
    text-align: right;
    max-width: 760px;
  }
}


@media (max-width: 768px) {
  .ats-timeline-section {
    --track-gap: 95px;
    --circle-size: 50px;
    /*padding: 22px 18px 90px;*/
  }

  .ats-timeline-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .ats-timeline-item {
    grid-template-columns: 72px 1fr;
  }

  .ats-timeline-item.left .ats-timeline-circle-wrap,
  .ats-timeline-item.right .ats-timeline-circle-wrap {
    grid-column: 1;
  }

  .ats-timeline-item.left .ats-timeline-content,
  .ats-timeline-item.right .ats-timeline-content {
    grid-column: 2;
    text-align: left;
    justify-self: start;
    max-width: 100%;
  }

  .ats-timeline-content h3 {
    font-size: 20px;
  }

  .ats-timeline-content p {
    font-size: 15px;
    line-height: 1.65;
  }
}