.history-bg {
  padding: 48px 32px;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #0086c9 0%, rgba(0, 66, 99, 0.2) 100%),
    url("../img/history/history-bg.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 24px;
}
.history__container {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.history__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.history__desc {
  max-width: 810px;
  margin: 0 auto;
}
.history__info {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 18px;
  justify-content: flex-start;
  white-space: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
}

.history-line {
  position: absolute;
  top: 66px; 
  height: 2px;
  background: white;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  left: 0;
}


.history__info-track {
  display: flex;
  gap: 24px;
  position: relative;
  padding-left: 20px;
  padding-right: 20px;
}

 .history-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; 
}

.history-year {
  font-size: 38px;
  font-weight: 500;
  color: white;
  padding-bottom: 20px;
  line-height: 1;
}

.history-dot {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 66px;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.history-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.history-item .history-year.active + .history-dot::after,
.history-dot:hover::after {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(2);
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  padding: 24px 32px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  width: 330px;
  border: 1px solid #2e90fa;
  box-sizing: border-box;
}
.history-card h4 {
  font-size: 24px;
  line-height: 32px;
  margin: 0;
  color: #000;
}
.history-tag {
  font-size: 18px;
  line-height: 28px;
  color: #475467;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: wrap !important;
}
@media (max-width: 768px) {
  .history-bg {
    padding: 32px 18px;
  }
  .history__container {
    gap: 32px;
  }
  .history__header {
    gap: 16px;
  }
  .history-line{
    top: 18%;
    left: 50%;
  }
  .history__info-track {
    gap: 18px;
    padding: 0;
  }
  .history-year {
    font-size: 32px;
  }
  .history-card {
    width: 307px;
    height: auto;
    gap: 22.33px;
    padding: 22.33px 29.77px;
    border-radius: 22.33px;
    border: 0.93px solid #2E90FA;
  }
  .history-card h4{
    font-size: 18px;
  }
  .history-tag{
    font-size: 14px;
  }
  .history-dot{
    top: 58px;
  }
}
