:root {
  --gap: 40px;

  /* theme tokens (neutral, works on dark section bg) */
  --text: #575756;
  --muted: rgba(255, 255, 255, 0.9);

  --line: rgba(255, 255, 255, 0.55);
  --dot: rgba(255, 255, 255, 0.9);
  --active: #ffba00; /* yellow */
}
/* divi module  */
/* .sabik_timeline_slider {
  background-color: #40557b;
} */

.ts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: var(--gap);
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  /* background-color: #40557b; */
  /* width: 80%; */
  /* padding-top: 60px; */
  /* padding-bottom: 60px; */
  width: 100%;
  padding: 40px;
  border-radius: 15px;
  overflow: hidden;
}

/* Left content */
.ts-content {
  border: none;
  background: transparent;
  color: var(--text);
  width: 100%;
  min-width: 0;
}

.ts-content__inner {
  padding: 0;
  border-radius: 15px;
  background-color: #eeeeee;
}

.ts-content__wrapper {
  padding: 40px;
}

.ts-content__header {
  margin-bottom: 16px;
}

.ts-title {
  margin: 0;
  padding: 0;
  /* font-size: 20px; */
  font-weight: 700 !important;
}

.ts-subtitle {
  margin: 0;
  padding: 0;
  /* margin-top: 6px; */
  /* font-size: 18px; */
}

/* .ts-text {
  font-size: 16px;
  line-height: 1.5;
} */

/* .ts-text p {
  margin: 0 0 10px;
} */

/* .ts-text p:last-child {
  margin-bottom: 0;
} */

/* Right side columns */
.ts-side {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  min-width: 0;
  height: 100%;
}

.ts-years-col,
.ts-cats-col {
  position: relative;
  min-width: 175px; /* important in grid */
  height: calc(100% + 80px);
  padding-top: 40px;
  margin-top: -40px;
  padding-bottom: 40px;
}

.ts-cats-col::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  left: 30px;
}

.ts-years-col::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  right: 30px;
}

/* Lists */
.ts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-x: visible;
  overflow-y: scroll;
  height: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
  /* No scrollbar for WebKit */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.ts-cats-col .ts-list {
  padding-right: 10px;
  padding-left: 60px;
}

.ts-years-col .ts-list {
  padding-right: 60px;
  padding-left: 10px;
}

/* Buttons (no borders / no cards) */
.ts-btn {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
  color: var(--muted);
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.ts-years-col .ts-btn {
  text-align: right;
}

/* Timeline dot */
.ts-btn::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 15px;
  transform: translateY(0) scale(1);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.ts-years-col .ts-btn::before {
  right: -33px;
  left: auto;
}

/* Hover state (bigger) */
.ts-btn:hover::before {
  transform: translateY(0) scale(1.2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* Active state (yellow, bigger) */
.ts-btn.is-active::before {
  transform: translateY(-50%) scale(1.55);
  background: var(--active);
  box-shadow: 0 0 0 8px rgba(245, 196, 0, 0.22);
}

/* Text inside list items */
.ts-btn strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.ts-btn small {
  display: block;
  margin-top: 0;
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.2;
}

/* Active state button text */
.ts-btn.is-active strong {
  color: var(--active);
  transform: scale(1.4);
}

.ts-years-col .ts-btn.is-active strong {
  transform-origin: bottom right;
}

.ts-cats-col .ts-btn.is-active strong {
  transform-origin: bottom left;
}

/* Slider */
.ts-slider {
  border: none;
  background: transparent;
  border-radius: 15px;
}

.ts-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.ts-slider__viewport img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Nav buttons: hidden until hover (like screenshot) */
.ts-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  cursor: pointer;
  user-select: none;
}

.ts-slider__viewport:hover .ts-nav {
  pointer-events: auto;
}

.ts-nav--prev {
  left: 12px;
}

.ts-nav--next {
  right: 12px;
}

/* Divi Chevron icon (CSS) */
.ts-nav:before {
  content: '5';
  font-family: ETmodules !important;
  font-style: normal;
  font-weight: 400;
  -webkit-font-feature-settings: normal;
  font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 0;
  direction: ltr;
  color: #fff;
  font-size: 48px;
}

.ts-nav--prev:before {
  transform: rotate(-180deg);
}

/* Dots */
.ts-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    opacity 220ms ease;
}

.ts-dot.is-active {
  background: var(--active);
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1300px) {
  .ts-layout {
    /* width: 94%; */
    grid-template-columns: minmax(0, 1fr) 375px;
  }

  .ts-side {
    grid-template-columns: 1fr 1fr;
  }

  .ts-content__wrapper {
    padding: 20px;
  }

  .ts-list {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .ts-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .ts-content {
    order: 2; /* content below side on mobile */
  }

  .ts-content__wrapper {
    padding: 20px;
  }

  .ts-side {
    grid-template-columns: 1fr;
    gap: 14px;
    min-width: 0;
  }

  .ts-years-col,
  .ts-cats-col {
    max-height: none;
    height: auto;
    overflow: visible;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .ts-years-col {
    order: 2; /* years below categories on mobile */
  }

  .ts-years-col::before {
    display: none;
  }

  .ts-cats-col::before {
    display: none;
  }

  .ts-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x; /* ensures horizontal swipe */
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
  }

  .ts-cats-col .ts-list {
    padding-right: 0;
    padding-left: 0;
  }

  .ts-years-col .ts-list {
    padding-right: 0;
    padding-left: 0;
  }

  .ts-btn {
    min-width: min(220px, 70vw);
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    text-align: center;
    /* scroll-snap-align: center; */
  }

  .ts-years-col .ts-btn {
    text-align: center;
  }

  .ts-btn::before {
    display: none;
  }

  .ts-btn small {
    display: none;
  }

  .ts-btn.is-active {
    border-color: var(--active);
  }

  .ts-btn.is-active strong {
    color: var(--active);
    transform: none;
  }
}

/* =========================================
   Animations (fade/slide)
   ========================================= */

.ts-anim-fade {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  will-change: opacity, transform;
}

.ts-anim-fade.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

/* years list: horizontal slide a bit on mobile, subtle */
.ts-anim-years {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  will-change: opacity, transform;
}

.ts-anim-years.is-fading {
  opacity: 0;
  transform: translateX(-10px);
}
