@charset "UTF-8";
/**
 * HISTORY PAGE SCSS
 * 연혁 페이지
 */
/* ========================================
   Sub Tabs (탭메뉴)
   ======================================== */
.sub-tabs {
  background-color: #ffffff;
  border-bottom: 0.0625rem solid var(--line2);
}
.sub-tabs-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 3.75rem;
}
@media only screen and (max-width: 767px) {
  .sub-tabs-inner {
    overflow-x: auto;
    gap: 0.125rem;
  }
  .sub-tabs-inner::-webkit-scrollbar {
    display: none;
  }
}

.sub-tab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  font-family: "Pretendard", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  color: var(--font2);
  text-decoration: none;
  border: 0;
  border-bottom: 0.125rem solid transparent;
  height: 100%;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.sub-tab-item:hover {
  color: var(--primary);
}
.sub-tab-item.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}
@media only screen and (max-width: 767px) {
  .sub-tab-item {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}

/* ========================================
   History Section
   ======================================== */
.history-section {
  padding: 5rem 0 10rem;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .history-section {
    padding: 3.75rem 0 7.5rem;
  }
}
@media only screen and (max-width: 767px) {
  .history-section {
    padding: 2.5rem 0 5rem;
  }
}

.history-wrapper {
  display: flex;
  gap: 2.5rem;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .history-wrapper {
    gap: 2rem;
  }
}
@media only screen and (max-width: 767px) {
  .history-wrapper {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* ========================================
   History Header (좌측 타이틀)
   ======================================== */
.history-header {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media only screen and (max-width: 767px) {
  .history-header {
    gap: 1rem;
    flex: 1 1 auto;
  }
}

.history-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media only screen and (max-width: 767px) {
  .history-title-area {
    gap: 0.75rem;
  }
}

.title-icon {
  display: inline-flex;
  position: relative;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}
.title-icon img {
  width: 2.113rem;
  height: 2.113rem;
  display: block;
}
.title-icon img:first-child {
  position: relative;
  z-index: 1;
}
.title-icon-rotate {
  position: absolute;
  left: 0.41125rem;
  top: 0.38688rem;
  transform: rotate(180deg);
  z-index: 0;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .title-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  .title-icon img {
    width: 1.75rem;
    height: 1.75rem;
  }
  .title-icon-rotate {
    left: 0.3125rem;
    top: 0.3125rem;
  }
}
@media only screen and (max-width: 767px) {
  .title-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  .title-icon img {
    width: 1.375rem;
    height: 1.375rem;
  }
  .title-icon-rotate {
    left: 0.25rem;
    top: 0.25rem;
  }
}

.page-title {
  font-family: "Pretendard", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: normal;
  color: var(--font1);
  margin: 0;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .page-title {
    font-size: 1.875rem;
  }
}
@media only screen and (max-width: 767px) {
  .page-title {
    font-size: 1.5rem;
  }
}

.history-description {
  font-family: "Pretendard", sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.04em;
  color: var(--font1);
  margin: 0;
  white-space: pre-line;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .history-description {
    font-size: 1.375rem;
  }
}
@media only screen and (max-width: 767px) {
  .history-description {
    font-size: 1.125rem;
  }
}

/* ========================================
   Timeline (우측 타임라인)
   ======================================== */
.history-timeline {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}
@media only screen and (max-width: 767px) {
  .history-timeline {
    flex: 1 1 auto;
    gap: 0;
  }
}

.timeline-line-wrapper {
  position: relative;
  width: 0.25rem;
  flex-shrink: 0;
  align-self: stretch;
}
@media only screen and (max-width: 767px) {
  .timeline-line-wrapper {
    display: none;
  }
}

.timeline-arrow {
  position: absolute;
  top: 0.1851rem;
  left: -0.125rem;
  transform: translateX(-50%) rotate(180deg) scaleY(-1);
  width: 0.75rem;
  height: 0.75rem;
}
.timeline-arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

.timeline-line {
  position: absolute;
  top: 0.1875rem;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(54, 124, 254, 0.3) 80%, rgba(54, 124, 254, 0) 100%);
  border-radius: 0.25rem;
}

.timeline-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media only screen and (max-width: 767px) {
  .timeline-content {
    gap: 1.875rem;
    flex: 1 1 auto;
  }
}

.timeline-item {
  background-color: #f2f7ff;
  border: 0.0625rem solid var(--bg-brand);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media only screen and (max-width: 767px) {
  .timeline-item {
    padding: 1rem;
    gap: 0.375rem;
  }
}

.timeline-year {
  font-family: "Pretendard", sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin: 0;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .timeline-year {
    font-size: 1.375rem;
  }
}
@media only screen and (max-width: 767px) {
  .timeline-year {
    font-size: 1.125rem;
  }
}

.timeline-group {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}

.timeline-month {
  font-family: "Pretendard", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--font2);
  margin: 0;
}
@media only screen and (max-width: 767px) {
  .timeline-month {
    font-size: 1rem;
  }
}

.timeline-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.6875rem;
}
.timeline-list li {
  font-family: "Pretendard", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--font2);
}
@media only screen and (max-width: 767px) {
  .timeline-list li {
    font-size: 1rem;
  }
}
.timeline-list li::marker {
  color: var(--font2);
}