/* about-nibec-history.css */
/* Figma: 1920×9107 | Node 3944:10151 (2-2. About NIBEC > History) */

/* ========== 01-header ========== */
/* Figma: 1920×400 | pad LR:320 B:40, VERTICAL align MAX (bottom) */

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 25rem; /* 400px */
  padding: 0 clamp(1.25rem, 16.67vw, 20rem) 2.5rem; /* LR:320 B:40 */
  background-color: #ffffff;
  box-sizing: border-box;
}

.page-header__inner {
  width: 100%;
  max-width: 80rem; /* 1280px */
}

.page-header__content {
  display: flex;
  align-items: center;
  gap: 2.1875rem; /* 35px */
  padding: 0.375rem 0; /* 6px TB */
}

.page-header__accent {
  width: 0.625rem; /* 10px */
  align-self: stretch;
  background-color: var(--logogreen);
  flex-shrink: 0;
}

/* Figma: Paperlogy Bold 60px, #006241 */
.page-header__title {
  font-family: var(--font-paperlogy);
  font-size: clamp(1.75rem, 3.125vw, 3.75rem); /* 60px at 1920 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--logogreen);
  margin: 0;
}

/* Tablet */
@media (max-width: 1199px) {
  .page-header {
    height: auto;
    min-height: 15rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .page-header__content {
    gap: 1rem;
  }

  .page-header__accent {
    width: 0.375rem;
  }
}

/* ========== 02-navbar-index ========== */
/* Figma: 1920×72 | pad LR:320 T:30, bg white */

.navbar-index {
  width: 100%;
  padding: 1.875rem clamp(1.25rem, 16.67vw, 20rem) 0; /* T:30 LR:320 */
  background-color: #ffffff;
  box-sizing: border-box;
}

.navbar-index__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-index__link {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: clamp(0.875rem, 1.042vw, 1.25rem); /* 20px at 1920 */
  line-height: 2.625rem; /* 42px */
  color: rgba(0, 0, 0, 0.7);
}

.navbar-index__link--active {
  font-weight: 600;
}

/* ========== 03-history-timeline ========== */
/* Figma: contents 1920×7711 | pad LR:320 TB:150, VERTICAL center */

.history-timeline-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(4rem, 7.81vw, 9.375rem) clamp(1.25rem, 16.67vw, 20rem);
  /* Figma: T/B:150 LR:320 */
  background-color: #ffffff;
  box-sizing: border-box;
}

.history-timeline-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 120rem;
}

.history-timeline-container {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5.21vw, 6.25rem); /* 100px at 1920 */
  width: 100%;
  max-width: 60rem; /* 960px */
}

/* ---- Timeline Year Block ---- */
.timeline-year-block {
  display: flex;
  gap: 2.5rem; /* 40px */
  align-items: flex-start;
  width: 100%;
}

/* Figma: Paperlogy Bold 48px, #14483C */
.timeline-year {
  flex-shrink: 0;
  font-family: var(--font-paperlogy);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.5vw, 3rem); /* 48px at 1920 */
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--darkgreen);
  white-space: nowrap;
}

/* Line + Dot */
.timeline-line-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 1.25rem; /* 20px */
  align-self: stretch;
  padding-top: 0.9375rem; /* 15px */
}

.timeline-line {
  flex: 1;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.15);
}

.timeline-dot {
  position: absolute;
  top: 0.9375rem;
  left: 0;
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--darkgreen);
}

/* Content */
.timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.875rem; /* 30px */
  padding-top: 0.625rem; /* 10px */
  min-width: 0;
}

.timeline-content-narrow {
  gap: 1.25rem; /* 20px */
}

/* Figma: Pretendard Regular 20px, #14483C */
.timeline-content p {
  margin: 0;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: clamp(1rem, 1.042vw, 1.25rem); /* 20px at 1920 */
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--darkgreen);
}

.timeline-content .highlight-text {
  font-size: clamp(1rem, 1.146vw, 1.375rem); /* 22px at 1920 */
  line-height: 1.4;
}

.timeline-content .sub-text {
  font-size: clamp(1rem, 1.042vw, 1.25rem);
  line-height: 1.6;
}

/* Last block — no extending line */
.timeline-year-block-last .timeline-line {
  display: none;
}

/* ---- Tablet (768px – 1199px) ---- */
@media (max-width: 1199px) {
  .history-timeline-container {
    max-width: 50rem;
  }

  .timeline-year {
    min-width: 5rem;
  }
}

/* ---- Mobile (max-width: 767px) ---- */
@media (max-width: 767px) {
  .timeline-year-block {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-line-wrapper {
    display: none;
  }

  .timeline-content {
    padding-top: 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--darkgreen);
    gap: 1rem;
  }
}
