/* ==========================================================================
   KBoard list-2501 Skin - Clean Minimal List
   Design: Simple text list with clean typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
	--list2501-text: #333d4b;
	--list2501-text-secondary: #6b7684;
	--list2501-text-tertiary: #8b95a1;
	--list2501-border: #e5e8eb;
	--list2501-bg: #ffffff;
	--list2501-bg-secondary: #f9fafb;
	--list2501-primary: #3182f6;
	--list2501-hover: #f2f4f6;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ==========================================================================
   LIST - 목록
   ========================================================================== */

#kboard-list2501-list {
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

/* 카테고리 */
#kboard-list2501-list .kboard-category {
	margin-bottom: 32px;
}

#kboard-list2501-list .category-mobile {
	display: none;
}

#kboard-list2501-list .kboard-category select {
	padding: 10px 16px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--list2501-bg);
	margin-right: 8px;
}

#kboard-list2501-list .kboard-category select:focus {
	outline: none;
	border-color: var(--list2501-primary);
}

#kboard-list2501-list .kboard-category-list {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}

#kboard-list2501-list .kboard-category-list li a {
	display: inline-block;
	padding: 6px 14px;
	font-size: 14px;
	color: var(--list2501-text-secondary);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
}

#kboard-list2501-list .kboard-category-list li a:hover {
	background: var(--list2501-hover);
	color: var(--list2501-text);
}

#kboard-list2501-list .kboard-category-list li.kboard-category-selected a {
	background: var(--list2501-primary);
	color: white;
	font-weight: 500;
}

/* 트리 카테고리 */
#kboard-list2501-list .kboard-tree-category-search {
	margin-bottom: 24px;
}

#kboard-list2501-list .kboard-tree-category-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#kboard-list2501-list .kboard-search-option-wrap select {
	padding: 10px 16px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--list2501-bg);
}

#kboard-list2501-list .kboard-search-option-wrap select:focus {
	outline: none;
	border-color: var(--list2501-primary);
}

#kboard-list2501-list .kboard-tree-category {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

#kboard-list2501-list .kboard-tree-category li a {
	display: inline-block;
	padding: 6px 14px;
	font-size: 14px;
	color: var(--list2501-text-secondary);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
}

#kboard-list2501-list .kboard-tree-category li a:hover {
	background: var(--list2501-hover);
	color: var(--list2501-text);
}

#kboard-list2501-list .kboard-tree-category li.kboard-category-selected a {
	background: var(--list2501-primary);
	color: white;
	font-weight: 500;
}

/* 목록 */
.list2501-list {
	margin-bottom: 40px;
}

.list2501-item {
	border-bottom: 1px solid var(--list2501-border);
}

.list2501-item:first-child {
	border-top: 1px solid var(--list2501-border);
}

.list2501-item a {
	display: block;
	padding: 20px 4px;
	text-decoration: none;
	color: inherit;
}

.list2501-title {
	font-size: 16px;
	font-weight: 500;
	color: var(--list2501-primary);
	margin: 0 0 6px 0;
	line-height: 1.5;
}

.list2501-title:hover {
	text-decoration: underline;
}

.list2501-secret {
	margin-right: 4px;
	font-size: 14px;
	color: var(--list2501-text-tertiary);
}

.list2501-new {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 5px;
	font-size: 11px;
	font-weight: 600;
	color: white;
	background: #f04452;
	border-radius: 3px;
	vertical-align: middle;
}

.list2501-date {
	font-size: 14px;
	color: var(--list2501-text-tertiary);
	font-weight: 400;
}

.list2501-notice {
	background: transparent;
}

.list2501-notice .list2501-title {
	color: var(--list2501-primary);
	font-weight: 600;
}

.list2501-popular {
	background: rgba(249, 115, 22, 0.05);
}

.list2501-popular .list2501-title {
	color: #ea580c;
}

.list2501-popular-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #f97316;
	color: white;
	font-size: 11px;
	font-weight: 600;
	border-radius: 4px;
	margin-right: 8px;
	vertical-align: middle;
}

