.avancedpack-timeline--title {
  padding: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.avancedpack-timeline--body {
  position: relative;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  max-width: 80%;
  width: 100%;
  margin: 20px auto;
  word-break: normal;
  overflow-wrap: anywhere;
  transition: opacity 0.2s;
}

.avancedpack-timeline--items {
  width: 100%;
}

.avancedpack-timeline--items-line {
  width: 2px;
  height: 100%;
  background-color: black;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0px);
  display: block;
}

.avancedpack-timeline--dot {
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50em;
  background-color: rgb(0, 0, 0);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.avancedpack-timeline--item--title-container {
  position: relative;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.avancedpack-timeline--item-content {
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  gap: 10px;
  transition: opacity 0.5s, transform 0.5s;
  flex: 1 1 0%;
  pointer-events: none;
  width: 100%;
}

.avancedpack-timeline--item-box {
  position: relative;
  margin: 0px 15px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
  width: 100%;
}

.avancedpack-timeline--item {
  padding-bottom: 20px;
  position: relative;
  gap: 24px;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  width: 100%;
  text-align: left;
  -webkit-box-pack: center;
  justify-content: center;
}

.avancedpack-timeline--item:nth-child(even) {
  flex-direction: row-reverse;
}

.avancedpack-timeline--item:nth-child(even) .avancedpack-timeline--item--title-container {
  text-align: left;
}

.avancedpack-timeline--items.vertical.left .avancedpack-timeline--item:nth-child(odd) {
  flex-direction: row-reverse;
}

.avancedpack-timeline--items.vertical.left .avancedpack-timeline--item:nth-child(odd) .avancedpack-timeline--item--title-container {
  text-align: left;
}

.avancedpack-timeline--items.vertical.right .avancedpack-timeline--item:nth-child(even) .avancedpack-timeline--item--title-container {
  text-align: right;
}


.avancedpack-timeline--items.vertical.right .avancedpack-timeline--item:nth-child(even) {
  flex-direction: row;
}

.avancedpack-timeline--items.vertical.right .avancedpack-timeline--item:nth-child(even) .timeline--item--title-container {
  text-align: right;
}


.avancedpack-timeline--items.vertical.center .avancedpack-timeline--item {
  flex-direction: column;
  gap: 0;
}

.avancedpack-timeline--items.vertical.center .avancedpack-timeline--item .avancedpack-timeline--item-content {
  max-width: 50%;
}

.avancedpack-timeline--items.vertical.center .avancedpack-timeline--item .avancedpack-timeline--item-content .avancedpack-timeline--item-box,
.avancedpack-timeline--items.vertical.center .avancedpack-timeline--item .avancedpack-timeline--item-title {
  background-color: #ffffff;
  text-align: center;
}

.avancedpack-timeline--items.vertical.center .avancedpack-timeline--dot {
  top: 60px;
}

.avancedpack-timeline--items.vertical.center .avancedpack-timeline--item--title-container {
  padding-top: 80px;
}

/* LANDSCAPE TIMELINE */

.avancedpack-timeline--body.horizontal {
  display: inline-flex;
  max-width: 100%;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 30px;
  padding-left: 10px;
  padding-right: 10px;

  @media (max-width: 991px) {
    margin: 0;
  }
}

.avancedpack-timeline--body.horizontal .avancedpack-timeline--items-line {
  width: 100%;
  height: 2px;
  bottom: 39px;
  left: 130px;
  transform: translate(0, -50%);
}

.avancedpack-timeline--body.horizontal.up .avancedpack-timeline--items-line {
  display: none;
}

.avancedpack-timeline--body.horizontal.down .avancedpack-timeline--items-line {
  display: none;
}

.avancedpack-timeline--items.horizontal {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: max-content;
  min-width: 100%;
  align-items: end;
  padding-left: 15px;
  padding-right: 15px;

  @media (max-width: 991px) {
    flex-direction: column;
  }
}

.avancedpack-timeline--items.horizontal.down {
  align-items: start;
  padding-top: 30px;
}

.avancedpack-timeline--items.horizontal .avancedpack-timeline--item {
  flex: 0 0 280px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-bottom: 0;
  padding-top: 0;
  height: 100%;
  gap: 0;
}

.avancedpack-timeline--items.horizontal.up .avancedpack-timeline--item {
  flex-direction: column-reverse;
}

.avancedpack-timeline--items.horizontal .avancedpack-timeline--item:nth-child(even) .avancedpack-timeline--item--title-container {
  text-align: center;
}

.avancedpack-timeline--items.horizontal .avancedpack-timeline--dot {
  left: auto;
  top: auto;
  transform: none;
  flex-shrink: 0;
}

.avancedpack-timeline--items.horizontal.center,
.avancedpack-timeline--items.horizontal.alternate {
  align-items: center;
  padding-bottom: 0;
}

.avancedpack-timeline--items.horizontal.alternate {
  padding: 50% 0;

  @media (max-width: 991px) {
    padding: 20px 0;
  }
}

.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--item:nth-child(odd) {
  margin-bottom: -50%;

  @media (max-width: 991px) {
    margin-bottom: 30px;
  }
}

.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--item:nth-child(even) {
  margin-top: -50%;

  @media (max-width: 991px) {
    margin-top: 0;
    margin-bottom: 30px;
  }
}

.avancedpack-timeline--body.horizontal.center .avancedpack-timeline--items-line,
.avancedpack-timeline--body.horizontal.alternate .avancedpack-timeline--items-line {
  display: none;
}

.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--dot,
.avancedpack-timeline--items.horizontal.center .avancedpack-timeline--dot {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.15;
}

.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--item,
.avancedpack-timeline--items.horizontal.center .avancedpack-timeline--item {
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
  z-index: 1;

  @media (max-width: 991px) {
    max-width: 400px;
    margin-bottom: 20px;
  }
}

.avancedpack-timeline--items.horizontal.center .avancedpack-timeline--item-title,
.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--item-title {
  margin: 0;
}

.avancedpack-timeline--items.horizontal.center .avancedpack-timeline--item-subtitle,
.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--item-subtitle {
  margin: 0;
}

.avancedpack-timeline--items.horizontal.down .avancedpack-timeline--dot {
  top: 0;
}

.avancedpack-timeline--items.horizontal.down .avancedpack-timeline--item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
}

.avancedpack-timeline--items.horizontal.up .avancedpack-timeline--item::before {
  content: "";
  position: absolute;
  top: initial;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000
}

.avancedpack-timeline--items.horizontal.center .avancedpack-timeline--item::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.15;

  @media (max-width: 991px) {
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #000;
    transform: none;
    z-index: -1;
  }
}

