.custom-timeline-section-wrap {
  position: relative;
}
.custom-timeline-section-wrap:before {
  content: "";
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--e-global-color-0855268);
}
.custom-timeline-section-wrap .title {
  background-color: var(--e-global-color-0855268);
  padding: 14px 20px;
  font-size: 19px;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
  font-weight: 600;
  line-height: 1.4em;
}
.custom-timeline-section-wrap .title:after,
.custom-timeline-section-wrap .title:before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translatey(-50%);
}
.custom-timeline-section-wrap .title:before {
  width: 30px;
  height: 3px;
  left: 100%;
  background-color: var(--e-global-color-0855268);
}
.custom-timeline-section-wrap .title:after {
  --size: 20px;
  width: var(--size);
  height: var(--size);
  left: calc(100% + 20px);
  background: #fff;
  border: 3px solid var(--e-global-color-0855268);
  border-radius: 50%;
}
.custom-timeline-section-wrap .item-t:nth-child(even) .title:before {
  right: 100%;
  left: auto;
}
.custom-timeline-section-wrap .item-t:nth-child(even) .title:after {
  right: calc(100% + 20px);
  left: auto;
}
.timeline-gallery {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  --col-size: 33.3333%;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  --col-size: 50%;
  padding: 50px 0;
  --gap: 10px;
  gap: var(--gap);
}
.timeline-items .item-t {
  flex: 0 0 var(--col-size);
  max-width: var(--col-size);
  --side-gap: 30px;
  min-height: 300px;
}
.timeline-items .item-t:not(:last-child) {
  margin-bottom: 30px;
}
.timeline-items .item-t + .item-t {
  margin-top: -188px;
}
.timeline-items .item-t:last-child {
  margin-bottom: 0;
}

.timeline-items .item-t:not(:nth-child(even)) {
  padding-right: var(--side-gap);
}
.timeline-items .item-t:not(:nth-child(odd)) {
  padding-left: var(--side-gap);
  margin-left: auto;
}
.timeline-gallery .gallery-item {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
  flex: 0 0 var(--col-size);
  max-width: var(--col-size);
  order: 2;
}
.timeline-gallery .gallery-item:nth-child(4) {
  --col-size: 100%;
  order: 1;
}
.timeline-gallery .gallery-item:nth-child(4) img {
  height: 320px;
}

.timeline-gallery .gallery-item img {
  height: 150px;
  width: 100%;
  object-fit: cover;
  display: block;
}
@media screen and (max-width: 767px) {
  .custom-timeline-section-wrap:before {
    margin: 0;
  }
  .custom-timeline-section-wrap .title:before {
    left: auto;
    right: 100%;
    width: 20px;
  }
  .timeline-items {
    padding: 30px 0;
  }
  .custom-timeline-section-wrap .title:after {
    right: calc(100% + 8px) !important;
    left: auto !important;
  }
  .timeline-items .item-t + .item-t {
    margin-top: 20px;
  }
  .timeline-items .item-t {
    min-height: inherit;
  }
  .timeline-items .item-t {
    --side-gap: 20px;
    padding-left: var(--side-gap);
    padding-right: 0 !important;
    --col-size: 100%;
  }
}
@media screen and (max-width: 575px) {
  .custom-timeline-section-wrap {
    margin-left: 10px;
  }
}

/* LONG SERVICE CSS */
.custom-long-service-section-wrap {
  position: relative;
}
.custom-long-service-section-wrap:before {
  content: "";
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--e-global-color-0855268);
}
.custom-long-service-section-wrap .image-wrap {
  padding: 14px 20px;
  margin-bottom: 10px;
  position: relative;
}
.custom-long-service-section-wrap .image-wrap:after,
.custom-long-service-section-wrap .image-wrap:before {
  content: "";
  position: absolute;
  left: 96%;
  top: 50%;
  transform: translatey(-50%);
}
.custom-long-service-section-wrap .image-wrap:before {
  width: 50px;
  height: 3px;
  left: 96%;
  background-color: var(--e-global-color-0855268);
}
.custom-long-service-section-wrap .image-wrap:after {
  --size: 20px;
  width: var(--size);
  height: var(--size);
  left: calc(100% + 20px);
  background: #fff;
  border: 3px solid var(--e-global-color-0855268);
  border-radius: 50%;
}
.custom-long-service-section-wrap .item-t:nth-child(even) .image-wrap:before {
  right: 96%;
  left: auto;
}
.custom-long-service-section-wrap .item-t:nth-child(even) .image-wrap:after {
  right: calc(100% + 20px);
  left: auto;
}
.long-service-gallery {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  --col-size: 33.3333%;
}

