/* ==========================================================================
   [DPS AGENTIC PAGE] - CSS Trang Tin Tức (News & Blog Hub)
   Website: Khaisanfood.vn
   Tuân thủ: 100% Light Theme, Zero Emoji (Lucide SVG), Max 700 Font-Weight Rule
   ========================================================================== */

/* 0. Tối Ưu Thanh Breadcrumb & Khoảng Trống Đầu Trang */
.page-template-news .freshio-breadcrumb,
body.page-id-51427 .freshio-breadcrumb {
	padding: 16px 0 !important;
	background: #f8f6f2 !important;
	margin: 0 !important;
	border-bottom: 1px solid #eee7de !important;
	min-height: unset !important;
	height: auto !important;
	display: block !important;
}

@media (min-width: 768px) {
	.page-template-news .freshio-breadcrumb,
	body.page-id-51427 .freshio-breadcrumb {
		min-height: 0 !important;
		height: auto !important;
		padding: 16px 0 !important;
		margin: 0 !important;
		display: block !important;
	}
	body.page-id-51427 #content.site-content {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
}

.page-template-news .freshio-breadcrumb .breadcrumb-heading {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	color: #0a472e !important;
	margin: 0 0 4px 0 !important;
	line-height: 1.2 !important;
}

.page-template-news .freshio-breadcrumb .woocommerce-breadcrumb {
	font-size: 13px !important;
	color: #64748b !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 1. Page Wrapper & Container */
.ksf-news-page-wrapper {
	background-color: #ffffff;
	padding: 30px 0 70px;
	min-height: 600px;
	color: #1e293b;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ksf-news-container {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* 2. Header Section */
.ksf-news-header-section {
	margin-bottom: 30px;
}

.ksf-news-main-heading {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: #0a472e;
	margin: 0 0 8px 0;
	line-height: 1.25;
}

.ksf-news-subtitle {
	font-size: 15.5px;
	color: #64748b;
	line-height: 1.6;
	margin: 0;
	max-width: 800px;
}

/* 3. Bài Viết Nổi Bật (Featured Hero Card) */
.ksf-news-featured-hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 32px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 24px;
	margin-bottom: 36px;
	align-items: center;
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.03);
	transition: box-shadow 0.3s;
}

.ksf-news-featured-hero:hover {
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.ksf-featured-thumb-wrap {
	display: block;
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e2e8f0;
}

.ksf-featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ksf-news-featured-hero:hover .ksf-featured-img {
	transform: scale(1.04);
}

.ksf-featured-ribbon {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #f59e0b;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

.ksf-featured-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ksf-featured-cat-tag a {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #008848;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	margin-bottom: 10px;
	transition: color 0.2s;
}

.ksf-featured-cat-tag a:hover {
	color: #0a472e;
}

.ksf-featured-title {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px 0;
}

.ksf-featured-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s;
}

.ksf-featured-title a:hover {
	color: #008848;
}

.ksf-news-meta-row {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #94a3b8;
	margin-bottom: 14px;
}

.ksf-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ksf-featured-excerpt {
	font-size: 14.5px;
	line-height: 1.7;
	color: #475569;
	margin: 0 0 20px 0;
}

.ksf-news-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #008848;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.25s ease;
	width: fit-content;
}

.ksf-news-btn-primary:hover {
	background: #0a472e;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 136, 72, 0.25);
}

/* 4. Bộ Lọc Chuyên Mục Dạng Pills */
.ksf-news-cat-pills {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 35px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.ksf-cat-pill-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	background: #f8fafc;
	color: #475569;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ksf-cat-pill-btn:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #cbd5e1;
}

.ksf-cat-pill-btn.active {
	background: #008848;
	color: #ffffff;
	border-color: #008848;
	box-shadow: 0 4px 12px rgba(0, 136, 72, 0.2);
}

/* 5. Khối Layout Chính (2 Cột) */
.ksf-news-main-layout {
	display: grid;
	grid-template-columns: 2.1fr 1fr;
	gap: 36px;
	align-items: start;
}

/* 6. Lưới Bài Viết (Articles Grid) */
.ksf-news-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.ksf-article-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.ksf-article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	border-color: #e2e8f0;
}

.ksf-article-thumb-link {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}

.ksf-article-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ksf-article-card:hover .ksf-article-thumb-img {
	transform: scale(1.05);
}

.ksf-article-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(10, 71, 46, 0.9);
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 6px;
	backdrop-filter: blur(4px);
	letter-spacing: 0.3px;
}

.ksf-article-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.ksf-article-meta {
	font-size: 12.5px;
	color: #94a3b8;
	margin-bottom: 8px;
}

.ksf-meta-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ksf-article-title {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 10px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksf-article-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s;
}

.ksf-article-title a:hover {
	color: #008848;
}

.ksf-article-desc {
	font-size: 14px;
	line-height: 1.65;
	color: #64748b;
	margin: 0 0 16px 0;
	flex: 1 1 auto;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksf-article-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: #008848;
	text-decoration: none;
	transition: all 0.2s ease;
	margin-top: auto;
}

