/* 게시판 작성 등 — 문의 작성(inqry-write)과 동일한 톤 */

/* 작성 화면 배경(문의 작성과 동일 톤, score 레이아웃 content 영역 기준) */
.board-write-page {
	background: transparent;
	min-height: calc(100vh - 120px);
	padding: 32px 0 48px;
	border-radius: 12px;
}

@keyframes boardFadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: boardFadeInUp 0.6s ease-out;
}

.contact-header {
	text-align: center;
	margin-bottom: 3rem;
}

.contact-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 0.5rem;
}

.contact-header p {
	font-size: 1.1rem;
	color: #6c757d;
}

.contact-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin-bottom: 2rem;
}

.contact-card-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	height: 8px;
}

.contact-card-body {
	padding: 3rem;
}

.board-card-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 0.25rem;
}

.board-card-sub {
	font-size: 0.95rem;
	color: #6c757d;
	font-weight: 400;
}

.form-label {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 0.5rem;
}

.form-label .required {
	color: #dc3545;
}

.input-group-text {
	background: #f8f9fa;
	color: #6c757d;
	border: 2px solid #e9ecef;
	border-right: none;
}

.form-control,
.form-select {
	border: 2px solid #e9ecef;
	border-radius: 10px;
	padding: 0.75rem 1rem;
	transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group .form-control,
.input-group .form-select {
	border-left: none;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.input-group.align-items-start .form-control {
	border-left: 2px solid #e9ecef;
}

.input-group-text {
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

/* 첨부 (inqry-write와 동일 패턴) */
.file-upload-wrapper {
	position: relative;
	border: 2px dashed #dee2e6;
	border-radius: 10px;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

.file-upload-wrapper:hover {
	border-color: #667eea;
	background-color: #f8f9ff;
}

.file-upload-wrapper input[type="file"] {
	display: none;
}

.file-upload-icon {
	font-size: 1.4rem;
	color: #667eea;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.file-name-hint {
	padding-left: 10px;
}

.upload-note {
	color: #666;
	margin-top: 5px;
	display: block;
}

/* 수정 화면 — 기존 첨부 목록 */
.board-attachment-area {
	background-color: #f8f9fa;
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 0.5rem;
	border: 1px solid #e9ecef;
}

.board-attachment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
}

.board-attachment-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.75rem;
	background-color: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	text-decoration: none;
	color: #495057;
	font-size: 0.9rem;
	transition: background-color 0.2s, border-color 0.2s;
}

.board-attachment-item:hover {
	background-color: #e9ecef;
	border-color: #adb5bd;
	color: #212529;
}

.board-attachment-item .bi {
	color: #6c757d;
}

.btn-submit,
.btn.btn-primary.btn-submit {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	padding: 0.875rem 2rem;
	font-weight: 600;
	border-radius: 10px;
	transition: all 0.3s ease;
	color: #fff;
}

.btn-submit:hover,
.btn.btn-primary.btn-submit:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-reset {
	background: #f8f9fa;
	border: 2px solid #dee2e6;
	color: #6c757d;
	padding: 0.875rem 2rem;
	font-weight: 600;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.btn-reset:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	color: #495057;
}

.btn-draft-board {
	background: #fff;
	border: 2px solid #dee2e6;
	color: #6c757d;
	padding: 0.875rem 2rem;
	font-weight: 600;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.btn-draft-board:hover {
	background: #f8f9fa;
	border-color: #adb5bd;
	color: #495057;
}

.info-card {
	background: linear-gradient(135deg, #e0e7ff 0%, #f0e7ff 100%);
	border-radius: 15px;
	padding: 2rem;
}

.info-card h5 {
	font-weight: 700;
	color: #667eea;
	margin-bottom: 1rem;
}

.info-card ul {
	list-style: none;
	padding-left: 0;
}

.info-card ul li {
	padding: 0.5rem 0;
	color: #4a5568;
	position: relative;
	padding-left: 1.5rem;
}

.info-card ul li:before {
	content: "•";
	color: #667eea;
	font-weight: bold;
	position: absolute;
	left: 0;
}

.success-message {
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	padding: 3rem;
	text-align: center;
}

.success-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.success-icon i {
	font-size: 2.5rem;
	color: white;
}

/* 레이아웃 공통(기존 notice 일부) */
.search-select {
	height: 34px;
}

.dropdown-toggle::after {
	content: none;
}

.dropup .dropdown-toggle::after {
	content: none;
}

body.score > picture {
	display: block;
	width: 100%;
	/* margin 단축 속성은 배너 시 margin-top 보정(score_new)을 덮어쓰므로 상하좌우 분리 */
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
}

body.score > picture img {
	width: 100%;
	display: block;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 0;
}

.score-wrapper {
	background: #f5f4f2;
	min-height: 100vh;
}

/* 공지 목록 */
.board-list-page {
	background: transparent;
	min-height: calc(100vh - 120px);
	padding: 32px 0 48px;
}

.board-list-search-body {
	padding: 1.5rem 2rem !important;
}

/* 목록 검색: 구분·검색어 높이 통일 (전역 form-control/form-select 패딩보다 우선) */
.board-list-search-body .board-list-search-control.form-select-sm,
.board-list-search-body .board-list-search-input-group.input-group-sm > .form-control,
.board-list-search-body .board-list-search-input-group.input-group-sm > .input-group-text {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	min-height: 31px;
	box-sizing: border-box;
}

.board-list-search-body .board-list-search-input-group.input-group-sm > .input-group-text {
	display: flex;
	align-items: center;
}

.board-list-search-body .btn-submit.btn-sm {
	padding: 0.25rem 0.75rem;
	min-height: 31px;
}

/* md+: 검색어 열이 남는 폭을 채워 검색 버튼이 카드 오른쪽에 붙음 (col-sm-6 잔여 폭 고정 방지) */
@media (min-width: 768px) {
	.board-list-search-body .board-list-search-keyword-col {
		flex: 1 1 0% !important;
		width: auto !important;
		max-width: none;
	}

	/* 목록 테이블: 검색 카드와 동일한 좌우 패딩(2rem)으로 카드 안 균형 맞춤 */
	.notice-table-responsive {
		padding-left: 2rem;
		padding-right: 2rem;
		box-sizing: border-box;
	}
}

@media (max-width: 767.98px) {
	.board-list-search-body {
		padding: 1.25rem 1.25rem !important;
	}

	.board-list-search-body .board-list-search-control.form-select-sm,
	.board-list-search-body .board-list-search-input-group.input-group-sm > .form-control {
		font-size: 16px; /* Prevent iOS focus zoom */
	}

	/* 목록 테이블: 검색 카드(.board-list-search-body)와 동일한 좌우 여백 */
	.notice-table-responsive {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
		box-sizing: border-box;
	}
}

.notice-table-responsive {
	border-radius: 0 0 20px 20px;
}

.notice-table thead th {
	font-size: 0.875rem;
	font-weight: 600;
	color: #4a5568;
	border-bottom-width: 2px;
	white-space: nowrap;
}

.notice-table thead th.notice-admin-col {
	width: 8.5rem;
}

.notice-table tbody td {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
	vertical-align: middle;
	border-color: #edf2f7;
}

.notice-title-txt {
	font-weight: 600;
	color: #2c3e50;
	word-break: break-word;
}

.notice-cat {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.35em 0.75em;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.notice-cat--sd {
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notice-cat--nt {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* is_public = N (임시저장·비공개) — 목록 제목 위 배지 */
.notice-draft-badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.35em 0.65em;
	color: #92400e;
	background: #fef3c7;
	border: 1px solid #fcd34d;
}

.notice-new-badge {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.3em 0.55em;
	color: #fff;
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	border: none;
	box-shadow: 0 1px 4px rgba(245, 87, 108, 0.35);
}

/* 목록: 제목 텍스트 끝 바로 오른쪽에 붙임 */
.notice-new-badge--inline {
	display: inline-block;
	vertical-align: middle;
	margin-left: 0.35rem;
	margin-top: -0.05em;
}

.notice-admin-actions {
	min-width: 0;
}

.notice-title-link {
	color: inherit;
	display: inline;
}

.notice-title-link:hover .notice-title-txt {
	text-decoration: underline;
	color: #667eea;
}

/* 상세 본문 */
.board-view-title {
	font-weight: 700;
	color: #2c3e50;
	word-break: break-word;
}

.board-view-content.score-board-html {
	font-size: 1rem;
	line-height: 1.65;
	color: #2d3748;
	word-break: break-word;
}

.board-view-content.score-board-html img {
	max-width: 100%;
	height: auto;
}

.board-view-attach-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
}

.board-view-attach-link:hover {
	text-decoration: underline;
	color: #764ba2;
}

/* 상세 상단 — 목록·수정 (낮은 높이, pill) */
.board-view-actions {
	gap: 0.5rem;
	align-items: center;
}

.board-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.35rem 0.95rem;
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
		transform 0.2s ease, filter 0.2s ease;
}

.board-view-btn .bi {
	font-size: 0.95rem;
	vertical-align: -0.05em;
	opacity: 0.92;
}

.board-view-btn--list {
	background: #fff;
	border: 1.5px solid #e2e8f0;
	color: #475569;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.board-view-btn--list:hover {
	border-color: #a5b4fc;
	color: #667eea;
	background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
	box-shadow: 0 2px 10px rgba(102, 126, 234, 0.14);
	text-decoration: none;
}

.board-view-btn--edit {
	border: none;
	color: #fff;
	box-shadow: 0 2px 10px rgba(102, 126, 234, 0.28);
}

.board-view-btn--edit:hover {
	color: #fff;
	filter: brightness(1.06);
	box-shadow: 0 3px 14px rgba(118, 75, 162, 0.35);
	transform: translateY(-1px);
	text-decoration: none;
}

.board-view-btn--edit:focus-visible {
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.45);
}

/* `.btn-submit` 기본 패딩보다 우선 */
.board-view-btn.board-view-btn--edit.btn-submit.btn-sm {
	padding: 0.35rem 0.95rem;
	font-size: 0.8125rem;
	border-radius: 999px;
}

.board-view-btn.board-view-btn--edit.btn-submit.btn-sm:hover {
	transform: translateY(-1px);
}

/* 댓글 등록 — 낮은 높이 pill */
.board-comment-submit.btn.btn-primary.btn-submit.btn-sm {
	padding: 0.35rem 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.22);
}

.board-comment-submit.btn.btn-primary.btn-submit.btn-sm:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 12px rgba(102, 126, 234, 0.32);
}

/* 공통 댓글 (fragments/user/inc-comment) */
.board-comment-title {
	color: #2c3e50;
	font-weight: 700;
}

.board-comment-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.board-comment-item {
	padding: 1rem 1.1rem;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #edf2f7;
}

.board-comment-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.board-comment-author {
	font-weight: 600;
	color: #2c3e50;
	font-size: 0.95rem;
}

.board-comment-date {
	font-size: 0.8rem;
	color: #718096;
}

.board-comment-body-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem 0.75rem;
	flex-wrap: nowrap;
}

