/* Category archive aligned with the dark MKEO content system. */
.mkeo-category-page {
	background: #111;
	color: #ddd;
	min-height: 520px;
	padding: 18px;
}

.mkeo-category-hero {
	background: radial-gradient(circle at 88% 18%, rgba(0, 223, 114, .14), transparent 34%), linear-gradient(135deg, #1d211f, #151515);
	border: 1px solid #2d332f;
	border-radius: 6px;
	padding: 22px 24px 24px;
}

.mkeo-category-breadcrumb {
	align-items: center;
	display: flex;
	font-size: 11px;
	gap: 7px;
	margin-bottom: 18px;
}

.mkeo-category-breadcrumb a { color: #8d9891; }
.mkeo-category-breadcrumb a:hover { color: var(--mkeo-green); }
.mkeo-category-breadcrumb span { color: #626a65; }

.mkeo-category-hero__eyebrow {
	color: var(--mkeo-green);
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.mkeo-category-page .mkeo-category-hero h1 {
	color: #f4f4f4;
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.15;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.mkeo-category-hero > p,
.mkeo-category-hero__description,
.mkeo-category-hero__description p {
	color: #a8ada9;
	font-size: 14px;
	line-height: 1.55;
	margin: 0;
}

.mkeo-category-toolbar {
	align-items: center;
	border-bottom: 1px solid #2b2b2b;
	display: flex;
	justify-content: space-between;
	margin: 23px 0 12px;
	padding-bottom: 10px;
}

.mkeo-category-page .mkeo-category-toolbar h2 {
	color: #f2f2f2;
	font-size: 17px;
	margin: 0;
	text-transform: uppercase;
}

.mkeo-category-toolbar > span { color: #858b87; font-size: 12px; }
.mkeo-category-posts { display: grid; gap: 10px; }

.mkeo-category-card {
	background: linear-gradient(120deg, #1c1e1d, #161716);
	border: 1px solid #292d2a;
	border-radius: 5px;
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	margin: 0;
	min-height: 158px;
	overflow: hidden;
	transition: border-color .2s, transform .2s;
}

.mkeo-category-card:hover { border-color: #3b5948; transform: translateY(-1px); }

.mkeo-category-card__media {
	background: #0d0f0e;
	display: block;
	height: 100%;
	min-height: 158px;
	overflow: hidden;
}

.mkeo-category-card__image { height: 100%; object-fit: cover; transition: transform .3s; width: 100%; }
.mkeo-category-card:hover .mkeo-category-card__image { transform: scale(1.035); }

.mkeo-category-card__placeholder {
	align-items: center;
	background: radial-gradient(circle, rgba(0, 223, 114, .13), transparent 45%), linear-gradient(145deg, #172019, #0e100f);
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.mkeo-category-card__placeholder svg { fill: none; height: 58px; stroke: #1eb96a; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; width: 58px; }
.mkeo-category-card__content { display: flex; flex-direction: column; min-width: 0; padding: 15px 17px; }
.mkeo-category-card__meta { align-items: center; display: flex; font-size: 11px; gap: 8px; margin-bottom: 6px; text-transform: uppercase; }
.mkeo-category-card__meta span { color: var(--mkeo-green); font-weight: 700; }
.mkeo-category-card__meta time { color: #777d79; }
.mkeo-category-card__meta time::before { color: #424743; content: "•"; margin-right: 8px; }

.mkeo-category-page .mkeo-category-card__title { font-size: 18px; line-height: 1.3; margin: 0 0 7px; text-transform: none; }
.mkeo-category-card__title a { color: #f3f3f3; }
.mkeo-category-card__title a:hover { color: var(--mkeo-green); }

.mkeo-category-card__content > p {
	color: #a5aaa7;
	display: -webkit-box;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 9px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mkeo-category-card__more { align-items: center; color: var(--mkeo-green); display: inline-flex; font-size: 11px; font-weight: 700; gap: 5px; margin-top: auto; width: fit-content; }
.mkeo-category-card__more svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 16px; }

.mkeo-category-pagination { margin-top: 20px; }
.mkeo-category-pagination ul.page-numbers { align-items: center; display: flex; gap: 6px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.mkeo-category-pagination li { margin: 0; }
.mkeo-category-pagination a,
.mkeo-category-pagination span.page-numbers { align-items: center; background: #1b1d1c; border: 1px solid #303431; border-radius: 4px; color: #c7ccc9; display: inline-flex; font-size: 12px; height: 36px; justify-content: center; min-width: 36px; padding: 0 10px; }
.mkeo-category-pagination a:hover,
.mkeo-category-pagination span.current { background: var(--mkeo-green); border-color: var(--mkeo-green); color: #07170e; }

.mkeo-category-empty { background: #181a19; border: 1px solid #2d312e; border-radius: 6px; margin-top: 20px; padding: 38px 22px; text-align: center; }
.mkeo-category-empty h2 { color: #f2f2f2; font-size: 21px; margin: 0 0 7px; }
.mkeo-category-empty p { color: #969c98; font-size: 13px; margin: 0 0 18px; }
.mkeo-category-empty a { background: var(--mkeo-green); border-radius: 4px; color: #07170e; display: inline-flex; font-size: 12px; font-weight: 700; padding: 9px 15px; }

@media (max-width: 720px) {
	.mkeo-category-page { padding: 10px 8px 18px; }
	.mkeo-category-hero { padding: 17px 15px 19px; }
	.mkeo-category-breadcrumb { margin-bottom: 13px; }
	.mkeo-category-page .mkeo-category-hero h1 { font-size: 24px; }
	.mkeo-category-card { grid-template-columns: 120px minmax(0, 1fr); min-height: 112px; }
	.mkeo-category-card__media { min-height: 112px; }
	.mkeo-category-card__content { padding: 10px 11px; }
	.mkeo-category-page .mkeo-category-card__title { display: -webkit-box; font-size: 14px; margin-bottom: 5px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.mkeo-category-card__meta { font-size: 9px; margin-bottom: 5px; }
	.mkeo-category-card__content > p { display: none; }
	.mkeo-category-card__more { font-size: 10px; }

	body.category-top-nha-cai .mkeo-category-page { padding: 8px 7px 20px; }
	body.category-top-nha-cai .mkeo-category-hero { background: none; border: 0; border-radius: 0; padding: 0; }
	body.category-top-nha-cai .mkeo-category-breadcrumb,
	body.category-top-nha-cai .mkeo-category-hero__eyebrow,
	body.category-top-nha-cai .mkeo-category-hero__description,
	body.category-top-nha-cai .mkeo-category-hero > p,
	body.category-top-nha-cai .mkeo-category-toolbar { display: none; }
	body.category-top-nha-cai .mkeo-category-page .mkeo-category-hero h1 { font-size: 16px; line-height: 1.25; margin: 0 0 8px; }
	body.category-top-nha-cai .mkeo-category-posts { gap: 18px; }
	body.category-top-nha-cai .mkeo-category-card { background: none; border: 0; border-radius: 0; display: block; min-height: 0; }
	body.category-top-nha-cai .mkeo-category-card:hover { transform: none; }
	body.category-top-nha-cai .mkeo-category-card__media { aspect-ratio: 2 / 1; height: auto; min-height: 0; }
	body.category-top-nha-cai .mkeo-category-card__image { display: block; height: 100%; object-fit: cover; }
	body.category-top-nha-cai .mkeo-category-card__content { padding: 6px 0 0; }
	body.category-top-nha-cai .mkeo-category-page .mkeo-category-card__title { display: block; font-size: 16px; line-height: 1.45; margin: 0 0 3px; order: 1; overflow: visible; }
	body.category-top-nha-cai .mkeo-category-card__meta { font-size: 11px; margin-bottom: 3px; order: 2; }
	body.category-top-nha-cai .mkeo-category-card__meta span,
	body.category-top-nha-cai .mkeo-category-card__meta time::before,
	body.category-top-nha-cai .mkeo-category-card__more { display: none; }
	body.category-top-nha-cai .mkeo-category-card__content > p { display: -webkit-box; font-size: 12px; line-height: 1.35; margin: 0; order: 3; -webkit-line-clamp: 3; }
}
