﻿/* ----- Sub Page (학과C) ----- */
.page-sub {
  --sub-hero-height: 200px;
  --sub-util-height: 56px;
  --sub-content-max: 1440px;
  --sub-side-padding: 80px;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --sub-accent: var(--primary);
  --sub-content-color: #474747;
  --sub-accent-dark: #8a125f;
  --sub-accent-hover-bg: #f8f8f8;
}

.page-sub .site-header--b .gnb-wrap {
}

.page-sub .site-header--b {
  border-bottom: 1px solid #e6e6e6;
}

.sub-hero {
  position: relative;
  box-sizing: border-box;
  height: 300px;
  margin: 40px auto 40px;
  overflow: hidden;
  border-radius: 0px;
  width: var(--sub-content-max);
  border-radius: 20px;
}

.sub-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sub-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-overlay);
  pointer-events: none;
}

.sub-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sub-hero__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  text-align: center;
}

.sub-hero__title {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.sub-hero__desc {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}

/* ----- Sub Util Bar ----- */
.sub-util-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  background: #ffffff;
}

.sub-util-bar__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: var(--sub-content-max);
  margin: 0 auto;
  min-height: 56px;
  padding: 0 0;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
}

.sub-util-bar__left {
  display: flex;
  align-items: stretch;
}

.sub-util-bar__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  color: #333;
  font-size: 18px;
  border-right: 1px solid #e6e6e6;
}

.sub-util-bar__home:hover {
  color: var(--primary);
}

.sub-util-bar__dropdown {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid #e6e6e6;
}

.sub-util-bar__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--sub-content-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-util-bar__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.sub-util-bar__trigger:hover,
.sub-util-bar__dropdown.is-open .sub-util-bar__trigger {
  color: var(--sub-accent-dark);
  background: var(--sub-accent-hover-bg);
}

.sub-util-bar__arrow {
  font-size: 24px;
  color: var(--sub-accent);
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sub-util-bar__trigger:hover .sub-util-bar__arrow,
.sub-util-bar__dropdown.is-open .sub-util-bar__arrow {
  opacity: 1;
}

.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;
  right: 0;
  z-index: 20;
  display: none;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--sub-accent-dark);
  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: 15px;
  color: var(--sub-content-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-util-bar__menu a:hover,
.sub-util-bar__menu a.is-active {
  color: var(--sub-accent-dark);
  background: var(--sub-accent-hover-bg);
}

.sub-util-bar__right {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  gap: 8px;
  padding: 0 10px;
  border-left: 1px solid #e6e6e6;
}

.sub-util-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #555;
  font-size: 16px;
}

.sub-util-bar__btn:hover {
  color: var(--primary);
  background: rgba(170, 22, 116, 0.08);
}

.sub-main {
  padding: 40px 0 96px;
  background: #fff;
}

.sub-main__inner {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: var(--sub-content-max);
  margin: 0 auto;
}

.sub-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.lnb {
  flex: 0 0 260px;
  width: 260px;
}

.lnb__head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 20px 16px;
  background: #3e2461 url("../images/main/quick_bg.jpg") no-repeat;
  background-size: auto;
  background-position: left;
  text-align: center;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}

.lnb__head-text {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.02em;
}

.lnb__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lnb__item {
  border-bottom: 1px solid #e6e6e6;
}

.lnb__item:last-child {
  border-bottom: 0;
}

.lnb__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.lnb__item.is-active .lnb__link {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.lnb__item:not(.is-active) .lnb__link:hover {
  color: var(--primary);
  background: rgba(170, 22, 116, 0.02);
}

.sub-page-title {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #111;
}

.sub-section + .sub-section {
  margin-top: 40px;
}

.sub-section__title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 14px;
  font-size: 24px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.02em;
}

.sub-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--primary);
}

.sub-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  word-break: keep-all;
}

.sub-list {
  margin: 0 0 24px;
  padding-left: 1.1em;
  color: #444;
  line-height: 1.75;
}

.sub-table-wrap {
  overflow-x: auto;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #333;
}

.sub-table th,
.sub-table td {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  text-align: center;
  vertical-align: middle;
  word-break: keep-all;
}

