/* ===== 게시판 공통 뱃지 ===== */
.badge_secret,
.badge_reply,
.badge_notice {
	display: inline-block;
	margin-right: 0.8rem;
	padding: 0.3rem 0.8rem;
	font-size: 1.3rem;
	line-height: 1.4;
	border-radius: 0.4rem;
	vertical-align: middle;
	font-weight: 600;
}
.badge_secret { background: #f3e8ff; color: #7c3aed; }
.badge_reply { background: #e8f5e9; color: #2e7d32; }
.badge_notice { background: #ffebee; color: #c62828; }

.board_empty {
	padding: 6rem 0;
	text-align: center;
	color: #666;
	font-size: 1.6rem;
}
.txt_error {
	color: #c62828;
	margin-bottom: 1.6rem;
	font-size: 1.5rem;
}
.sub_lnb li.on > a {
	font-weight: 700;
	color: #395999;
}

/* ===== 게시글 상세 ===== */
.board_view_wrap {
	width: 100%;
	border-top: 2px solid #222;
}

.board_view_head {
	padding: 2.4rem 0 2rem;
	border-bottom: 1px solid #e5e5e5;
}

.board_view_title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1.6rem;
}

.board_view_title h4 {
	margin: 0;
	font-size: 2.2rem;
	font-weight: 700;
	color: #222;
	letter-spacing: -0.03em;
	line-height: 1.4;
	word-break: keep-all;
}

.board_view_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2.4rem;
	margin: 0;
	padding: 0;
}

.board_view_meta li {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 1.5rem;
	color: #555;
	line-height: 1.4;
}

.board_view_meta .meta_label {
	color: #888;
	font-weight: 500;
}

.board_view_meta .meta_label::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 1.2rem;
	margin-left: 0.8rem;
	background: #ddd;
	vertical-align: middle;
}

.board_view_meta .meta_value {
	color: #333;
	font-weight: 500;
}

.board_view_content {
	min-height: 28rem;
	padding: 3.2rem 0.4rem;
	font-size: 1.6rem;
	line-height: 1.8;
	color: #333;
	letter-spacing: -0.02em;
	word-break: break-word;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
}

.board_view_content img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	margin: 1.6rem 0;
	float: none;
}

/* 에디터 가운데/오른쪽 정렬 이미지도 상세에서는 좌측 통일 */
.board_view_content .ql-align-center,
.board_view_content .ql-align-right,
.board_view_content p[style*="text-align"] {
	text-align: left !important;
}

.board_view_btns {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 3.2rem;
	padding-top: 0;
}

.board_view_btns a,
.board_view_btns button,
.board_btns .btn_write {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	height: 4.4rem;
	padding: 0 2.4rem;
	background: #395999;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	border-radius: 0.4rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.board_view_btns a:hover,
.board_view_btns button:hover,
.board_btns .btn_write:hover {
	background: #2f4c82;
}

.board_view_btns .btn_list {
	background: #6b7280;
}

.board_view_btns .btn_list:hover {
	background: #4b5563;
}

.board_btns {
	margin: 1.6rem 0;
	text-align: right;
}

/* ===== 첨부파일 (논문도서관 등) ===== */
.board_view_files {
	padding: 2rem 0 2.4rem;
	border-bottom: 1px solid #e5e5e5;
}

.board_view_images {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.6rem;
	padding: 2rem 0 0;
	border-bottom: 0;
}

.board_view_image_item {
	margin: 0;
	width: 100%;
	text-align: left;
}

.board_view_image_item a {
	display: inline-block;
	max-width: 100%;
}

.board_view_image_item img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
}

.board_files_title {
	margin: 0 0 1.2rem;
	font-size: 1.6rem;
	font-weight: 700;
	color: #222;
}

.board_files_list {
	margin: 0;
	padding: 0;
}

.board_files_list li {
	margin-bottom: 0.8rem;
}

.board_files_list li:last-child {
	margin-bottom: 0;
}

