/* ==========================================================================
   GSA BLOG – trang danh sách (Posts page, chuyên mục, thẻ, tác giả, ngày)
   ========================================================================== */

.post {
	margin: 0 !important;
}

.gsa-blog-page {
	/* Giữ tên biến --gsa-gold để không ảnh hưởng các file khác, giá trị đã đổi sang xanh thương hiệu */
	--gsa-gold: #1f8538;
	--gsa-black: #0f0f0f;
	--gsa-ink: #1a1a1a;
	--gsa-muted: #6b6b6b;
	--gsa-line: #ececec;
	--gsa-bg: #f5f5f3;
	--gsa-font: "Fahkwang", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	font-family: var(--gsa-font);
	color: var(--gsa-ink);
}

.gsa-blog-page *,
.gsa-blog-page *::before,
.gsa-blog-page *::after {
	box-sizing: border-box;
}

/* Reset link/heading của Flatsome (đặt đầu file để các rule bên dưới ghi đè được) */
.gsa-blog-page :where(a) {
	color: inherit;
	text-decoration: none;
}

.gsa-blog-page :where(a):hover {
	color: inherit;
}

.gsa-blog-page :where(h1, h2, h3, p, ul) {
	margin: 0;
	padding: 0;
}

.gsa-blog-page :where(ul) {
	list-style: none;
}

.gsa-blog-page :where(li) {
	margin: 0;
}

.gsa-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Đầu trang ---------- */
.gsa-blog-head {
	position: relative;
	padding: 64px 0 36px;
	background: var(--gsa-black);
	color: #fff;
}

.gsa-blog-head::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--gsa-gold);
}

.gsa-blog-head__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--gsa-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.gsa-blog-head__title {
	margin-bottom: 12px;
	color: #fff;
	font-size: clamp(28px, 4.5vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
}

.gsa-blog-head__desc {
	max-width: 680px;
	color: #bdbdbd;
	font-size: 16px;
	line-height: 1.7;
}

/* Bộ lọc chuyên mục */
.gsa-chips {
	display: flex;
	gap: 10px;
	margin-top: 26px;
	padding: 4px 0 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gsa-chips::-webkit-scrollbar {
	display: none;
}

.gsa-chips li {
	flex: 0 0 auto;
}

.gsa-chips a {
	display: block;
	padding: 9px 18px;
	border: 1px solid #3a3a3a;
	border-radius: 999px;
	color: #e5e5e5;
	font-size: 14px;
	white-space: nowrap;
	transition: border-color .2s, color .2s, background .2s;
}

.gsa-chips a:hover {
	border-color: var(--gsa-gold);
	color: #fff;
}

.gsa-chips .is-active a {
	border-color: var(--gsa-gold);
	background: var(--gsa-gold);
	color: #fff;
	font-weight: 600;
}

/* ---------- Thân trang ---------- */
.gsa-blog-body {
	padding: 48px 0 72px;
	background: var(--gsa-bg);
}

/* ---------- Meta dùng chung ---------- */
.gsa-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--gsa-line);
	color: var(--gsa-muted);
	font-size: 13px;
}

.gsa-meta__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
}

/* ---------- Ảnh giữ chỗ ---------- */
.gsa-thumb-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.gsa-thumb-placeholder::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--gsa-gold);
}

/* ---------- Bài nổi bật ---------- */
.gsa-featured {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	margin-bottom: 28px !important;
	overflow: hidden;
	border-radius: 6px;
	background: var(--gsa-black);
	color: #fff;
}

.gsa-featured__media {
	position: relative;
	display: block;
	min-height: 340px;
	overflow: hidden;
}

.gsa-featured__media img,
.gsa-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.gsa-featured:hover .gsa-featured__media img {
	transform: scale(1.04);
}

.gsa-featured__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 44px 40px;
}

.gsa-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gsa-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.gsa-badge::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--gsa-gold);
}

.gsa-featured__title {
	color: #fff;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.3;
}

.gsa-featured__title a:hover {
	color: var(--gsa-gold);
}

.gsa-featured__excerpt {
	color: #c9c9c9;
	line-height: 1.75;
}

.gsa-featured .gsa-meta {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	color: #9a9a9a;
}

.gsa-featured .gsa-meta a:hover {
	color: var(--gsa-gold);
}

.gsa-readmore {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 12px 24px;
	background: var(--gsa-gold);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}

.gsa-readmore:hover {
	background: #fff;
	color: var(--gsa-gold);
}

/* ---------- Lưới thẻ bài viết ---------- */
.gsa-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.gsa-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	transition: transform .25s ease, box-shadow .25s ease;
}

.gsa-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
}

.gsa-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #e9e9e9;
}

.gsa-card:hover .gsa-card__media img {
	transform: scale(1.06);
}

.gsa-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 22px 11px 22px;
}

.gsa-card__cat {
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 4px 10px;
	background: var(--gsa-black);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}

.gsa-card__cat:hover {
	background: var(--gsa-gold);
	color: #fff;
}

.gsa-card__title {
	margin-bottom: 10px;
	color: var(--gsa-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gsa-card__title a {
	background: linear-gradient(var(--gsa-gold), var(--gsa-gold)) 0 100% / 0 2px no-repeat;
	transition: background-size .3s ease;
}

.gsa-card:hover .gsa-card__title a {
	background-size: 100% 2px;
}

.gsa-card__excerpt {
	flex: 1;
	margin-bottom: 18px;
	color: var(--gsa-muted);
	font-size: 15px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Phân trang ---------- */
.gsa-pagination {
	margin-top: 48px;
}

.gsa-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.gsa-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gsa-line);
	background: #fff;
	font-weight: 600;
	transition: border-color .2s, background .2s;
}

.gsa-pagination a.page-numbers:hover {
	border-color: var(--gsa-gold);
}

.gsa-pagination .page-numbers.current {
	border-color: var(--gsa-gold);
	background: var(--gsa-gold);
	color: #fff;
}

.gsa-pagination .page-numbers.dots {
	border: 0;
	background: none;
}

/* ---------- Chưa có bài ---------- */
.gsa-empty {
	padding: 80px 20px;
	background: #fff;
	text-align: center;
}

.gsa-empty h2 {
	margin-bottom: 10px;
	font-size: 24px;
}

.gsa-empty p {
	margin-bottom: 24px;
	color: var(--gsa-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.gsa-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gsa-featured {
		grid-template-columns: 1fr;
	}

	.gsa-featured__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.gsa-featured__body {
		padding: 28px 24px;
	}
}

@media (max-width: 640px) {
	.gsa-blog-head {
		padding: 44px 0 28px;
	}

	.gsa-blog-body {
		padding: 32px 0 56px;
	}

	.gsa-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gsa-blog-page * {
		transition: none !important;
	}

	.gsa-card:hover {
		transform: none;
	}
}



/* Tên tác giả trong meta */
.gsa-meta__author {
	color: var(--gsa-ink);
	font-weight: 500;
}

.gsa-featured .gsa-meta__author {
	color: #e5e5e5;
}

/* Đoạn trích bài nổi bật: tối đa 4 dòng, cắt bằng "…" */
.gsa-featured__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}



/* Hàng trên cùng của thẻ: nhãn danh mục (trái) + badge HOT (phải) */
.gsa-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.gsa-card__top .gsa-card__cat {
	align-self: auto;
	min-width: 0;
	margin-bottom: 0;
	line-height: 1.5;
}

.gsa-card__hot {
	flex: none;
	margin-left: auto;
	padding: 4px 10px;
	background: var(--gsa-gold);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .12em;
	text-transform: uppercase;
}