/**
 * AgriBio — Phong cách riêng 4 trang tra cứu & trang đơn tương ứng.
 * Cây trồng (xanh) · Sâu bệnh (cam) · Dinh dưỡng (xanh dương) · Vi sinh (teal)
 */

/* ── Shared hub tokens ── */
.wiki-hub-nav {
	border-bottom: 1px solid var(--color-border);
	background: #fff;
}

.wiki-hub-nav__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 62px;
}

.wiki-hub-nav__label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-muted);
}

.wiki-hub-nav__links {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	padding: 10px 0;
	scrollbar-width: thin;
}

.wiki-hub-nav__link {
	flex: 0 0 auto;
	padding: 7px 11px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	color: var(--color-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.wiki-hub-nav__link:hover,
.wiki-hub-nav__link:focus-visible {
	border-color: #1b5e35;
	color: #1b5e35;
	background: #f3fbf4;
}

.wiki-hub-nav__link.is-active {
	border-color: #1b5e35;
	color: #fff;
	background: #1b5e35;
}

@media (min-width: 1101px) {
	.lookup-categories .topic-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 641px) and (max-width: 1100px) {
	.lookup-categories .topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.topic-terms {
	border-color: #c9ddea !important;
	background: linear-gradient(180deg, #eef6fb 0%, #fff 42%) !important;
}

.topic-terms .topic-icon {
	color: #1c6d8f;
	background: #fff;
}

.hub-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 10px;
	padding: 5px 14px 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 1px solid var(--hub-border, rgba(0, 0, 0, 0.08));
	background: var(--hub-kicker-bg, rgba(255, 255, 255, 0.72));
	color: var(--hub-primary, #1b5e35);
}

.hub-kicker-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hub-accent, #43a047);
	box-shadow: 0 0 0 3px var(--hub-glow, rgba(67, 160, 71, 0.2));
	flex-shrink: 0;
}

.hub-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--hub-border, var(--color-border));
	background: var(--hub-gradient);
	background-image: var(--hub-pattern), var(--hub-gradient);
	background-size: 22px 22px, auto;
}

.hub-hero-inner {
	position: relative;
	z-index: 2;
}

.hub-hero h1 {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--hub-heading, var(--color-text));
}

.hub-hero-desc {
	max-width: 720px;
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--color-muted);
}

.hub-filter-card {
	background: #fff;
	border: 1px solid var(--hub-border, var(--color-border));
	border-radius: 16px;
	box-shadow: 0 8px 32px var(--hub-shadow, rgba(0, 0, 0, 0.04));
	padding: 24px;
	margin-top: -28px;
	position: relative;
	z-index: 5;
}

.hub-filter-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--hub-primary), var(--hub-accent));
}

.hub-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--hub-border);
	background: #fff;
	color: var(--color-text);
	transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

.hub-chip:hover {
	border-color: var(--hub-primary);
	color: var(--hub-primary);
	background: var(--hub-soft);
	transform: translateY(-1px);
}

.hub-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 56px 24px;
	border-radius: 16px;
	border: 1px dashed var(--hub-border);
	background: var(--hub-soft);
}

.hub-pagination .page-numbers {
	border-color: var(--hub-border) !important;
}

.hub-pagination .page-numbers.current {
	background: var(--hub-primary) !important;
	border-color: var(--hub-primary) !important;
	color: #fff !important;
}

/* ── 1. CÂY TRỒNG — Botanical green ── */
.hub-theme-cay-trong,
.hub-cay-trong {
	--hub-primary: #1b5e35;
	--hub-accent: #43a047;
	--hub-soft: #e8f5e9;
	--hub-heading: #0d3d22;
	--hub-border: rgba(27, 94, 53, 0.14);
	--hub-glow: rgba(67, 160, 71, 0.22);
	--hub-shadow: rgba(27, 94, 53, 0.07);
	--hub-gradient: linear-gradient(125deg, #f3fbf4 0%, #e8f5e9 42%, #f7faf8 100%);
	--hub-pattern: radial-gradient(circle at 1px 1px, rgba(27, 94, 53, 0.05) 1px, transparent 0);
	--hub-kicker-bg: rgba(232, 245, 233, 0.85);
}

.hub-theme-cay-trong .page-hero-plants,
.hub-cay-trong .page-hero-plants {
	padding: 36px 0 40px !important;
	background: var(--hub-gradient) !important;
	background-image: var(--hub-pattern), var(--hub-gradient) !important;
	border-bottom-color: var(--hub-border) !important;
}

.hub-theme-cay-trong .page-hero-plants h1,
.hub-cay-trong .page-hero-plants h1 {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	color: var(--hub-heading);
}

.hub-theme-cay-trong .hero-leaf-dec {
	color: var(--hub-primary);
	opacity: 0.12;
}

.hub-theme-cay-trong .plant-filter-card,
.hub-cay-trong .plant-filter-card {
	border-color: var(--hub-border);
	box-shadow: 0 10px 36px var(--hub-shadow);
}

.hub-theme-cay-trong .plant-card-new {
	border-color: var(--hub-border);
}

.hub-theme-cay-trong .plant-card-new::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--hub-primary), var(--hub-accent));
	opacity: 0;
	transition: opacity 0.25s;
}

