/**
 * Trang danh mục bài viết — lưới thẻ + header danh mục.
 */

.mmo-category-archive-page #content .row.align-center > .large-10 {
	flex: 0 0 100%;
	max-width: 1180px;
	width: 100%;
}

.mmo-archive-page-header__inner {
	text-align: center;
	padding-bottom: 0.25rem;
}

.mmo-archive-page-header__title {
	margin: 0 0 0.35rem;
	font-weight: 800;
	color: #0f172a;
	text-transform: none;
	letter-spacing: -0.02em;
}

.mmo-cat-archive-intro {
	margin: 0.35rem auto 0;
	max-width: 720px;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #475569;
}

.mmo-cat-archive-intro p {
	margin: 0 0 0.5rem;
}

.mmo-cat-archive-intro p:last-child {
	margin-bottom: 0;
}

.mmo-cat-archive {
	margin: 0.5rem 0 2rem;
}

.mmo-cat-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.35rem;
}

.mmo-cat-card-wrap {
	margin: 0;
}

.mmo-cat-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	transition:
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.mmo-cat-card:hover {
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.mmo-cat-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f1f5f9;
	overflow: hidden;
}

.mmo-cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mmo-cat-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 140px;
	background:
		linear-gradient(135deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
	background-size: 200% 200%;
	animation: mmo-cat-ph 3s ease infinite;
}

@keyframes mmo-cat-ph {
	0%,
	100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

.mmo-cat-card__body {
	padding: 1rem 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.mmo-cat-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
	color: #0f172a;
}

.mmo-cat-card:hover .mmo-cat-card__title {
	color: #e11d2e;
}

.mmo-cat-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #64748b;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 549px) {
	.mmo-cat-archive__grid {
		grid-template-columns: 1fr;
	}
}
