@charset "utf-8";

.comment-list-page .list-summary {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ink);
}

.comment-card-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	margin-top: 32px;
}

.comment-card-list > .list-empty {
	grid-column: 1 / -1;
}

.comment-card {
	position: relative;
	display: flex;
	min-height: 520px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.comment-card::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 28%,
		color-mix(in srgb, var(--color-primary) 18%, transparent) 48%,
		color-mix(in srgb, var(--color-primary) 82%, transparent) 76%,
		var(--color-primary) 100%
	);
	content: "";
	pointer-events: none;
}

.comment-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 14px 34px rgba(7, 17, 12, .18);
	transform: translateY(-4px);
	color: #fff;
}

.comment-card__image {
	position: absolute;
	z-index: 0;
	inset: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
	background: #e9edeb;
}

.comment-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform .35s ease;
}

.comment-card:hover .comment-card__image img {
	transform: scale(1.015);
}
.comment-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	align-self: stretch;
	flex-direction: column;
	justify-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin-top: auto;
	padding: 0 24px;
	height: 160px;
}

.comment-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.comment-card__category,
.comment-card__subcategory {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
}

.comment-card__category {
	background: #fff;
	color: var(--color-primary);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.comment-card__subcategory {
	border: 1px solid rgba(255, 255, 255, .52);
	background: rgba(255, 255, 255, .14);
	color: #fff;
	backdrop-filter: blur(6px);
}

.comment-card__title {
	margin: 20px 0 ;
	font-family: "ChosunNm", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: clamp(21px, 1.8vw, 27px);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -.03em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

.comment-card__lawyer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: auto 0 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .32);
	font-size: 13px;
}

.comment-card__lawyer dt,
.comment-card__lawyer dd {
	margin: 0;
}

.comment-card__lawyer dt {
	color: rgba(255, 255, 255, .72);
	font-weight: 400;
}

.comment-card__lawyer dd {
	color: #fff;
	font-weight: 700;
	text-align: right;
}

@media (max-width: 1000px) {
	.comment-card-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.comment-card-list {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.comment-card {
		min-height: 320px;
	}

	.comment-card__body {
		height: 130px;
	}

	.comment-card__title {
		font-size: 23px;
		margin: 10px 0;
	}
}