.hub-theme-cay-trong .plant-card-new:hover::before {
	opacity: 1;
}

.hub-theme-cay-trong .plant-card-link,
.hub-cay-trong .plant-card-link {
	color: var(--hub-primary) !important;
}

.hub-theme-cay-trong .plant-scientific-name {
	color: #2e7d4a;
	font-style: italic;
}

.hub-theme-cay-trong .view-switch-btns button.active {
	background: var(--hub-soft) !important;
	border-color: var(--hub-primary) !important;
	color: var(--hub-primary) !important;
}

/* Single cây trồng */
.hub-theme-cay-trong .single-plant-header {
	background: var(--hub-gradient) !important;
	background-image: var(--hub-pattern), var(--hub-gradient) !important;
	border-bottom: 1px solid var(--hub-border);
}

.hub-theme-cay-trong .badge-plant-eyebrow {
	background: var(--hub-soft);
	color: var(--hub-primary);
	border: 1px solid var(--hub-border);
}

.hub-theme-cay-trong .single-plant-header h1 {
	font-family: "Source Serif 4", Georgia, serif;
	color: var(--hub-heading);
}

.hub-theme-cay-trong .sci-name {
	color: #2e7d4a;
}

.hub-theme-cay-trong .plant-summary-card {
	border-left-color: var(--hub-accent) !important;
	background: linear-gradient(135deg, #fff, var(--hub-soft)) !important;
	border-color: var(--hub-border) !important;
}

.hub-theme-cay-trong .accordion-item.active .accordion-header {
	background: var(--hub-soft);
	color: var(--hub-primary);
}

.hub-theme-cay-trong .condition-card-box {
	border-color: var(--hub-border);
	background: var(--hub-soft);
}

.hub-theme-cay-trong .plant-sidebar-card {
	border-color: var(--hub-border);
}

.hub-theme-cay-trong .plant-sidebar-card h3 {
	color: var(--hub-primary);
}

/* ── 2. SÂU BỆNH — Diagnostic amber ── */
.hub-theme-sau-benh,
.hub-sau-benh {
	--hub-primary: #c2410c;
	--hub-accent: #ea580c;
	--hub-soft: #fff7ed;
	--hub-heading: #7c2d12;
	--hub-border: rgba(194, 65, 12, 0.16);
	--hub-glow: rgba(234, 88, 12, 0.25);
	--hub-shadow: rgba(154, 52, 18, 0.08);
	--hub-gradient: linear-gradient(125deg, #fffbf7 0%, #fff7ed 45%, #fef3e8 100%);
	--hub-pattern: radial-gradient(circle at 1px 1px, rgba(194, 65, 12, 0.045) 1px, transparent 0);
	--hub-kicker-bg: rgba(255, 237, 213, 0.9);
}

.page-hero-disease {
	padding: 36px 0 40px;
	background: var(--hub-gradient);
	background-image: var(--hub-pattern), var(--hub-gradient);
	border-bottom: 1px solid var(--hub-border);
}

.page-hero-disease h1 {
	font-size: clamp(1.85rem, 3.2vw, 2.5rem);
	color: var(--hub-heading);
}

.hero-disease-dec {
	position: absolute;
	right: 36px;
	bottom: 8px;
	width: 140px;
	height: 140px;
	color: var(--hub-primary);
	opacity: 0.09;
	pointer-events: none;
}

.hub-hero-search {
	margin-top: 22px;
	max-width: 620px;
}

.hub-search-bar {
	display: flex !important;
	position: relative !important;
	align-items: center;
	width: 100%;
	border: 1px solid var(--hub-border) !important;
	border-radius: 12px !important;
	overflow: hidden;
	background: #fff !important;
	box-shadow: 0 6px 24px var(--hub-shadow) !important;
}

.hub-search-bar input {
	flex: 1;
	border: none !important;
	padding: 14px 62px 14px 18px !important;
	height: auto !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.hub-search-bar .hub-search-submit {
	background: var(--hub-primary) !important;
	color: #fff !important;
	border: none !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	padding: 0 !important;
	position: absolute !important;
	right: 7px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	border-radius: 50% !important;
	cursor: pointer;
	display: grid !important;
	place-items: center;
	box-shadow: 0 4px 10px var(--hub-glow);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-search-bar .hub-search-submit svg {
	display: block;
	width: 18px !important;
	height: 18px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hub-search-bar .hub-search-submit svg circle,
.hub-search-bar .hub-search-submit svg line,
.hub-search-bar .hub-search-submit svg path {
	fill: none !important;
	stroke: currentColor !important;
	vector-effect: non-scaling-stroke;
}

.hub-search-bar .hub-search-submit:hover {
	background: var(--hub-accent) !important;
	box-shadow: 0 6px 14px var(--hub-glow);
	transform: translateY(-50%) scale(1.04) !important;
}

.hub-suggest-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
}

.hub-suggest-label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--hub-primary);
	margin-right: 4px;
}

.hub-theme-sau-benh .quick-diagnostic-symptoms h2 {
	font-family: "Source Serif 4", Georgia, serif;
	color: var(--hub-heading);
}

.hub-theme-sau-benh .diagnostic-group-box {
	border-color: var(--hub-border);
	background: #fff;
	border-top: 3px solid var(--hub-accent);
}

.hub-theme-sau-benh .diagnostic-group-header svg {
	color: var(--hub-primary);
}

.hub-theme-sau-benh .diagnostic-symptom-chip {
	border-color: var(--hub-border);
}

.hub-theme-sau-benh .diagnostic-symptom-chip:hover {
	border-color: var(--hub-primary);
	color: var(--hub-primary);
	background: var(--hub-soft);
}

.hub-theme-sau-benh .disease-card-new {
	border-color: var(--hub-border);
}

.hub-theme-sau-benh .disease-card-link {
	color: var(--hub-primary) !important;
}

.hub-filter-grid-5 {
	grid-template-columns: repeat(5, 1fr) 1.5fr !important;
}

/* Single sâu bệnh */
.hub-theme-sau-benh .single-plant-header,
.hub-theme-sau-benh .single-disease-header {
	background: var(--hub-gradient) !important;
	background-image: var(--hub-pattern), var(--hub-gradient) !important;
	border-bottom: 1px solid var(--hub-border);
	padding-block: 40px;
}

.hub-theme-sau-benh .single-plant-header h1,
.hub-theme-sau-benh .single-disease-header h1 {
	font-family: "Source Serif 4", Georgia, serif;
	color: var(--hub-heading) !important;
	font-size: clamp(1.65rem, 3vw, 2rem);
}

.hub-theme-sau-benh .badge-disease-eyebrow {
	background: var(--hub-soft);
	color: var(--hub-primary);
	border: 1px solid var(--hub-border);
}

.hub-theme-sau-benh .disease-header-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 14px;
}

.hub-theme-sau-benh .disease-severity-pill {
	padding: 4px 10px;
	font-size: 11px;
	border-radius: 6px;
	font-weight: 700;
	text-transform: uppercase;
}

.hub-theme-sau-benh .plant-summary-card {
	border-left-color: var(--hub-accent) !important;
	background: linear-gradient(135deg, #fff, var(--hub-soft)) !important;
	border-color: #fed7aa !important;
}

.hub-theme-sau-benh .decision-guide-section h3 {
	color: var(--hub-heading);
}

.hub-theme-sau-benh .decision-guide-box {
	border-color: var(--hub-border);
	background: #fff;
}

.hub-theme-sau-benh .decision-guide-box:hover {
	border-color: var(--hub-accent);
	box-shadow: 0 8px 24px var(--hub-shadow);
}

.hub-theme-sau-benh .decision-guide-symptom svg {
	color: var(--hub-accent);
}

/* ── 3. DINH DƯỠNG & ĐẤT — Chemistry blue ── */
.hub-theme-dinh-duong,
.hub-dinh-duong {
	--hub-primary: #1d4ed8;
	--hub-accent: #3b82f6;
	--hub-soft: #eff6ff;
	--hub-heading: #1e3a8a;
	--hub-border: rgba(29, 78, 216, 0.14);
	--hub-glow: rgba(59, 130, 246, 0.25);
	--hub-shadow: rgba(29, 78, 216, 0.08);
	--hub-gradient: linear-gradient(135deg, #f8fbff 0%, #eff6ff 50%, #f0f9ff 100%);
	--hub-pattern: radial-gradient(circle at 1px 1px, rgba(29, 78, 216, 0.045) 1px, transparent 0);
	--hub-kicker-bg: rgba(219, 234, 254, 0.9);
}

.hub-theme-dinh-duong .nutrition-hero,
.hub-dinh-duong .nutrition-hero {
	background: var(--hub-gradient) !important;
	background-image: var(--hub-pattern), var(--hub-gradient) !important;
	border-bottom-color: var(--hub-border) !important;
}

.hub-theme-dinh-duong .nutrition-hero-content h1,
.hub-dinh-duong .nutrition-hero-content h1 {
	font-family: "Source Serif 4", Georgia, serif;
	color: var(--hub-heading) !important;
}

.hub-theme-dinh-duong .nutrient-orbit-atom {
	color: var(--hub-primary) !important;
	border-color: rgba(29, 78, 216, 0.25) !important;
	background: rgba(255, 255, 255, 0.9) !important;
}

.hub-theme-dinh-duong .orbit-n {
	background: var(--hub-primary) !important;
	color: #fff !important;
	border-color: var(--hub-primary) !important;
}

.hub-theme-dinh-duong .nutrition-filter-card,
.hub-dinh-duong .nutrition-filter-card {
	border-color: var(--hub-border);
	box-shadow: 0 10px 36px var(--hub-shadow);
	margin-top: 0 !important;
}

.hub-dinh-duong .hub-listing-body.section-space,
.hub-theme-dinh-duong .hub-listing-body.section-space {
	padding-top: 40px !important;
}

.hub-theme-dinh-duong .view-switch-btns button.active,
.hub-dinh-duong .view-switch-btns button.active {
	background: var(--hub-soft) !important;
	border-color: var(--hub-primary) !important;
	color: var(--hub-primary) !important;
}

.hub-theme-dinh-duong .nutrient-card-new {
	border-color: var(--hub-border);
	transition: transform 0.25s, box-shadow 0.25s;
}

.hub-theme-dinh-duong .nutrient-card-new:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 32px var(--hub-shadow);
	border-color: var(--hub-accent);
}

.hub-theme-dinh-duong .nutrient-card-new .badge {
	background: var(--hub-soft);
	color: var(--hub-primary);
	border: 1px solid var(--hub-border);
}

.hub-theme-dinh-duong .nutrient-card-count-badge {
	color: var(--hub-accent);
}

.hub-listing-body {
	padding-top: 30px;
	margin-top: 0;
}

/* Single dinh dưỡng */
.hub-theme-dinh-duong .nutrition-cat-badge,
.hub-theme-dinh-duong .nutrition-single-header .nutrition-cat-badge {
	background: var(--hub-soft);
	color: var(--hub-primary);
	border: 1px solid var(--hub-border);
}

.hub-theme-dinh-duong .nutrition-single-header h1 {
	font-family: "Source Serif 4", Georgia, serif;
	color: var(--hub-heading) !important;
}

.hub-theme-dinh-duong .nutrition-quick-summary {
	border-left: 4px solid var(--hub-accent);
	background: linear-gradient(135deg, #fff, var(--hub-soft));
	border-color: var(--hub-border);
}

.hub-theme-dinh-duong .nutrition-quick-summary h3 {
	color: var(--hub-primary);
}

.hub-theme-dinh-duong .nutrition-sidebar-card,
.hub-theme-dinh-duong .nutrition-facts-table-wrap {
	border-color: var(--hub-border);
}

.hub-theme-dinh-duong .nutrition-symbol-badge {
	background: var(--hub-primary);
	color: #fff;
}

/* ── 4. VI SINH & QUY TRÌNH — Microbe teal ── */
.hub-theme-vi-sinh,
.hub-vi-sinh {
	--hub-primary: #0f766e;
	--hub-accent: #14b8a6;
	--hub-soft: #f0fdfa;
	--hub-heading: #134e4a;
	--hub-border: rgba(15, 118, 110, 0.14);
	--hub-glow: rgba(20, 184, 166, 0.25);
	--hub-shadow: rgba(15, 118, 110, 0.08);
	--hub-gradient: linear-gradient(125deg, #f4fffe 0%, #ecfdf5 45%, #f0fdfa 100%);
	--hub-pattern: radial-gradient(circle at 2px 2px, rgba(15, 118, 110, 0.06) 1.5px, transparent 0);
	--hub-kicker-bg: rgba(204, 251, 241, 0.85);
}

.page-hero-microbes {
	padding: 48px 0 52px;
}

.page-hero-microbes h1 {
	font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}

.hub-microbe-orbs {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.microbe-orb {
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(20, 184, 166, 0.25);
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(204, 251, 241, 0.5));
}

.microbe-orb.orb-a { width: 80px; height: 80px; right: 12%; top: 18%; }
.microbe-orb.orb-b { width: 48px; height: 48px; right: 22%; bottom: 22%; opacity: 0.7; }
.microbe-orb.orb-c { width: 32px; height: 32px; right: 8%; bottom: 35%; opacity: 0.5; }
.microbe-orb.orb-d {
	width: 56px;
	height: 56px;
	right: 18%;
	top: 42%;
	opacity: 0.35;
	background: radial-gradient(circle, var(--hub-accent), transparent 70%);
	border: none;
}

.hub-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 24px;
	gap: 12px;
}

.hub-vi-sinh .hub-filter-tabs,
.hub-theme-vi-sinh .hub-filter-tabs {
	gap: 14px;
	margin-bottom: 26px;
}

.filter-tab-link {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid var(--hub-border, var(--color-border));
	background: #fff;
	color: var(--color-text);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

.hub-theme-vi-sinh .filter-tab-link.is-active,
.hub-vi-sinh .filter-tab-link.is-active {
	background: var(--hub-primary);
	border-color: var(--hub-primary);
	color: #fff;
}

.hub-theme-vi-sinh .filter-tab-link:hover,
.hub-vi-sinh .filter-tab-link:hover {
	border-color: var(--hub-accent);
	color: var(--hub-primary);
}

.hub-theme-vi-sinh .filter-tab-link.is-active:hover,
.hub-vi-sinh .filter-tab-link.is-active:hover {
	background: var(--hub-accent);
	border-color: var(--hub-accent);
	color: #fff;
}

.hub-filter-grid-microbe {
	grid-template-columns: repeat(3, 1fr) 1.5fr !important;
}

.microbe-filter-panel .filter-form-grid {
	background: transparent;
	padding: 0;
	margin-bottom: 0;
}

.microbe-summary-bar {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed var(--hub-border);
}

.microbe-clear-btn {
	white-space: nowrap;
	background: #fff !important;
	color: var(--hub-primary) !important;
	border: 1px solid var(--hub-border) !important;
	font-weight: 700 !important;
}

.microbe-clear-btn:hover {
	background: var(--hub-soft) !important;
	color: var(--hub-primary) !important;
	border-color: var(--hub-accent) !important;
}

/* Microbe card grid — override legacy .knowledge-list list layout */
.hub-vi-sinh .microbe-card-grid,
.hub-theme-vi-sinh .microbe-card-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 28px !important;
	margin-top: 28px !important;
}

.hub-vi-sinh .microbe-card,
.hub-theme-vi-sinh .microbe-card {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: none !important;
	padding: 0 !important;
	align-items: stretch !important;
	background: #fff;
	border: 1px solid var(--hub-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 18px var(--hub-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-vi-sinh .microbe-card:hover,
.hub-theme-vi-sinh .microbe-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 32px var(--hub-shadow);
}

.microbe-card-image-wrap {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: var(--hub-soft);
}

.microbe-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.microbe-card:hover .microbe-card-image-wrap img {
	transform: scale(1.05);
}

.microbe-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hub-primary);
	border: 1px solid var(--hub-border);
}

.microbe-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.microbe-card-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.microbe-card-title a {
	color: var(--hub-heading);
	text-decoration: none;
}

.microbe-card-title a:hover {
	color: var(--hub-primary);
}

.microbe-card-excerpt {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--color-muted);
	flex: 1;
}

.microbe-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed var(--hub-border);
}

.microbe-card-date {
	font-size: 12px;
	color: var(--color-muted);
}

.microbe-card-link {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--hub-primary);
	text-decoration: none;
	white-space: nowrap;
}

