@charset "utf-8";
/* ==========================================================================
 * 메인영문 · 서브 페이지 (header + hero)
 * - 헤더: main.css + .sub_header (색상만 변경)
 * ========================================================================== */

.page-sub {
  --sub-hero-height: 450px;
  --sub-util-height: 56px;
  --sub-header-max: 1920px;
  --sub-header-padding-x: 60px;
  --sub-header-padding-y: 28px;
  --sub-accent: #116e37;
  --sub-accent-soft: rgba(17, 110, 55, 0.1);
  --sub-accent-home-bg: rgba(17, 110, 55, 0.7);
  --sub-panel-border: #e6e6e6;
  --sub-content-max: 1440px;
  --sub-text: #474747;
  --sub-text-muted: #999999;
  --sub-highlight: #4a8fd4;
}

/* ----- Sub Header: main header와 동일하게 hero 위에 오버레이 ----- */
.page-sub .header.sub_header {
  color: #ffffff;
}

.page-sub .header.sub_header .header__inner.gnb-wrap {
  padding: 0 var(--sub-header-padding-x);
  min-height: var(--gnb-bar-height, 90px);
}

.page-sub .header.sub_header .gnb-link.is-active {
  color: #ffffff;
}

/* GNB 열림: 메인(index)과 동일하게 헤더 화이트 처리 */
.page-sub .header.sub_header:has(.gnb:hover) .header__inner.gnb-wrap,
.page-sub .header.sub_header:has(.gnb:focus-within) .header__inner.gnb-wrap {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.page-sub .header.sub_header:has(.gnb:hover) .gnb-link,
.page-sub .header.sub_header:has(.gnb:focus-within) .gnb-link,
.page-sub .header.sub_header:has(.gnb:hover) .header__search,
.page-sub .header.sub_header:has(.gnb:focus-within) .header__search,
.page-sub .header.sub_header:has(.gnb:hover) .header__util-btn,
.page-sub .header.sub_header:has(.gnb:focus-within) .header__util-btn {
  color: #000000;
}

.page-sub .header.sub_header:has(.gnb:hover) .header__util-btn--login,
.page-sub .header.sub_header:has(.gnb:focus-within) .header__util-btn--login {
  background: rgba(0, 0, 0, 0.08);
}

.page-sub .header.sub_header:has(.gnb:hover) .header__util-btn--home,
.page-sub .header.sub_header:has(.gnb:focus-within) .header__util-btn--home {
  border-color: rgba(0, 0, 0, 0.35);
}

.page-sub .header.sub_header:has(.gnb:hover) .header__logo img,
.page-sub .header.sub_header:has(.gnb:focus-within) .header__logo img {
  filter: brightness(0);
}

.page-sub .header.sub_header:has(.gnb:hover) .gnb-item:hover .gnb-link,
.page-sub .header.sub_header:has(.gnb:focus-within) .gnb-item:focus-within .gnb-link,
.page-sub .header.sub_header:has(.gnb:hover) .gnb-item:has(.gnb-submenu a:hover) .gnb-link,
.page-sub .header.sub_header:has(.gnb:focus-within) .gnb-item:has(.gnb-submenu a:hover) .gnb-link,
.page-sub .header.sub_header:has(.gnb:hover) .gnb-link.is-active,
.page-sub .header.sub_header:has(.gnb:focus-within) .gnb-link.is-active {
  color: var(--sub-accent);
}


.page-sub .header.sub_header.is-gnb-scrolled {
  position: fixed;
}

.page-sub .header.sub_header.is-gnb-scrolled .header__inner.gnb-wrap,
.page-sub .header.sub_header.is-nav-open .header__inner.gnb-wrap {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.page-sub .header.sub_header.is-gnb-scrolled .gnb-link,
.page-sub .header.sub_header.is-gnb-scrolled .header__search,
.page-sub .header.sub_header.is-gnb-scrolled .header__util-btn,
.page-sub .header.sub_header.is-nav-open .gnb-link,
.page-sub .header.sub_header.is-nav-open .header__search,
.page-sub .header.sub_header.is-nav-open .header__util-btn {
  color: #000000;
}

.page-sub .header.sub_header.is-gnb-scrolled .header__util-btn--login,
.page-sub .header.sub_header.is-nav-open .header__util-btn--login {
  background: rgba(0, 0, 0, 0.08);
}

.page-sub .header.sub_header.is-gnb-scrolled .header__util-btn--home,
.page-sub .header.sub_header.is-nav-open .header__util-btn--home {
  border-color: rgba(0, 0, 0, 0.35);
}

.page-sub .header.sub_header.is-gnb-scrolled .header__logo img,
.page-sub .header.sub_header.is-nav-open .header__logo img {
  filter: brightness(0);
}

.page-sub .header.sub_header.is-gnb-scrolled .menu-btn__line,
.page-sub .header.sub_header.is-nav-open .menu-btn__line {
  background: #000000;
}

.page-sub .header.sub_header.is-gnb-scrolled .gnb-link.is-active,
.page-sub .header.sub_header.is-nav-open .gnb-link.is-active,
.page-sub .header.sub_header.is-gnb-scrolled .gnb-item:hover .gnb-link,
.page-sub .header.sub_header.is-gnb-scrolled .gnb-item:focus-within .gnb-link {
  color: var(--sub-accent);
}

/* ----- Sub Hero ----- */
.sub-hero {
  position: relative;
  height: var(--sub-hero-height);
  overflow: visible;
  background: #000000;
}

.sub-hero__inner {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}

.sub-hero__visual {
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sub-hero__img,
.sub-hero__overlay,
.sub-hero__content,
.sub-util-bar {
  grid-area: stack;
}

.sub-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.sub-hero__overlay {
  z-index: 1;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.sub-hero__content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  padding: calc(var(--gnb-bar-height, 90px) + 24px) var(--sub-header-padding-x) calc(var(--sub-util-height) + 24px);
  text-align: center;
  color: #ffffff;
  pointer-events: none;
}

.sub-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sub-hero__content .sub-util-bar__right {
  pointer-events: auto;
}

/* ----- Sub Util Bar ----- */
.sub-util-bar {
  position: relative;
  z-index: 30;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: rgba(20, 20, 24, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #ffffff;
}
.sub-util-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--sub-util-height);
  padding: 0 var(--sub-header-padding-x);
}

.sub-util-bar__left {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

.sub-util-bar__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  margin-left: calc(var(--sub-header-padding-x) * -1);
  background: var(--sub-accent-home-bg);
  color: #ffffff;
  font-size: 18px;
}

.sub-util-bar__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 250px;
  max-width: 250px;
}

.sub-util-bar__dropdown::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
  z-index: 1;
}

