/* =========================================================
   연혁 / History (ko|en/history.html)
   Figma: 43:222 KO, 283:2455 EN, 2803:2800 mobile
   ========================================================= */
.history-content { gap: 120px; }

/* ---------- heading: logo + company name + copy ---------- */
.history-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.history-heading__logo { display: flex; align-items: center; gap: 12px; }
.history-heading__mark { width: 40px; height: 42.099px; flex-shrink: 0; }
.history-heading__name { flex-shrink: 0; }

/* KO: "(주)나노화인" logotype (KIMM font, outlined SVG) + "의 발자취를 소개합니다" */
html[lang="ko"] .history-heading { align-items: flex-start; gap: 4px; }
html[lang="ko"] .history-heading__logo { align-self: stretch; }
html[lang="ko"] .history-heading__name { width: 224px; height: 38px; margin-right: 7px; }  /* text box 231px in design */

/* EN: "The Footsteps Of The" + logo + "NANOHWAIN" */
html[lang="en"] .history-heading { align-items: center; gap: 0 16px; }
html[lang="en"] .history-heading__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1.2px;
  color: var(--point-2);
}

/* ---------- timeline ---------- */
.history-list {
  --line-x: 200px;               /* vertical line position */
  --row-indent: 100px;           /* line → year text */
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-left: var(--line-x);
}
.history-list::before {          /* vertical line */
  content: '';
  position: absolute;
  left: var(--line-x);
  top: -41px;
  bottom: -38px;
  width: 1px;
  background: var(--gray-3);
}
.history-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-left: var(--row-indent);
}
.history-item__mark {            /* dot on the line + connector */
  position: absolute;
  left: -10px;
  top: 13px;
  width: 91px;
  height: 21px;
  object-fit: cover;
  object-position: left center;
  transform-origin: 10.5px 50%;
  transition: transform .2s;
}
.history-item:hover .history-item__mark { transform: scale(1.15); }
.history-item__year {
  font-weight: 900;
  font-size: 38px;
  line-height: 45px;
  letter-spacing: -1.14px;
  color: #000;
  transition: color .2s;
}
.history-item:hover .history-item__year { color: var(--point-2); }
.history-item__txt {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  font-size: 20px;
  line-height: 29px;
  color: #000;
}
.history-item__txt li { position: relative; padding-left: 16px; }
.history-item__txt li::before {
  content: '-';
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.history-item__txt em { font-style: normal; font-weight: 500; color: var(--point-1); white-space: nowrap; }
html[lang="ko"] .history-item__txt { letter-spacing: -0.6px; }
html[lang="en"] .history-item__txt { letter-spacing: -0.34px; text-transform: capitalize; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .history-list { --line-x: 80px; --row-indent: 100px; }
}

/* =========================================================
   Mobile (Sub_회사소개_연혁_m)
   ========================================================= */
@media (max-width: 768px) {
  .history-content { gap: 100px; }   /* 60 gap + 40 list padding in design */

  .history-heading__mark { width: 22px; height: 24px; }
  .history-heading__logo { gap: 4px; }
  html[lang="ko"] .history-heading { flex-wrap: nowrap; gap: 0; white-space: nowrap; }
  html[lang="ko"] .history-heading__name { width: 112px; height: 19px; margin-right: 4px; }
  html[lang="en"] .history-heading { gap: 4px 8px; }
  html[lang="en"] .history-heading__name { font-size: 22px; letter-spacing: -0.66px; color: var(--point-1); }

  .history-list { --line-x: 16px; --row-indent: 68px; }
  .history-item__mark { width: 59px; }          /* mark_m: shorter connector */
  .history-item__year { font-size: 28px; line-height: 33px; letter-spacing: -0.84px; }
  .history-item__txt { font-size: 16px; line-height: 19px; }
  .history-item__txt li { padding-left: 10px; }
  .history-item__txt li::before { font-weight: 400; letter-spacing: -0.48px; }
  .history-item__txt em { font-weight: 400; }
  html[lang="ko"] .history-item__txt,
  html[lang="en"] .history-item__txt { letter-spacing: -0.48px; }
}
@media (max-width: 359px) {
  html[lang="ko"] .history-heading { flex-wrap: wrap; white-space: normal; }
}
@media (min-width: 1025px) {
  html[lang="en"] .history-item__txt li { white-space: nowrap; }   /* 2018 line is 688px in a 696px column */
}
