.history-container {
  padding-top: 200px;
  padding-bottom: 260px;
  width: 100%;
  display: flex;
  justify-content: center;
  background: url('/Nhome/assets/images/company/history.jpg') lightgray 50% / cover
    no-repeat;
  background-color: var(--gray-000);
}

@media (max-width: 1279px) {
  .history-container {
    padding-top: 160px;
    padding-bottom: 200px;
  }
}

@media (max-width: 767px) {
  .history-container {
    padding-top: 100px;
    padding-bottom: 200px;
  }
}

.history-layout {
  max-width: 955px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 1279px) {
  .history-layout {
    width: 100%;
    padding: 0 26px;
    max-width: 100%;
    align-items: center;
  }
}

.history-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  margin-bottom: 160px;
}

@media (max-width: 767px) {
  .history-titles {
    margin-bottom: 120px;
  }
}

.history-content-layout {
  position: relative;
}

@media (max-width: 1279px) {
  .history-content-layout {
    width: 100%;
  }
}

/* svg 사이 라인 */
.timeline-line {
  position: absolute;
  top: 38px;
  left: 243px;
  width: 2px;
  height: calc(100% - 130px);
  background-color: var(--gray-200);
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 1279px) {
  .timeline-line {
    left: 193px;
  }
}

@media (max-width: 767px) {
  .timeline-line {
    left: 14.5px;
  }
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--blue-500);
  transition: height 0.5s ease-out;
  z-index: 1;
}

.timeline-line.active::before {
  height: var(--active-height, 0px);
}

/* 모바일에서 숨김 처리 */
@media (max-width: 767px) {
  .hide-on-mobile {
    display: none;
  }
}

/* Timeline Styling */
.history-content {
  position: relative;
  display: flex;
  gap: 160px;
  flex-direction: column;
}

@media (max-width: 767px) {
  .history-content {
    gap: 120px;
  }
}

.timeline-section {
  display: flex;
  gap: 60px;
}

@media (max-width: 1279px) {
  .timeline-section {
    gap: 38px;
  }
}

@media (max-width: 767px) {
  .timeline-section {
    gap: 40px;
  }
}

.timeline-contents-layout {
  display: flex;
  gap: 60px;
  padding-top: 27px;
}



@media (max-width: 1279px) {
  .timeline-contents-layout {
    gap: 38px;
  }
}

@media (max-width: 767px) {
  .timeline-contents-layout {
    gap: 25px;
  }
}

.timeline-icon {
  position: relative;
}

.timeline-icon img {
  width: 32px;
  height: 32px;
  z-index: 5;
  position: relative;
}

.timeline-data-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 767px) {
  .timeline-data-content {
    margin-top: 8px;
  }
}

.timeline-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
