.cd-container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.cd-container::after {
  content: '';
  display: table;
  clear: both;
}

#cd-timeline {
  position: relative;
  padding: 1.5em 0 2.25em;
  margin: 1.25em 0 0;
}

#cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 19px;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #0ea5a0 0%, #0f766e 35%, #f97316 100%);
  opacity: 0.45;
}

.cd-timeline-block {
  position: relative;
  margin: 2.3em 0;
}

.cd-timeline-block::after {
  content: '';
  display: table;
  clear: both;
}

.cd-timeline-block:first-child {
  margin-top: 0;
}

.cd-timeline-block:last-child {
  margin-bottom: 0;
}

.cd-timeline-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 22px rgba(17, 44, 57, 0.2);
}

.cd-timeline-img img {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  position: static;
  filter: brightness(0) invert(1);
}

.cd-timeline-img.cd-picture {
  background: linear-gradient(135deg, #0ea5a0, #0f766e);
}

.cd-timeline-img.cd-movie {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.cd-timeline-img.cd-location {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.cd-timeline-content {
  position: relative;
  margin-left: 62px;
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 30px rgba(18, 50, 63, 0.14);
  backdrop-filter: blur(8px);
}

.cd-timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  width: 0;
  height: 0;
  border: 9px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.88);
}

.cd-timeline-content::after {
  content: '';
  display: table;
  clear: both;
}

.cd-timeline-content h2 {
  margin: 0;
  color: #12323f;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.cd-timeline-content p {
  margin: 0.9em 0;
  line-height: 1.8;
  color: #45616d;
}

.cd-timeline-content ul {
  margin: 0 0 0.9em;
  padding-left: 1.2rem;
}

.cd-timeline-content li {
  color: #3e5b67;
  line-height: 1.7;
}

.cd-timeline-content .cd-date {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(14, 165, 160, 0.12);
  border: 1px solid rgba(14, 165, 160, 0.24);
  border-radius: 999px;
  padding: 7px 14px;
}

@media only screen and (min-width: 768px) {
  .cd-timeline-content {
    padding: 24px;
  }
}

@media only screen and (min-width: 1170px) {
  #cd-timeline {
    margin-top: 2.5em;
  }

  #cd-timeline::before {
    left: 50%;
    margin-left: -2px;
  }

  .cd-timeline-block {
    margin: 3.2em 0;
  }

  .cd-timeline-img {
    width: 62px;
    height: 62px;
    left: 50%;
    margin-left: -31px;
    border-width: 4px;
  }

  .cd-timeline-img img {
    width: 28px;
    height: 28px;
  }

  .cd-timeline-img.is-hidden {
    visibility: hidden;
  }

  .cd-timeline-img.bounce-in {
    visibility: visible;
    animation: cd-bounce-1 0.6s;
  }

  .cd-timeline-content {
    width: 45%;
    margin-left: 0;
    padding: 26px;
  }

  .cd-timeline-content::before {
    top: 24px;
    left: 100%;
    right: auto;
    border-color: transparent;
    border-left-color: rgba(255, 255, 255, 0.88);
  }

  .cd-timeline-content .cd-date {
    position: absolute;
    top: 8px;
    left: 121%;
    white-space: nowrap;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content {
    float: right;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: rgba(255, 255, 255, 0.88);
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 121%;
    text-align: right;
  }

  .cd-timeline-content.is-hidden {
    visibility: hidden;
  }

  .cd-timeline-content.bounce-in {
    visibility: visible;
    animation: cd-bounce-2 0.6s;
  }

  .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
    animation: cd-bounce-2-inverse 0.6s;
  }
}

@keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    transform: translateX(-90px);
  }
  60% {
    opacity: 1;
    transform: translateX(14px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    transform: translateX(90px);
  }
  60% {
    opacity: 1;
    transform: translateX(-14px);
  }
  100% {
    transform: translateX(0);
  }
}
