@charset 'utf-8';


.news-list-hero {
	background: url(https://cdn.myplayer.kr/lawjibsa-mangobanana/corpsvr/lawjibsa_media.jpeg) no-repeat center center/cover;
}

#news-list-heading {
	font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.news-list-hero-inner {
	padding-top: 1rem;
	padding-bottom: 0.5rem;
}

.section-desc {
	color: var(--color-text-sub-dark);
	margin-top: 2rem;
}

.news-list-section {
	padding: 5rem 0;
}

/* 툴바 */
.news-toolbar {
	margin-top: 0.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

@media (max-width: 576px) {
	.news-toolbar {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}

.news-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.news-search-inner {
	position: relative;
	max-width: 320px;
}

.news-search-inner i {
	position: absolute;
	top: 50%;
	left: 0.7rem;
	transform: translateY(-50%);
	font-size: var(--fz-md);
	color: #6b7280;
}

.news-search-inner .form-control {
	padding-left: 2rem;
	background-color: #020617;
	border-color: #374151;
	color: #e5e7eb;
}

/* 보드 레이아웃 */
.news-board-wrapper {
	/* border-radius: var(--radius-sm); */
	/* background-color: var(--color-surface); */
	/* border: 1px solid var(--color-border-subtle); */
	/* padding: 1.2rem 1.2rem 1.4rem; */
}
.col-no { width: 70px; }
.col-category { width: 200px; }
.col-title { flex: 1; }
.col-date { width: 130px; }
.col-hit { width: 80px; }



.news-board-list.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem 1.5rem;
}

@media (max-width: 1200px) {
	.news-board-list.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.news-board-list.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.news-board-list.card-grid {
		grid-template-columns: 1fr;
	}
}

.news-card {
	display: flex;
	flex-direction: column;
	/* background: var(--color-surface, #fff); */
	/* border-radius: 1rem; */
	/* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
	text-decoration: none;
	color: inherit;
	/* transition: box-shadow 0.2s, transform 0.2s; */
	/* border: 1px solid var(--color-border-subtle, #e5e7eb); */
	min-height: 340px;
}
/* .news-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
	transform: translateY(-4px) scale(1.01);
} */
.news-card:hover .news-card-thumb {
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
	transform: translateY(-4px) scale(1.01);
}
.news-card-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	background: #f3f4f6;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #eee;
}
.news-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.news-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1rem 0.9rem 1rem;
	gap: 0.7rem;
}
.news-card-title {
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--color-primary, #2d3cff);
	margin-bottom: 0.2rem;
	min-height: 2.5em;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.news-card-desc {
	font-size: 0.98rem;
	color: var(--color-text-sub-dark, #6b7280);
	min-height: 2.2em;
	line-height: 1.4;
	margin-bottom: 0.2rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.news-card-meta {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.93rem;
	color: var(--color-text-sub, #6b7280);
	/* margin-top: auto; */
	justify-content: space-between;
}
.news-card-category {
	display: flex;
	gap: 0.3rem;
}
.news-card-date {
	color: #8b95a1;
}
.news-card-hit {
	display: flex;
	align-items: center;
	gap: 0.2rem;
}
.news-card-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #888;
	font-size: 1.1rem;
	padding: 2rem 0;
}

/* 각 행 */
.news-board-row {
	display: flex;
	flex-wrap:nowrap;
	font-size: var(--fz-sm);
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--color-border-subtle);
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s;
	height: 70px;
}

.news-board-row:hover {
	background-color: rgba(56, 66, 255, 0.03);
}

.news-board-row:last-child {
	border-bottom: none;
}
.news-board-row>div {
	padding-inline: 0.25rem;
	display: flex;
	align-items: center;
}
.news-board-row>div:not(.col-title) {
	justify-content: center;
}


.news-board-row .col-title {
	color: var(--color-primary);
	font-weight: 500;
}

.news-row-snippet {
	margin: 0.15rem 0 0;
	font-size: var(--fz-sm);
	color: var(--color-text-sub-dark);
	font-weight: 400;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
}
/* 
.news-badge {
	display: flex;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	border: 1px solid #3d60ad;
	color: var(--color-primary);
	font-size: var(--fz-sm);
	width: fit-content;
	margin-bottom: .2rem;
	height: fit-content;
} */
.news-badge {
	background: rgba(56, 66, 255, 0.08);
	border: none;
	color: var(--color-primary);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.2rem 0.6rem;
}

.news-board-row .col-category {
	display:flex;
	flex-wrap:nowrap;
	gap: .5rem;
}
/* 모바일 대응: 카드형으로 전환 */
@media (max-width: 992px) {
	.news-board-header {
		display: none;
	}

	.news-board-row {
		display:flex;
		flex-wrap:wrap;
		padding: 0.8rem 0.1rem;
		height: auto;
		width: 100%;
	}

	.news-board-row>div {
		padding-inline: 0;
		margin: 0 !important;
	}

	.news-board-row .col-title {
		display: block;
		width: 100%;
		margin-bottom: 0.4rem;
		color: var(--color-primary);
		font-weight: 500;
		flex: auto;
		padding: 1rem .25rem;
	}

	.news-board-row .col-category,
	.news-board-row .col-date,
	.news-board-row .col-hit,
	.news-board-row .col-no {
		vertical-align: middle;
		margin-right: 1rem;
		font-size: var(--fz-sm);
		color: var(--color-text-sub);
		justify-content: flex-start !important;
	}

	.news-board-row .col-category {
		padding: 0;
		margin: 0;
        display: flex; /* 배지 정렬용 */
        align-items: center;
        gap: 0.5rem;
	}

	.news-board-row .col-category .news-badge {
		display: inline-block;
		white-space: nowrap;
	}


}

/* sm 미만 (모바일) */
@media (max-width: 575.98px) {

	.news-list-section {
		padding: 2rem 0;
	}

	.news-board-row .col-date,
	.news-board-row .col-hit {
		margin-top: 0.25rem;
	}
}
