.websima-history-section {
  position: relative;
  padding: 60px 0;
}

.websima-history-slider-wrapper {
  position: relative;
  margin-top: 4rem;
}
.websima-history-main-wrap {
  position: relative;
  z-index: 5;
}
.websima-history-slider .swiper-slide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  width: 100% !important;
  height: auto !important;
}
.websima-history-slider .swiper-wrapper {
  --swiper-wrapper-transition-timing-function: cubic-bezier(
    0.46,
    0.03,
    0.52,
    0.96
  );
  align-items: stretch;
}
.websima-history-slide {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  height: 450px !important;
}
.history-thumb-side {
  flex-shrink: 0;
  width: 26%;
  opacity: 0.4;
  transition: all 0.4s ease;
  cursor: pointer;
  height: 300px;
  display: flex;
  align-items: flex-start;
}
.history-thumb-right {
  order: 3;
}
.history-thumb-left {
  order: 1;
}
.side-thumb-image {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(30%);
  transition: all 0.4s ease;
}
.history-thumb-side:hover {
  opacity: 0.7;
}
.history-thumb-side:hover .side-thumb-image {
  filter: grayscale(0%);
}
.websima-history-slide-inner {
  order: 2;
  flex-shrink: 0;
  width: 45%;
  display: block;
  text-decoration: none;
  position: relative;
  z-index: 10;
  height: 300px;
}
.websima-history-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #212121;
  height: 100%;
}
.websima-history-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}
.websima-history-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 25px;
  color: #fff;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: 0.5s ease;
}
.websima-history-title {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s 0.2s ease-out;
}
.websima-history-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s 0.35s ease-out;
}
.swiper-timeline .swiper-slide-active .websima-history-content {
  opacity: 1;
}

.swiper-timeline .swiper-slide-active .websima-history-title,
.swiper-timeline .swiper-slide-active .websima-history-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .websima-history-slide {
    height: 350px !important;
  }
  .history-thumb-side {
    width: 25%;
  }
  .websima-history-slide-inner {
    width: 50%;
  }
}
@media (max-width: 768px) {
  .websima-history-slide {
    height: 280px !important;
  }
  .history-thumb-side {
    width: 30%;
  }
  .websima-history-slide-inner {
    width: 40%;
  }
  .websima-history-image-wrap {
    border-radius: 12px;
  }
  .websima-history-content {
    padding: 25px 20px 15px;
  }
}

.websima-history-timeline {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100% !important;
  margin-top: 50px;
  position: relative !important;
  bottom: auto !important;
  padding: 0 30px;
  box-sizing: border-box;
}
.websima-history-timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #b3b3b3 0,
    #b3b3b3 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 1;
}
.websima-history-nav {
  z-index: 10;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}
.websima-history-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  position: relative;
}
@media (max-width: 992px) {
  .websima-history-image-wrap {
    height: 300px;
  }
}

.swiper-pagination-bullet.history-bullet {
  background: none;
  opacity: 1;
  width: auto;
  height: auto;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  outline: none;
  border: none;
  cursor: pointer;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background-color: #666;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: all 0.4s ease;
}

.swiper-pagination-bullet-active .timeline-dot {
  background-color: var(--color2);
}
.timeline-date {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #666;
  font-weight: bold;
}
.swiper-pagination-bullet-active .timeline-date {
  color: #fff;
}
@media (max-width: 768px) {
  .websima-history-slide {
    height: 350px !important;
    gap: 0 !important;
  }

  .history-thumb-side {
    display: none !important;
  }

  .websima-history-slide-inner {
    width: 100% !important;
    order: 1 !important;
  }

  .websima-history-timeline {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    gap: 30px;
    padding: 0 20px;
  }

  .websima-history-timeline::-webkit-scrollbar {
    display: none;
  }

  .websima-history-timeline .swiper-pagination-bullet {
    flex-shrink: 0;
  }

  .timeline-date {
    font-size: 0.9rem;
  }

  .timeline-dot {
    width: 14px;
    height: 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .websima-history-slide {
    height: 380px !important;
  }
}

@media (max-width: 768px) {
  .websima-history-timeline {
    justify-content: center;
    gap: 0;
    padding: 0;
    overflow-x: visible;
  }
}

.swiper-pagination-bullet.history-bullet:only-child {
  display: flex !important;
}

/* container */
.swiper-timeline .swiper-slide {
  width: 33.333%;
  height: auto;
  flex-shrink: 0;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.swiper-timeline .swiper-slide .timeline-item {
  transform: scaleX(0.6);
  transition: 0.7s ease;
  overflow: hidden;
  height: 350px;
}
/* Active (center) slide */
.swiper-timeline .swiper-slide-active .timeline-item {
  opacity: 1;
  transform: scaleX(1.4);
}
@media screen and (max-width: 991.99px) {
  .swiper-timeline .swiper-slide-active .timeline-item {
    transform: scaleX(1);
  }
}
.timeline-item:before {
  content: "";
  width: 100%;
  height: 50%;
  position: absolute;
  right: 0;
  bottom: -30px;
  opacity: 0;
  transition: 0.4s ease;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.swiper-timeline .swiper-slide-active .timeline-item:before {
  bottom: 0;
  opacity: 1;
}
.timeline-item {
  border-radius: 16px;
  overflow: hidden;

  position: relative;
  width: 100%;
  height: 100%;
}
.timeline-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swiper-timeline-date {
  width: 100%;
  overflow: hidden;
  margin-top: 18px;
  position: relative;
}
.swiper-timeline-date .swiper-wrapper {
  align-items: center;
}
.swiper-timeline-date .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  height: 62px;
}
.swiper-timeline-date .swiper-slide-thumb-active {
  opacity: 1;
}
.swiper-timeline-date::before {
  content: "";
  position: absolute;
  top: 13px; /* align with dot center */
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    to left,
    rgba(255, 255, 255, 0.3) 0px,
    rgba(255, 255, 255, 0.3) 6px,
    transparent 6px,
    transparent 12px
  );
  z-index: 0;
  pointer-events: none;
}
.timeline-date-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #a3a2a0;
  border: 2px solid #fff;
  position: relative;
  z-index: 1;
  transition: 0.4s ease;
  flex-shrink: 0;
}
.swiper-slide-active .timeline-date-dot {
  width: 17px;
  height: 17px;
  background: #218873;
  box-shadow: 0px 0px 12px 0px #ffffff40;
}
.timeline-date {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
  transition: 0.4s ease;
  white-space: nowrap;
  line-height: 1;
}
.swiper-slide-active .timeline-date {
  font-size: 24px;
}
.websima-timeline-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.websima-timeline-nav {
  z-index: 10;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
  user-select: none;
}
.websima-timeline-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.08);
}
.websima-timeline-nav:active {
  transform: scale(0.94);
}
.websima-timeline-nav.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