.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--item:nth-child(even) {
  flex-direction: column-reverse;

  @media (max-width: 991px) {
    flex-direction: column;
  }
}

.avancedpack-timeline--items.horizontal.alternate .avancedpack-timeline--dot,
.avancedpack-timeline--items.horizontal.center .avancedpack-timeline--dot {
  z-index: 0;
  min-height: auto;
  min-width: auto;
  height: 5px;
  width: 5px;
}

/* LANDSCAPE MODE - TITLE */
.avancedpack-timeline--items.horizontal .avancedpack-timeline--item--title-container {
  text-align: center;
  flex: unset;
  flex-direction: column-reverse;
  width: 100%;
}

.avancedpack-timeline--items.horizontal.down .avancedpack-timeline--item--title-container {
  flex-direction: column;
}

/* LANDSCAPE CONTENT */
.avancedpack-timeline--items.horizontal .avancedpack-timeline--item-content {
  flex: unset;
  width: 100%;
  justify-content: center;

  @media (max-width: 991px) {
    background-color: #FFF;
  }
}

.avancedpack-timeline--items.horizontal .avancedpack-timeline--item-box {
  margin: 0;
  width: 100%;
}


/* CONTENT ABOVE DOT */
.avancedpack-timeline--items.horizontal.up .avancedpack-timeline--item {
  flex-direction: column-reverse;
}

/* CONTENT UNDER DOT */
.avancedpack-timeline--items.horizontal.down .avancedpack-timeline--item {
  flex-direction: column;
}

@media (max-width: 767px) {
  .avancedpack-timeline--body {
    max-width: 100%;
    margin-left: 24px;
  }

  .avancedpack-timeline--items-line {
    left: 0;
  }

  .avancedpack-timeline--item {
    flex-direction: column !important;
    gap: 0;
  }

  .avancedpack-timeline--dot {
    left: 0;
    top: 24px;
  }
}