.microbe-card-link:hover {
	color: var(--hub-accent);
}

.microbe-pagination {
	grid-column: 1 / -1;
	justify-content: center;
	margin-top: 36px;
	margin-bottom: 0;
}

.hub-vi-sinh .hub-listing-body.section-space,
.hub-theme-vi-sinh .hub-listing-body.section-space {
	padding-bottom: 32px !important;
}

.hub-btn-primary {
	background: var(--hub-primary) !important;
	border-color: var(--hub-primary) !important;
	color: #fff !important;
}

.hub-btn-primary:hover {
	background: var(--hub-accent) !important;
	border-color: var(--hub-accent) !important;
}

/* Single vi sinh / quy trình */
.single-microbe-header {
	padding: 44px 0 40px;
	background: var(--hub-gradient);
	background-image: var(--hub-pattern), var(--hub-gradient);
	border-bottom: 1px solid var(--hub-border);
}

.single-microbe-header h1 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	color: var(--hub-heading);
	margin-bottom: 12px;
}

.hub-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 13.5px;
	color: var(--color-muted);
}

.hub-verified-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: var(--hub-soft);
	color: var(--hub-primary);
	border: 1px solid var(--hub-border);
}

.single-microbe-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 60px;
	align-items: start;
}

.single-microbe-main {
	min-width: 0;
}