.sub-util-bar__trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--sub-util-height);
  padding: 0 18px;
  overflow: hidden;
  color: #ffffff;
  text-align: left;
}

.sub-util-bar__label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-util-bar__arrow {
  flex-shrink: 0;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.sub-util-bar__dropdown.is-open .sub-util-bar__arrow {
  transform: rotate(180deg);
}

.sub-util-bar__menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #1a3349;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.sub-util-bar__dropdown.is-open .sub-util-bar__menu {
  display: block;
}

.sub-util-bar__menu a {
  display: block;
  padding: 10px 20px;
  font-size: 18px;
  color: #244261;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-util-bar__menu a:hover,
.sub-util-bar__menu a.is-active {
  color: #1a3349;
  background: #e9eef3;
}

.sub-util-bar__menu--scroll {
  max-height: min(70vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sub-util-bar__right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.sub-util-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sub-util-bar__btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #1a1a1a;
}

/* ----- Sub Main ----- */
.sub-main {
  font-size: 18px;
  padding: 48px var(--sub-header-padding-x) 100px;
}

.sub-main__inner {
  width: 100%;
  max-width: var(--sub-content-max);
  margin: 0 auto;
}

.sub-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 18px;
  color: #202020;
}

.sub-breadcrumb__home {
  display: inline-flex;
  align-items: center;
  color: #202020;
  font-size: 18px;
}

.sub-breadcrumb__sep {
  color: #cccccc;
}

.sub-breadcrumb__item--current {
  color: #202020;
  font-weight: 700;
}

.sub-page-head {
  margin-bottom: 36px;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 30px;
}

.sub-page-head__icon {
  display: block;
  width: auto;
  height: 25px;
  margin-bottom: 10px;
}

.sub-page-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.0em;
  letter-spacing: -0.04em;
  color: #1a1a1a;
}

/* ----- History Tabs ----- */
.history-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  margin: 0 auto 56px;
  border: 1px solid #dddddd;
}

.history-tabs__btn {
  min-height: 52px;
  border-right: 1px solid #dddddd;
  font-family: "Pretendard", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.history-tabs__btn:last-child {
  border-right: 0;
}

.history-tabs__btn.is-active {
  background: var(--sub-accent);
  color: #ffffff;
}

/* ----- History Panel ----- */
.history-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.history-timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 32px;
  align-items: start;
}

.history-timeline__year {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(29px, 5vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sub-accent);
}

.history-timeline__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.history-timeline__item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #eeeeee;
}

.history-timeline__item:first-child {
  padding-top: 0;
}

.history-timeline__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.history-timeline__date {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--sub-text-muted);
  white-space: nowrap;
}