/* 빈 목록 */
.list2501-empty {
	text-align: center;
	padding: 80px 20px;
	color: var(--list2501-text-tertiary);
	font-size: 15px;
}

/* 페이징 */
.list2501-pagination {
	text-align: center;
	margin: 40px 0;
}

.list2501-pagination ul {
	display: inline-flex;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 0;
}

.list2501-pagination li {
	display: inline-block;
}

.list2501-pagination a,
.list2501-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 4px;
	text-align: center;
	text-decoration: none;
	color: var(--list2501-text-secondary);
	font-size: 14px;
	border-radius: 50%;
	transition: all 0.2s;
	background: transparent;
}

.list2501-pagination a:hover {
	color: var(--list2501-text);
}

.list2501-pagination .current a,
.list2501-pagination .current span {
	background: var(--list2501-text);
	color: white;
	font-weight: 500;
	min-width: 32px;
	height: 32px;
}

.list2501-pagination .prevnext a,
.list2501-pagination .first a,
.list2501-pagination .last a {
	color: var(--list2501-text-tertiary);
	font-size: 16px;
}

.list2501-pagination .prevnext a:hover,
.list2501-pagination .first a:hover,
.list2501-pagination .last a:hover {
	color: var(--list2501-text);
}

/* 말줄임표 */
.list2501-pagination .dots span {
	color: var(--list2501-text-tertiary);
	background: transparent;
}

/* 하단 영역 */
.list2501-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--list2501-border);
}

/* 검색 */
.list2501-search form {
	display: flex;
	gap: 8px;
}

.list2501-search select {
	padding: 0 12px;
	height: 40px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--list2501-text);
	background: white;
	cursor: pointer;
}

.list2501-search input[type="text"] {
	width: 200px;
	padding: 0 14px;
	height: 40px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--list2501-text);
}

.list2501-search input[type="text"]:focus {
	outline: none;
	border-color: var(--list2501-primary);
}

.list2501-search button {
	padding: 0 20px;
	height: 40px;
	background: var(--list2501-text);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.list2501-search button:hover {
	background: var(--list2501-text-secondary);
}

/* 글쓰기 버튼 */
.list2501-btn-write {
	display: inline-block;
	padding: 0 24px;
	height: 40px;
	line-height: 40px;
	background: var(--list2501-primary);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s;
}

.list2501-btn-write:hover {
	background: #1b64da;
	color: white;
}

/* ==========================================================================
   DOCUMENT - 상세페이지
   ========================================================================== */

#kboard-list2501-document {
	margin: 0 auto;
	padding: 0;
	width: 100%;
}

/* 헤더 */
.list2501-document-header {
	padding-bottom: 24px;
	border-bottom: 2px solid var(--list2501-text);
	margin-bottom: 40px;
}

.list2501-document-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--list2501-text);
	margin: 0 0 16px 0;
	line-height: 1.4;
}

.list2501-document-meta {
	display: flex;
	gap: 16px;
	font-size: 14px;
	color: var(--list2501-text-tertiary);
}

.list2501-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.list2501-meta-item strong {
	font-weight: 500;
	color: var(--list2501-text-secondary);
}

/* 내용 */
.list2501-document-content {
	font-size: 16px;
	line-height: 1.75;
	color: var(--list2501-text);
	min-height: 200px;
	margin-bottom: 60px;
}

.list2501-document-content p {
	margin: 0 0 16px 0;
}

.list2501-document-content img {
	max-width: 100%;
	height: auto;
	margin: 24px 0;
	border-radius: 8px;
}

.list2501-document-content h1,
.list2501-document-content h2,
.list2501-document-content h3 {
	margin: 32px 0 16px 0;
	font-weight: 700;
	color: var(--list2501-text);
}

/* 첨부파일 */
.list2501-attachments {
	background: var(--list2501-bg-secondary);
	padding: 20px;
	border-radius: 8px;
	margin: 32px 0;
}

.list2501-attachments strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--list2501-text);
	margin-bottom: 12px;
}

