﻿@charset "utf-8";
/* ==========================================================================
 * 학과D · 서브 페이지 스타일
 * - 레이아웃/컴포넌트 디자인은 시안 시안대로(히어로 배너 · 알약형 서브 유틸바)
 * - 색상은 시안의 초록 대신 main.css 에 정의된 색상(--kwu-primary 등) 사용
 * ========================================================================== */

.page-sub {
	--sub-primary: var(--side-nav-bg);          /* #ff9900 · 오렌지 */
	--sub-primary-dark: #e08600;                /* 진한 오렌지 (hover) */
	--sub-primary-soft: rgba(255, 153, 0, 0.12);
	--sub-ink: #1a1a1a;                         /* 검정 */
	--sub-border: #e5e5e5;
	--sub-muted: #777;
	--sub-max: 1440px;            /* 1245px */
}

.page-sub .main-content {
	display: block;
	padding-bottom: 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ===== 서브 히어로 ===== */
.sub-hero {
	position: relative;
	height: clamp(200px, 26vw, 300px);
	overflow: visible;
}

.sub-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sub-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.5));
}

.sub-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 var(--inner-pad-x) 56px;
	text-align: center;
	color: #fff;
}

.sub-hero__title {
	font-family: "SUIT", sans-serif;
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.sub-hero__breadcrumb {
	margin-top: 14px;
}

.sub-hero__breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.sub-hero__breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
}

.sub-hero__breadcrumb li + li::before {
	content: "/";
	color: rgba(255, 255, 255, 0.5);
}

.sub-hero__breadcrumb a {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.2s ease;
}

.sub-hero__breadcrumb a:hover {
	color: #fff;
}
.sub-hero__breadcrumb li[aria-current] {
	color: #ffdfb0;
	font-weight: 600;
}

/* ===== 서브 유틸 바 (알약형) ===== */
.sub-util-bar {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	z-index: 5;
	width: 100%;
	max-width: 1440px;
	padding: 0 var(--inner-pad-x);
}

.sub-util-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 0;
	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;
	align-self: stretch;
	background: var(--sub-primary);
	color: #fff;
	font-size: 16px;
	transition: background-color 0.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;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.35);
}

.sub-util-bar__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-width: 190px;
	height: 56px;
	padding: 0 22px;
	background: transparent;
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.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;
	min-width: 100%;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--sub-border);
	border-radius: 10px;
	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;
	z-index: 20;
}

.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: 9px 14px;
	border-radius: 6px;
	color: #333;
	font-size: 14px;
	word-break: break-all;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-util-bar__menu a:hover {
	background: var(--sub-primary-soft);
	color: var(--sub-primary-dark);
}

.sub-util-bar__menu a.is-active {
	color: var(--sub-primary-dark);
	font-weight: 700;
}

.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: 56px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 16px;
	transition: opacity 0.2s ease;
}

.sub-util-bar__btn:hover {
	opacity: 0.75;
}

/* ===== 본문 ===== */
.sub-body {
	width: 100%;
	padding: 60px 0 90px;
}

.sub-body__inner {
	width: 100%;
	max-width: var(--sub-max);
	margin: 0 auto;
	padding: 0 var(--inner-pad-x);
}

.sub-page-title {
	margin: 0 0 44px;
	font-family: "SUIT", sans-serif;
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111;
	text-align: center;
}

.sub-section + .sub-section {
	margin-top: 48px;
}

.sub-section__title {
	margin: 0 0 16px;
	padding-left: 14px;
	border-left: 4px solid var(--sub-primary);
	font-family: "SUIT", sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #111;
}

.sub-text {
	color: #444;
	font-size: 16px;
	line-height: 1.8;
}

.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: #444;
	font-size: 16px;
	line-height: 1.9;
}

.sub-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 13px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sub-primary);
}

.sub-table-wrap {
	overflow-x: auto;
}

.sub-table {
	width: 100%;
	border-collapse: collapse;
	border-top: 2px solid var(--sub-primary);
	font-size: 15px;
}

.sub-table th,
.sub-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--sub-border);
	text-align: left;
	line-height: 1.6;
}

.sub-table th {
	width: 140px;
	background: #fff6e6;
	color: #222;
	font-weight: 600;
}

/* 공유 푸터 셀렉트 포커스 색상(초록 → 오렌지) */
.page-sub .footer-drop__control:focus-within {
	outline-color: rgba(255, 153, 0, 0.35);
}

/* ===== 반응형 ===== */
@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 {
		min-width: 0;
		width: 100%;
		padding: 0 16px;
	}
}

@media (max-width: 768px) {
	.sub-body {
		padding: 44px 0 64px;
	}

	.sub-section + .sub-section {
		margin-top: 40px;
	}
}

@media (max-width: 600px) {
	.sub-util-bar__inner {
		min-height: 50px;
	}

	.sub-util-bar__home {
		width: 48px;
		font-size: 15px;
	}

	.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;
		white-space: nowrap;
	}

	.sub-body {
		padding: 36px 0 56px;
	}

	.sub-section__title {
		font-size: 18px;
	}

	.sub-text,
	.sub-list li {
		font-size: 15px;
	}

	.sub-table {
		font-size: 14px;
	}

	.sub-table th {
		width: 92px;
		padding: 11px 12px;
	}

	.sub-table td {
		padding: 11px 12px;
	}
}


.sub-body .sub-body__inner img{ width: auto; height: auto;}
.sub-body .sub-body__inner #content .tableBasic tr td.center img{ display:inline-block;}
.tableround tr th {    vertical-align: middle;}

/* 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: var(--sub-ink);
		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-primary-dark);
		background: #f8f8f8;
	}

	.sub-tabs-dropdown__arrow {
		font-size: 22px;
		color: var(--sub-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(--sub-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: var(--sub-ink);
		justify-content: flex-start;
	}

	.sub-tabs-dropdown .sub_tabs li a:hover {
		background: #f8f8f8;
	}

	.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: #f8f8f8;
	}

	.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-primary-dark) !important;
		background: none;
	}
}