/* PWT Post Cards Grid: lưới thẻ bài viết. Số cột lấy từ biến --pwt-pcg-columns (control "Columns"). */

.pwt-pcg {
	--pwt-pcg-columns: 2;
	display: grid;
	grid-template-columns: repeat(var(--pwt-pcg-columns), minmax(0, 1fr));
	gap: 24px;
}

/* Thẻ cao bằng nhau trong một hàng, nút luôn nằm đáy thẻ */
.pwt-pcg-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e1e8f2;
	border-radius: 16px;
	background: #fff;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pwt-pcg-card:hover {
	box-shadow: 0 18px 40px -16px rgba(0, 35, 80, 0.22);
}

.pwt-pcg-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eef3fa;
}
.pwt-pcg-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.pwt-pcg-card:hover .pwt-pcg-media img {
	transform: scale(1.03);
}

.pwt-pcg-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 28px 32px 32px;
}
.pwt-pcg-label {
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}
/* Cỡ mặc định gọn hơn h3 của theme; giữ nguyên chữ hoa/thường của tiêu đề (theme tự viết hoa mỗi từ) */
.pwt-pcg-title {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.25;
	text-transform: none;
	color: var(--e-global-color-primary, #003c7f);
}
.pwt-pcg-title a {
	color: inherit;
	text-decoration: none;
}
.pwt-pcg-excerpt {
	margin-bottom: 24px;
	line-height: 1.6;
	color: var(--third-color, #334155);
}

/* Nút viền mảnh như mẫu, đẩy xuống đáy thẻ */
.pwt-pcg-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding: 12px 20px;
	border: 1px solid #d5deea;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	color: var(--e-global-color-primary, #003c7f);
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.pwt-pcg-button:hover {
	border-color: var(--primary-color, #003c7f);
	background: var(--primary-color, #003c7f);
	color: #fff;
}
.pwt-pcg-button i {
	line-height: 1;
	transition: transform 0.25s ease;
}
.pwt-pcg-button:hover i {
	transform: translateX(4px);
}

.pwt-pcg-empty {
	padding: 24px;
	border: 1px dashed #c3cfdf;
	border-radius: 12px;
	text-align: center;
	color: #6b7a90;
}

/* Điện thoại: mặc định 1 cột (control Columns → Mobile), thu padding */
@media (max-width: 767px) {
	.pwt-pcg {
		--pwt-pcg-columns: 1;
	}
	.pwt-pcg-body {
		padding: 22px 20px 24px;
	}
}
