.timeline {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
}

.timeline *,
.timeline :after,
.timeline :before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

.timeline:not(.timeline--horizontal):before {
  background-color: #ddd;
  bottom: 0;
  content: "";
  left: 50%;
  margin-left: -2px;
  position: absolute;
  top: 0;
  width: 4px;
  z-index: 1;
}

.timeline__wrap {
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.timeline__item {
  font-size: 16px;
  font-size: 1rem;
  padding: 0.625rem 2.5rem 0.625rem 0;
  position: relative;
  width: 50%;
  z-index: 2;
}

.timeline__item:after {
  background-color: #fff;
  border: 4px solid #ddd;
  border-radius: 50%;
  content: "";
  height: 20px;
  position: absolute;
  right: -10px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  top: 50%;
  width: 20px;
  z-index: 1;
}

.timeline__item.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  opacity: 0;
}

.timeline__item.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

.timeline__item--left {
  left: 0;
}

.timeline__item--right {
  left: 50%;
  padding: 0.625rem 0 0.625rem 2.5rem;
}

.timeline__item--right:after {
  left: -11px;
}

.timeline__item--right .timeline__content:before {
  border-bottom: 11px solid transparent;
  border-right: 12px solid #ccc;
  border-left: none;
  border-top: 11px solid transparent;
  left: -12px;
}

.timeline__item--right .timeline__content:after {
  border-bottom: 10px solid transparent;
  border-right: 12px solid #fff;
  border-left: none;
  border-top: 10px solid transparent;
  left: -10px;
}

.timeline__content {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  color: #333;
  display: block;
  padding: 1.25rem;
  position: relative;
}

.timeline__content:after,
.timeline__content:before {
  content: "";
  height: 0;
  position: absolute;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  top: 50%;
  width: 0;
}

.timeline__content:before {
  border-bottom: 11px solid transparent;
  border-left: 12px solid #ccc;
  border-top: 11px solid transparent;
  right: -12px;
  z-index: 1;
}

.timeline__content:after {
  border-bottom: 9px solid transparent;
  border-left: 11px solid #fff;
  border-top: 9px solid transparent;
  right: -11px;
  z-index: 2;
}

.timeline__content .title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.625rem;
}

.timeline__content p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/*
 * A long unbreakable string (a pasted URL, a file path, a hashtag) has no wrap
 * opportunity of its own and would otherwise run straight out of the card on
 * every screen size. `anywhere` is used rather than `break-word` because it
 * also shrinks the min-content width, which is what the horizontal layout
 * measures its table cells with.
 */
