/*============
	Help category list
============ */
.help-category {
	margin: 2rem auto 4rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	font-family: "Inter", var(--font-ui);
}

.help-category__header {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.help-category__breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.help-category__breadcrumb a {
	color: var(--text-muted);
}

.help-category__breadcrumb a:hover {
	color: var(--primary-accent);
}

.help-category__intro {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.help-category__icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(var(--primary-accent-rgb), 0.12);
	border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
	color: var(--primary-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.help-category__intro h1 {
	font-size: clamp(2rem, 3vw, 2.8rem);
	margin-bottom: 0.5rem;
}

.help-category__intro p {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 720px;
}

.help-category__filters {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	background: var(--deep-green);
	border: 1px solid var(--secondary-teal);
	border-radius: 14px;
	padding: 1rem;
}

.help-category__search {
	position: relative;
	flex: 1;
	min-width: 220px;
}

.help-category__search span {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
}

.help-category__search input {
	width: 100%;
	background: var(--primary-black);
	border: 1px solid var(--secondary-teal);
	border-radius: 10px;
	padding: 0.6rem 0.9rem 0.6rem 2.6rem;
	color: var(--text-light);
}

.help-category__search input:focus {
	outline: none;
	border-color: var(--primary-accent);
	box-shadow: 0 0 0 1px rgba(var(--primary-accent-rgb), 0.35);
}

.help-category__sort {
	position: relative;
	min-width: 170px;
}

.help-category__sort select {
	width: 100%;
	background: var(--primary-black);
	border: 1px solid var(--secondary-teal);
	border-radius: 10px;
	padding: 0.6rem 2.2rem 0.6rem 0.9rem;
	color: var(--text-light);
	appearance: none;
	cursor: pointer;
}

.help-category__sort span {
	position: absolute;
	right: 0.8rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}

.help-category__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.help-category__card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: var(--deep-green);
	border: 1px solid var(--secondary-teal);
	border-radius: 16px;
	padding: 1.5rem;
	transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.help-category__card:hover {
	transform: translateY(-2px);
	border-color: rgba(var(--primary-accent-rgb), 0.5);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.help-category__card h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.help-category__card p {
	color: var(--text-muted);
}

.help-category__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.help-category__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.help-category__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--primary-accent);
	font-weight: 700;
	font-size: 0.9rem;
}

.help-category__cta span {
	transition: transform 0.2s ease;
}

.help-category__card:hover .help-category__cta span {
	transform: translateX(3px);
}

.help-category__empty {
	text-align: center;
	padding: 2rem;
	border: 1px dashed var(--secondary-teal);
	border-radius: 16px;
	color: var(--text-muted);
}

.help-category__pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.help-category__pagination .page-link {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--secondary-teal);
	color: var(--text-muted);
	background: var(--deep-green);
	transition: var(--transition);
}

.help-category__pagination .page-link.active {
	background: var(--primary-accent);
	color: var(--text-light);
	border-color: var(--primary-accent);
}

.help-category__pagination .page-link:hover {
	color: var(--text-light);
	border-color: var(--primary-accent);
}

@media (min-width: 768px) {
	.help-category__card {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.help-category__card-body {
		flex: 1;
	}
}

@media (max-width: 640px) {
	.help-category__intro {
		flex-direction: column;
	}
}