﻿@charset "utf-8";
/* ==========================================================================
 * 학과G · 서브 페이지
 * - 헤더/푸터: main.css (site-header--g, site-footer)
 * - 색상: --primary (#573483)
 * ========================================================================== */

.page-sub {
  --sub-hero-height: 460px;
  --sub-util-height: 56px;
  --sub-content-max: 1300px;
  --sub-side-padding: 40px;
  --sub-accent: var(--primary);
  --sub-accent-soft: rgba(87, 52, 131, 0.1);
  --sub-accent-soft-light: rgba(87, 52, 131, 0.06);
  --sub-accent-gradient: linear-gradient(90deg, #452668 0%, #573483 55%, #7a4fa8 100%);
  --sub-panel-border: #e6e6e6;
  --sub-text: #474747;
}

/* ----- Sub Hero ----- */
.sub-hero-g {
  position: relative;
  z-index: 2;
  min-height: var(--sub-hero-height);
  overflow: visible;
}

.sub-hero-g__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-hero-g__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
          180deg,
          rgba(0, 0, 0, 0.18) 0%,
          rgba(0, 0, 0, 0.1) 45%,
          rgba(0, 0, 0, 0.42) 100%
  );
  pointer-events: none;
}

.page-sub .site-header--g {
  z-index: calc(var(--z-header) + 1);
}

.sub-hero-g__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--sub-hero-height);
  padding: clamp(160px, 22vw, 200px) var(--sub-side-padding) calc(var(--sub-util-height) + 40px);
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.sub-hero-g__lead {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.sub-hero-g__title {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ----- Sub Util Bar ----- */
.sub-util-bar {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  width: 100%;
  max-width: var(--sub-content-max);
  padding: 0 var(--sub-side-padding);
  transform: translateX(-50%);
}

.sub-util-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--sub-util-height);
  background: rgba(20, 20, 24, 0.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
}

.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: 56px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
}

.sub-util-bar__dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.sub-util-bar__dropdown:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}

.sub-util-bar__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 190px;
  height: var(--sub-util-height);
  padding: 0 22px;
  color: #fff;
}

.sub-util-bar__label {
  white-space: nowrap;
}

.sub-util-bar__arrow {
  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% + 8px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--sub-panel-border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.sub-util-bar__dropdown.is-open .sub-util-bar__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-util-bar__menu a {
  display: block;
  padding: 10px 14px;
  color: #333;
  font-size: 14px;
  border-radius: 6px;
}

.sub-util-bar__menu a:hover,
.sub-util-bar__menu a.is-active {
  background: var(--sub-accent-soft);
  color: var(--sub-accent);
}

.sub-util-bar__right {
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.sub-util-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: var(--sub-util-height);
  color: #fff;
  font-size: 15px;
}

/* ----- Sub Main ----- */
.sub-main {
  position: relative;
  z-index: 1;
  padding: 64px 0 100px;
}

.sub-main__inner {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: var(--sub-content-max);
  margin: 0 auto;
  padding: 0 var(--sub-side-padding);
}

.lnb {
  flex: 0 0 260px;
  width: 260px;
}

.lnb__head {
  padding: 26px 28px;
  background: var(--sub-accent-gradient);
  color: #fff;
}

.lnb__head-text {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.lnb__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--sub-panel-border);
  border-top: 0;
  background: #fff;
}

.lnb__item + .lnb__item {
  border-top: 1px solid var(--sub-panel-border);
}

.lnb__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.lnb__item.is-active .lnb__link {
  color: var(--sub-accent);
  font-weight: 700;
  background: var(--sub-accent-soft-light);
}

.lnb__arrow {
  color: inherit;
  font-size: 14px;
}

.sub-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.sub-page-title {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  font-size: clamp(30px, 2.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #111;
}

.sub-section + .sub-section {
  margin-top: 44px;
}

.sub-section__title {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--sub-accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #111;
}

.sub-text {
  color: var(--sub-text);
  font-size: 17px;
  line-height: 1.85;
}

.sub-text + .sub-text {
  margin-top: 12px;
}

.sub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-list li {
  position: relative;
  padding-left: 18px;
  color: var(--sub-text);
  font-size: 17px;
  line-height: 1.9;
}

.sub-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sub-accent);
}

.sub-table-wrap {
  overflow-x: auto;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--sub-accent);
}

.sub-table th,
.sub-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--sub-panel-border);
  text-align: left;
  line-height: 1.7;
  font-size: 15px;
}

.sub-table th {
  width: 140px;
  background: #f7f4fb;
  color: #222;
  font-weight: 600;
}

/* ----- Responsive ----- */
@media (max-width: 1340px) {
  .sub-util-bar,
  .sub-main__inner,
  .sub-hero-g__content {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1240px) {
  .page-sub {
    --sub-side-padding: 32px;
    --sub-hero-height: 400px;
  }

  .sub-hero-g__content {
    padding-top: 120px;
  }

  .lnb {
    display: none;
  }

  .sub-main__inner {
    display: block;
  }

  .sub-util-bar__right {
    display: none;
  }

  .sub-util-bar__left,
  .sub-util-bar__dropdown {
    flex: 1;
    min-width: 0;
  }

  .sub-util-bar__trigger {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sub {
    --sub-hero-height: 360px;
    --sub-side-padding: 24px;
  }

  .sub-main {
    padding: 48px 0 72px;
  }

  .sub-page-title {
    margin-bottom: 26px;
    padding-bottom: 16px;
    font-size: 28px;
  }

  .sub-section__title {
    font-size: 20px;
  }

  .sub-text,
  .sub-list li {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .sub-util-bar,
  .sub-main__inner,
  .sub-hero-g__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sub-util-bar__inner {
    min-height: 50px;
  }

  .sub-util-bar__home {
    width: 48px;
  }

  .sub-util-bar__trigger {
    height: 50px;
    padding: 0 12px;
    gap: 8px;
    font-size: 14px;
  }

  .sub-util-bar__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sub-table th {
    width: 96px;
    padding: 12px;
  }

  .sub-table td {
    padding: 12px;
  }
}

/* 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 var(--sub-panel-border);
    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);
    background: var(--sub-accent-soft-light);
  }

  .sub-tabs-dropdown__arrow {
    font-size: 22px;
    color: var(--sub-accent);
    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(--sub-accent);
    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-soft-light);
  }

  .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-soft-light);
  }

  .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) !important;
    background: none;
  }
}

.sub-main .sub-main__inner table.tableBasic tr td.center img { display: inline-block; }


@media (max-width: 700px) {
.sub_content .inner_wrap div .contentBox p iframe {width: 100% !important;}
}

.board_view .view_content img {
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  display: block !important;
}