.list2501-attachments ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.list2501-attachments li {
	padding: 8px 0;
	border-bottom: 1px solid var(--list2501-border);
}

.list2501-attachments li:last-child {
	border-bottom: none;
}

.list2501-attachments a {
	color: var(--list2501-primary);
	text-decoration: none;
	font-size: 14px;
}

.list2501-attachments a:hover {
	text-decoration: underline;
}

.list2501-file-size {
	color: var(--list2501-text-tertiary);
	font-size: 13px;
	margin-left: 8px;
}

/* 버튼 */
.list2501-document-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 32px 0;
	border-top: 1px solid var(--list2501-border);
}

.list2501-btn {
	display: inline-block;
	padding: 0 20px;
	height: 40px;
	line-height: 40px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	background: white;
	color: var(--list2501-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
}

.list2501-btn:hover {
	background: var(--list2501-hover);
}

.list2501-btn-primary {
	background: var(--list2501-primary);
	border-color: var(--list2501-primary);
	color: white;
}

.list2501-btn-primary:hover {
	background: #1b64da;
	border-color: #1b64da;
	color: white;
}

.list2501-btn-danger {
	border-color: #f04452;
	color: #f04452;
}

.list2501-btn-danger:hover {
	background: #f04452;
	color: white;
}

/* 댓글 */
.list2501-comments {
	margin-top: 60px;
	padding-top: 32px;
	border-top: 2px solid var(--list2501-border);
}

/* 추천/비추천 */
.list2501-vote {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 32px 0;
}

.list2501-vote button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 20px;
	height: 40px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	background: white;
	color: var(--list2501-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.list2501-vote button:hover {
	background: var(--list2501-hover);
}

/* ==========================================================================
   EDITOR - 에디터
   ========================================================================== */

#kboard-list2501-editor {
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.list2501-editor-form {
	margin-bottom: 24px;
}

/* 에디터 필드 행 */
.kboard-attr-row {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--list2501-border);
}

.kboard-attr-row:last-child {
	border-bottom: none;
}

/* 필드 라벨 */
.kboard-attr-row .attr-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--list2501-text);
	margin-bottom: 10px;
}

.kboard-attr-row .field-name {
	color: var(--list2501-text);
}

.kboard-attr-row .attr-required-text {
	color: #f04452;
	margin-left: 4px;
}

/* 필드 값 영역 */
.kboard-attr-row .attr-value {
	width: 100%;
}

/* 입력 필드 */
.kboard-attr-row input[type="text"],
.kboard-attr-row input[type="password"],
.kboard-attr-row input[type="email"],
.kboard-attr-row input[type="url"],
.kboard-attr-row input[type="tel"],
.kboard-attr-row input[type="number"],
.kboard-attr-row input[type="datetime-local"],
.kboard-attr-row textarea,
.kboard-attr-row select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
	font-size: 15px;
	color: var(--list2501-text);
	background: white;
	transition: all 0.2s;
}

.kboard-attr-row input:focus,
.kboard-attr-row textarea:focus,
.kboard-attr-row select:focus {
	outline: none;
	border-color: var(--list2501-primary);
	box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
}

.kboard-attr-row textarea,
.kboard-attr-row .editor-textarea {
	min-height: 200px;
	resize: vertical;
	line-height: 1.6;
}

/* 파일 입력 */
.kboard-attr-row input[type="file"] {
	padding: 8px 0;
	border: none;
	font-size: 14px;
}

/* 체크박스/라디오 */
.kboard-attr-row .attr-value-label,
.kboard-attr-row .attr-value-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 16px;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--list2501-text);
	cursor: pointer;
}

