/**
 * Trang category bài viết: banner + lưới 2 cột thẻ ngang.
 */

.fc-news-category-page {
	padding-top: 0;
}

/* —— Breadcrumb (Flatsome: .woocommerce-breadcrumb.breadcrumbs) —— */
.fc-news-category-page .section-breadcrumb {
	padding: 0.65rem 0;
	background: #f6f7f9;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fc-news-category-page .section-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
	font-size: 0.85rem;
}

.fc-news-category-page .section-breadcrumb .woocommerce-breadcrumb a {
	text-decoration: none;
}

.fc-news-category-page .section-breadcrumb .woocommerce-breadcrumb a:hover {
	text-decoration: underline;
}

.fc-news-category-page .section-breadcrumb .current {
	font-weight: 600;
}

/* —— Full-bleed hero —— */
.fc-news-cat-hero {
	position: relative;
	background-color: #1a1f2e;
	background-size: cover;
	background-position: center;
	padding: clamp(3rem, 10vw, 5.5rem) 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
}

.fc-news-cat-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(10, 15, 30, 0.88) 0%, rgba(20, 30, 55, 0.55) 55%, rgba(10, 15, 30, 0.75) 100%);
	backdrop-filter: blur(2px);
}

.fc-news-cat-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.fc-news-cat-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
	text-transform: uppercase;
}

.fc-news-cat-hero__rule {
	display: block;
	width: 56px;
	height: 5px;
	margin: 0 auto 0;
	background: #e31b23;
	border-radius: 1px;
}

/* —— Grid —— */
.fc-news-cat-wrap {
	padding-top: 2.5rem;
	padding-bottom: 3rem;
}

.fc-news-cat-grid {
	margin-left: -0.75rem;
	margin-right: -0.75rem;
}

.fc-news-cat-item {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	margin-bottom: 1.5rem;
}

.fc-news-cat-card {
	height: 100%;
	margin: 0;
}

.fc-news-cat-card__link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.fc-news-cat-card__inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 100%;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.fc-news-cat-card__link:hover .fc-news-cat-card__inner {
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.fc-news-cat-card__media {
	flex: 0 0 38%;
	max-width: 38%;
	min-height: 160px;
	background: #f3f4f6;
	overflow: hidden;
}

.fc-news-cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 160px;
}

.fc-news-cat-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, #e8eaef 0%, #f5f6f8 100%);
}

.fc-news-cat-card__body {
	flex: 1 1 auto;
	padding: 1.1rem 1.15rem 1.15rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.fc-news-cat-card__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	text-transform: uppercase;
	color: #a01010;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fc-news-cat-card__date {
	margin: 0 0 0.65rem;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.85rem;
	color: #6b7280;
}

.fc-news-cat-card__cal {
	display: flex;
	color: #9ca3af;
	flex-shrink: 0;
}

.fc-news-cat-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #4b5563;
	width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media screen and (max-width: 550px) {
	.fc-news-cat-card__inner {
		flex-direction: column;
	}

	.fc-news-cat-card__media {
		flex: none;
		max-width: none;
		width: 100%;
		min-height: 200px;
	}

	.fc-news-cat-card__img {
		min-height: 200px;
		max-height: 220px;
		object-fit: cover;
	}
}