.long-service-items {
  display: flex;
  flex-direction: column;
  --col-size: 50%;
  padding: 50px 0;
  --gap: 10px;
  gap: var(--gap);
}
.long-service-items .item-t {
  flex: 0 0 var(--col-size);
  max-width: var(--col-size);
  --side-gap: 30px;
  min-height: 300px;
  width: 100%;
}

.long-service-items .item-t .item {
  width: 100%;
}

.long-service-items .item-t .item .image-wrap {
  width: 100%;
  display: flex;
  margin-bottom: 30px;
  position: relative;
}

.long-service-items .image-wrap img {
  width: 200px;
  height: auto;
  margin: auto;
}

.long-service-items .item-t:not(:last-child) {
  margin-bottom: 30px;
}
.long-service-items .item-t + .item-t {
  margin-top: -188px;
}
.long-service-items .item-t:last-child {
  margin-bottom: 0;
}

.long-service-items .item-t:not(:nth-child(even)) {
  padding-right: var(--side-gap);
}
.long-service-items .item-t:not(:nth-child(odd)) {
  padding-left: var(--side-gap);
  margin-left: auto;
}
@media screen and (max-width: 767px) {
  .custom-long-service-section-wrap:before {
    margin: 0;
  }

  .custom-long-service-section-wrap .item-t:nth-child(even) .image-wrap:before {
    right: 93%;
  }

  .custom-long-service-section-wrap .image-wrap:before {
    left: auto;
    right: 93%;
    width: 30px;
  }
  .long-service-items {
    padding: 30px 0;
  }
  .custom-long-service-section-wrap .image-wrap:after {
    right: calc(100% + 8px) !important;
    left: auto !important;
  }
  .long-service-items .item-t + .item-t {
    margin-top: 20px;
  }
  .long-service-items .item-t {
    min-height: inherit;
  }
  .long-service-items .item-t {
    --side-gap: 20px;
    padding-left: var(--side-gap);
    padding-right: 0 !important;
    --col-size: 100%;
  }
}
@media screen and (max-width: 575px) {
  .custom-long-service-section-wrap {
    margin-left: 10px;
  }
}

/* TIMELINE */
.custom-story-timeline-wrap {
  position: relative;
}

.custom-story-timeline-wrap:before {
  content: "";
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #b7b7b7;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  padding: 50px 0;
}

.story-timeline-items {
  position: relative;
}

.story-timeline-items .item-t {
  width: 100%;
  position: relative;
  display: flex;
  justify-items: center;
  align-items: center;
  margin-bottom: 55px;
}

.story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t {
  flex-direction: row-reverse;
}

.story-timeline
  .story-timeline-items:not(:nth-child(odd))
  .item-t
  .title::after {
  left: -10px;
}

.story-timeline
  .story-timeline-items:not(:nth-child(odd))
  .item-t
  .title::before {
  left: 10px;
}

.story-timeline-items .item-t .title,
.story-timeline-items .item-t .content {
  width: 50%;
}

.story-timeline-items .item-t .title {
  position: relative;
  text-align: center;
}

.story-timeline-items .item-t .title::before,
.story-timeline-items .item-t .title::after {
  content: "";
  position: absolute;
  left: 96%;
  top: 50%;
  transform: translatey(-50%);
}

.story-timeline-items .item-t .title::before {
  width: 50px;
  height: 3px;
  left: 91%;
  background-color: #b7b7b7;
}

.story-timeline-items .item-t .title::after {
  --size: 20px;
  width: var(--size);
  height: var(--size);
  left: calc(100% - 10px);
  background: #414850;
  border: 3px solid #b7b7b7;
  border-radius: 50%;
}

.story-timeline-items .item-t .title h4 {
  display: inline-block;
  margin-bottom: 0px;
  color: #fff;
}

.story-timeline-items .item-t .title .corner-point.box-point::before {
  left: -20px;
  top: -8px;
}

.story-timeline-items .item-t .title .corner-point.box-point::after {
  top: -20px;
  left: -31px;
}

.story-timeline-items .item-t .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.story-timeline-items .item-t .content .cover {
  width: 488px;
  position: relative;
}

.story-timeline-items .item-t .content .image-wrap {
  max-height: 335px;
  margin-bottom: 20px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
}

.story-timeline-items .item-t .content .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1024px) {
  .story-timeline-items .item-t .title .corner-point:before {
    width: 15px;
    height: 15px;
  }

  .story-timeline-items .item-t .title .box-point:after {
    width: 20px;
    height: 20px;
  }

  .story-timeline-items .item-t .content .cover {
    width: 350px;
  }

  .story-timeline-items .item-t .content {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
  }

  .story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t .content {
    align-items: start;
  }

  .story-timeline-items .item-t .title::before {
    width: 30px;
  }

  .story-timeline-items .item-t .title h4 {
    font-size: 20px;
  }
}

