/* ----- Sub Page (송강학숙) ----- */
.page-sub {
	--sub-hero-height: 200px;
	--sub-util-height: 56px;
	--sub-content-max: var(--content-max);
	--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;
}

/* sub_tabs — 데스크톱은 기존 탭, 트리거 숨김 */
.sub-tabs-dropdown__trigger {
	display: none;
}


.sub-hero {
	position: relative;
	box-sizing: border-box;
	height: 300px;
	margin: 0 auto 40px;
	overflow: visible;
	border-radius: 0px;
	width: 100%;
	border-radius: 0px;
}

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

.sub-hero__overlay {
	border-radius: inherit;
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--color-overlay);
	pointer-events: none;
}

.sub-hero__content {
	padding-bottom: var(--sub-util-height);
	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: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	z-index: 5;
	width: 100%;
	max-width: var(--sub-content-max);
	padding: 0;
}

.sub-util-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	background: rgba(0, 0, 0, 0.55);
	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-accent);
	color: #fff;
	font-size: 16px;
	transition: background-color 0.2s ease;
	min-height:56px;
}

.sub-util-bar__home:hover {
	background: var(--sub-accent-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 #e6e6e6;
	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;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-util-bar__menu a:hover {
	background: var(--sub-accent-hover-bg);
	color: var(--sub-accent);
}

.sub-util-bar__menu a.is-active {
	color: var(--sub-accent);
	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-util-bar__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
}

.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: #314156;
	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;
}

.facility-functions {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.facility-functions li {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	min-width: 0;
	min-height: 92px;
	padding: 20px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	color: #333;
	line-height: 1.6;
	word-break: keep-all;
}

.facility-functions i {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(170, 22, 116, 0.08);
	color: var(--primary);
	font-size: 19px;
}

.facility-buildings {
	display: flex;
	gap: 20px;
}

.facility-building {
	flex: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
}

.facility-building img {
	display: block;
	width: 100%;
	height: auto;
}

.facility-building figcaption {
	padding: 14px 18px;
	border-top: 1px solid #eee;
	font-size: 17px;
	font-weight: 600;
	color: #222;
	text-align: center;
}

.facility-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 20px;
}

.facility-card {
	display: flex;
	flex: 0 0 calc(50% - 10px);
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.facility-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.facility-card__image {
	flex: 0 0 43%;
	width: 43%;
	min-height: 210px;
	object-fit: cover;
}

.facility-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 24px 22px;
}

.facility-card__body h4 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #222;
	letter-spacing: -0.025em;
}

.facility-card__body h4 span {
	font-size: 15px;
	font-weight: 500;
	color: #777;
}

.facility-card__body p {
	margin: 0;
	color: #666;
	font-size: 15px;
	line-height: 1.7;
	word-break: keep-all;
}

.facility-office {
	padding: 30px 32px;
	border-radius: 12px;
	background: #f8f8f8;
}

.facility-office__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #e2e2e2;
	list-style: none;
}

.facility-office__list li {
	position: relative;
	flex: 0 0 calc(50% - 14px);
	padding-left: 14px;
	color: #444;
	font-size: 15px;
	line-height: 1.6;
}

.facility-office__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--primary);
}

@media (max-width: 1510px) {
	.sub-hero {
		width: auto;
		margin-left: 30px;
		margin-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;}

}

@media (max-width: 1024px) {
	.sub-main__inner {
		flex-direction: column;
		gap: 32px;
	}

	.lnb {
		display: none;
	}

	.facility-functions {
		flex-wrap: wrap;
	}

	.facility-functions li {
		flex: 0 0 calc(50% - 7px);
	}

	.facility-card {
		flex-direction: column;
	}

	.facility-card__image {
		flex-basis: auto;
		width: 100%;
		height: 220px;
		min-height: 0;
	}
}

@media (max-width: 768px) {
	.page-sub {
		--sub-hero-height: 180px;
		--sub-side-padding: 24px;
	}

	.sub-main {
		padding: 32px 0 72px;
	}

	.sub-page-title {
		margin-bottom: 24px;
		font-size: 28px;
	}

	.facility-buildings,
	.facility-cards {
		flex-direction: column;
	}

	.facility-building,
	.facility-card {
		flex-basis: auto;
		width: 100%;
	}

	.facility-card__image {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.facility-office__list li {
		flex-basis: 100%;
	}
}

@media (max-width: 768px) {
	.sub-hero { height: 180px; margin-right: 20px; margin-left: 20px; border-radius: 12px; }
}

@media (max-width: 768px) {
	.sub-main__inner { padding-right: 20px; padding-left: 20px; }
}

@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: 600px) {
	.page-sub { --sub-util-height: 50px; }
	.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; }

	.facility-functions {
		flex-direction: column;
	}

	.facility-functions li {
		flex-basis: auto;
		width: 100%;
		min-height: 76px;
		padding: 16px;
	}

	.facility-card__body {
		padding: 20px 18px 22px;
	}

	.facility-office {
		padding: 24px 20px;
	}

	/* sub_tabs → sub-util-bar__dropdown 과 유사한 드롭다운 */
	.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-accent);
		border-radius: 8px;
		background: #fff;
		font-size: 15px;
		font-weight: 500;
		color: var(--sub-accent-dark);
		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: #f8f8f8;
	}

	.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: var(--sub-accent-dark);
		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;
	}
}

@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;
	}
}

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