.ksf-article-readmore:hover {
	color: #0a472e;
	transform: translateX(3px);
}

/* 7. Phân Trang (Pagination) */
.ksf-news-pagination-wrap {
	margin-top: 45px;
	text-align: center;
}

.ksf-news-pagination-wrap ul.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ksf-news-pagination-wrap ul.page-numbers li a,
.ksf-news-pagination-wrap ul.page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #334155;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.ksf-news-pagination-wrap ul.page-numbers li a:hover {
	background: #f1f5f9;
	color: #008848;
	border-color: #cbd5e1;
}

.ksf-news-pagination-wrap ul.page-numbers li span.current {
	background: #008848;
	color: #ffffff;
	border-color: #008848;
	box-shadow: 0 4px 12px rgba(0, 136, 72, 0.25);
}

.ksf-news-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #f8fafc;
	border-radius: 14px;
	border: 1px dashed #cbd5e1;
}

.ksf-news-empty-state p {
	font-size: 16px;
	color: #64748b;
	margin: 14px 0 20px;
}

/* 8. Sidebar & Widgets (Sticky) */
.ksf-news-sidebar-col {
	display: flex;
	flex-direction: column;
	gap: 28px;
	position: sticky;
	top: 90px;
}

.ksf-sidebar-widget {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.ksf-widget-title {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 17.5px;
	font-weight: 700;
	color: #0a472e;
	margin: 0 0 18px 0;
	padding-left: 10px;
	border-left: 4px solid #008848;
	line-height: 1.25;
}

/* Search Widget */
.ksf-news-search-form {
	display: flex;
	align-items: center;
	position: relative;
}

.ksf-news-search-input {
	width: 100%;
	height: 44px;
	padding: 0 45px 0 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	background: #f8fafc;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
	box-sizing: border-box;
}

.ksf-news-search-input:focus {
	border-color: #008848;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.12);
}

.ksf-news-search-btn {
	position: absolute;
	right: 0;
	top: 0;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	color: #008848;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.ksf-news-search-btn:hover {
	color: #0a472e;
}

/* Category List Widget */
.ksf-sidebar-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ksf-sidebar-cat-list li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	background: #f8fafc;
	transition: all 0.2s ease;
}

.ksf-sidebar-cat-list li a:hover,
.ksf-sidebar-cat-list li a.active {
	background: #e6f4ed;
	color: #008848;
	font-weight: 700;
}

.ksf-cat-bullet {
	display: inline-flex;
	align-items: center;
	color: #008848;
	margin-right: 8px;
}

.ksf-cat-text {
	flex: 1 1 auto;
}

.ksf-cat-count {
	font-size: 12px;
	color: #64748b;
	background: #ffffff;
	padding: 2px 8px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

/* Recent Posts Widget */
.ksf-recent-posts-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ksf-recent-item {
	display: flex;
	gap: 12px;
	align-items: center;
}

.ksf-recent-item-thumb {
	width: 70px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f1f5f9;
}

.ksf-recent-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.ksf-recent-item:hover .ksf-recent-item-thumb img {
	transform: scale(1.08);
}

.ksf-recent-item-info {
	flex: 1 1 auto;
}

.ksf-recent-item-date {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 4px;
}

.ksf-recent-item-title {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksf-recent-item-title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s;
}

.ksf-recent-item-title a:hover {
	color: #008848;
}

/* Promo Banner Widget */
.ksf-promo-banner-widget {
	padding: 0;
	overflow: hidden;
	border: none;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.ksf-promo-banner-card {
	background: #0a472e;
	border-radius: 16px;
	overflow: hidden;
}

.ksf-promo-img-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.ksf-promo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ksf-promo-banner-card:hover .ksf-promo-img {
	transform: scale(1.05);
}

.ksf-promo-body {
	padding: 20px 22px 24px;
	color: #ffffff;
	text-align: center;
}

.ksf-promo-title {
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 8px 0;
	line-height: 1.35;
}

.ksf-promo-desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: #cbd5e1;
	margin: 0 0 18px 0;
}

.ksf-promo-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #eab308;
	color: #0f172a !important;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 20px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.ksf-promo-cta-btn:hover {
	background: #facc15;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

/* 9. Responsive Mobile Breakpoints */
@media (max-width: 991px) {
	.ksf-news-featured-hero {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 18px;
	}
	.ksf-news-main-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.ksf-news-sidebar-col {
		position: static;
		margin-top: 10px;
	}
}

@media (max-width: 640px) {
	.ksf-news-main-heading {
		font-size: 26px;
	}
	.ksf-featured-title {
		font-size: 20px;
	}
	.ksf-news-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.ksf-news-cat-pills {
		gap: 8px;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 12px;
		-webkit-overflow-scrolling: touch;
	}
	.ksf-cat-pill-btn {
		white-space: nowrap;
		flex-shrink: 0;
	}
}
