@charset "utf-8";
/* ═══════════════════════════════════════════
   history.css — history.php(회사연혁) 전용 스타일
   공통 영역(reset/root/body/sub-nav/page-title/breadcrumb)은
   style.css + page-common.css 에 있으므로 여기서는 재정의하지 않습니다.
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   🎯 HISTORY TIMELINE STYLE
═══════════════════════════════════════════ */
.history-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px 30px;
}
.vertical-divider {
  display: inline-block;
  width: 1px;
  height: 28px;
  background-color: #ccc;
  margin: 0 10px;
}
.title { text-align: center; }
.title h4 {
  font-size: 100px;
  color: #f1f1f1;
  font-weight: 700;
  padding-bottom: 30px;
}
.timeline_container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  width: 100%;
  margin-top: 20px;
}
.timeline-fixed-line {
  position: absolute;
  left: 50%; 
  top: 0%;
  margin-left: -0.5px;
  height: calc(100% - 45px); 
  width: 1px; 
  background: #ddd;
}
.timeline-fixed-line .line {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  background-color: #ff0000;
  transition: none !important; 
}
.timeline-fixed-line .dot {
  position: absolute;
  left: 50%; 
  bottom: 0;
  transform: translate(-50%, -50%); 
  width: 12px; 
  height: 12px;
  background: #ff0000;
  border-radius: 50%;
  z-index: 3;
  transition: none !important; 
}
.timeline-fixed-line .dot::before {
  content: "";
  width: 45px; 
  height: 45px;
  border-radius: 100%;
  background: rgba(255, 40, 42, 0.10);
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
}
.timeline-item::after {
    content: "";
    position: absolute;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 100%;
    z-index: 2;
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
  width: 100%;
}
.timeline-item .timeline-img,
.timeline-item .timeline-content {
  width: 46%;
}

.timeline-item .timeline-text-wrapper {
  width: 100%;
  max-width: 480px;
  display: inline-block;
}

/* 💡 [왼쪽 정렬 아이템] */
.timeline-item.left { 
  justify-content: flex-start; 
}
.timeline-item.left .timeline-img { 
  display: flex; 
  justify-content: flex-end; 
}

.timeline-item.left .timeline-content { 
  display: flex;
  justify-content: flex-end; /* 💡 오른쪽으로 밀착 */
  text-align: left; 
  padding-left: 0px;        /* 불필요한 고정 패딩 제거 */
}

/* ── 💡 [오른쪽 아이템: 2025년 스타일] ── */
.timeline-item.right { 
  justify-content: flex-end; 
}
/* 텍스트 컨테이너 안에서 wrapper를 '왼쪽(중앙선 쪽)'으로 밀어서 위 사진 라인과 일치시킴 */
.timeline-item.right .timeline-content { 
  display: flex;
  justify-content: flex-start; /* 💡 왼쪽으로 밀착 */
  text-align: left; 
  padding-right: 0px;        /* 불필요한 고정 패딩 제거 */
}
/* 이미지는 왼쪽 끝(중앙선 쪽)으로 붙임 */
.timeline-item.right .timeline-img { 
  display: flex; 
  justify-content: flex-start; 
}

/* ── 💡 [공통] 타이틀 및 본문 정렬 보장 ── */
.timeline-item.left .timeline-text-wrapper h4,
.timeline-item.right .timeline-text-wrapper h4 {
  text-align: left;
}

.timeline-item .timeline-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
/*  box-shadow: 0 10px 25px rgba(0,0,0,0.05);*/
}
.timeline-item h4 {
  font-size: 46px;
  font-weight: 700;
  color: #c40000;
  margin-bottom: 10px;
}
.timeline-item p {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
}
.timeline-item .timeline-desc {
  display: grid;
  grid-template-columns: minmax(85px, auto) 1fr; /* [앞쪽 월 이름 너비 고정] [나머지 본문 100%] */
  gap: 12px;                        /* 월 이름과 본문 사이의 간격 */
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
  align-items: start;               /* 두 줄이 되어도 위쪽 기준 정렬 */
}

.timeline-item p strong {
  color: #111;
  font-size:20px;
  font-weight: 600;
  margin-right: 0; 
  white-space: normal;               /* 글자가 아래로 깨져서 내려가지 않도록 방지 */
}

.timeline-item p span {
  color: #111;
  font-size:16px;
  font-weight: 400;
  margin-right: 0; 
}

/* 오른쪽 아이템 내의 텍스트가 왼쪽 정렬되도록 보장 */
.timeline-item.right .timeline-text-wrapper {
  text-align: left;
  width: 100%;
}
.timeline-item.right .timeline-text-wrapper h4 {
  text-align: left;
}


