/**
 * Projects carousel
 */
.ntm-section-head.ntm-section-head--projects {
	display: block;
	margin-bottom: 28px;
}

.ntm-section-head--projects {
	display: block;
	margin-bottom: 28px;
}

.ntm-section-head--projects .ntm-section-head__title {
	margin: 0;
}

.ntm-projects__head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.ntm-projects__filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.ntm-projects__filters::-webkit-scrollbar {
	display: none;
}

.ntm-projects__filter {
	border: 0;
	background: transparent;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.ntm-projects__filter.is-active {
	background: var(--ntm-home-primary);
	color: #fff;
}

.ntm-projects__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-shrink: 0;
}

.ntm-projects__nav-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ntm-projects__nav {
	width: 38px;
	height: 38px;
	border: 1px solid var(--ntm-home-primary);
	border-radius: 50%;
	background: var(--ntm-home-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	line-height: 1;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ntm-projects__nav:hover:not(.is-disabled) {
	transform: scale(1.05);
	background: var(--ntm-home-primary-dark);
	border-color: var(--ntm-home-primary-dark);
}

.ntm-projects__nav.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.ntm-projects__nav svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.ntm-projects__nav svg path {
	stroke: currentColor;
}

.ntm-projects__track-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
	scrollbar-width: none;
}

.ntm-projects__track-wrap::-webkit-scrollbar {
	display: none;
}

.ntm-projects__track {
	display: flex;
	gap: 20px;
	width: max-content;
	padding: 2px 2px 8px;
}

.ntm-projects__card {
	flex: 0 0 280px;
	width: 280px;
	scroll-snap-align: start;
}

.ntm-projects__card.is-hidden {
	display: none;
}

.ntm-projects__media {
	position: relative;
	display: block;
	border-radius: var(--ntm-home-radius-sm);
	overflow: hidden;
}

.ntm-projects__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ntm-projects__media:hover img {
	transform: scale(1.04);
}

.ntm-projects__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--ntm-home-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}

.ntm-projects__title {
	margin: 12px 0 6px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
}

.ntm-projects__title a {
	color: #1a1a1a !important;
}

.ntm-projects__meta,
.ntm-projects__location {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ntm-color-muted);
}

.ntm-projects__empty {
	padding: 24px;
	color: var(--ntm-color-muted);
}

@media (max-width: 992px) {
	.ntm-projects__card {
		flex-basis: 260px;
		width: 260px;
	}
}

@media (max-width: 560px) {
	.ntm-projects__head-row {
		flex-wrap: wrap;
	}

	.ntm-projects__actions {
		width: 100%;
		justify-content: flex-end;
	}

	.ntm-projects__nav-group {
		display: none;
	}

	.ntm-projects__card {
		flex-basis: min(82vw, 300px);
		width: min(82vw, 300px);
	}
}
