/* =============================================
   Company History — company_history.css
   포인트 컬러: #2a94d3  |  기본 본문 15px
============================================= */

/* --- 공통 유틸 --- */
.company-main { overflow: visible; }

.ci-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- 레이블 (작은 영문 강조) --- */
.ci-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #2a94d3;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.ci-label--center { text-align: center; }

/* --- 섹션 헤딩 (크고 굵게) --- */
.ci-heading {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  color: #0d0d0d;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 64px;
}
.ci-heading--center { text-align: center; }

/* =============================================
   Hero (공통 구조)
============================================= */
.ci-hero {
  position: relative;
  height: 340px;
  background-image: url('https://images.unsplash.com/photo-1504439468489-c8920d796a29?w=1600&q=85&fit=crop');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ci-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.58);
}
.ci-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.ci-hero__en {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 14px;
}
.ci-hero__title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* =============================================
   연혁 섹션
============================================= */
.history-section {
  padding: 90px 0 110px;
  background: #fff;
}

/* =============================================
   타임라인
============================================= */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* 세로 중앙선 */
.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #d8edf8 8%,
    #2a94d3 50%,
    #d8edf8 92%,
    transparent 100%
  );
}

/* -----------------------------------------------
   연도 타이틀
----------------------------------------------- */
.tl-year {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 12px;
  z-index: 1;
}
.tl-year:first-child { margin-top: 0; }

.tl-year span {
  display: inline-block;
  width: 98px;
  font-size: 42px;
  font-weight: 900;
  color: #0d0d0d;
  letter-spacing: -0.04em;
  text-align: right;
  padding-right: 22px;
  line-height: 1;
  position: relative;
}

/* 연도 우측 원 마커 */
.tl-year span::after {
  content: '';
  position: absolute;
  right: -33px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2a94d3;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2a94d3;
}

/* 현재 연도 강조 */
.tl-year--current span {
  color: #2a94d3;
}
.tl-year--current span::after {
  width: 18px;
  height: 18px;
  right: -10px;
  box-shadow: 0 0 0 4px rgba(42, 148, 211, 0.2);
}

/* -----------------------------------------------
   개별 아이템
----------------------------------------------- */
.tl-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 6px;
}

/* 점 */
.tl-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8d8e4;
  margin-top: 20px;
  margin-left: 116px;
  position: relative;
  z-index: 1;
  transition: background 0.2s;
}
.tl-item:hover .tl-dot { background: #2a94d3; }
.tl-dot--current {
  background: #2a94d3;
  box-shadow: 0 0 0 4px rgba(42, 148, 211, 0.18);
}

/* 카드 */
.tl-card {
  margin-left: 18px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 15px 22px;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 18px;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.tl-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateX(5px);
  border-color: #d0e8f5;
}

/* 포인트 카드 */
.tl-card--point,
.tl-card--current {
  border-left: 4px solid #2a94d3;
  background: #f0f8fd;
  border-color: #c8e4f5;
}

/* 월 */
.tl-month {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #2a94d3;
  letter-spacing: 0.06em;
  min-width: 32px;
  text-transform: uppercase;
}

/* 본문 텍스트 — 기본 15px */
.tl-card p {
  margin: 0;
  font-size: 15px;
  color: #2c2c2c;
  line-height: 1.65;
  font-weight: 500;
}

/* 포인트 카드 본문 살짝 강조 */
.tl-card--point p,
.tl-card--current p {
  font-weight: 600;
  color: #111;
}

/* Reveal 순차 딜레이 */
.tl-group .tl-item.reveal:nth-child(1) { transition-delay: 0s;    }
.tl-group .tl-item.reveal:nth-child(2) { transition-delay: 0.09s; }
.tl-group .tl-item.reveal:nth-child(3) { transition-delay: 0.18s; }

/* =============================================
   Tablet (≤900px)
============================================= */
@media (max-width: 900px) {
  .ci-hero { height: 260px; }
  .history-section { padding: 70px 0 90px; }

  .tl-year span { font-size: 34px; }
  .tl-card p   { font-size: 15px; }
}

/* =============================================
   Mobile (≤600px)
============================================= */
@media (max-width: 600px) {
  .ci-hero         { height: 200px; }
  .ci-hero__en     { font-size: 11px; }

  .history-section { padding: 48px 0 64px; }
  .ci-inner        { padding: 0 16px; }
  .ci-heading      { margin-bottom: 40px; font-size: clamp(26px, 6vw, 34px); }

  /* 선 왼쪽 정렬 */
  .timeline::before { left: 14px; }

  .tl-year { margin-top: 40px; }
  .tl-year span {
    width: auto;
    font-size: 26px;
    padding-right: 0;
    padding-left: 34px;
    text-align: left;
  }
  .tl-year span::after {
    left: 8px;
    right: auto;
  }
  .tl-year--current span::after { left: 6px; }

  .tl-dot {
    margin-left: 10px;
    margin-top: 18px;
  }

  .tl-card {
    margin-left: 10px;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 6px;
  }
  .tl-card p     { font-size: 14px; }
  .tl-month      { font-size: 12px; min-width: 26px; }
}