.single-microbe-featured {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--hub-border);
	margin-bottom: 28px;
	box-shadow: 0 8px 28px var(--hub-shadow);
}

.single-microbe-featured img {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

.hub-info-panel,
.hub-process-panel,
.hub-alert-panel {
	border: 1px solid var(--hub-border);
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 28px;
	background: #fff;
}

.hub-info-panel h3,
.hub-process-panel h3,
.hub-alert-panel h3 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.15rem;
	color: var(--hub-heading);
	margin: 0 0 14px;
}

.hub-meta-dl {
	margin: 0;
}

.hub-meta-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--hub-border);
	font-size: 14px;
}

.hub-meta-row:last-child {
	border-bottom: 0;
}

.hub-meta-row dt {
	font-weight: 600;
	color: var(--color-muted);
	margin: 0;
}

.hub-meta-row dd {
	margin: 0;
	color: var(--color-text);
}

.hub-process-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: hubstep;
}

.hub-process-timeline li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px dashed var(--hub-border);
}

.hub-process-timeline li:last-child {
	border-bottom: 0;
}

.hub-process-timeline .step-num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	background: var(--hub-primary);
	color: #fff;
}

.hub-process-timeline .step-text {
	font-size: 14.5px;
	line-height: 1.55;
	padding-top: 4px;
}

