/* Elementor Timeline Addon */
.horizontal-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}
span.dot.first {
    position: absolute !important;
    left: 0;
}
span.dot.first:before {
    display: none !important;
}
.horizontal-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #004f85;
  z-index: 0;
}

.timeline-item {
  position: relative;
  text-align: center;
  z-index: 1;
}

.timeline-item h2 {
  font-size: 22px;
  font-weight: 700;
  color: #003366;
  margin: 0 0 8px;
}

.timeline-item p {
  font-size: 13px;
  color: #555;
  line-height: 1.4em;
  margin: 0;
}

.dot {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #004f85;
  border-radius: 50%;
  background: #fff;
  margin: 10px auto;
  position: relative;
}

.dot::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 55px;
  background: #004f85;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item.top .dot::before { top: 100%; }
.timeline-item.bottom .dot::before { bottom: 100%; }

.timeline-item.top { transform: translateY(-50%); }
.timeline-item.bottom { transform: translateY(50%); }

/* Tablet */
@media (max-width: 1024px) {
  .horizontal-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .horizontal-timeline {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .horizontal-timeline::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
  }
  .timeline-item { transform: none !important; }
  .dot::before { display: none; }
}