.history-timeline__date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cccccc;
  transform: translateY(-50%);
}

.history-timeline__text {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--sub-text);
}

.history-timeline__em {
  color: var(--sub-highlight);
}

.history-visual {
  position: relative;
  padding-bottom: 48px;
}

.history-visual__frame {
  position: relative;
  z-index: 2;
}

.history-visual__frame::before {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  z-index: -1;
  width: 72%;
  height: 72%;
  background: #ebe6df;
}

.history-visual__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.history-visual__watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: clamp(63px, 7vw, 108px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

/* ----- Responsive ----- */
@media (max-width: 1240px) {
  .page-sub {
    --sub-header-padding-x: 32px;
    --sub-hero-height: 380px;
  }

  .history-panel__body {
    gap: 32px;
  }

  .page-sub .header.sub_header .header__inner.gnb-wrap {
    padding: 0 var(--sub-header-padding-x);
  }

  .sub-util-bar__inner > .sub-util-bar__right {
    display: none;
  }

  .sub-util-bar__left {
    flex: 1;
    min-width: 0;
  }

  .sub-util-bar__trigger {
    min-width: 0;
    width: 100%;
  }

  /* 1·2뎁스(및 마지막 이전 뎁스): 글자 숨기고 화살표만 표시 */
  .sub-util-bar__dropdown:not(:last-child) {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
    min-width: 40px;
  }

  .sub-util-bar__dropdown:not(:last-child) .sub-util-bar__trigger {
    grid-template-columns: auto;
    justify-content: center;
    justify-items: center;
    padding: 0;
    column-gap: 0;
  }

  .sub-util-bar__dropdown:not(:last-child) .sub-util-bar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .sub-util-bar__dropdown:not(:last-child)::after {
    right: 0;
  }

  /* 마지막 뎁스만 텍스트 표시 + 길면 말줄임 */
  .sub-util-bar__dropdown:last-child {
    flex: 1 1 0%;
    width: 0; /* flex shrink 강제 — 말줄임에 필요 */
    min-width: 0;
    max-width: none;
    overflow: visible;
  }

  .sub-util-bar__dropdown:last-child::after {
    content: none;
  }

  .sub-util-bar__dropdown:last-child .sub-util-bar__trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .sub-util-bar__dropdown:last-child .sub-util-bar__label {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sub-util-bar__menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 220px;
    max-width: min(280px, calc(100vw - 32px));
    max-width: 100%;
  }

  .sub-util-bar__menu a {
  }
}

@media (max-width: 1024px) {
  .page-sub .header.sub_header .header__inner.gnb-wrap {
    padding: 0 var(--sub-header-padding-x);
  }
}

@media (max-width: 768px) {
  .page-sub {
    --sub-hero-height: 320px;
    --sub-header-padding-x: 24px;
    --sub-header-padding-y: 16px;
  }

  .sub-main {
  font-size: 18px;
    padding: 36px var(--sub-header-padding-x) 72px;
  }

  .history-tabs {
    max-width: none;
    margin-bottom: 40px;
  }

  .history-tabs__btn {
    min-height: 46px;
    font-size: 18px;
  }

  .history-panel__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .history-timeline {
    gap: 0 20px;
  }

  .history-timeline__item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .history-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .sub-hero__title {
    font-size: clamp(32px, 8vw, 45px);
  }
}
@media (max-width: 620px) {
  .sub-util-bar__menu a { word-break: break-all;}
  .sub-util-bar__menu { width: 100%; min-width: 100px;}
  #sub-util-menu-depth3 {
     margin: 0 auto;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    min-width: 100%;
    
  }
  
}

@media (max-width: 600px) {
  .page-sub {
    --sub-header-padding-x: 20px;
  }

  .sub-hero__content {
    padding: calc(var(--gnb-bar-height, 90px) + 16px) var(--sub-header-padding-x) calc(var(--sub-util-height) + 16px);
  }

  .history-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .history-timeline__list {
    margin-top: 0;
  }

  .history-timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .history-timeline__date {
    white-space: normal;
  }

  .history-visual__frame::before {
    right: -12px;
    bottom: -12px;
  }

  .history-visual__watermark {
    font-size: clamp(45px, 12vw, 63px);
  }

  .sub-util-bar__inner {
    min-height: 50px;
  }

  .sub-util-bar__home {
    width: 48px;
  }

  .sub-util-bar__trigger {
    height: 50px;
    padding: 0 12px;
    column-gap: 8px;
    font-size: 16px;
  }

  .sub-util-bar__dropdown:not(:last-child) .sub-util-bar__trigger {
    padding: 0;
  }
}


.board_view .view_content img {
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block !important;
}