.board-comment-body-row .board-comment-body {
	flex: 1 1 auto;
	min-width: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.95rem;
	color: #4a5568;
	line-height: 1.55;
}

.board-comment-body-row .board-comment-actions {
	flex: 0 0 auto;
	margin-top: 0;
	align-self: flex-start;
}

.board-comment-actions .board-comment-delete {
	padding: 0.2rem 0.45rem;
	font-size: 0.72rem;
	line-height: 1.2;
	border-radius: 6px;
}

.board-comment-actions .board-comment-delete .bi {
	font-size: 0.8rem;
	vertical-align: -0.06em;
	margin-right: 0.15rem;
}

.board-comment-textarea {
	border-radius: 10px;
	border: 2px solid #e9ecef;
}

.board-comment-textarea:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.board-comment-login-hint a {
	font-weight: 600;
	color: #667eea;
	text-decoration: none;
}

.board-comment-login-hint a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.contact-card-body {
		padding: 2rem 1.5rem;
	}

	.contact-header h1 {
		font-size: 2rem;
	}

	.notice-table tbody tr {
		font-size: 0.95rem;
	}
}

@media (max-width: 767.98px) {
	.notice-table tbody tr[data-notice-view-url] {
		cursor: pointer;
	}

	/* 관리 열: 버튼만큼만 폭 사용 → 제목 열 확보 (태블릿·데스크톱은 thead의 8.5rem 유지) */
	.notice-table thead th.notice-admin-col {
		width: 1% !important;
		max-width: 5.5rem;
		padding-left: 0.35rem;
		padding-right: 0.25rem;
	}

	.notice-table tbody td.notice-admin-col {
		width: 20%;
		max-width: 5.5rem;
		padding-left: 0.35rem;
		padding-right: 0.25rem;
	}

	.notice-table .notice-admin-actions {
		gap: 0.25rem;
	}

	.notice-table .notice-admin-actions .btn-sm {
		padding: 0.2rem 0.35rem;
		font-size: 0.72rem;
		line-height: 1.2;
	}
}
