.timeline img {
  border: 0;
  max-width: 100%;
}

.timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;
  padding-left: 0px !important;
}
.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 1px;
  background-color: #d3e6f3;
  left: 50%;
  margin-left: -1.5px;
}
.tldate {
  display: block;
  width: 200px;
  background: #414141;
  border: 3px solid #212121;
  color: #ededed;
  margin: 0 auto;
  padding: 3px 0;
  font-weight: bold;
  text-align: center;
  -webkit-box-shadow: 0 0 11px rgba(0, 0, 0, 0.35);
}
.timeline li {
  margin-bottom: 25px;
  position: relative;
}
.timeline li:before,
.timeline li:after {
  content: " ";
  display: table;
}
.timeline li:after {
  clear: both;
}
.timeline li:before,
.timeline li:after {
  content: " ";
  display: table;
}
.timeline li .timeline-panel {
  width: 45%;
  float: left;
  background: #fff;
  border: 1px solid #d2e3f9;
  padding: 15px;
  position: relative;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 5px;
  -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.timeline li .timeline-panel:before {
  position: absolute;
  top: 26px;
  right: -15px;
  display: inline-block;
  border-top: 15px solid transparent;
  border-left: 15px solid #d2e3f9;
  border-right: 0 solid #d2e3f9;
  border-bottom: 15px solid transparent;
  content: " ";
}
.timeline li .timeline-panel:after {
  position: absolute;
  top: 27px;
  right: -14px;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid #fff;
  border-right: 0 solid #fff;
  border-bottom: 14px solid transparent;
  content: " ";
}
.timeline li .timeline-panel.noarrow:before,
.timeline li .timeline-panel.noarrow:after {
  top: 0;
  right: 0;
  display: none;
  border: 0;
}
.timeline li.timeline-inverted .timeline-panel {
  float: right;
}
.timeline li.timeline-inverted .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}
.timeline li.timeline-inverted .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}
.timeline li .tl-circ {
  position: absolute;
  top: 23px;
  left: 50%;
  text-align: center;
  background: #2196f3;
  color: #fff;
  width: 25px;
  height: 25px;
  line-height: 25px;
  margin-left: -13px;
  border: 5px solid #d2e3f9;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  z-index: 1;
}
.timeline-panel {
  /* display:flex */
}
.tl-heading h4{
  margin: 0;
  /* font-weight: 400; */
  font-size: 18px;
  color: #2b3138;
  text-transform: uppercase;
}
.tl-heading .be-title{
   color: #2b3138;
}
.tl-body p,
.tl-body ul {
  margin-bottom: 0;
}
.tl-body > p + p {
  margin-top: 5px;
}
@media (max-width: 991px) {
  .timeline li .timeline-panel {
    width: 44%;
  }
}
@media (max-width: 700px) {
  ul.timeline:before , .timeline.timeline-one-sided:before{
    left: 40px;
  }
  .tldate {
    width: 140px;
  }
  ul.timeline li .timeline-panel {
    width: calc(100% - 90px);
    width: -moz-calc(100% - 90px);
    width: -webkit-calc(100% - 90px);
  }
  ul.timeline li .tl-circ {
    top: 22px;
    left: 28px;
    margin-left: 0;
  }
  ul.timeline > li > .tldate {
    margin: 0;
  }
  ul.timeline > li > .timeline-panel {
    float: right;
  }
  ul.timeline > li > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }
  ul.timeline > li > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
  }
  .timeline-panel {
    display: block;
  }
}
.timeline .text-muted {
  padding: 5px;
  background: rgb(80, 80, 80) none repeat scroll 0% 0%;
  color: white;
  border-radius: 5px;
}
.timeline .desc {
  margin-top: 20px;
  /* color: #687383; */
  /* font-size:  14px; */
  line-height: 24px;
}
.be-pack.timeline .timeline_pic {
  padding: 0px 15px 0px 0px;
}
.be-title {
  display: inline-block;
}
.tl-content img {
  float: left;
}
.be-content p {
  margin-bottom: 5px;
}
.tl-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================================
   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: 0px;
  }