.kboard-attr-row input[type="checkbox"],
.kboard-attr-row input[type="radio"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* 리셋 버튼 */
.kboard-attr-row .attr-reset-button {
	display: inline-block;
	margin-left: 8px;
	padding: 4px 12px;
	font-size: 13px;
	color: var(--list2501-text-secondary);
	border: 1px solid var(--list2501-border);
	border-radius: 6px;
	transition: all 0.2s;
}

.kboard-attr-row .attr-reset-button:hover {
	background: var(--list2501-hover);
	color: var(--list2501-text);
}

/* 설명 텍스트 */
.kboard-attr-row .description {
	margin-top: 8px;
	font-size: 13px;
	color: var(--list2501-text-tertiary);
	line-height: 1.5;
}

/* 콘텐츠 에디터 영역 */
.kboard-attr-row .kboard-content {
	width: 100%;
}

.kboard-attr-row .kboard-content iframe {
	border: 1px solid var(--list2501-border);
	border-radius: 8px;
}

/* 주소 검색 */
.kboard-row-postcode,
.kboard-row-address-1,
.kboard-row-address-2 {
	margin-bottom: 8px;
}

.kboard-row-postcode input {
	display: inline-block;
	width: auto !important;
	margin-right: 8px;
}

.kboard-postcode-address-search-button {
	padding: 12px 16px;
	background: var(--list2501-text);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.kboard-postcode-address-search-button:hover {
	background: var(--list2501-text-secondary);
}

/* CAPTCHA */
.kboard-attr-row .g-recaptcha {
	margin-top: 8px;
}

/* 미디어 버튼 */
.kboard-attr-row a {
	color: var(--list2501-primary);
	text-decoration: none;
	font-weight: 500;
}

.kboard-attr-row a:hover {
	text-decoration: underline;
}

/* 에디터 액션 */
.list2501-editor-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--list2501-border);
	margin-top: 32px;
}

/* ==========================================================================
   LATEST - 최신글
   ========================================================================== */

.kboard-list2501-latest {
	padding: 20px 0;
}

.list2501-latest-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.list2501-latest-item {
	border-bottom: 1px solid var(--list2501-border);
}

.list2501-latest-item a {
	display: block;
	padding: 16px 0;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
}

.list2501-latest-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--list2501-text);
	margin: 0 0 6px 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.list2501-latest-date {
	font-size: 13px;
	color: var(--list2501-text-tertiary);
}

.list2501-latest-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--list2501-text-tertiary);
	font-size: 14px;
}

/* ==========================================================================
   CONFIRM - 비밀번호 확인
   ========================================================================== */

#kboard-list2501-confirm {
	max-width: 400px;
	margin: 80px auto;
	padding: 20px;
}

.list2501-confirm-container {
	background: white;
	padding: 40px;
	border-radius: 12px;
	border: 1px solid var(--list2501-border);
}

.list2501-confirm-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--list2501-text);
	margin: 0 0 24px 0;
	text-align: center;
}

.list2501-error-message {
	background: #fff5f5;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 16px;
	color: #dc2626;
	font-size: 14px;
}

.list2501-confirm-actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
	#kboard-list2501-list .category-mobile {
		display: block;
	}

	#kboard-list2501-list .category-pc {
		display: none;
	}

	#kboard-list2501-list,
	#kboard-list2501-document,
	#kboard-list2501-editor {
		padding: 0;
	}

	.list2501-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.list2501-search form {
		flex-wrap: wrap;
	}

	.list2501-search select {
		flex: 0 0 auto;
	}

	.list2501-search input[type="text"] {
		flex: 1;
		min-width: 0;
		width: auto;
	}

	.list2501-search button {
		flex: 0 0 auto;
	}

	.list2501-control {
		text-align: center;
	}

	.list2501-btn-write {
		display: block;
		width: 100%;
		text-align: center;
	}

	.list2501-document-title {
		font-size: 20px;
	}

	.list2501-document-content {
		font-size: 15px;
	}

	.list2501-document-meta {
		flex-direction: column;
		gap: 8px;
	}

	/* 상세페이지 버튼 모바일 */
	.list2501-document-actions {
		flex-wrap: wrap;
	}

	.list2501-document-actions .list2501-btn {
		flex: 1;
		min-width: 80px;
		text-align: center;
	}

	/* 에디터 버튼 모바일 */
	.list2501-editor-actions {
		flex-wrap: wrap;
	}

	.list2501-editor-actions .list2501-btn {
		flex: 1;
		min-width: 80px;
		text-align: center;
	}
}