@media screen and (max-width: 812px) {
  .story-timeline-items .item-t .content {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
  }

  .story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t .content {
    align-items: start;
  }

  .story-timeline-items .item-t .content .cover {
    width: 280px;
  }

  .story-timeline-items .item-t .title::before {
    width: 20px;
  }
  .story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t .title h4 {
    margin-left: 30px;
  }
}

@media screen and (max-width: 575px) {
  .story-timeline-items {
    display: flex;
    justify-content: end;
    padding-right: 20px;
  }

  .custom-story-timeline-wrap:before {
    margin-left: 15px;
  }

  .story-timeline-items .item-t,
  .story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t {
    flex-direction: column;
    width: 300px;
  }

  .story-timeline-items .item-t .title,
  .story-timeline-items .item-t .content {
    width: 100%;
  }

  .story-timeline-items .item-t .title {
    text-align: left;
    margin-bottom: 15px;
  }

  .story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t .title h4 {
    margin-left: 0px;
  }

  .story-timeline-items::before {
    content: "";
    position: absolute;
    --size: 20px;
    width: var(--size);
    height: var(--size);
    background: #414850;
    border: 3px solid #b7b7b7;
    border-radius: 50%;
    left: 7px;
  }

  .story-timeline-items::after {
    content: "";
    width: 15px;
    position: absolute;
    left: 25px;
    background: #b7b7b7;
    height: 3px;
    top: 10px;
  }

  .story-timeline-items .item-t .title::before {
    display: none;
  }

  .story-timeline-items .item-t .title::after,
  .story-timeline .story-timeline-items:not(:nth-child(odd)) .item-t::after {
    display: none;
  }

  .story-timeline-items .item-t .content .cover {
    width: 100%;
  }
}

/* Our Story Slider */

.our-story-grid-section {
  position: relative;
}

.our-story-grid-section .left-side {
  background: #262b31;
  z-index: 1;
  position: relative;
}

.our-story-grid-section .left-side::before {
  content: "";
  position: absolute;
  background: #262b31;
  width: 100%;
  height: 100%;
  margin-left: -100%;
  top: 0;
}

.our-story-grid-section .left-side .text-content .title {
  font-size: 60px;
  color: #fff;
}

.our-story-grid-section .left-side .text-content .content p {
  color: #fff;
  font-size: 14px;
}

.our-story-grid-section .right-side .img-wrap {
  width: 85%;
  height: 100%;
  display: flex;
  min-height: 600px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.our-story-grid-section .right-side .img-wrap img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splide__track--nav > .splide__list > .splide__slide,
.splide__track--nav > .splide__list > .splide__slide {
  border: none !important;
}

.our-story-splide .splide__arrow {
  top: 105%;
  left: auto;
}
.our-story-splide .splide__arrow.splide__arrow--next {
  right: 30px !important;
  opacity: 0.3;
}
.our-story-splide .splide__arrow.splide__arrow--prev {
  right: 70px !important;
  opacity: 0.3;
}

:is(.thumbnail-track) div.splide__track {
  --space-gap: 10vw;
  overflow: visible;
}

.thumbnail-track div.splide__track {
  padding-right: var(--space-gap) !important;
}

.thumbnail-track .splide__arrows {
    display: block !important;
 }

@media screen and (max-width: 1400px) {
  .our-story-grid-section .left-side .text-content .title {
    font-size: 45px;
  }
}

@media screen and (max-width: 1024px) {
  .our-story-grid-section.section-gaps {
    padding: 100px 0;
  }

  .our-story-content .splide__track {
    margin-left: -80px;
    padding-left: 20px !important;
  }

  .our-story-grid-section .right-side .img-wrap {
    width: 100%;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 812px) {
  .our-story-grid-section .right-side .img-wrap {
    /* min-height: 250px; */
    margin-bottom: 20px;
  }

  .our-story-content .splide__track {
    margin-left: 0;
    padding-top: 20px;
    /* padding-left: 0px !important; */
  }

  .our-story-grid-section .left-side .text-content .title {
    font-size: 28px;
  }

  :is(.thumbnail-track) div.splide__track {
    overflow: hidden;
  }
}

@media screen and (max-width: 600px) {
  .our-story-grid-section .right-side .img-wrap {
    min-height: 250px;
  }

  .thumbnail-track .splide__track {
    margin-right: 0 !important;
  }
}
