/* =====================================================
   history.css  ─  연혁 페이지 전용 스타일
   common.css 로드 후 이 파일을 추가로 로드합니다.
   ===================================================== */


/* ─── 연혁 섹션 ──────────────────────────────────── */
#history-section {
  padding: 100px 0 140px;
  background: var(--white);
}

.hist-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ─── 섹션 헤더 ──────────────────────────────────── */
.hist-header {
  text-align: center;
  margin-bottom: 64px;
  animation: fadeUp 0.7s ease both;
}

.hist-sec-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hist-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700; line-height: 1.25;
  color: var(--navy);
}
.hist-headline em { color: var(--blue); font-style: normal; }

.hist-divider {
  width: 48px; height: 3px;
  background: var(--accent);
  margin: 20px auto 24px;
}

.hist-desc {
  font-size: 15px; line-height: 1.9;
  color: var(--text-sub);
  word-break: keep-all;
}


/* ─── 요약 카운터 바 ─────────────────────────────── */
.hist-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 36px 48px;
  margin-bottom: 80px;
  gap: 0;
  animation: fadeUp 0.7s 0.1s ease both;
  position: relative;
  overflow: hidden;
}
.hist-summary::after {
  content: 'STARTEC';
  position: absolute; right: 32px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px; letter-spacing: 8px;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}

.summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.summary-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; line-height: 1;
  color: var(--white);
  letter-spacing: 2px;
}
.summary-num span {
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0;
}

.summary-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.summary-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}


/* ─── 타임라인 레이아웃 ──────────────────────────── */
.hist-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hist-year-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  align-items: start;
}

.hist-year-block-last .hist-year-col {
  /* 마지막 연도는 연결선 없음 */
}


/* ─── 연도 컬럼 ──────────────────────────────────── */
.hist-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0;
  padding-top: 8px;
  position: relative;
}

/* 연도 뱃지 */
.hist-year-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; letter-spacing: 3px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
  margin-right: 28px;
  position: relative;
}

/* 타임라인 점 */
.hist-year-dot {
  position: absolute;
  right: -8px; top: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

/* 설립 연도 강조 점 */
.hist-year-dot-origin {
  width: 20px; height: 20px;
  right: -10px; top: 8px;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px rgba(26,58,107,0.2);
}

/* 설립 연도 뱃지 강조 */
.hist-year-badge-origin {
  color: var(--accent);
}

/* 수직 연결선 */
.hist-year-line {
  position: absolute;
  right: -1px; top: 26px;
  width: 2px;
  height: calc(100% + 48px);
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
  z-index: 1;
}


/* ─── 이벤트 컬럼 ────────────────────────────────── */
.hist-events-col {
  padding-left: 48px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid var(--border);
}

.hist-year-block-last .hist-events-col {
  border-left: 2px solid transparent;
}


/* ─── 이벤트 카드 ────────────────────────────────── */
.hist-event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-light);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.hist-event-card:hover {
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(37,99,200,0.12);
}

/* 월 배지 */
.event-month {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--blue-pale);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.hist-event-card:hover .event-month {
  background: var(--accent);
  color: var(--navy);
}


/* 이벤트 본문 */
.event-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-title {
  font-size: 15px; font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  word-break: keep-all;
}

.event-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}


/* ─── 애니메이션 ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── 반응형 ─────────────────────────────────────── */
@media (max-width: 720px) {
  .hist-container {
    padding: 0 20px;
  }

  .hist-year-block {
    grid-template-columns: 1fr;
  }

  .hist-year-col {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
  }

  .hist-year-badge {
    font-size: 30px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .hist-year-dot,
  .hist-year-line {
    display: none;
  }

  .hist-events-col {
    padding-left: 0;
    border-left: none;
    padding-bottom: 36px;
  }

  .hist-summary {
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 20px;
  }
  .summary-divider { display: none; }
  .summary-item { flex: 0 0 40%; }
}
