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

body {
	font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
	background-color: #f7f9fa;
	color: #333;
	line-height: 1.5;
}

a {
	text-decoration: none;
	color: inherit;
}

.navbar {
	background: #fff;
	border-bottom: 1px solid #eaeaea;
	padding: 15px 0;
}

.nav-container {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}

.logo {
	font-size: 20px;
	font-weight: 800;
	color: #ff5722;
	display: flex;
	align-items: center;
	gap: 8px;
}

.container {
	max-width: 1000px;
	margin: 35px auto;
	padding: 0 20px;
}

.board-header {
	margin-bottom: 24px;
}

.board-title {
	font-size: 28px;
	font-weight: 800;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.board-subtitle {
	font-size: 15px;
	color: #64748b;
	font-weight: 400;
}

.category-tabs {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.tab-item {
	padding: 9px 20px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 700;
	color: #64748b;
	background: transparent;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tab-item:hover {
	color: #1e293b;
	background-color: #f1f5f9;
}

.tab-item.active {
	background: #2b374e;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(43, 55, 78, 0.25);
}

.board-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #eaeaea;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.board-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}

.board-table th {
	background: #f8f9fa;
	padding: 14px 16px;
	border-bottom: 1px solid #eaeaea;
	color: #555;
	font-weight: 700;
}

.board-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.board-table tr:hover {
	background-color: #fdfdfd;
}

.cat-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	background: #edf2f7;
	color: #4a5568;
	margin-right: 6px;
}

.cat-badge.TIP {
	background: #e8f5e9;
	color: #2e7d32;
}

.cat-badge.QNA {
	background: #fff3e0;
	color: #e65100;
}

.cat-badge.RECIPE {
	background: #f3e5f5;
	color: #7b1fa2;
}

.cat-badge.NOTICE {
	background: #ffebee;
	color: #c62828;
}

.subject-link {
	color: #2d3436;
	font-weight: 600;
	font-size: 15px;
}

.subject-link:hover {
	color: #ff5722;
	text-decoration: underline;
}

.comment-cnt {
	font-size: 13px;
	font-weight: 700;
	color: #ff5722;
	margin-left: 4px;
}

.readcount-text {
	color: #ff5722;
	font-weight: 700;
}

.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.btn-write {
	background: #ff5722;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
}

.btn-write:hover {
	background: #e64a19;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 25px;
}

.page-link {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #ddd;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 600;
}

.page-link.active {
	background: #1e272e;
	color: #fff;
	border-color: #1e272e;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 0;
	margin-bottom: 20px;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 30px;
	padding: 4px 4px 4px 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
	border-color: #ff5722;
	box-shadow: 0 4px 14px rgba(255, 87, 34, 0.15);
}

.search-box input {
	flex: 1;
	border: none;
	outline: none;
	padding: 10px 6px;
	font-size: 14px;
	background: transparent;
}

.search-box input::placeholder {
	color: #94a3b8;
}

.search-box button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: linear-gradient(135deg, #ff5722, #e64a19);
	color: #fff;
	border: none;
	border-radius: 26px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.search-box button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.search-result-info {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 12px;
}

.search-result-info b {
	color: #ff5722;
}

/* 관리자 상단 고정글 */
.board-table tr.pinned-row td { background: #fff7ed; }
.board-table tr.pinned-row .subject-link { font-weight: 700; }
.pin-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #c2410c; background: #ffedd5; border-radius: 4px; padding: 2px 6px; margin-right: 6px; }
@media (max-width: 768px) {
    .board-table tr.pinned-row { background: #fff7ed; }
    .board-table tr.pinned-row td { background: transparent; }
}
