/* ============================================================
   History Page Only
   ============================================================ */

html {
  overflow-y: scroll;
}


/* ============================================================
   History Sections — 2-column alternating layout
   ============================================================ */
.wd-history {
  background: var(--wd-surface-white);
}

.wd-history__header {
  padding: 120px 0 0;
  max-width: var(--wd-container-content);
  margin: 0 auto;
  padding-left: var(--wd-container-padding);
  padding-right: var(--wd-container-padding);
}

/* 각 연도 범위 섹션 */
.wd-history-section {
  padding: 120px 0;
}

.wd-history-section:nth-child(odd) {
  background: var(--wd-surface-light);
}

.wd-history-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--wd-container-content);
  margin: 0 auto;
  padding: 0 var(--wd-container-padding);
}

/* 짝수 섹션: 이미지/텍스트 위치 반전 */
.wd-history-section--reverse .wd-history-section__grid {
  direction: rtl;
}

.wd-history-section--reverse .wd-history-section__grid > * {
  direction: ltr;
}

/* 이미지 영역 — placeholder */
.wd-history-section__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--wd-surface-subtle);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.wd-history-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 텍스트 영역 */
.wd-history-section__body {
  display: flex;
  flex-direction: column;
}

.wd-history-section__title {
  font-family: var(--wd-font-secondary);
  font-size: 56px;
  font-weight: 800;
  color: var(--wd-text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.wd-history-section__title span {
  font-weight: 800;
  color: var(--wd-text-primary);
}

/* 연혁 항목 리스트 */
.wd-history-section__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-history-section__item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--wd-border-light);
}

.wd-history-section__item:first-child {
  border-top: 1px solid var(--wd-border-light);
}

.wd-history-section__year {
  font-family: var(--wd-font-secondary);
  font-size: 28px;
  font-weight: 700;
  color: var(--wd-text-primary);
  line-height: 1.4;
  flex-shrink: 0;
  min-width: 110px;
}

.wd-history-section__desc {
  font-size: 18px;
  font-weight: 500;
  color: var(--wd-text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}


/* ============================================================
   Responsive — Tablet (≤1080px)
   ============================================================ */
@media (max-width: 1080px) {
  .wd-history__header { padding: 80px 0 0; }

  .wd-history-section { padding: 80px 0; }

  .wd-history-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* reverse 해제: 항상 이미지 → 텍스트 순서 */
  .wd-history-section--reverse .wd-history-section__grid {
    direction: ltr;
  }

  .wd-history-section__image {
    aspect-ratio: 16 / 9;
  }

  .wd-history-section__title {
    font-size: 44px;
    margin-bottom: 36px;
  }

  .wd-history-section__year { font-size: 18px; min-width: 72px; }
  .wd-history-section__desc { font-size: 15px; }
}


/* ============================================================
   Responsive — Mobile (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  .wd-history__header { padding: 60px 0 0; padding-left: 20px; padding-right: 20px; }

  .wd-history-section { padding: 56px 0; }

  .wd-history-section__grid {
    gap: 32px;
    padding: 0 20px;
  }

  .wd-history-section__title {
    font-size: 34px;
    margin-bottom: 28px;
  }

  .wd-history-section__item {
    gap: 16px;
    padding: 14px 0;
  }

  .wd-history-section__year { font-size: 16px; min-width: 64px; }
  .wd-history-section__desc { font-size: 14px; }
}