.btn_download_file {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.8rem 1.2rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 0.4rem;
	color: #333;
	font-size: 1.5rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.btn_download_file:hover {
	background: #eef2f7;
	border-color: #c5d0e0;
	color: #395999;
}

.btn_download_file img {
	width: 2.2rem;
	height: 2.2rem;
	vertical-align: middle;
}

.library_wrap .btn_download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.library_wrap .txt_no_file {
	color: #999;
	font-size: 1.5rem;
}

.txt_no_content {
	margin: 0;
	color: #666;
	font-size: 1.5rem;
}

/* ===== 비밀글 확인 ===== */
.board_secret_form {
	padding: 6rem 2rem;
	border-bottom: 1px solid #e5e5e5;
}

.board_secret_inner {
	max-width: 48rem;
	margin: 0 auto;
	padding: 4rem 3.2rem;
	text-align: center;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 1.2rem;
}

.board_secret_inner h4 {
	margin: 1.2rem 0 0.8rem;
	font-size: 2.2rem;
	font-weight: 700;
	color: #222;
}

.board_secret_inner > p {
	margin: 0 0 2.4rem;
	font-size: 1.5rem;
	color: #666;
	line-height: 1.6;
}

.board_secret_check_form {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.board_secret_check_form .input_md {
	width: 24rem;
	max-width: 100%;
	height: 4.4rem;
	padding: 0 1.6rem;
	border: 1px solid #ddd;
	border-radius: 0.4rem;
	font-size: 1.5rem;
}

.board_secret_check_form .btn_submit {
	height: 4.4rem;
	min-width: 9rem;
}

/* ===== 관리자 답변 ===== */
.board_reply_wrap {
	margin-top: 0;
	padding: 2.8rem 2.4rem;
	background: #f5f8fc;
	border-bottom: 1px solid #e5e5e5;
}

.board_reply_wrap > h4 {
	margin: 0 0 1.6rem;
	font-size: 1.8rem;
	font-weight: 700;
	color: #395999;
}

.board_reply_empty {
	margin: 0;
	font-size: 1.5rem;
	color: #888;
}

.board_reply_list {
	margin: 0;
	padding: 0;
}

.board_reply_list li {
	margin-bottom: 1.4rem;
	padding: 1.6rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.8rem;
}

.board_reply_list li:last-child {
	margin-bottom: 0;
}

.board_reply_list .reply_meta {
	display: flex;
	gap: 1.2rem;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 1.4rem;
	color: #666;
}

.board_reply_list .reply_meta strong {
	color: #395999;
	font-weight: 700;
}

.board_reply_list .reply_content {
	font-size: 1.5rem;
	line-height: 1.7;
	color: #333;
}

/* ===== 글쓰기 폼 ===== */
.board_write_wrap {
	width: 100%;
	border-top: 2px solid #222;
}

.board_write_form {
	width: 100%;
}

.board_write_list {
	margin: 0;
	padding: 0;
}

.board_write_list > li {
	display: flex;
	align-items: stretch;
	min-height: 6.4rem;
	border-bottom: 1px solid #e5e5e5;
}

.board_write_list > li.row_content {
	min-height: 28rem;
	align-items: stretch;
}

.board_write_list .input_title {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 16rem;
	padding: 1.6rem 2rem;
	background: #f7f9fc;
	border-right: 1px solid #e5e5e5;
	margin: 0;
}

.board_write_list .txt_input_title {
	font-size: 1.6rem;
	font-weight: 600;
	color: #333;
	letter-spacing: -0.02em;
}

.board_write_list .txt_input_title::before {
	content: "*";
	margin-right: 0.4rem;
	color: #c62828;
	font-weight: 700;
}

.board_write_list .row_option .txt_input_title::before {
	display: none;
}

.board_write_list .field_content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.4rem 2rem;
	gap: 0.8rem;
}

.board_write_list .row_content .field_content {
	padding: 2rem;
}

.board_write_form .input_full,
.board_write_form .input_md,
.board_write_form .input_textarea {
	width: 100%;
	border: 1px solid #ddd;
	border-radius: 0.4rem;
	background: #fff;
	font-size: 1.5rem;
	color: #222;
	outline: none;
	transition: border-color 0.2s ease;
}

.board_write_form .input_full,
.board_write_form .input_md {
	height: 4.4rem;
	padding: 0 1.6rem;
}

.board_write_form .input_md {
	max-width: 32rem;
}

.board_write_form .input_textarea {
	min-height: 24rem;
	padding: 1.4rem 1.6rem;
	line-height: 1.7;
	resize: vertical;
}

.board_write_form .input_full:focus,
.board_write_form .input_md:focus,
.board_write_form .input_textarea:focus {
	border-color: #395999;
}

.board_write_form .field_guide {
	margin: 0;
	font-size: 1.3rem;
	color: #888;
}

.board_write_form .check_secret {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0;
	font-size: 1.5rem;
	font-weight: 500;
	color: #333;
	cursor: pointer;
}

.board_write_form .check_secret input {
	width: 1.8rem;
	height: 1.8rem;
	accent-color: #395999;
}

/* ===== 기타 ===== */
.register_check_result {
	margin: 2rem 0;
	padding: 2rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.8rem;
}
.register_confirm_info { margin-top: 1.2rem; line-height: 1.8; }
.register_confirm_guide { margin-top: 1.6rem; }
.archive_history_intro { margin: 1.2rem 0 2rem; line-height: 1.7; }
.archive_history_table { width: 100%; border-collapse: collapse; }
.archive_history_table th,
.archive_history_table td { border: 1px solid #ddd; padding: 1.2rem; text-align: center; }
.archive_history_table th { background: #f5f5f5; }

@media (max-width: 767.98px) {
	.board_write_list > li,
	.board_write_list > li.row_content {
		flex-direction: column;
		min-height: 0;
	}

	.board_write_list .input_title {
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #e5e5e5;
		padding: 1.2rem 1.6rem;
	}

	.board_write_form .input_md {
		max-width: 100%;
	}

	.board_view_title h4 {
		font-size: 1.8rem;
	}

	.board_view_content {
		min-height: 18rem;
		padding: 2.4rem 0;
	}

	.board_view_btns {
		justify-content: center;
	}

	.board_secret_check_form {
		flex-direction: column;
	}

	.board_secret_check_form .input_md {
		width: 100%;
	}
}
