@charset "utf-8";

/* ============================== 토큰 */
:root {
	--bd-navy: #1e3a5f;
	--bd-text: #1f2937;
	--bd-muted: #6b7280;
	--bd-light: #9aa4b2;
	--bd-line: #e5e9ef;
	--bd-accent: #2f6fb5;
	--bd-max: 1280px;
	--bd-pad: 24px;
}

.content-wrapper {
	margin-bottom: 0 !important;
}

/* ============================== 레이아웃 */
.bd-page {
	padding: 28px 0 110px;
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	color: var(--bd-text);
	background: #ffffff;
}

/* 서브페이지 공통 콘텐츠 폭: 1280px + 좌우 24px (768px 이하 16px) */
.bd-inner {
	max-width: var(--bd-max);
	margin: 0 auto;
	padding: 0 var(--bd-pad);
}

.bd-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--bd-light);
}

.bd-crumb a {
	color: inherit;
	text-decoration: none !important;
}

.bd-crumb strong {
	font-weight: 600;
	color: var(--bd-muted);
}

/* ============================== 타이틀 */
.bd-head {
	padding: 44px 0 64px;
	text-align: center;
}

.bd-head__title {
	margin: 0 0 24px;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #111827;
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
	line-height: 1.2;
}

.bd-head__desc {
	margin: 0 auto;
	max-width: 720px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--bd-muted);
	word-break: keep-all;
}

.bd-head__desc:empty {
	display: none;
}

/* ============================== 검색 */
.bd-search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0 56px 64px;
	padding: 0 32px;
	background: #ffffff;
	border: 1px solid var(--bd-line);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(20, 40, 63, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bd-search:focus-within {
	border-color: #b9d3ee;
	box-shadow: 0 6px 18px rgba(47, 111, 181, 0.12);
}

.bd-search__icon {
	flex: none;
	color: var(--bd-light);
}

.bd-search__input {
	flex: 1;
	min-width: 0;
	height: 76px;
	padding: 0 14px;
	font-size: 16px;
	color: var(--bd-text);
	background: transparent;
	border: 0;
	outline: none;
}

.bd-search__input::placeholder {
	color: var(--bd-light);
}

.bd-search__btn {
	flex: none;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bd-navy);
	background: none;
	border: 0;
	cursor: pointer;
}

.bd-search__btn:hover {
	color: var(--bd-accent);
}

/* ============================== 탭 */
.bd-tabs__list,
.bd-subtabs__list {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--bd-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.bd-tabs__list::-webkit-scrollbar,
.bd-subtabs__list::-webkit-scrollbar {
	display: none;
}

.bd-tab,
.bd-subtab {
	position: relative;
	display: block;
	flex: none;
	padding: 0 26px 20px;
	font-size: 17px;
	font-weight: 500;
	color: var(--bd-light);
	white-space: nowrap;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.bd-tab:hover,
.bd-subtab:hover {
	color: var(--bd-navy);
}

.bd-tab::after,
.bd-subtab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--bd-navy);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.bd-tab.active,
.bd-subtab.active {
	font-weight: 700;
	color: var(--bd-navy);
}

.bd-tab.active::after,
.bd-subtab.active::after {
	opacity: 1;
}

/* ============================== 목록 (DataTables 래핑) */
.bd-table,
.bd-table thead,
.bd-table tbody,
.bd-table tr,
.bd-table td,
.bd-table th {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.bd-table thead {
	display: none;
}

.bd-table td {
	padding: 0 !important;
}

.dataTables_wrapper .dataTables_processing {
	color: var(--bd-light);
	font-size: 13px;
}

.bd-empty {
	padding: 80px 0;
	font-size: 14px;
	color: var(--bd-light);
	text-align: center;
}

/* ============================== 아코디언 항목 */
.bd-item {
	border-bottom: 1px solid var(--bd-line);
}

.bd-item__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 34px 50px 34px 22px;
	color: var(--bd-text);
	text-decoration: none !important;
	cursor: pointer;
	transition: color 0.2s ease;
}

.bd-item__head:hover {
	color: var(--bd-accent);
}

.bd-item__q {
	flex: none;
	font-size: 16px;
	font-weight: 700;
	color: var(--bd-light);
}

.bd-item.is-open .bd-item__q {
	color: var(--bd-accent);
}

.bd-item__title {
	flex: 1;
	min-width: 0;
	font-size: 16px;
	line-height: 1.6;
	word-break: keep-all;
}

.bd-item.is-open .bd-item__title {
	font-weight: 700;
	color: var(--bd-navy);
}

.bd-item__cat,
.bd-item__date {
	flex: none;
	font-size: 12px;
	color: var(--bd-light);
	white-space: nowrap;
}

.bd-item__arrow {
	flex: none;
	color: var(--bd-light);
	transition: transform 0.25s ease, color 0.2s ease;
}

.bd-item.is-open .bd-item__arrow {
	transform: rotate(180deg);
	color: var(--bd-accent);
}

.bd-item__arrow--link {
	transform: none;
}

.bd-item__body {
	padding: 4px 50px 34px 50px;
	font-size: 15px;
	line-height: 1.9;
	color: var(--bd-muted);
	word-break: keep-all;
}

.bd-item__body img {
	max-width: 100%;
	height: auto;
}

.bd-file {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 14px 16px;
	font-size: 13px;
	background: #f7f9fc;
	border-radius: 8px;
}

.bd-file__label {
	font-weight: 600;
	color: var(--bd-muted);
}

.bd-file a {
	color: var(--bd-accent);
}

/* ============================== 페이징 */
.dataTables_wrapper .dataTables_paginate {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 44px;
	padding: 0;
}

.dataTables_wrapper .pagination {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dataTables_wrapper .pagination .page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	font-size: 13px;
	color: var(--bd-muted);
	background: #ffffff;
	border: 1px solid var(--bd-line);
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dataTables_wrapper .pagination .page-link:hover {
	color: var(--bd-navy);
	border-color: #b9d3ee;
}

.dataTables_wrapper .pagination .active .page-link {
	font-weight: 700;
	color: #ffffff;
	background: var(--bd-navy);
	border-color: var(--bd-navy);
}

.dataTables_wrapper .pagination .disabled .page-link {
	color: #d3d9e2;
	background: #ffffff;
}

/* ============================== 반응형 */
@media (max-width: 768px) {
	:root {
		--bd-pad: 16px;
	}

	.bd-page {
		padding: 20px 0 72px;
	}

	.bd-head {
		padding: 28px 0 36px;
	}

	.bd-head__title {
		font-size: 26px;
		margin-bottom: 16px;
	}

	.bd-head__desc {
		font-size: 13px;
	}

	.bd-search {
		margin: 0 0 32px;
		padding: 0 16px;
	}

	.bd-search__input {
		height: 50px;
		font-size: 14px;
	}

	.bd-tabs__list,
	.bd-subtabs__list {
		gap: 22px;
	}

	.bd-tab,
	.bd-subtab {
		font-size: 15px;
		padding: 0 6px 12px;
	}

	.bd-item__head {
		gap: 10px;
		padding: 20px 4px;
	}

	.bd-item__q,
	.bd-item__title {
		font-size: 14px;
	}

	.bd-item__cat,
	.bd-item__date {
		display: none;
	}

	.bd-item__body {
		padding: 2px 4px 22px 28px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bd-item__arrow,
	.bd-item__head,
	.bd-search,
	.dataTables_wrapper .pagination .page-link {
		transition: none;
	}
}