.timeline.timeline-one-sided li .timeline-panel {
  float: right;
  width: calc(70% - 90px);
  padding: 15px;
}

.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: 15px;
  border-left-width: 0;
}

.timeline.timeline-one-sided li .timeline-panel:after {
  left: -14px;
  right: auto;
  border-right-width: 14px;
  border-left-width: 0;
}

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


/* =======================
   ONE SIDED – MOBILE 
======================= */
@media (max-width: 700px) {

  /* move line to left like vertical */
  .timeline.timeline-one-sided:before {
    left: 40px;
  }

  /* full-width panels */
  .timeline.timeline-one-sided li .timeline-panel {
    width: calc(100% - 90px);
    float: right;
  }
   .timeline.timeline-one-sided .be-title{
    margin-bottom: 15px;
  }


  /* arrow direction (same as vertical mobile) */
  .timeline.timeline-one-sided li .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }

  .timeline.timeline-one-sided li .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
  }

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

  /* ensure consistent stacking */
  .timeline.timeline-one-sided li {
    padding-left: 0;
  }
}



/* =====================================================
   Custom unlocked-style features (legal custom fork)
   Added by ChatGPT: layouts, item colors, line icons, read more,
   video/slideshow, and mobile alternating layout.
===================================================== */
.be-pack.timeline .timeline_video,
.be-pack.timeline .timeline_slideshow,
.be-pack.timeline .timeline_pic {
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
}
.be-pack.timeline .timeline_video iframe,
.be-pack.timeline .timeline_video video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  display: block;
}
.be-pack.timeline .timeline_slideshow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 5px;
}
.be-pack.timeline .timeline_slideshow img {
  flex: 0 0 82%;
  max-width: 82%;
  border-radius: 8px;
  scroll-snap-align: start;
  object-fit: cover;
}
.be-pack.timeline .timeline-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #2196f3;
  color: #fff !important;
  text-decoration: none;
  line-height: 1.6;
  transition: opacity .2s ease, transform .2s ease;
}
.be-pack.timeline .timeline-read-more:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.be-pack.timeline .tl-circ {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.be-pack.timeline .tl-circ svg,
.be-pack.timeline .tl-circ i {
  width: 1em;
  height: 1em;
  display: inline-block;
}
.be-pack.timeline .tl-circ .tl-circ-icon {
  line-height: 1;
  display: inline-flex;
}

/* Vertical: first item right */
.timeline.timeline-layout-centered-first-right li.timeline-inverted .timeline-panel {
  float: right;
}
.timeline.timeline-layout-centered-first-right li.timeline-inverted .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}
.timeline.timeline-layout-centered-first-right li.timeline-inverted .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}

/* Vertical left only */
.timeline.timeline-layout-left-sided:before {
  left: 66.3%;
}
.timeline.timeline-layout-left-sided li .timeline-panel,
.timeline.timeline-layout-left-sided li.timeline-inverted .timeline-panel {
  float: left;
  width: calc(70% - 90px);
}
.timeline.timeline-layout-left-sided li .timeline-panel:before,
.timeline.timeline-layout-left-sided li.timeline-inverted .timeline-panel:before {
  right: -15px;
  left: auto;
  border-left-width: 15px;
  border-right-width: 0;
}
.timeline.timeline-layout-left-sided li .timeline-panel:after,
.timeline.timeline-layout-left-sided li.timeline-inverted .timeline-panel:after {
  right: -14px;
  left: auto;
  border-left-width: 14px;
  border-right-width: 0;
}
.timeline.timeline-layout-left-sided li .tl-circ {
  left: 66.3%;
}