.hub-alert-panel {
	background: linear-gradient(135deg, #fff, var(--hub-soft));
	border-left: 4px solid var(--hub-accent);
}

.hub-entry-content {
	font-size: 16px;
	line-height: 1.75;
}

.microbe-summary-card {
	background: var(--hub-soft);
	border-left: 4px solid var(--hub-primary);
	border-radius: 0 14px 14px 0;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.microbe-summary-card h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--hub-primary);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.microbe-summary-card h3 svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.microbe-summary-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.microbe-summary-card li {
	font-size: 14px;
	line-height: 1.55;
	color: var(--color-text);
	margin-bottom: 8px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.microbe-summary-card li:last-child {
	margin-bottom: 0;
}

.microbe-summary-card .check {
	color: var(--hub-primary);
	font-weight: 700;
	flex-shrink: 0;
}

.microbe-article-body {
	margin-bottom: 28px;
}

.hub-theme-vi-sinh .microbe-article-body h2,
.hub-theme-vi-sinh .hub-entry-content h2 {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 1.35rem;
	color: var(--hub-heading);
	margin: 2rem 0 0.85rem;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--hub-border);
}

.hub-theme-vi-sinh .microbe-article-body h3,
.hub-theme-vi-sinh .hub-entry-content h3 {
	font-size: 1.1rem;
	color: var(--hub-primary);
	margin: 1.5rem 0 0.65rem;
}

.hub-theme-vi-sinh .microbe-article-body p,
.hub-theme-vi-sinh .hub-entry-content p {
	margin-bottom: 1rem;
	color: var(--color-text);
}

.hub-theme-vi-sinh .microbe-article-body ul,
.hub-theme-vi-sinh .microbe-article-body ol,
.hub-theme-vi-sinh .hub-entry-content ul,
.hub-theme-vi-sinh .hub-entry-content ol {
	margin: 0 0 1.25rem 1.25rem;
	padding: 0;
}

.hub-theme-vi-sinh .microbe-article-body li,
.hub-theme-vi-sinh .hub-entry-content li {
	margin-bottom: 0.45rem;
	line-height: 1.65;
}

.hub-theme-vi-sinh .microbe-article-body img,
.hub-theme-vi-sinh .hub-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1rem 0;
}

