/* ================================
   TIMELINE WRAPPER
================================ */
.timeline-wrapper {
  position: relative;
  width: 80%;
}

/* ================================
   CENTER VERTICAL LINE
================================ */
.svg-timeline {
  position: absolute;
  top: 2.5%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background:  rgba(255,255,255,0.6);
}

/* ================================
   TIMELINE LIST
================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ================================
   TIMELINE ITEM (CARD)
================================ */
.timeline__item {
  position: relative;
  width: 45%;
  padding: 1.6rem;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline__item:hover {
  transform: translateY(-8px);
}

/* ================================
   LEFT / RIGHT POSITIONING
================================ */
.timeline__item:not(.right) {
  align-self: flex-start;
}

.timeline__item.right {
  align-self: flex-end;
}

/* ================================
   BIG DOT ON CENTER LINE
================================ */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 2.2rem;

  width: 18px;
  height: 18px;
  border-radius: 50%;

  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  z-index: 5;
}

/* left item dot */
.timeline__item:not(.right)::before {
  right: -13%;
}

/* right item dot */
.timeline__item.right::before {
  left: -13%;
}

/* ================================
   CONNECTOR LINE (CARD → DOT)
================================ */
.timeline__item::after {
  content: "";
  position: absolute;
  top: 2.75rem;

  width: 54px;
  height: 3px;
  background: rgba(255,255,255,0.6);
}

/* left connector */
.timeline__item:not(.right)::after {
  right: -10%;
}

/* right connector */
.timeline__item.right::after {
  left: -10%;
}

/* ================================
   IMAGES
================================ */
.timeline__item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* ================================
   MOBILE — STACK & HIDE LINE
================================ */
@media (max-width: 768px) {
  .svg-timeline {
    display: none;
  }

  .timeline__item,
  .timeline__item.right {
    width: 100%;
    align-self: center;
  }

  .timeline__item::before,
  .timeline__item::after {
    display: none;
  }
}
