/* Timeline Base Styles */
.timeline img {
  border: 0;
  max-width: 100%;
}

.timeline {
  list-style: none;
  padding: 40px 0;
  position: relative;
  padding-left: 0px !important;
}

/* Center vertical line - cyan color */
.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 2px;
  background-color: #136477;
  left: 50%;
  margin-left: -1px;
}

.timeline li {
  margin-bottom: 60px;
  position: relative;
}

.timeline li:before,
.timeline li:after {
  content: " ";
  display: table;
}

.timeline li:after {
  clear: both;
}

/* Timeline Panel - Dashed border boxes */
.timeline li .timeline-panel {
  width: 45%;
  float: left;
  background: transparent;
  border: 2px dashed rgba(0, 188, 212, 0.4);
  padding: 30px;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

/* Connector line from circle to box - dashed horizontal line */
.timeline li .timeline-panel:before {
  position: absolute;
  top: 30px;
  right: -50px;
  width: 50px;
  height: 2px;
  background-image: linear-gradient(to right, rgba(0, 188, 212, 0.4) 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  content: " ";
  display: block;
}

/* Arrow pointing to circle */
.timeline li .timeline-panel:after {
  position: absolute;
  top: 26px;
  right: -58px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid rgba(0, 188, 212, 0.6);
  content: " ";
  display: block;
}

/* Inverted (right side) panels */
.timeline li.timeline-inverted .timeline-panel {
  float: right;
}

.timeline li.timeline-inverted .timeline-panel:before {
  left: -50px;
  right: auto;
}

.timeline li.timeline-inverted .timeline-panel:after {
  left: -58px;
  right: auto;
  border-left: 0;
  border-right: 8px solid rgba(0, 188, 212, 0.6);
}

/* Circle on timeline - cyan with white border */
.timeline li .tl-circ {
  position: absolute;
  top: 23px;
  left: 50%;
  text-align: center;
  background: #00BCD4;
  color: #fff;
  width: 20px;
  height: 20px;
  line-height: 20px;
  margin-left: -10px;
  border: 4px solid #0A2F3D;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.3);
}

/* Title styling - white/cyan color */
.timeline-panel .be-title {
  color: #FFFFFF;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 0;
}

/* Content text - light gray */
.be-content,
.be-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 0;
}

.be-content p:last-of-type {
  margin: 0;
}
.timeline-panel img {
  margin-top: 30px;
}

.tl-body p,
.tl-body ul {
  margin-bottom: 0;
}

.tl-body > p + p {
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .timeline li .timeline-panel {
    width: 44%;
  }
}

@media (max-width: 700px) {
  .timeline:before,
  .timeline.timeline-one-sided:before {
    left: 40px;
  }

  .timeline li .timeline-panel {
    width: calc(100% - 90px);
  }

  .timeline li .tl-circ {
    top: 22px;
    left: 28px;
    margin-left: 0;
  }

  .timeline > li > .timeline-panel {
    float: right;
  }

  /* Mobile: connector line and arrow */
  .timeline > li > .timeline-panel:before {
    left: -50px;
    right: auto;
    width: 50px;
  }

  .timeline > li > .timeline-panel:after {
    left: -58px;
    right: auto;
    border-left: 0;
    border-right: 8px solid rgba(0, 188, 212, 0.6);
  }
}

.be-title {
  display: block;
}

.be-content p {
  margin-bottom: 5px;
}

.tl-content {
  display: block;
}

/* ================================
   ONE SIDED RIGHT TIMELINE
================================ */
.timeline.timeline-one-sided .tl-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.timeline.timeline-one-sided:before {
  left: 33.70%;
}

.timeline.timeline-one-sided li {
  padding-left: 0px;
}

.timeline.timeline-one-sided .be-title {
  margin-bottom: 15px;
}

.timeline.timeline-one-sided li .timeline-panel {
  float: right;
  width: calc(70% - 90px);
  padding: 30px;
}

.timeline.timeline-one-sided li.timeline-inverted .timeline-panel {
  float: right;
}

.timeline.timeline-one-sided li .timeline-panel:before {
  left: -15px;
  right: auto;
  border-right-width: 2px;
  border-right-style: dashed;
  border-right-color: rgba(0, 188, 212, 0.4);
  border-left-width: 0;
}

.timeline.timeline-one-sided li .tl-circ {
  left: 32.5%;
  margin-left: 0;
}

/* =======================
   ONE SIDED – MOBILE 
======================= */
@media (max-width: 700px) {
  .timeline.timeline-one-sided:before {
    left: 40px;
  }

  .timeline.timeline-one-sided li .timeline-panel {
    width: calc(100% - 90px);
    float: right;
  }

  .timeline.timeline-one-sided .be-title {
    margin-bottom: 15px;
  }

  .timeline.timeline-one-sided li .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 2px;
    border-right-style: dashed;
    border-right-color: rgba(0, 188, 212, 0.4);
    left: -15px;
    right: auto;
  }

  .timeline.timeline-one-sided li .tl-circ {
    left: 28px;
    top: 22px;
    margin-left: 0;
  }

  .timeline.timeline-one-sided li {
    padding-left: 0;
  }
}
