@charset "utf-8";

/* ==========================================================================
 * 부서B · 서브 페이지
 * - 학과D 서브 구조를 기준으로 부서B 컬러와 레이아웃에 맞춤
 * ========================================================================== */

.page-sub {
  --sub-primary: var(--navy);
  --sub-primary-dark: var(--deep-navy);
  --sub-primary-soft: rgba(28, 70, 123, .1);
  --sub-border: #e1e4e8;
  --sub-muted: #6f7782;
  --sub-max: 1180px;
}

.page-sub .page-shell { background: #fff; }
.page-sub main { display: block; }

/* ----- Sub hero ----- */
.sub-hero {
  position: relative;
  height: clamp(240px, 28vw, 340px);
  overflow: visible;
}

.sub-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.sub-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 32, 51, .68), rgba(16, 32, 51, .3) 55%, rgba(16, 32, 51, .5));
}

.sub-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 var(--inner-pad-x) 58px;
  color: #fff;
  text-align: center;
}

.sub-hero__title {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.sub-hero__breadcrumb { margin-top: 15px; }
.sub-hero__breadcrumb ol { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
.sub-hero__breadcrumb li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .82); font-size: 14px; gap: 9px; }
.sub-hero__breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .45); }
.sub-hero__breadcrumb a { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .82); }
.sub-hero__breadcrumb a:hover { color: #fff; }
.sub-hero__breadcrumb li[aria-current] { color: #fff; font-weight: 700; }

/* ----- Sub utility navigation ----- */
.sub-util-bar {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 1280px;
  padding: 0 var(--inner-pad-x);
  transform: translateX(-50%);
}

.sub-util-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  color: #fff;
  background: rgba(9, 28, 52, .82);
}

.sub-util-bar__left { display: flex; align-items: stretch; min-width: 0; }
.sub-util-bar__home { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 58px; align-self: stretch; color: #fff; background: var(--sub-primary); font-size: 17px; transition: background-color .2s ease; }
.sub-util-bar__home:hover { background: var(--sub-primary-dark); }
.sub-util-bar__dropdown { position: relative; display: flex; align-items: center; }
.sub-util-bar__dropdown:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 0; width: 1px; height: 20px; background: rgba(255, 255, 255, .28); transform: translateY(-50%); }
.sub-util-bar__trigger { display: flex; align-items: center; justify-content: space-between; min-width: 190px; height: 58px; padding: 0 22px; color: #fff; font-size: 15px; font-weight: 650; letter-spacing: -.02em; gap: 14px; }
.sub-util-bar__arrow { font-size: 13px; transition: transform .2s ease; }
.sub-util-bar__dropdown.is-open .sub-util-bar__arrow { transform: rotate(180deg); }

.sub-util-bar__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  padding: 7px;
  border: 1px solid var(--sub-border);
  border-radius: 8px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 39, 67, .14);
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.sub-util-bar__dropdown.is-open .sub-util-bar__menu { visibility: visible; opacity: 1; transform: translateY(0); }
.sub-util-bar__menu a { display: block; padding: 10px 14px; border-radius: 5px; color: #333a43; font-size: 14px; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.sub-util-bar__menu a:hover { color: var(--sub-primary-dark); background: var(--sub-primary-soft); }
.sub-util-bar__menu a.is-active { color: var(--sub-primary); font-weight: 750; }
.sub-util-bar__right { display: flex; align-items: center; padding-right: 8px; }
.sub-util-bar__btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 58px; color: #fff; font-size: 17px; transition: opacity .2s ease; }
.sub-util-bar__btn:hover { opacity: .7; }

/* ----- Sub body ----- */
.sub-body { width: 100%; padding: 72px 0 100px; }
.sub-body__inner { width: min(var(--sub-max), calc(100% - 72px)); margin: 0 auto; }
.sub-page-title { margin-bottom: 54px; color: #11151b; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.045em; text-align: center; }
.sub-tabs-dropdown__trigger { display: none; }
.sub-section + .sub-section { margin-top: 52px; }
.sub-section__title { margin-bottom: 18px; padding-left: 15px; border-left: 4px solid var(--sub-primary); color: #11151b; font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.sub-text { color: #454d57; font-size: 16px; line-height: 1.85; }
.sub-text + .sub-text { margin-top: 12px; }
.sub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--sub-primary); }
.sub-list li { position: relative; min-height: 64px; padding: 20px 24px 18px 45px; border-bottom: 1px solid var(--sub-border); color: #343b44; font-size: 16px; line-height: 1.55; }
.sub-list li:nth-child(odd) { border-right: 1px solid var(--sub-border); }
.sub-list li::before { content: ""; position: absolute; top: 28px; left: 25px; width: 7px; height: 7px; border-radius: 50%; background: var(--sub-primary); }

.sub-info {
  margin-top: 34px;
  padding: 30px 34px;
  border: 1px solid #dfe5ec;
  color: #48515c;
  background: #f7f9fc;
  font-size: 15px;
  line-height: 1.8;
}

.sub-table-title { margin: 0 0 14px; color: #29313b; font-size: 17px; font-weight: 750; }
.sub-table-wrap { width: 100%; overflow-x: auto; }
.sub-table { width: 100%; border-collapse: collapse; table-layout: fixed; border-top: 2px solid var(--sub-primary); color: #414a55; font-size: 15px; line-height: 1.65; }
.sub-table__category-col { width: 225px; }
.sub-table th, .sub-table td { padding: 18px 22px; border-right: 1px solid var(--sub-border); border-bottom: 1px solid var(--sub-border); vertical-align: top; text-align: left; }
.sub-table th:last-child, .sub-table td:last-child { border-right: 0; }
.sub-table thead th { color: #fff; background: var(--sub-primary); font-weight: 700; text-align: center; }
.sub-table tbody th { color: #25374d; background: #f2f6fb; font-weight: 700; }
.sub-table-list { display: grid; gap: 4px; }
.sub-table-list li { position: relative; padding-left: 13px; }
.sub-table-list li::before { content: "-"; position: absolute; top: 0; left: 0; color: var(--sub-primary); font-weight: 700; }

@media (max-width: 1024px) {
  .sub-util-bar__right { display: none; }
  .sub-util-bar__left { flex: 1; min-width: 0; }
  .sub-util-bar__dropdown { flex: 1; min-width: 0; }
  .sub-util-bar__trigger { width: 100%; min-width: 0; padding: 0 16px; }
}

@media (max-width: 900px) {
  .sub-hero { height: 300px; }
  .sub-body__inner { width: calc(100% - 40px); }
}

@media (max-width: 600px) {
  .sub-tabs-dropdown {
    position: relative;
    margin: 0 0 24px;
  }

  .sub-tabs-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--sub-primary);
    border-radius: 8px;
    color: var(--sub-primary-dark);
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: color .2s ease, background-color .2s ease;
  }

  .sub-tabs-dropdown__trigger:hover,
  .sub-tabs-dropdown.is-open .sub-tabs-dropdown__trigger {
    color: var(--sub-primary-dark);
    background: #f8f8f8;
  }

  .sub-tabs-dropdown__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sub-tabs-dropdown__arrow {
    color: var(--sub-primary);
    font-size: 22px;
    opacity: .65;
    transition: opacity .2s ease, transform .2s ease;
  }

  .sub-tabs-dropdown__trigger:hover .sub-tabs-dropdown__arrow,
  .sub-tabs-dropdown.is-open .sub-tabs-dropdown__arrow { opacity: 1; }

  .sub-tabs-dropdown.is-open .sub-tabs-dropdown__arrow { transform: rotate(180deg); }

  .sub-tabs-dropdown .sub_tabs {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sub-primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    list-style: none;
  }

  .sub-tabs-dropdown.is-open .sub_tabs { display: flex; }

  .sub-tabs-dropdown .sub_tabs li {
    flex: none;
    border: 0;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
  }

  .sub-tabs-dropdown .sub_tabs li + li { margin-left: 0; }
  .sub-tabs-dropdown .sub_tabs li:last-child { border-bottom: 0; }

  .sub-tabs-dropdown .sub_tabs li a {
    display: block;
    justify-content: flex-start;
    height: auto;
    padding: 12px 16px;
    color: var(--sub-primary-dark);
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
  }

  .sub-tabs-dropdown .sub_tabs li a:hover { background: var(--sub-primary-soft); }

  .sub-tabs-dropdown .sub_tabs li.on,
  .sub-tabs-dropdown .sub_tabs li.subTab_sub_on,
  .sub-tabs-dropdown .sub_tabs li.active {
    z-index: auto;
    border-color: transparent;
    background: var(--sub-primary-soft);
  }

  .sub-tabs-dropdown .sub_tabs li.on a,
  .sub-tabs-dropdown .sub_tabs li.subTab_sub_on a,
  .sub-tabs-dropdown .sub_tabs li.active a {
    color: var(--sub-primary-dark) !important;
    background: none;
    font-weight: 600;
  }
}

@media (max-width: 720px) {
  .sub-body { padding: 52px 0 72px; }
  .sub-page-title { margin-bottom: 40px; }
  .sub-section + .sub-section { margin-top: 42px; }
  .sub-list { grid-template-columns: 1fr; }
  .sub-list li:nth-child(odd) { border-right: 0; }
  .sub-table { table-layout: auto; border-top: 0; }
  .sub-table thead, .sub-table colgroup { display: none; }
  .sub-table tbody, .sub-table tr, .sub-table th, .sub-table td { display: block; width: 100%; }
  .sub-table tr { margin-bottom: 18px; border: 1px solid var(--sub-border); border-top: 2px solid var(--sub-primary); }
  .sub-table th, .sub-table td { border-right: 0; }
  .sub-table tbody th { padding: 14px 17px; border-bottom: 1px solid var(--sub-border); }
  .sub-table tbody td { padding: 17px; border-bottom: 0; }
}

@media (max-width: 520px) {
  .sub-hero { height: 280px; }
  .sub-hero__content { padding-bottom: 52px; }
  .sub-util-bar { padding: 0; }
  .sub-util-bar__inner { min-height: 52px; }
  .sub-util-bar__home { width: 50px; font-size: 15px; }
  .sub-util-bar__trigger { height: 52px; padding: 0 11px; font-size: 13px; gap: 7px; }
  .sub-util-bar__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sub-body { padding: 44px 0 60px; }
  .sub-body__inner { width: calc(100% - 32px); }
  .sub-section__title { font-size: 20px; }
  .sub-text, .sub-list li { font-size: 15px; }
  .sub-list li { padding: 17px 18px 16px 38px; }
  .sub-list li::before { top: 24px; left: 20px; }
  .sub-info { padding: 23px 20px; }
}

@media print {
  .side-nav, .mobile-topbar, .sub-util-bar, .site-footer { display: none !important; }
  .page-shell { margin-left: 0; padding-left: 0; }
  .sub-hero { height: 180px; }
}

@media print {
  .site-header,
  .site-footer,
  .sub-hero,
  .sub-util,
  .lnb,
  #google_translate_element,
  .skiptranslate {
    display: none !important;
  }

  .sub-page,
  .sub-layout,
  .sub-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 스크롤 애니메이션으로 내용이 숨겨지는 현상 방지 */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.sub-section img,
.view_content img {
  display: inline-block;
}

/* 게시판 게시글 이미지 반응형 */
@media (max-width: 1240px) {
  .view_content img { width: 100% !important; height: auto !important; }
}