/* ===== 연혁 전체 영역 ===== */
.history-section {
  max-width: 940px;
  margin: 48px auto 200px;
}

/* ===== 탭 버튼 영역 ===== */
.history-tab {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.history-tab button {
  border: none;
  background: none;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 600;
  color: #d10000;
  border: 1px solid #d10000;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 33%;
}

.history-tab button.active {
    color: #ffffff;
    border-color: #d10000;
    background-color: #d10000;
}

/* ===== 타임라인 ===== */
.history-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-timeline li {
  margin-bottom: 40px;
}

.history-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;

}

.history-line .year {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  width: 68px;
}

.history-line .circle {
  margin-top: 13px;
  width: 12px;
  height: 12px;
  border: 6px solid #d10000;
  border-radius: 50%;
  background: #fff;
  position: relative;
}

/* 세로선 추가 */
.history-line .circle::before {
  content: '';
  position: absolute;
  top: 0px;
  bottom: -250px;
  left: 50%;
  width: 2px;
  background: #ccc;
  transform: translateX(-50%);
  z-index: -1;
}

.none .circle::before{
  background: #fff;
}

.history-line .content {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-top: 7px;
}

.history-line .month {
  font-weight: 600;
  margin-right: 8px;
  color: #888;
}


/* 이미지 포함 항목 */
.history-timeline .img-wrap {
  margin-top: 15px;
}

.history-timeline .img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== 반응형 ===== */
@media (max-width: 1660px) {
  .history-tab button {
    font-size: 18px;
    padding: 10px 16px;
  }
  .history-line .year{
    width: 54px;
  }
}

@media (max-width: 1660px) {
    .history-section{
        padding: 0 16px;
        margin: 0 auto 200px;
    }

  .history-timeline li {
    padding-left: 24px;
    margin-bottom: 30px;
  }
}
