/* =========================================================
   Company Timeline Slider - Frontend
========================================================= */

.cts-timeline {
  --cts-text: #000000;
  --cts-muted: rgba(0, 0, 0, 0.62);
  --cts-line: #ED701E;
  --cts-dot: #0f4073;
  --cts-side-space: 72px;

  position: relative;
  width: 100%;
  padding: 0px 0px 58px;
  overflow-x: clip;
  overflow-y: visible;
  box-sizing: border-box;
}


/* =========================================================
   Timeline Rail
========================================================= */

.cts-years-wrap {
  position: relative;
  z-index: 3;
  width: calc(100% + (var(--cts-side-space) * 2));
  margin: 0 calc(var(--cts-side-space) * -1) 50px;
  padding: 28px 0 34px;
  overflow: visible;
}

.cts-line {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 100vw;
  height: 1px;
  background: var(--cts-line);
  transform: translate(-50%, -50%);
}

.cts-years {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4.4vw, 56px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* =========================================================
   Year Items
========================================================= */

.cts-year {
  all: unset;
  width: 76px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transform: translateY(4px);
}

.cts-year-ghost {
  pointer-events: none;
}

.cts-dot {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 2;
  border-radius: 50%;
  background: var(--cts-dot);
  transform: translate(-50%, -50%);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.cts-year-edge .cts-dot,
.cts-year-separator .cts-dot {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.cts-year-text {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0f4073;
  color: rgba(255, 255, 255, 0.9);
  transform: scale(0.94);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    font-size 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.cts-year:hover .cts-dot,
.cts-year:focus .cts-dot {
  background: #ED701E;
  transform: translate(-50%, -50%) scale(1.06);
}

.cts-year:hover .cts-year-text,
.cts-year:focus .cts-year-text {
  background: #ED701E;
  transform: scale(0.98);
}

/* Active Year */
.cts-year.is-active {
  z-index: 8;
  width: 100px;
  height : 100px;
}

.cts-year.is-active .cts-year-text {
  width: 100px;
  height: 100px;
  background: #ED701E;
  color: #ffffff;
  font-size: 20px;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.cts-year.is-active::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   Slider Content
========================================================= */

.cts-swiper {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 320px;
	max-width : 1100px;
}

.cts-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.cts-card--has-image {
  max-width: 930px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
  text-align: left;
}

.cts-content {
  min-width: 0;
}

.cts-title {
  margin: 0 0 30px;
  color: var(--cts-text) !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(26px, 4.7vw, 40px) !important;
  line-height: 1.12 !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
}

.cts-description {
  max-width: 650px;
  margin: 0 auto;
  color: var(--cts-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

.cts-card--has-image .cts-description {
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   Image
========================================================= */

.cts-image {
  position: relative;
  width: 100%;
  height: 350px;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 64, 115, 0.18);
}

.cts-image-img,
.cts-image img {
  position: absolute;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top center;
}

/* =========================================================
   Navigation Arrows
========================================================= */

.cts-nav {
  all: unset;
  position: absolute;
  top: 45%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #0f4073 !important;
  border-radius: 50% !important;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.cts-nav::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  border-left: 2px solid rgba(255, 255, 255, 0.88);
}

.cts-prev {
  left: 2px;
}

.cts-prev::before {
  transform: rotate(-45deg) translate(2px, 2px);
}

.cts-next {
  right: 2px;
}

.cts-next::before {
  transform: rotate(135deg) translate(2px, 2px);
}

.cts-nav:hover,
.cts-nav:focus,
.cts-nav:focus-visible {
  background-color: #ED701E !important;
  transform: scale(1.06);
  outline: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   Animation - Fade Only
========================================================= */

.cts-slide .cts-content > *,
.cts-slide .cts-image {
  opacity: 0;
  transform: none !important;
  transition: opacity 0.42s ease;
}

.cts-slide.swiper-slide-active .cts-content > *,
.cts-slide.swiper-slide-active .cts-image {
  opacity: 1;
  transform: none !important;
}

.cts-slide.swiper-slide-active .cts-content > *:nth-child(1),
.cts-slide.swiper-slide-active .cts-content > *:nth-child(2),
.cts-slide.swiper-slide-active .cts-image {
  transition-delay: 0s;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {
  .cts-timeline {
    --cts-side-space: 34px;
    padding-top: 58px;
    padding-bottom: 52px;
  }

  .cts-years {
    gap: 34px;
  }

  .cts-year {
    width: 64px;
    min-width: 64px;
    height: 64px;
  }

  .cts-year-text {
    width: 58px;
    height: 58px;
    font-size: 14px;
  }

  .cts-year.is-active {
    width: 76px;
    min-width: 76px;
    height: 76px;
  }

  .cts-year.is-active .cts-year-text {
    width: 70px;
    height: 70px;
    font-size: 16px;
  }

  .cts-card--has-image {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 32px;
  }

  .cts-prev {
    left: 2px;
  }

  .cts-next {
    right: 2px;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
  .cts-timeline {
    --cts-side-space: 8px;
    min-height: 430px;
    padding-top: 32px;
    padding-bottom: 20px;
    border-radius: 8px;
    overflow-x: clip;
    overflow-y: visible;
  }

  .cts-years-wrap {
    width: 100%;
    margin: 0px 0 10px;
    padding: 10px 0 24px;
    overflow: hidden;
  }

  .cts-line {
    left: 0;
    right: 0;
    width: auto;
    transform: translateY(-50%);
  }

  .cts-years {
    gap: 22px;
    padding-left: var(--cts-rail-pad, 120px);
    padding-right: var(--cts-rail-pad, 120px);
  }

  .cts-year {
    width: 46px;
    min-width: 46px;
    height: 46px;
    font-size: 12px;
  }

  .cts-dot,
  .cts-year-edge .cts-dot,
  .cts-year-separator .cts-dot {
    width: 12px;
    height: 12px;
    opacity: 0.9;
  }

  .cts-year-text {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }

  .cts-year.is-active {
    width: 58px;
    min-width: 58px;
    height: 58px;
  }

  .cts-year.is-active .cts-year-text {
    width: 54px;
    height: 54px;
    font-size: 13px;
  }

  .cts-swiper {
    min-height: 0;
    padding-bottom: 68px;
  }

  .cts-card,
  .cts-card--has-image {
    display: flex;
	flex-direction : column-reverse;
    text-align: center;
  }

  .cts-title {
    margin-bottom: 18px;
  }

  .cts-description {
    max-width: 310px;
    font-size: 16px;
    line-height: 1.55;
  }
		
  .cts-image {
    width: 100%;
    max-width: 330px;
    height: 260px;
    margin: 24px auto 0 !important;
    border-radius: 18px;
  }

  .cts-image-img,
  .cts-image img {
    height: 260px;
  }

  .cts-nav {
    top: auto;
    bottom: 0;
    width: 42px;
    height: 42px;
  }

  .cts-prev {
    left: 40px;
  }

  .cts-next {
    right: 40px;
  }
	.cts-dot{
		top : 56% !important;
	}
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 420px) {
  .cts-years {
    gap: 18px;
  }

  .cts-year {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .cts-year-text {
    width: 38px;
    height: 38px;
    font-size: 10px;
  }

  .cts-year.is-active {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .cts-year.is-active .cts-year-text {
    width: 48px;
    height: 48px;
    font-size: 12px;
  }

  .cts-title {
    font-size: 27px;
  }

  .cts-description {
    font-size: 15px;
  }

  .cts-image {
    max-width: 280px;
    height: 230px;
  }

  .cts-image-img,
  .cts-image img {
    height: 230px;
  }
}