/* ══════════════════════════════
   🎯 NEW: iPad 및 중간 크기 대응 (1200px 이하)
══════════════════════════════ */
@media (max-width: 1200px) and (min-width: 769px) {
  /* 타임라인 섹션 자체의 여백 추가 */
  .history-section {
    padding: 0 30px 30px;
  }

  /* 텍스트 내용의 최대 너비를 더 줄여 중앙선과 간격 확보 */
  .timeline-item .timeline-text-wrapper {
    max-width: none;
    width: 100%;
  }


  .timeline-item .timeline-img,
  .timeline-item .timeline-content {
   width: calc(50% - 15px);
    }

  .timeline-item.left .timeline-text-wrapper{
        padding-left:50px;
    }

    .timeline-item.right .timeline-text-wrapper{
        padding-right:50px;
    }

  /* 사진의 최대 너비 제한 (너무 커지지 않도록) */
  .timeline-item .timeline-img img {
    max-width: 400px;/* 아이패드에서 사진이 너무 커지지 않도록 제한 */
    margin-left: auto; /* 왼쪽 아이템 사진 우측 정렬 */
    margin-right: auto; /* 오른쪽 아이템 사진 좌측 정렬 */
    display: block;
  }

  /* 왼쪽 아이템 사진의 세부 정렬 */
  .timeline-item.left .timeline-img img {
    margin-left: 30px; /* 사진과 중앙선 사이 간격 */
    margin-right: auto;
  }

  /* 오른쪽 아이템 사진의 세부 정렬 */
  .timeline-item.right .timeline-img img {
    margin-right: 30px; /* 사진과 중앙선 사이 간격 */
    margin-left: auto;
  }
}


/* ═══════════════════════════════════════════
   🎯 SCROLL FADE-IN ANIMATION
═══════════════════════════════════════════ */
.fade-in-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   HORIZONTAL SCROLL WRAPPER (mobile projects)
═══════════════════════════════════════════ */
.scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-wrapper::-webkit-scrollbar { display: none; }

/* Swipe hint dots */
.swipe-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.swipe-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ccc;
  transition: background .3s;
}
.swipe-dots span.active { background: var(--green); }

/* ══════════════════════════
   RESPONSIVE  ≤ 1024px 
══════════════════════════ */
@media (max-width: 1024px){
  .sub-nav { top: 76px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px; 
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  
  .sub-nav-inner a { padding: 0 20px; font-size: 14px; }
  .sub-nav-inner a::before { display: none; } 

  
  .breadcrumb-bar::after {
    margin: 0 auto 30px;  /* 기존 PC용 60px에서 30px로 절반 축소 */
  }

  /* Footer */
  footer { padding: 36px 24px 20px !important; width: 100% !important; box-sizing: border-box !important; }
  .footer-inner { width: 100% !important; max-width: 100% !important; padding: 0 28px; box-sizing: border-box !important; }
  .footer-top { flex-direction: column; gap: 20px; }
}


/* ⚙ 이 페이지만 breadcrumb 여백이 공통값(page-common.css)과 달라서 오버라이드 */
.breadcrumb { padding-bottom: 70px; }
.breadcrumb-bar::after { margin-bottom: 60px; }

/* ══════════════════════════
   RESPONSIVE ≤ 768px (모바일 및 타임라인 통합 보정)
══════════════════════════ */
@media (max-width: 768px) {
  .sub-nav { top: 52px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  .sub-nav-inner a { padding: 0 18px; font-size: 14px; }

  .page-title-block { padding: 60px 0 0; }
  .page-title-block h1 { font-size: 24px; }
  .title h4 { font-size: 60px; }
  .breadcrumb-bar::after { margin: 0 20px 30px; }
  .history-section { padding: 0 20px 40px; }    
    
  /* 타임라인 모바일 정렬 */
  .timeline-fixed-line { left: 10px; transform: none; }
  .timeline-fixed-line .dot { left: 50%; }
  
  .timeline-item { 
    flex-direction: column; 
    align-items: flex-start; 
    margin-bottom: 60px; 
    padding-left: 40px; 
  }
  .timeline-item:last-child { margin-bottom: 0px !important; }
  .timeline-item .timeline-img, 
  .timeline-item .timeline-content { width: 100%; text-align: left !important; padding: 0 !important; }
  
  .timeline-item .timeline-img { order: 1; margin-bottom: 15px; }
  .timeline-item .timeline-content { order: 2; }
  
  .timeline-item.left .timeline-img,
  .timeline-item.right .timeline-img { justify-content: flex-start; }
  .timeline-item.right .timeline-content { margin-bottom: 0; }

  .timeline-item h4 { font-size: 32px; }
  .timeline-item p { font-size: 18px; }

  /* 🎯 모바일 푸터 레이아웃 완벽 일치 */
  footer { padding: 28px 16px 16px !important; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-info { font-size: 16px; color: var(--text); line-height: 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { padding: 0 14px; }
  .footer-family { margin-top: 20px; }
} /* 💡 768px 미디어쿼리를 닫아주는 중괄호 배치 완료 */


/* ═══════════════════════════════════════════
     SMALL MOBILE (≤ 390px)  
═══════════════════════════════════════════ */
@media (max-width: 390px) {
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 11px; }
}