.hub-theme-vi-sinh .microbe-article-body table,
.hub-theme-vi-sinh .hub-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0;
	font-size: 14px;
}

.hub-theme-vi-sinh .microbe-article-body th,
.hub-theme-vi-sinh .microbe-article-body td,
.hub-theme-vi-sinh .hub-entry-content th,
.hub-theme-vi-sinh .hub-entry-content td {
	border: 1px solid var(--hub-border);
	padding: 10px 12px;
	text-align: left;
}

.hub-theme-vi-sinh .microbe-article-body th,
.hub-theme-vi-sinh .hub-entry-content th {
	background: var(--hub-soft);
	color: var(--hub-heading);
}

.microbe-info-sidebar .sidebar-box-header h3 {
	color: var(--hub-primary);
}

.microbe-info-sidebar .sidebar-table th {
	color: var(--color-muted);
	font-weight: 600;
	width: 42%;
}

.microbe-share-wrap {
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--hub-border);
}

.hub-theme-vi-sinh .toc-sidebar,
.hub-theme-cay-trong .toc-sidebar,
.hub-theme-sau-benh .toc-sidebar,
.hub-theme-dinh-duong .toc-sidebar {
	border-color: var(--hub-border);
}

/* ── Responsive ── */
@media (max-width: 960px) {
	.hub-filter-grid-5 {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.single-microbe-container {
		grid-template-columns: 1fr;
	}

	.hub-vi-sinh .microbe-card-grid,
	.hub-theme-vi-sinh .microbe-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.hub-filter-grid-microbe {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.hero-disease-dec,
	.hub-microbe-orbs {
		display: none;
	}
}

@media (max-width: 640px) {
	.wiki-hub-nav__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
		padding-top: 10px;
	}

	.wiki-hub-nav__links {
		width: 100%;
		padding-top: 8px;
	}

	.hub-filter-grid-5,
	.hub-filter-grid-microbe,
	.hub-theme-cay-trong .filter-form-grid {
		grid-template-columns: 1fr !important;
	}

	.hub-vi-sinh .microbe-card-grid,
	.hub-theme-vi-sinh .microbe-card-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 18px !important;
	}

	.hub-vi-sinh .microbe-card-footer,
	.hub-theme-vi-sinh .microbe-card-footer {
		flex-wrap: wrap;
	}

	.hub-vi-sinh .microbe-card-link,
	.hub-theme-vi-sinh .microbe-card-link {
		margin-left: auto;
	}

	.hub-meta-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* Keep the disease directory pagination clear of the footer. */
.hub-sau-benh .pagination {
	margin-bottom: 32px;
}

.hub-dinh-duong .pagination {
	margin-bottom: 32px;
}

.hub-cay-trong .pagination {
	margin-bottom: 32px;
}

@media (max-width: 640px) {
	.hub-vi-sinh .hub-listing-body.section-space,
	.hub-theme-vi-sinh .hub-listing-body.section-space {
		padding-bottom: 24px !important;
	}

	.hub-sau-benh .pagination {
		margin-bottom: 24px;
	}

	.hub-dinh-duong .pagination {
		margin-bottom: 24px;
	}

	.hub-cay-trong .pagination {
		margin-bottom: 24px;
	}
}
