body {
	background-color: var(--bg-brand-color);
}

/* ==================================
   상단 카테고리 탭 (PC 기본)
   ================================== */


.category-container {
	height: 80px;
	background-color: #fff7e9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.knowledge-category {
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
}

.knowledge-category .tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px 20px;
	box-sizing: border-box;
	cursor: default;
	font-size: 1rem;
	line-height: 1;
	margin-right: 1px;
	border: 0;
	border-bottom: 2px solid transparent;
}

.knowledge-category .tab i {
	color: var(--brand-orange);
	margin-right: 5px;
	font-size: 0.8rem;
	vertical-align: middle;
}

.knowledge-category .tab span {
	display: inline-block;
	vertical-align: middle;
	font-size: 0.9rem;
	line-height: 1.2;
}

.knowledge-category .tab:hover {
	transition: 0.1s ease-in-out;
	border-color: #ccc;
}

.knowledge-category .tab.on {
	border-color: var(--brand-color);
}

.knowledge-category .tab.on i {
	color: #fff;
}

/* ==================================
   카드 리스트 공통
   ================================== */

.knowledge-list-wrap {

}

.board-list {
	padding-top: 50px;
	padding-bottom: 50px;
	background-color: var(--bg-brand-color);
}

.board-cards {
	margin: 0 0 50px 0;
	padding: 0;
	box-sizing: border-box;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	row-gap: 50px;
}

.cards-wrap {
	/* common-width는 전역에서 관리 */
}

.board-cards > li {
	min-width: 0;
}

ul.board-cards .card {
	position: relative;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border-radius: 10px;
	cursor: default;
	background-color: white;
	overflow: hidden;
}

ul.board-cards .card:hover {
	transform: translateY(-5px);
	transition: transform .3s ease;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.board-cards .card .pic-box {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.board-cards .card .pic-box .pic-size-holder {
	padding-bottom: 60%;
}

.board-cards .card-subject {
	width: 100%;
	font-weight: 500;
	font-size: 1.2rem;
	padding: 10px;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.board-cards .card-category {
	display: inline-block;
	font-size: 0.9rem;
	padding: 2px 10px;
	border-radius: 10px;
	border: 1px solid var(--brand-color);
	color: var(--text-emp-color);
}

.board-cards .card-content {
	padding: 0 20px 20px 20px;
	font-size: 1rem;
	color: #333;
	/*height: 57px;*/
	/*overflow-y: hidden;*/
}

.board-cards .card-info {
	position: relative;
	margin-top: 7px;
	padding: 7px 10px;
	text-align: right;
	color: #888;
	font-size: 0.8rem;
	border-top: 1px #d7d7d7 solid;
	display: flex;
	justify-content: space-between;
}

.board-cards .card-info .card-view i {
	font-size: 0.7rem;
	opacity: .7;
}

.board-cards .card-info .card-scrap-count {
	margin-left: 5px;
}

.board-cards .card-info .card-scrap-count i {
	font-size: 0.7rem;
	opacity: .7;
}

.card .price-point {
	position: absolute;
	top: 5px;
	right: 5px;
}

.card .price-point > div {
	background-color: #ff8500;
	color: #fff;
	padding: 2px 10px;
	border-radius: 3px;
	font-size: 0.8rem;
}

.card .scraped {
	position: absolute;
	left: 10px;
	top: 5px;
	border-radius: 3px;
	padding: 0 1px 3px 1px;
	color: #fff;
	font-size: 1.5rem;
	background-color: var(--brand-logo-color);
}



/* ==================================
   지식공유 리스트 반응형
   ================================== */

/* 태블릿: 3 → 2 컬럼 */
/*@media (max-width: 1024px) {*/
/*	.board-list {*/
/*		padding-top: 40px;*/
/*		padding-bottom: 40px;*/
/*	}*/

/*	.board-cards {*/
/*		grid-template-columns: repeat(2, minmax(0, 1fr));*/
/*		gap: 30px;*/
/*		row-gap: 36px;*/
/*	}*/
/*}*/

/* 모바일: 1 컬럼 + 탭 2열 랩 (가로스크롤 X) */
@media (max-width: 767px) {

	.category-container {
		height: unset;
		padding-bottom: 10px;
	}


	/* 리스트 영역 여백 축소 */
	.board-list {
		padding-top: 16px;
		padding-bottom: 28px;
	}

	/* common-width 전역 설정 유지, 안쪽 패딩만 제거 */
	.cards-wrap.common-width {
		padding: 0;
		box-sizing: border-box;
	}

	/*!* 탭 영역: 2열 버튼처럼 랩 *!*/
	/*.knowledge-category {*/
	/*	margin-bottom: 12px;*/
	/*	text-align: left;*/
	/*	justify-content: flex-start;*/
	/*	gap: 8px;*/
	/*}*/

	/*.knowledge-category .tab {*/
	/*	min-width: 0;*/
	/*	flex: 1 1 calc(50% - 8px); !* 두 칸씩 배치 *!*/
	/*	padding: 8px 6px;*/
	/*	font-size: 0.85rem;*/
	/*	margin-right: 0;*/
	/*}*/

	/*!* 모바일에서는 아래 삼각형 빼서 높이 줄임 *!*/
	/*.knowledge-category .tab.on::after {*/
	/*	display: none;*/
	/*}*/

	/* 카드: 한 줄에 한 개 */
	.board-cards {
		grid-template-columns: 1fr;
		gap: 16px;
		row-gap: 20px;
	}

	/* 카드 내부 타이포/여백 약간 컴팩트하게 */
	.board-cards .card-subject {
		font-size: 0.95rem;
		padding: 8px 10px;
	}

	.board-cards .card-category {
		font-size: 0.7rem;
		padding: 2px 8px;
	}

	.board-cards .card-content {
		padding: 0 10px 8px;
		font-size: 0.85rem;
		height: auto; /* 모바일에서는 고정 높이 제거 */
	}

	.board-cards .card-info {
		padding: 6px 10px;
		font-size: 0.8rem;
	}

	.card .price-point > div {
		font-size: 0.75rem;
		padding: 2px 8px;
	}
}
