/* Bố cục mặc định (desktop) */
.post-item {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	align-items: flex-start;
}

.post-thumbnail {
	min-width: 200px;
	max-width: 200px;
	flex-shrink: 0;
}

.post-thumbnail img {
	width: 100% !important;
	height: auto;
	border-radius: 8px;
}

.post-content {
	flex: 1;
}

.post-title {
	font-weight: bold;
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
}

.post-meta {
	color: #777;
	margin-bottom: 0.5rem;
}

.post-excerpt {
	margin-bottom: 1rem;

	/* Cắt dòng hiển thị 3 dòng tối đa */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.read-more {
	text-decoration: underline;
	color: #0073aa;
	font-size: 1rem;
}

/* Responsive cho màn hình nhỏ (mobile) */
@media screen and (max-width: 768px) {
	.post-item {
		flex-direction: column;
		align-items: center;
		text-align: left;
	}

	.post-thumbnail {
		width: 100%;
		max-width: 100%;
		min-width: auto;
	}

	.post-content {
		width: 100%;
		padding: 0 0.5rem;
	}

	.post-title {
		font-size: 1.2rem;
	}

	.post-meta {
		font-size: 0.9rem;
	}

	.post-excerpt {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.read-more {
		font-size: 1rem;
		display: inline-block;
		margin-top: 0.5rem;
	}
}
