/* ============================================================
   회사 연혁 — vertical timeline page
   ============================================================ */

.hist-badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ====================== Hero ====================== */
.hist-hero {
  background: #F0F7FF;
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hist-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.hist-hero .shell { position: relative; }
.hist-hero-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin: 20px 0 18px;
}
.hist-hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: #475569;
  font-weight: 400;
  margin: 0 0 56px;
  max-width: 580px;
}

.hist-stats {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hist-stat {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hist-stat:hover {
  border-color: #BFDBFE;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.hist-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.hist-stat-unit {
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  color: #60A5FA;
  letter-spacing: -0.01em;
}
.hist-stat-label {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}
@media (max-width: 860px) {
  .hist-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hist-hero { padding: 64px 0 48px; }
  .hist-hero-title { font-size: 36px; }
  .hist-hero-sub { font-size: 16px; margin-bottom: 40px; }
  .hist-stat { padding: 18px 20px; }
  .hist-stat-value { font-size: 26px; }
}

/* ====================== Timeline section ====================== */
.hist-timeline-section {
  background: #FFFFFF;
  padding: 80px 0 120px;
  position: relative;
}
.hist-timeline-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .hist-timeline-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hist-timeline-wrap { padding: 0 20px; }
}

/* ─ Right rail ─ */
.hist-rail {
  position: sticky;
  top: 96px;
  padding: 24px 0;
}
@media (max-width: 960px) {
  .hist-rail { display: none; }
}
.hist-rail-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94A3B8;
  margin-bottom: 16px;
  padding-left: 16px;
}
.hist-rail ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hist-rail-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-left: 2px solid #E2E8F0;
  color: #94A3B8;
  font-size: 13px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.hist-rail-link:hover {
  color: #475569;
  background: rgba(255,255,255,0.5);
}
.hist-rail-link.is-active {
  border-left-color: #2563EB;
  color: #2563EB;
  background: rgba(255,255,255,0.8);
}
.hist-rail-num {
  font-weight: 700;
  font-size: 13px;
}
.hist-rail-range {
  font-size: 11.5px;
  color: inherit;
  opacity: 0.7;
  font-feature-settings: 'tnum';
}

/* ─ Main timeline column ─ */
.hist-timeline {
  position: relative;
  padding-left: 0;
}

/* central vertical line — aligned with year-marker dot center (col1 96 + gap16 + col2 36/2 = 130) */
.hist-timeline-line {
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2563EB 0%, #93C5FD 20%, #CBD5E1 60%, #E2E8F0 100%);
  border-radius: 1px;
  transform: translateX(-1px);
}
@media (max-width: 720px) {
  .hist-timeline-line { left: 61px; }
}

/* ─ Chapter ─ */
.hist-chapter {
  position: relative;
  margin-bottom: 48px;
}
.hist-chapter:last-child { margin-bottom: 0; }

.hist-chapter-header {
  position: relative;
  padding: 32px 0 32px 168px;
  margin-bottom: 8px;
}
.hist-chapter-header::before {
  content: "";
  position: absolute;
  left: 121px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  transform: translateY(-50%) rotate(45deg);
}
.hist-chapter-header.is-current::before {
  border-color: #2563EB;
  background: #2563EB;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}
.hist-chapter-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2563EB;
  margin-bottom: 8px;
}
.hist-chapter-num { color: #2563EB; }
.hist-chapter-dot { color: #CBD5E1; }
.hist-chapter-range { color: #64748B; font-weight: 500; font-feature-settings: 'tnum'; }
.hist-chapter-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 0 0 16px;
}
.hist-chapter-line {
  display: block;
  width: 32px;
  height: 2px;
  background: #2563EB;
  border-radius: 1px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.hist-chapter-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
  max-width: 520px;
}

@media (max-width: 720px) {
  .hist-chapter-header { padding: 24px 0 24px 88px; }
  .hist-chapter-header::before { left: 54px; width: 14px; height: 14px; }
  .hist-chapter-title { font-size: 22px; }
  .hist-chapter-desc { font-size: 14px; }
}

/* ─ Year block ─ */
.hist-year {
  position: relative;
  display: grid;
  grid-template-columns: 96px 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px 0;
}
.hist-year + .hist-year {
  border-top: 1px dashed #E2E8F0;
}

.hist-year-label {
  text-align: right;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #94A3B8;
  font-feature-settings: 'tnum';
  padding-top: 16px;
  line-height: 1;
}
.hist-year.is-current .hist-year-label {
  color: #2563EB;
}

.hist-year-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.hist-year-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #94A3B8;
  box-shadow: 0 0 0 4px #FFFFFF;
  position: relative;
  z-index: 1;
  transition: transform .2s ease;
}
.hist-year.is-current .hist-year-dot {
  border-color: #2563EB;
  background: #2563EB;
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.hist-year-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

@media (max-width: 720px) {
  .hist-year {
    grid-template-columns: 44px 18px 1fr;
    gap: 8px;
  }
  .hist-year-label {
    font-size: 18px;
    padding-top: 16px;
  }
  .hist-year-marker { padding-top: 22px; }
  .hist-year-dot { width: 10px; height: 10px; border-width: 2px; }
}

/* ─ Event card ─ */
.hist-event {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hist-event:hover {
  border-color: #BFDBFE;
  border-left-color: #2563EB;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateX(2px);
}
.hist-event.is-highlight {
  border-left-color: #2563EB;
  background: linear-gradient(90deg, #F0F7FF 0%, #FFFFFF 30%);
}
.hist-event.is-cert {
  border-left-color: #10B981;
}
.hist-event.is-cert:hover {
  border-left-color: #059669;
}

.hist-event-month {
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: -0.01em;
  padding-top: 2px;
  font-feature-settings: 'tnum';
}
.hist-event.is-highlight .hist-event-month {
  color: #2563EB;
}

.hist-event-body { min-width: 0; }
.hist-event-text {
  font-size: 14.5px;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hist-event.is-highlight .hist-event-text {
  font-weight: 600;
  color: #0F172A;
}
.hist-event-sub {
  font-size: 12.5px;
  color: #64748B;
  margin: 4px 0 0;
  line-height: 1.5;
}

.hist-cert-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #FFFFFF;
  background: #10B981;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hist-event {
    grid-template-columns: 36px 1fr;
    padding: 12px 14px;
    gap: 10px;
  }
  .hist-event-text { font-size: 13.5px; }
}

/* ====================== CTA ====================== */
.hist-cta {
  background: #0F172A;
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hist-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hist-cta .shell { position: relative; }
.hist-cta-title {
  font-size: 34px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hist-cta-sub {
  font-size: 17px;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0 0 36px;
}
.hist-cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.hist-btn:hover { transform: translateY(-1px); }
.hist-btn-primary {
  background: #2563EB;
  color: #FFFFFF;
}
.hist-btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.hist-btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}
.hist-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 720px) {
  .hist-cta { padding: 72px 0; }
  .hist-cta-title { font-size: 24px; }
  .hist-cta-sub { font-size: 15px; }
  .hist-cta-actions { flex-direction: column; width: 100%; }
  .hist-btn { justify-content: center; width: 100%; }
}
