/* ==========================================================================
   Custom News Block PRO - styles
   Breakpoint tương thích Flatsome: small <549px, medium <850px, large >850px
   ========================================================================== */

.cnb-news-block {
	padding-top: 15px;
	padding-bottom: 15px;
}

.fnp-empty {
	text-align: center;
	color: #999;
}

/* ---- Ảnh ---- */
.fnp-card-image {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 15px;
}

.fnp-card-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform .35s ease;
}

.fnp-card-image.fnp-image-zoom:hover img {
	transform: scale( 1.06 );
}

/* Overlay / Shade */
.fnp-overlay-layer {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, .35 );
}

.fnp-shade-layer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60%;
	background: linear-gradient( to top, rgba( 0, 0, 0, .65 ), transparent );
}

.fnp-style-overlay .fnp-card,
.fnp-style-shade .fnp-card {
	position: relative;
}

.fnp-style-overlay .fnp-card-image,
.fnp-style-shade .fnp-card-image {
	margin-bottom: 0;
}

.fnp-style-overlay .fnp-card-content,
.fnp-style-shade .fnp-card-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	color: #fff;
	z-index: 2;
}

.fnp-style-overlay .fnp-title a,
.fnp-style-shade .fnp-title a,
.fnp-style-overlay .fnp-excerpt,
.fnp-style-shade .fnp-excerpt,
.fnp-style-overlay .fnp-meta,
.fnp-style-shade .fnp-meta {
	color: #fff;
}

/* Badge ngày tháng - kiểu Flatsome */
.fnp-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	background: #fff;
	border-radius: 4px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, .15 );
}

.fnp-badge-day {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: #222;
}

.fnp-badge-month {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #777;
}

.fnp-badge-circle,
.fnp-badge-circle-inside {
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.fnp-badge-outline {
	background: transparent;
	border: 1px solid #fff;
}

.fnp-badge-outline .fnp-badge-day,
.fnp-badge-outline .fnp-badge-month {
	color: #fff;
}

/* ---- Nội dung ---- */
.fnp-card-content {
	display: flex;
	flex-direction: column;
}

.fnp-cat-label {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #999;
}

.fnp-tag-label {
	display: inline-block;
	background: #222;
	color: #fff;
	padding: 3px 10px;
	border-radius: 3px;
}

.fnp-title {
	margin: 0 0 8px;
}

.fnp-title a {
	color: #222;
	text-decoration: none;
	font-weight: 700;
	line-height: 1.3;
}

.fnp-title-small a {
	font-size: 16px;
}

.fnp-title-normal a {
	font-size: 20px;
}

.fnp-title-large a {
	font-size: 26px;
}

.fnp-title-larger a {
	font-size: 32px;
}

.fnp-title a:hover {
	color: var( --primary-color, #43c6ac );
}

.fnp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 13px;
	color: #999;
}

.fnp-author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.fnp-author img {
	border-radius: 50%;
	width: 20px;
	height: 20px;
}

.fnp-author a {
	color: #999;
	text-decoration: none;
}

.fnp-excerpt {
	color: #666;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 10px;
}

.fnp-tags {
	margin-bottom: 10px;
}

.fnp-tag {
	display: inline-block;
	font-size: 12px;
	color: #777;
	background: #f2f2f2;
	border-radius: 3px;
	padding: 3px 8px;
	margin: 0 6px 6px 0;
	text-decoration: none;
}

.fnp-readmore {
	align-self: flex-start;
	margin-top: 5px;
}

/* ---- Layout: featured ---- */
.fnp-featured-row {
	margin-bottom: 30px;
}

.fnp-featured-content-wrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

/* ---- Layout: grid & list ---- */
.fnp-grid-row,
.fnp-list-row {
	display: flex;
	flex-wrap: wrap;
}

.fnp-card {
	height: 100%;
}

.fnp-card-list .fnp-list-item-row {
	align-items: center;
}

.fnp-card-list .fnp-card-image {
	margin-bottom: 0;
}

/* ---- Responsive ---- */
@media ( max-width: 549px ) {
	.fnp-featured-row .col {
		margin-bottom: 20px;
	}

	.fnp-title-large a,
	.fnp-title-larger a {
		font-size: 22px;
	}

	.fnp-style-overlay .fnp-card-content,
	.fnp-style-shade .fnp-card-content {
		padding: 14px;
	}
}
