/* =========================================================
   Our Timeline — Elementor Widget
   Design & animation preserved from the original markup.
   Colours and the zig-zag pattern are driven by CSS vars so
   they can be controlled from the Elementor widget panel.
   ========================================================= */

.otl-timeline-section {
  /* ----- Theme tokens (overridden inline by the widget) ----- */
  --otl-primary: #3155A6;
  --otl-accent: #6EC8BA;
  --otl-line-soft: #EEEFF8;
  --otl-base-line: #e5e7eb;
  --otl-title-color: #3155A6;
  --otl-heading-color: #000000;
  --otl-text-color: #000000;
  --otl-muted-color: #9ca3af;
  --otl-viewport-bg: #ffffff;
  --otl-pattern: none;

  padding: 0px 0;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  font-family: "Outfit", sans-serif !important;
}

.otl-timeline-section .timeline-zigzag {
  width: 55%;
  background: var(--otl-pattern) no-repeat;
  margin: 23px 0 0;
  position: relative;
  z-index: 1;
  background-position: 80% top;
}

.otl-timeline-section .timeline-zigzag-tittle .tittle {
  color: var(--otl-title-color) !important;
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 30px !important;
  max-width: 250px;
  line-height: 1.4;
}

.otl-timeline-section .timeline-zigzag-tittle .tittle span {
  color: var(--otl-accent) !important;
}

.otl-timeline-section .timeline-zigzag-solidLine {
  position: absolute;
  top: 49.4%;
  height: 6px;
  background: var(--otl-primary);
  left: 0;
  width: 100%;
  right: 0;
}

.otl-timeline-section .zigzag-line {
  margin: 15px 0 0;
}

.otl-timeline-section .zigzag-line img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.otl-timeline-section .timeline-viewport-rht {
  width: 45%;
}

.otl-timeline-section .timeline-viewport {
  overflow: hidden;
  height: auto;
  padding: 230px 0;
  max-width: 100%;
  margin: auto;
  position: relative;
  z-index: 1;
  background: var(--otl-viewport-bg);
}

.otl-timeline-section .timeline {
  position: relative;
  display: flex;
  width: 175%;
  opacity: 1;
  transition:
    transform 3.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.8s ease;
}

.otl-timeline-section .timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--otl-base-line);
  transform: translateY(-50%);
}

.otl-timeline-section .timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  width: 0%;
  background: var(--otl-primary);
  transform: translateY(-50%);
  transition:
    width 2.1s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.6s ease;
}

.otl-timeline-section .timeline-item {
  position: relative;
  width: 9.18%;
  text-align: center;
}

.otl-timeline-section .dot-timeline {
  position: relative;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  display: block;
  margin: auto;
  border: 4px solid var(--otl-line-soft);
  transition: border 2.5s ease;
  left: 44px;
}

.otl-timeline-section .timeline-item.active .dot-timeline {
  border-color: var(--otl-primary);
}

.otl-timeline-section .content {
  position: absolute;
  width: 200px;
  left: 50%;
  transform: translateX(-28%);
  color: var(--otl-muted-color);
  transition: color 1.2s ease;
}

.otl-timeline-section .icon-timeline img {
  max-width: 100%;
  height: auto;
}

.otl-timeline-section .content:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 4px;
  height: 32px;
  background: var(--otl-line-soft);
  transition: all 2.5s ease;
}

.otl-timeline-section .content.top:after {
  bottom: -20px;
  border-radius: 10px;
}

.otl-timeline-section .content.bottom:after {
  top: -20px;
  border-radius: 10px;
}

.otl-timeline-section .timeline-item.active .content:after {
  background: var(--otl-primary);
}

.otl-timeline-section .timeline-item .content h4,
.otl-timeline-section .timeline-item .content p {
  color: var(--otl-text-color);
  font-weight: 300;
  font-size: 16px;
  margin: 0;
}

.otl-timeline-section .timeline-item .content h3 {
  color: var(--otl-heading-color);
  font-size: 20px;
  font-weight: bold;
  margin: 2px 0;
}

.otl-timeline-section .timeline-item.active .content h3 {
  color: var(--otl-primary);
}

.otl-timeline-section .content.top .icon-timeline {
  margin: 0 0 6px;
}

.otl-timeline-section .content.bottom .icon-timeline {
  margin: 5px 0 0;
}

.otl-timeline-section .content.top {
  bottom: 40px;
  padding: 0 0 22px;
}

.otl-timeline-section .content.bottom {
  top: 40px;
  padding: 22px 0 0;
}

.otl-timeline-section .timeline-zigzag-tittle-container {
  position: absolute;
  width: 100%;
}

.otl-timeline-section .timeline-zigzag-tittle {
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px 18px;
}

/* =======================
   RESPONSIVE FIXES
======================= */
@media screen and (min-width: 1400px){
  .otl-timeline-section .timeline-viewport-rht{ margin-top: 1px;}
}

@media only screen and (max-width:1800px) and (min-width:1700px) {
  .otl-timeline-section .timeline-zigzag-tittle {
  }
}

@media only screen and (max-width:1699px) and (min-width:1025px) {
  .otl-timeline-section .first-timeline-item .content.top {
    padding: 0 38px 22px;
  }

  .otl-timeline-section .timeline-zigzag {
    background: none;
  }

  .otl-timeline-section .timeline-viewport-rht {
    position: relative;
  }

  .otl-timeline-section .timeline-viewport-rht:after {
    content: "";
    position: absolute;
    top: 62px;
    left: -115%;
    width: 100%;
    height: 100%;
    background: var(--otl-pattern) no-repeat;
    background-size: 100% 38%;
  }
}

@media (max-width:1366px) {
  .otl-timeline-section .timeline-zigzag-tittle {
    max-width: 1140px;
  }

  .otl-timeline-section .timeline-zigzag-tittle .tittle {
    font-size: 28px !important;
  }

  .otl-timeline-section .timeline-viewport-rht:after {
    top: 132px;
    left: -115%;
    width: 100%;
    background-size: 100% 23%;
  }
}

@media (max-width:1399px) {
  .otl-timeline-section .timeline-zigzag-tittle .tittle {
    max-width: 200px;
    font-size: 29px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .otl-timeline-section .timeline-viewport {
    padding: 200px 0;
  }

  .otl-timeline-section .timeline-zigzag {
    display: none;
  }

  .otl-timeline-section .timeline-viewport-rht {
    width: 100%;
  }

  .otl-timeline-section .timeline {
    width: 200%;
  }

  .otl-timeline-section .content {
    width: 180px;
  }

  .otl-timeline-section .timeline-item .content h3 {
    font-size: 18px;
  }

  .otl-timeline-section .timeline-progress {
    height: 4px;
  }

  .otl-timeline-section .dot-timeline {
    left: 40px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .otl-timeline-section .timeline {
    width: 215%;
  }

  .otl-timeline-section .timeline-item .content h3 {
    font-size: 15px;
  }

  .otl-timeline-section .timeline-item .content h4,
  .otl-timeline-section .timeline-item .content p {
    font-size: 14px;
  }

  .otl-timeline-section .content.top {
    bottom: 40px;
    padding: 0 27px 22px;
  }

  .otl-timeline-section .content.bottom {
    padding: 22px 24px 0;
  }
}
