@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 Content
   ======================================== */
.history-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .history-content {
    gap: 2rem;
  }
}
@media only screen and (max-width: 767px) {
  .history-content {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* ========================================
   History Left (Sticky Section)
   ======================================== */
.history-left {
  width: 42.5rem;
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  flex-shrink: 0;
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .history-left {
    width: 35rem;
    top: 5rem;
  }
}
@media only screen and (max-width: 767px) {
  .history-left {
    width: 100%;
    position: static;
  }
}

.history-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
@media only screen and (max-width: 767px) {
  .history-header {
    margin-bottom: 1.5rem;
  }
}

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

.history-title {
  font-family: "Pretendard", sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--font1);
  margin: 0;
}
@media only screen and (max-width: 767px) {
  .history-title {
    font-size: 1.25rem;
  }
}

.history-image {
  width: 35rem;
  height: 21rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--bg1);
}
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .history-image {
    width: 100%;
    height: 18rem;
  }
}
@media only screen and (max-width: 767px) {
  .history-image {
    width: 100%;
    height: 15rem;
  }
}
.history-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* ========================================
   History Right (Timeline Section)
   ======================================== */
.history-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media only screen and (max-width: 767px) {
  .history-right {
    gap: 2rem;
  }
}

.history-year-group {
  display: flex;
  flex-direction: column;
}

.history-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 0.0625rem solid var(--line2);
}
@media only screen and (max-width: 767px) {
  .history-item {
    gap: 1rem;
    padding: 0.75rem 0;
  }
}

.history-date {
  font-family: "Pretendard", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary);
  margin: 0;
  width: 6.25rem;
  flex-shrink: 0;
}
@media only screen and (max-width: 767px) {
  .history-date {
    font-size: 1rem;
    width: 5rem;
  }
}

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