/* ========== Related Courses Carousel ========== */
.asmorix-related {
	--ar-blue: #0c5adb;
	--ar-navy: #041424;
	--ar-muted: #6b7785;
	--ar-font: "Nunito", "Poppins", sans-serif;
	--ar-display: "Rajdhani", "Nunito", sans-serif;
	--ar-gap: 18px;
	position: relative;
	padding: 36px 0 48px;
	overflow: hidden;
	background: #ffffff;
	font-family: var(--ar-font);
	color: var(--ar-navy);
}

.asmorix-related__inner {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.asmorix-related__header {
	max-width: 720px;
	margin: 0 auto 22px;
	text-align: center;
}

.asmorix-related__carousel {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 10px;
}

.asmorix-related__viewport {
	overflow: hidden;
	width: 100%;
	padding: 6px 2px 10px;
}

.asmorix-related__track {
	display: flex;
	gap: var(--ar-gap);
	will-change: transform;
	transition: transform 0.25s ease;
}

.asmorix-related__card {
	flex: 0 0 calc((100% - (3 * var(--ar-gap))) / 4);
	min-width: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(4, 20, 36, 0.08);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.asmorix-related__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(4, 20, 36, 0.12);
}

.asmorix-related__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none !important;
}

.asmorix-related__banner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 148px;
	padding: 22px 18px;
	text-align: center;
}

.asmorix-related__banner-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	font-family: var(--ar-display);
	font-size: clamp(16px, 1.35vw, 19px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

/* Attractive distinct gradient combinations */
.asmorix-related__banner--g1 {
	background: linear-gradient(135deg, #0f9b8e 0%, #1db954 100%);
}
.asmorix-related__banner--g2 {
	background: linear-gradient(135deg, #d4145a 0%, #fbb03b 100%);
}
.asmorix-related__banner--g3 {
	background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}
.asmorix-related__banner--g4 {
	background: linear-gradient(135deg, #c31432 0%, #240b36 100%);
}
.asmorix-related__banner--g5 {
	background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}
.asmorix-related__banner--g6 {
	background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
}
.asmorix-related__banner--g7 {
	background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}
.asmorix-related__banner--g8 {
	background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}
.asmorix-related__banner--g9 {
	background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
}
.asmorix-related__banner--g10 {
	background: linear-gradient(135deg, #141e30 0%, #243b55 55%, #4ca1af 100%);
}

.asmorix-related__body {
	padding: 16px 16px 18px;
	background: #fff;
}

.asmorix-related__name {
	margin: 0 0 8px;
	font-family: var(--ar-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.asmorix-related__reviews-label {
	margin: 0 0 6px;
	font-size: 13px;
	font-style: italic;
	font-weight: 500;
	line-height: 1;
	color: #9aa3ad;
}

.asmorix-related__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.asmorix-related__stars {
	--rating: 5;
	position: relative;
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 1px;
	width: 5.2em;
	height: 1em;
	flex-shrink: 0;
}

.asmorix-related__stars::before,
.asmorix-related__stars::after {
	position: absolute;
	top: 0;
	left: 0;
	content: "★★★★★";
	font-size: inherit;
	line-height: 1;
	letter-spacing: inherit;
	white-space: nowrap;
}

.asmorix-related__stars::before {
	color: #dde3ea;
}

.asmorix-related__stars::after {
	width: calc(var(--rating) / 5 * 100%);
	overflow: hidden;
	color: #f5a623;
}

.asmorix-related__score {
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	color: #1a1a1a;
}

.asmorix-related__count {
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #8a949e;
}

.asmorix-related__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #222;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(4, 20, 36, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.asmorix-related__nav svg {
	width: 20px;
	height: 20px;
	display: block;
}

.asmorix-related__nav:hover:not(:disabled) {
	transform: scale(1.06);
	box-shadow: 0 8px 20px rgba(4, 20, 36, 0.16);
}

.asmorix-related__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.asmorix-related__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.asmorix-related__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #c5d0dc;
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease, border-radius 0.2s ease;
}

.asmorix-related__dot.is-active {
	width: 22px;
	border-radius: 999px;
	background: var(--ar-blue);
}

@media (max-width: 1100px) {
	.asmorix-related__card {
		flex-basis: calc((100% - (2 * var(--ar-gap))) / 3);
	}
}

@media (max-width: 991px) {
	.asmorix-related__card {
		flex-basis: calc((100% - var(--ar-gap)) / 2);
	}
	.asmorix-related__banner {
		min-height: 132px;
	}
}

@media (max-width: 767px) {
	.asmorix-related {
		padding: 28px 0 40px;
		--ar-gap: 14px;
	}
	.asmorix-related__inner {
		width: min(100% - 28px, 1180px);
	}
	.asmorix-related__title {
		font-size: 26px;
	}
	.asmorix-related__carousel {
		grid-template-columns: 36px minmax(0, 1fr) 36px;
		gap: 6px;
	}
	.asmorix-related__nav {
		width: 36px;
		height: 36px;
	}
	.asmorix-related__card {
		flex-basis: 100%;
	}
	.asmorix-related__banner {
		min-height: 140px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asmorix-related__track,
	.asmorix-related__card,
	.asmorix-related__nav {
		transition: none;
	}
	.asmorix-related__card:hover,
	.asmorix-related__nav:hover:not(:disabled) {
		transform: none;
	}
}
