.stonehedge-timeline {
  position: relative;
  width: 100%;
  padding: 100px 0 80px;
}

/* Navigation Arrows */
.stonehedge-timeline .timeline-navigation {
  position: absolute;
  top: 30px;
  right: -40px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.stonehedge-timeline .timeline-prev,
.stonehedge-timeline .timeline-next {
  overflow: hidden;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 100%;
  border: 1px solid #8a0e12;
  cursor: pointer;
  transition: 0.3s;
  transition-timing-function: ease-out;
  -webkit-transition: 0.3s;
  -webkit-transition-timing-function: ease-out;
  background-color: transparent;
  padding: 0;
}

.stonehedge-timeline .timeline-prev svg,
.stonehedge-timeline .timeline-next svg {
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.3s;
  transition-timing-function: ease-out;
  -webkit-transition: 0.3s;
  -webkit-transition-timing-function: ease-out;
}

.stonehedge-timeline .timeline-prev svg.icon-initial {
  transform: translateX(0px);
  opacity: 1;
}

.stonehedge-timeline .timeline-prev:disabled,
.stonehedge-timeline .timeline-next:disabled {
  pointer-events: none;
  opacity: 0.3;
}

/* Prev Arrow Animation */
.stonehedge-timeline .timeline-prev svg.icon-state {
  transform: translateX(18px);
  opacity: 0;
}

/* Next Arrow Animation */
.stonehedge-timeline .timeline-next svg.icon-initial {
  transform: translateX(0px);
  opacity: 1;
}

.stonehedge-timeline .timeline-next svg.icon-state {
  transform: translateX(-18px);
  opacity: 0;
}

/* Timeline Line */
.stonehedge-timeline .slick-track:before {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(100% - 240px);
  height: 2px;
  background-color: #3b3b39;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

/* Slider */
.stonehedge-timeline .timeline-slider {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.stonehedge-timeline .timeline-slider.slick-initialized {
  opacity: 1;
  visibility: visible;
}

/* Timeline Item */
.stonehedge-timeline .timeline-item {
  position: relative;
  height: 600px;
  display: flex !important;
  flex-direction: column;
  outline: none;
}

/* Content Wrapper - Alternating Positions */
.stonehedge-timeline .timeline-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 250px;
}

.stonehedge-timeline .timeline-item[data-position="bottom"] {
  left: -55px;
}

.stonehedge-timeline
  .timeline-content-wrapper.position-bottom
  .timeline-text-content {
  top: -37px;
  position: relative;
  left: 24px;
}

.stonehedge-timeline
  .timeline-content-wrapper.position-top
  .timeline-text-content {
  top: 66px;
  position: relative;
  left: 24px;
}

.stonehedge-timeline .timeline-content-wrapper.position-top {
  top: 35px;
  padding-left: 15px;
  max-width: 162px;
}

.stonehedge-timeline .timeline-content-wrapper.position-bottom {
  flex-direction: column-reverse;
  top: 390px;
  padding-left: 68px;
}

/* Text Content */
/* .stonehedge-timeline .timeline-text-content {
}
 */
.stonehedge-timeline .timeline-year {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0px;
  color: #3b3b39;
}

.stonehedge-timeline .timeline-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #3b3b39;
}

.stonehedge-timeline .timeline-description {
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
}

/* L-shaped Connector */
.stonehedge-timeline .timeline-connector {
  position: relative;
  width: 2px;
  height: 40px;
  border-left: 2px solid #3b3b39;
}

.stonehedge-timeline .timeline-connector::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 2px;
  background-color: #3b3b39;
}

.stonehedge-timeline .position-top .timeline-connector {
  height: 130px;
}

.stonehedge-timeline .position-bottom .timeline-connector {
  height: 90px;
}

.stonehedge-timeline .position-top .timeline-connector {
  order: 2;
  transform: scaleY(-1);
  position: absolute;
  top: 100px;
}

.stonehedge-timeline .position-bottom .timeline-connector {
  order: 1;
}

/* Image Wrapper - Centered on Timeline */
.stonehedge-timeline .timeline-image-wrapper {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
}

