.nh-category-carousel {
	position: relative;
	margin: 0;
	display: grid;
	align-items: center;
}

.nh-category-carousel__viewport {
	overflow: hidden;
	margin: 0 -8px;
	padding: 4px 8px 8px;
	min-width: 0;
}

.nh-category-carousel__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: none;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.nh-category-carousel__track--smooth {
	scroll-behavior: smooth;
}

.nh-category-carousel--marquee .nh-category-carousel__track {
	scroll-snap-type: none;
}

.nh-category-carousel__track::-webkit-scrollbar {
	display: none;
}

.nh-category-carousel__slide {
	flex: 0 0 auto;
}

.nh-category-carousel__card {
	display: block;
	width: 248px;
	text-decoration: none;
	color: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nh-category-carousel__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.nh-category-carousel__media {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 360px;
	padding: 20px 18px 18px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nh-category-carousel__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 45, 91, 0.82) 0%, rgba(11, 45, 91, 0.28) 34%, rgba(11, 45, 91, 0) 52%),
		linear-gradient(0deg, rgba(11, 45, 91, 0.88) 0%, rgba(11, 45, 91, 0.34) 38%, rgba(11, 45, 91, 0) 58%);
	pointer-events: none;
}

.nh-category-carousel__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	min-height: 100%;
	gap: 16px;
}

.nh-category-carousel__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	text-transform: capitalize;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.nh-category-carousel__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.nh-category-carousel__count {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eef2ff;
	color: #1b4fd8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
}

.nh-category-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1.5px solid rgba(255, 255, 255, 0.88);
	border-radius: 999px;
	flex-shrink: 0;
}

.nh-category-carousel__arrow::after {
	content: "\f061";
	font-family: FontAwesome, "Font Awesome 5 Free", ETmodules;
	font-weight: 900;
	color: #fff;
	font-size: 16px;
	line-height: 1;
}

.nh-category-carousel__nav {
	position: static;
	transform: none;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #0b2d5b;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	flex-shrink: 0;
}

.nh-category-carousel__nav:hover {
	transform: scale(1.04);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.nh-category-carousel__nav span {
	font-size: 1.6rem;
	line-height: 1;
	margin-top: -2px;
}

.nh-category-carousel__nav[hidden] {
	display: none !important;
}

.nh-category-carousel__nav-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

@media (min-width: 981px) {
	.nh-category-carousel {
		grid-template-columns: auto minmax(0, 1fr) auto;
		column-gap: 18px;
	}

	.nh-category-carousel__viewport {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
	}

	.nh-category-carousel__nav-row {
		display: contents;
	}

	.nh-category-carousel__nav--prev {
		grid-column: 1;
		grid-row: 1;
	}

	.nh-category-carousel__nav--next {
		grid-column: 3;
		grid-row: 1;
	}
}

@media (max-width: 980px) {
	.nh-category-carousel {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 14px;
	}

	.nh-category-carousel__viewport {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
	}

	.nh-category-carousel__nav-row {
		grid-column: 1;
		grid-row: 2;
		width: 100%;
	}
}

@media (max-width: 980px) {
	.nh-category-carousel__card {
		width: 220px;
	}

	.nh-category-carousel__media {
		min-height: 320px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.nh-category-carousel__slide:not(.nh-category-carousel__slide--clone) {
		animation: nh-carousel-enter 0.65s ease both;
	}

	.nh-category-carousel__slide:not(.nh-category-carousel__slide--clone):nth-child(2) {
		animation-delay: 0.06s;
	}

	.nh-category-carousel__slide:not(.nh-category-carousel__slide--clone):nth-child(3) {
		animation-delay: 0.12s;
	}

	.nh-category-carousel__slide:not(.nh-category-carousel__slide--clone):nth-child(4) {
		animation-delay: 0.18s;
	}

	.nh-category-carousel__slide:not(.nh-category-carousel__slide--clone):nth-child(5) {
		animation-delay: 0.24s;
	}

	.nh-category-carousel--marquee .nh-category-carousel__slide--clone {
		animation: none;
	}
}

@keyframes nh-carousel-enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.nh-category-carousel__viewport {
		margin: 0 -4px;
		padding-inline: 4px;
	}

	.nh-category-carousel__card {
		width: 204px;
	}

	.nh-category-carousel__title {
		font-size: 1.2rem;
	}
}

.et-l--body .et_pb_section:has(.nh-category-carousel) {
	padding-top: 72px !important;
	padding-bottom: 48px !important;
	background: transparent !important;
}

.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_row,
.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_column,
.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_code,
.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_code_inner {
	background: transparent !important;
}

.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_column {
	row-gap: 12px !important;
	--vertical-gap: 12px !important;
}

.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_heading_container h2 {
	margin: 0 0 8px !important;
}

.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_text p {
	margin: 0 !important;
}

.et-l--body .et_pb_section:has(.nh-category-carousel) .et_pb_code {
	margin: 0 !important;
}

@media (max-width: 980px) {
	.et-l--body .et_pb_section:has(.nh-category-carousel) {
		padding-top: 48px !important;
		padding-bottom: 32px !important;
	}
}
