/* ==========================================================================
   Courses archive: filters and learning path
   ========================================================================== */
.oqa-carchive {
	padding: 70px 0 90px;
	background: #fcfaf6;
}

.oqa-carchive__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 40px;
	padding: 12px 12px 12px 22px;
	background: var(--oqa-white);
	border: 1px solid rgba(69, 47, 95, 0.08);
	border-radius: 22px;
	box-shadow: 0 10px 28px rgba(42, 29, 58, 0.06);
}

.oqa-carchive__count {
	margin: 0;
	font-size: 15px;
	color: var(--oqa-muted);
}

.oqa-carchive__count strong {
	font-family: var(--oqa-font-heading);
	font-size: 22px;
	color: var(--oqa-green-900);
}

.oqa-carchive__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.oqa-carchive__chip {
	padding: 10px 18px;
	font-family: var(--oqa-font-body);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--oqa-green-900);
	background: #f6f2e8;
	border: 0;
	border-radius: var(--oqa-radius-pill);
	cursor: pointer;
	transition: background 0.2s var(--oqa-ease), color 0.2s var(--oqa-ease);
}

.oqa-carchive__chip:hover {
	background: #efe6d2;
}

.oqa-carchive__chip.is-active {
	color: var(--oqa-white);
	background: linear-gradient(160deg, var(--oqa-green-700) 0%, var(--oqa-green-900) 100%);
}

.oqa-carchive__chip:focus-visible {
	outline: 2px solid var(--oqa-gold-500);
	outline-offset: 2px;
}

.oqa-carchive__empty {
	margin: 30px 0 0;
	padding: 30px;
	text-align: center;
	color: var(--oqa-muted);
	background: var(--oqa-white);
	border: 1.5px dashed rgba(216, 171, 82, 0.6);
	border-radius: 20px;
}

.oqa-carchive__empty[hidden] {
	display: none;
}

/* Learning path */
.oqa-cpath {
	padding: 80px 0 90px;
	background: #f7f3ea;
}

.oqa-cpath__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oqa-cpath__list::before {
	content: "";
	position: absolute;
	top: 64px;
	left: 12%;
	right: 12%;
	border-top: 2px dashed rgba(216, 171, 82, 0.6);
}

.oqa-cpath__link,
.oqa-cpath__link:visited {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 20px 26px;
	text-align: center;
	text-decoration: none;
	background: var(--oqa-white);
	border: 1px solid rgba(69, 47, 95, 0.08);
	border-radius: 22px;
	box-shadow: 0 10px 26px rgba(42, 29, 58, 0.06);
	transition: transform 0.3s var(--oqa-ease), border-color 0.3s var(--oqa-ease), box-shadow 0.3s var(--oqa-ease);
}

.oqa-cpath__link:hover {
	transform: translateY(-5px);
	border-color: rgba(216, 171, 82, 0.55);
	box-shadow: 0 20px 40px rgba(42, 29, 58, 0.12);
}

.oqa-cpath__link:focus-visible {
	outline: 2px solid var(--oqa-gold-500);
	outline-offset: 3px;
}

.oqa-cpath__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 16px;
	font-size: 32px;
	color: var(--oqa-white);
	background: radial-gradient(circle at 30% 25%, var(--oqa-green-600), var(--oqa-green-950));
	border-radius: 24px;
	box-shadow: 0 0 0 6px #fcfaf6, 0 0 0 8px rgba(216, 171, 82, 0.5);
}

.oqa-cpath__num {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--oqa-gold-600);
}

.oqa-cpath__link strong {
	margin: 4px 0 2px;
	font-family: var(--oqa-font-heading);
	font-size: 22px;
	color: var(--oqa-green-900);
}

.oqa-cpath__link small {
	font-size: 14px;
	color: var(--oqa-muted);
}

@media (max-width: 991px) {
	.oqa-carchive__bar {
		padding: 16px;
	}

	.oqa-carchive__filters {
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.oqa-carchive__filters::-webkit-scrollbar {
		display: none;
	}

	.oqa-carchive__chip {
		flex-shrink: 0;
	}

	.oqa-cpath__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.oqa-cpath__list::before {
		display: none;
	}
}

@media (max-width: 560px) {
	.oqa-carchive {
		padding: 50px 0 64px;
	}

	.oqa-cpath {
		padding: 60px 0 64px;
	}

	.oqa-cpath__list {
		gap: 14px;
	}

	.oqa-cpath__link {
		padding: 22px 12px;
	}

	.oqa-cpath__icon {
		width: 58px;
		height: 58px;
		font-size: 26px;
		border-radius: 18px;
	}

	.oqa-cpath__link strong {
		font-size: 19px;
	}
}