/* Image - Centered on Line */
.stonehedge-timeline .timeline-item-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stonehedge-timeline .timeline-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slick Slider Overrides */
.stonehedge-timeline .slick-list {
  overflow: visible;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.stonehedge-timeline .slick-list.dragging {
  cursor: grabbing;
}

.stonehedge-timeline .slick-track {
  display: flex;
  align-items: center;
}

.stonehedge-timeline .slick-slide {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.stonehedge-timeline .slick-arrow {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stonehedge-timeline {
    padding: 80px 0 60px;
  }

  .stonehedge-timeline .timeline-year {
    font-size: 36px;
  }

  .stonehedge-timeline .timeline-title {
    font-size: 14px;
  }

  .stonehedge-timeline .timeline-item-image {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .stonehedge-timeline {
    padding: 60px 0 40px;
  }

  .stonehedge-timeline .timeline-navigation {
    top: unset;
    right: 10px;
    bottom: 0;
  }

  .stonehedge-timeline .timeline-year {
    font-size: 28px;
  }

  .stonehedge-timeline .timeline-title {
    font-size: 13px;
  }

  .stonehedge-timeline .timeline-description {
    font-size: 12px;
  }

  .stonehedge-timeline .timeline-item-image {
    width: 180px;
    height: 180px;
  }

  .stonehedge-timeline .timeline-content-wrapper.position-top {
    margin-bottom: 30px;
  }

  .stonehedge-timeline .timeline-content-wrapper.position-bottom {
    margin-top: 30px;
  }

  .stonehedge-timeline .timeline-connector {
    height: 30px;
  }

  .stonehedge-timeline .timeline-connector::after {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .stonehedge-timeline .slick-track {
    left: 10px;
  }
  .stonehedge-timeline .timeline-year {
    font-size: 26px;
  }

  .stonehedge-timeline .timeline-title {
    font-size: 14px;
  }

  .stonehedge-timeline .timeline-item-image {
    width: 150px;
    height: 150px;
  }

  .stonehedge-timeline .timeline-dot {
    width: 30px;
    height: 30px;
  }
  .stonehedge-timeline .timeline-content-wrapper.position-top {
    top: 64px;
    padding-left: 15px;
    width: 190px;
  }
  .stonehedge-timeline .timeline-content-wrapper.position-bottom {
    top: 295px;
    padding-left: 70px;
    width: 190px;
  }
  .stonehedge-timeline
    .timeline-content-wrapper.position-top
    .timeline-text-content {
    top: 0px;
    left: 20px;
  }
  .stonehedge-timeline .position-top .timeline-connector {
    top: 20px;
  }
  .stonehedge-timeline .timeline-connector::after {
    width: 10px;
  }
  .stonehedge-timeline
    .timeline-content-wrapper.position-bottom
    .timeline-text-content {
    top: -20px;
    left: 20px;
  }
  .stonehedge-timeline .timeline-item {
    height: 480px;
  }
  .stonehedge-timeline .slick-track:before {
    width: calc(100% - 160px);
  }
  .stonehedge-timeline {
    padding: 20px 0 120px;
  }
}
@media (max-width: 430px) {
  .stonehedge-timeline .timeline-title {
    font-size: 3vw;
  }
}

@media (hover: hover) {
  .stonehedge-timeline .timeline-prev:hover,
  .stonehedge-timeline .timeline-next:hover {
    background-color: transparent;
    border: 1px solid #8a0e12;
  }

  .stonehedge-timeline .timeline-prev:hover svg.icon-initial {
    transform: translateX(-18px);
    opacity: 0;
  }

  .stonehedge-timeline .timeline-prev:hover svg.icon-state {
    transform: translateX(0px);
    opacity: 1;
  }

  .stonehedge-timeline .timeline-next:hover svg.icon-initial {
    transform: translateX(18px);
    opacity: 0;
  }

  .stonehedge-timeline .timeline-next:hover svg.icon-state {
    transform: translateX(0px);
    opacity: 1;
  }
}