.timeline__content,
.timeline__content .title,
.timeline__content * {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.timeline__content img,
.timeline__content iframe,
.timeline__content video,
.timeline__content table {
  max-width: 100%;
}

.timeline--horizontal {
  font-size: 0;
  padding: 0 3.125rem;
  /* overflow: unset; */
  white-space: nowrap;
}

.timeline--horizontal .timeline-divider {
  background-color: #ddd;
  display: block;
  height: 4px;
  left: 40px;
  position: absolute;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 40px;
  z-index: 1;
}

.timeline--horizontal .timeline__items {
  -webkit-transition: all 0.8s;
  -o-transition: all 0.8s;
  transition: all 0.8s;
  will-change: transform;
  display: flex;
  gap: 20px;
}

.timeline--horizontal .timeline__item {
  display: inline-block;
  left: 0;
  padding: 0 0 2.5rem;
  position: relative;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  vertical-align: top;
  white-space: normal;
}

.timeline--horizontal .timeline__item:after {
  left: 50%;
  right: auto;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  top: 100%;
}

.timeline--horizontal .timeline__item .timeline__item__inner {
  display: table;
  height: 100%;
  width: 100%;
}

.timeline--horizontal .timeline__item .timeline__content__wrap {
  display: table-cell;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

.timeline--horizontal .timeline__item .timeline__content:before {
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #ccc;
  left: 50%;
  right: auto;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  top: 100%;
}

.timeline--horizontal .timeline__item .timeline__content:after {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  left: 50%;
  right: auto;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  top: 100%;
}

.timeline--horizontal .timeline__item--bottom {
  padding: 2.5rem 0 0;
}

.timeline--horizontal .timeline__item--bottom:after {
  top: 0;
}

.timeline--horizontal .timeline__item--bottom .timeline__content__wrap {
  vertical-align: top;
}

.timeline--horizontal .timeline__item--bottom .timeline__content:before {
  border-bottom: 12px solid #ccc;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: none;
  bottom: 100%;
  top: auto;
}

.timeline--horizontal .timeline__item--bottom .timeline__content:after {
  border-bottom: 10px solid #fff;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: none;
  bottom: 100%;
  top: auto;
}

.timeline-nav-button {
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 50px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: none;
  box-shadow: none;
  cursor: pointer;
  display: block;
  height: 40px;
  outline: 0;
  position: absolute;
  text-indent: -9999px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  top: 50%;
  width: 40px;
  z-index: 10;
}

.timeline-nav-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.timeline-nav-button:before {
  background-position: center center;
  background-repeat: no-repeat;
  content: "";
  display: block;
  height: 14px;
  left: 50%;
  position: absolute;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  width: 8px;
}

.timeline-nav-button--prev {
  left: 0;
}

.timeline-nav-button--prev:before {
  background-image: url(../images/arrow-left.svg);
}

.timeline-nav-button--next {
  right: 0;
}

.timeline-nav-button--next:before {
  background-image: url(../images/arrow-right.svg);
}

.timeline--mobile {
  padding: 0;
}

.timeline--mobile:before {
  left: 10px !important;
  margin: 0 !important;
}

.timeline--mobile .timeline__item {
  left: 0;
  padding-left: 40px;
  padding-right: 0;
  width: 100%;
}

.timeline--mobile .timeline__item:after {
  left: 2px;
  margin: 0;
}

.timeline--mobile .timeline__item .timeline__content:before {
  left: -12px;
  border-bottom: 12px solid transparent;
  border-right: 12px solid #ccc;
  border-left: none;
  border-top: 12px solid transparent;
}

.timeline--mobile .timeline__item .timeline__content:after {
  left: -10px;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
  border-left: none;
  border-top: 10px solid transparent;
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
    top: 70px;
  }

  100% {
    opacity: 1;
    top: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    top: 70px;
  }

  100% {
    opacity: 1;
    top: 0;
  }
}

@-webkit-keyframes liftUp {
  0% {
    top: 0;
  }

  100% {
    top: -15px;
  }
}

@keyframes liftUp {
  0% {
    top: 0;
  }

  100% {
    top: -15px;
  }
}

/* content position css  */
.content_vertical_start.timeline:not(.timeline--horizontal):before {
  left: calc(100% - 15px);
}

.content_vertical_start .timeline__item {
  width: calc(100% - 15px);
}

.content_vertical_end.timeline:not(.timeline--horizontal):before {
  left: 15px;
}

.content_vertical_end .timeline__item {
  width: calc(100% - 15px);
  left: 15px;
}

/* horizontal css start  */
.content_horizontal_start .timeline-divider {
  top: calc(100% - 15px) !important;
}

.content_horizontal_end.timeline {
  overflow: visible;
}

.content_horizontal_end .timeline-divider,
.content_horizontal_end .timeline-nav-button {
  top: 15px !important;
}

.content_horizontal_end .timeline__items {
  height: auto !important;
  margin-bottom: 20px;
}

.content_horizontal_start .timeline__items {
  align-items: end !important;
  margin-bottom: 15px !important;
  height: auto !important;
}

.content_horizontal_end .timeline__item {
  transform: matrix(1, 0, 0, 1, 0, 15) !important;
}
/* ---------------------------------------------------------------------------
   Mobile layout (<= 600px)
   The JS adds `.timeline--mobile` at this same breakpoint, but the rules below
   make the stacked layout work on their own too, so a JS failure can no longer
   leave a timeline rendered with the desktop 50% columns.
--------------------------------------------------------------------------- */
@media only screen and (max-width: 600px) {
  .timeline,
  .timeline.timeline--horizontal {
    overflow: hidden;
    padding: 0;
    white-space: normal;
    font-size: 1rem;
  }

  /* The vertical bar: `.timeline:not(.timeline--horizontal):before` never
     matches a horizontal timeline, so it needs declaring for both cases. */
  .timeline:before,
  .timeline.timeline--horizontal:before {
    background-color: #ddd;
    bottom: 0;
    content: "";
    left: 10px !important;
    margin: 0 !important;
    position: absolute;
    top: 0;
    width: 4px;
    z-index: 1;
  }

  .timeline .timeline__wrap {
    overflow: visible;
  }

  .timeline .timeline__items {
    display: block !important;
    gap: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transition: none !important;
    width: auto !important;
  }

  .timeline .timeline__item,
  .timeline .timeline__item--left,
  .timeline .timeline__item--right,
  .timeline .timeline__item--top,
  .timeline .timeline__item--bottom {
    display: block !important;
    height: auto !important;
    left: 0 !important;
    padding: 0.625rem 0 0.625rem 40px !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    vertical-align: top;
    width: 100% !important;
  }

  /* Dot */
  .timeline .timeline__item:after {
    left: 2px !important;
    right: auto !important;
    margin: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
  }

  .timeline .timeline__item .timeline__item__inner {
    display: block !important;
    height: auto !important;
    width: 100% !important;
  }

  .timeline .timeline__item .timeline__content__wrap {
    display: block !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    vertical-align: top;
    width: 100% !important;
  }

  /* Arrow always points left, towards the bar */
  .timeline .timeline__item .timeline__content:before {
    border-bottom: 12px solid transparent !important;
    border-left: none !important;
    border-right: 12px solid #ccc !important;
    border-top: 12px solid transparent !important;
    bottom: auto !important;
    left: -12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
  }

  .timeline .timeline__item .timeline__content:after {
    border-bottom: 10px solid transparent !important;
    border-left: none !important;
    border-right: 10px solid #fff !important;
    border-top: 10px solid transparent !important;
    bottom: auto !important;
    left: -10px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
  }

  /* Horizontal-only chrome has no place in the stacked layout */
  .timeline .timeline-divider,
  .timeline .timeline-nav-button {
    display: none !important;
  }

}
