/* ========================================
   히스토리 / 타임라인 섹션
   ======================================== */

/* #history {
  background: linear-gradient(180deg, #f5f0e8 0%, #ede7dd 100%);
} */

#history .container {
  max-width: 1000px;
}

#history h2 {
  color: #1a3049;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  padding: 60px 0;
}

/* 중앙 수직 라인 */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1a3049;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.entry:last-child {
  margin-bottom: 0;
}

/* 중앙 도트 */
.entry::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a3049;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgb(26 48 73 / 30%);
  z-index: 2;
}

.entry img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* 홀수 엔트리 (왼쪽에 연도, 오른쪽에 내용) */
.entry:nth-child(odd) .when {
  grid-column: 1;
  text-align: right;
  padding-right: 40px;
}

.entry:nth-child(odd) .what {
  grid-column: 2;
  text-align: left;
  padding-left: 40px;
}

/* 짝수 엔트리 (왼쪽에 내용, 오른쪽에 연도) */
.entry:nth-child(even) .what {
  grid-column: 1;
  text-align: right;
  padding-right: 40px;
  order: 1;
}

.entry:nth-child(even) .when {
  grid-column: 2;
  text-align: left;
  padding-left: 40px;
  order: 2;
}

/* 연도 스타일 */
.when {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #1a3049;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (width <= 768px) {
  .when {
    font-size: 1.8rem !important;
  }
}

/* 내용 스타일 */
.what {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  font-family: Georgia, 'Noto Serif KR', serif;
}

.what img {
  margin-top: 16px;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;

  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
  display: block;
}

/* 홀수 엔트리의 이미지는 오른쪽 정렬 */
.entry:nth-child(odd) .what img {
  margin-left: 0;
}

/* 짝수 엔트리의 이미지는 왼쪽 정렬 */
.entry:nth-child(even) .what img {
  margin-right: 0;
}

/* 반응형 */
@media (width <= 768px) {
  .timeline::before {
    left: 30px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 70px;
    margin-bottom: 50px;
  }

  .entry::before {
    left: 30px;
    transform: translate(-50%, 0);
    top: 10px;
  }

  .entry:nth-child(odd) .when,
  .entry:nth-child(even) .when {
    grid-column: 1;
    text-align: left;
    padding: 0;
    order: 1;
    font-size: clamp(36px, 8vw, 48px);
  }

  .entry:nth-child(odd) .what,
  .entry:nth-child(even) .what {
    grid-column: 1;
    text-align: left;
    padding: 0;
    order: 2;
    font-size: clamp(16px, 4vw, 20px);
  }
}