.sub-table tbody th {
  background: #f8f8f8;
  font-weight: 500;
}

.page-sub .site-footer__top {
  background: var(--primary);
}

.page-sub .site-footer__top:hover {
  background: var(--sub-accent-dark);
}

@media (max-width: 1510px) {
  .sub-hero {
    width: auto;
    margin-left: 30px;
    margin-right: 30px;
  }

  .sub-util-bar {
    padding-left: 30px;
    padding-right: 30px;
  }

  .sub-main__inner {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 1240px) {
  .page-sub {
    --sub-side-padding: 32px;
  }

  .sub-hero { height: 220px; margin: 20px 30px 20px;}

  .sub-util-bar__right {
    display: none;
  }

  .sub-util-bar__inner {
    padding: 0;
  }

  .site-header.is-gnb-scrolled .gnb-wrap, .site-header.is-nav-open .gnb-wrap {
    background-color: #fff;
    border-bottom-color: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .page-sub .site-header--b {
    border-bottom: 1px solid rgba(0, 0, 0, 0);
  }
}

@media (max-width: 1100px) {
  .sub-util-bar__left {
    flex: 1;
    min-width: 0;
  }

  .sub-util-bar__dropdown {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .sub-util-bar__dropdown:last-child { border-right:none;}
}

@media (max-width: 1024px) {
  .sub-main__inner {
    flex-direction: column;
    gap: 32px;
  }

  .lnb {
    display: none;
  }

  .sub-util-bar__trigger {
    padding: 0 16px;
    font-size: 15px;
  }

  .sub-util-bar__arrow {
    font-size: 20px;
  }
}

@media (min-width: 1921px) {
  .sub-util-bar__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .page-sub {
    --sub-hero-height: 180px;
    --sub-side-padding: 24px;
  }

  .sub-util-bar__inner {
    min-height: 48px;
  }

  .sub-util-bar__home {
    width: 48px;
    flex-shrink: 0;
  }

  .sub-util-bar__dropdown {
    width: auto;
    flex: 1;
    min-width: 0;

  }

  .sub-util-bar__trigger {
    min-height: 48px;
    padding: 0 12px;
    gap: 8px;
    font-size: 14px;
  }

  .sub-util-bar__arrow {
    font-size: 18px;
  }

  .sub-main {
    padding: 32px 0 72px;
  }

  .sub-page-title {
    margin-bottom: 24px;
    font-size: 28px;
  }
}

/* sub_tabs — 데스크톱은 기존 탭, 트리거 숨김 */
.sub-tabs-dropdown__trigger {
  display: none;
}

/* sub_tabs(3뎁스) → 반응형(≤600px) 드롭다운 */
@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 #dfdfdf;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .sub-tabs-dropdown__trigger:hover,
  .sub-tabs-dropdown.is-open .sub-tabs-dropdown__trigger {
    color: var(--sub-accent-dark);
    background: var(--sub-accent-hover-bg);
  }

  .sub-tabs-dropdown__arrow {
    font-size: 22px;
    color: var(--primary);
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.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;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .sub-tabs-dropdown.is-open .sub_tabs {
    display: flex;
  }

  .sub-tabs-dropdown .sub_tabs li {
    flex: none;
    border: none;
    border-bottom: 1px solid #e6e6e6;
  }

  .sub-tabs-dropdown .sub_tabs li + li {
    margin-left: 0;
  }

  .sub-tabs-dropdown .sub_tabs li:last-child {
    border-bottom: none;
  }

  .sub-tabs-dropdown .sub_tabs li a {
    display: block;
    height: auto;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    color: #1a1a1a;
    justify-content: flex-start;
  }

  .sub-tabs-dropdown .sub_tabs li a:hover {
    background: var(--sub-accent-hover-bg);
  }

  .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-accent-hover-bg);
  }

  .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 {
    font-weight: 600;
    color: var(--sub-accent-dark) !important;
    background: none;
  }
}

.sub-content .sub-section #content .tableBasic tr td.center img{ display:inline-block; }
.board_view .view_content img {
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block !important;
}