/* Compact vertical */
.timeline.timeline-layout-compact:before {
  left: 50%;
}
.timeline.timeline-layout-compact li {
  margin-bottom: 14px;
}
.timeline.timeline-layout-compact li .timeline-panel {
  width: 42%;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.timeline.timeline-layout-compact .tl-content {
  display: block;
}
.timeline.timeline-layout-compact .be-content p {
  line-height: 1.65;
}

/* Modern / tab-like vertical */
.timeline.timeline-layout-modern:before {
  left: 24px;
}
.timeline.timeline-layout-modern li,
.timeline.timeline-layout-modern li.timeline-inverted,
.timeline.timeline-layout-modern li.timeline-right {
  padding-left: 70px;
}
.timeline.timeline-layout-modern li .tl-circ {
  left: 12px;
  margin-left: 0;
}
.timeline.timeline-layout-modern li .timeline-panel,
.timeline.timeline-layout-modern li.timeline-inverted .timeline-panel,
.timeline.timeline-layout-modern li.timeline-right .timeline-panel {
  float: none;
  width: 100%;
}
.timeline.timeline-layout-modern li .timeline-panel:before,
.timeline.timeline-layout-modern li.timeline-inverted .timeline-panel:before {
  left: -15px;
  right: auto;
  border-left-width: 0;
  border-right-width: 15px;
}
.timeline.timeline-layout-modern li .timeline-panel:after,
.timeline.timeline-layout-modern li.timeline-inverted .timeline-panel:after {
  left: -14px;
  right: auto;
  border-left-width: 0;
  border-right-width: 14px;
}

/* Horizontal layouts */
.timeline.timeline-layout-horizontal,
.timeline.timeline-layout-horizontal-bottom,
.timeline.timeline-layout-horizontal-highlighted {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 72px 4px 24px !important;
  scroll-snap-type: x mandatory;
}
.timeline.timeline-layout-horizontal:before,
.timeline.timeline-layout-horizontal-bottom:before,
.timeline.timeline-layout-horizontal-highlighted:before {
  left: 0;
  right: 0;
  top: 42px;
  bottom: auto;
  width: 100%;
  height: 1px;
  margin-left: 0;
}
.timeline.timeline-layout-horizontal > li,
.timeline.timeline-layout-horizontal-bottom > li,
.timeline.timeline-layout-horizontal-highlighted > li {
  flex: 0 0 300px;
  margin-bottom: 0;
  scroll-snap-align: start;
}
.timeline.timeline-layout-horizontal > li > .tl-circ,
.timeline.timeline-layout-horizontal-bottom > li > .tl-circ,
.timeline.timeline-layout-horizontal-highlighted > li > .tl-circ {
  top: -42px;
  left: 50%;
  margin-left: -13px;
}
.timeline.timeline-layout-horizontal > li > .timeline-panel,
.timeline.timeline-layout-horizontal-bottom > li > .timeline-panel,
.timeline.timeline-layout-horizontal-highlighted > li > .timeline-panel,
.timeline.timeline-layout-horizontal > li.timeline-inverted > .timeline-panel,
.timeline.timeline-layout-horizontal-bottom > li.timeline-inverted > .timeline-panel,
.timeline.timeline-layout-horizontal-highlighted > li.timeline-inverted > .timeline-panel {
  float: none;
  width: 100%;
}
.timeline.timeline-layout-horizontal > li > .timeline-panel:before,
.timeline.timeline-layout-horizontal > li.timeline-inverted > .timeline-panel:before,
.timeline.timeline-layout-horizontal-highlighted > li > .timeline-panel:before,
.timeline.timeline-layout-horizontal-highlighted > li.timeline-inverted > .timeline-panel:before {
  top: -15px;
  left: 50%;
  right: auto;
  margin-left: -8px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #d2e3f9;
  border-top: 0;
}
.timeline.timeline-layout-horizontal > li > .timeline-panel:after,
.timeline.timeline-layout-horizontal > li.timeline-inverted > .timeline-panel:after,
.timeline.timeline-layout-horizontal-highlighted > li > .timeline-panel:after,
.timeline.timeline-layout-horizontal-highlighted > li.timeline-inverted > .timeline-panel:after {
  top: -14px;
  left: 50%;
  right: auto;
  margin-left: -7px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid #fff;
  border-top: 0;
}
.timeline.timeline-layout-horizontal-bottom {
  padding-top: 24px !important;
  padding-bottom: 72px !important;
}
.timeline.timeline-layout-horizontal-bottom:before {
  top: auto;
  bottom: 42px;
}
.timeline.timeline-layout-horizontal-bottom > li > .tl-circ {
  top: auto;
  bottom: -42px;
}
.timeline.timeline-layout-horizontal-bottom > li > .timeline-panel:before,
.timeline.timeline-layout-horizontal-bottom > li.timeline-inverted > .timeline-panel:before {
  top: auto;
  bottom: -15px;
  left: 50%;
  right: auto;
  margin-left: -8px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #d2e3f9;
  border-bottom: 0;
}
.timeline.timeline-layout-horizontal-bottom > li > .timeline-panel:after,
.timeline.timeline-layout-horizontal-bottom > li.timeline-inverted > .timeline-panel:after {
  top: auto;
  bottom: -14px;
  left: 50%;
  right: auto;
  margin-left: -7px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #fff;
  border-bottom: 0;
}
.timeline.timeline-layout-horizontal-highlighted > li:nth-child(odd) .timeline-panel {
  transform: translateY(-10px);
}
.timeline.timeline-layout-horizontal-highlighted > li:nth-child(even) .timeline-panel {
  transform: translateY(10px);
}

/* Keep right/left alternating visible on mobile */
@media (max-width: 700px) {
  ul.timeline.timeline-layout-centered:before,
  ul.timeline.timeline-layout-centered-first-right:before {
    left: 50%;
  }
  ul.timeline.timeline-layout-centered li .tl-circ,
  ul.timeline.timeline-layout-centered-first-right li .tl-circ {
    left: 50%;
    margin-left: -13px;
  }
  ul.timeline.timeline-layout-centered > li > .timeline-panel,
  ul.timeline.timeline-layout-centered-first-right > li > .timeline-panel {
    width: 45%;
  }
  ul.timeline.timeline-layout-centered > li.timeline-right > .timeline-panel,
  ul.timeline.timeline-layout-centered-first-right > li.timeline-right > .timeline-panel {
    float: left;
  }
  ul.timeline.timeline-layout-centered > li.timeline-inverted > .timeline-panel,
  ul.timeline.timeline-layout-centered-first-right > li.timeline-inverted > .timeline-panel {
    float: right;
  }
  ul.timeline.timeline-layout-centered > li.timeline-right > .timeline-panel:before,
  ul.timeline.timeline-layout-centered-first-right > li.timeline-right > .timeline-panel:before {
    right: -15px;
    left: auto;
    border-left-width: 15px;
    border-right-width: 0;
  }
  ul.timeline.timeline-layout-centered > li.timeline-right > .timeline-panel:after,
  ul.timeline.timeline-layout-centered-first-right > li.timeline-right > .timeline-panel:after {
    right: -14px;
    left: auto;
    border-left-width: 14px;
    border-right-width: 0;
  }
  ul.timeline.timeline-layout-centered > li.timeline-inverted > .timeline-panel:before,
  ul.timeline.timeline-layout-centered-first-right > li.timeline-inverted > .timeline-panel:before {
    left: -15px;
    right: auto;
    border-right-width: 15px;
    border-left-width: 0;
  }
  ul.timeline.timeline-layout-centered > li.timeline-inverted > .timeline-panel:after,
  ul.timeline.timeline-layout-centered-first-right > li.timeline-inverted > .timeline-panel:after {
    left: -14px;
    right: auto;
    border-right-width: 14px;
    border-left-width: 0;
  }
  .timeline.timeline-layout-horizontal,
  .timeline.timeline-layout-horizontal-bottom,
  .timeline.timeline-layout-horizontal-highlighted {
    display: flex;
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  ul.timeline.timeline-layout-centered > li > .timeline-panel,
  ul.timeline.timeline-layout-centered-first-right > li > .timeline-panel {
    width: 43%;
    padding: 10px;
    font-size: 12px;
  }
  .timeline.timeline-layout-horizontal > li,
  .timeline.timeline-layout-horizontal-bottom > li,
  .timeline.timeline-layout-horizontal-highlighted > li {
    flex-basis: 260px;
  }
}
