.hp-projects { position: relative; background: transparent; overflow: hidden; }

.hp-projects__inner {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 36px;
	align-items: center;              /* (3) pagination vertically centred */
	max-width: 1440px;
	margin: 0 auto;
	padding: 60px 24px;
}

/* Left rail : numbered dots + circle timer */
.hp-pagination {
	display: flex; flex-direction: column; gap: 38px;
	align-items: center; justify-content: center; align-self: stretch;
}
.hp-page-item { position: relative; width: 90px; height: 90px; flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.hp-page-ring { display: block; }
.hp-circle-bg { fill: none; stroke: var(--primary-l-4, #ffd6cc); stroke-width: 1px; }
.hp-circle-progress { fill: none; stroke: var(--primary, #de121d); stroke-width: 1px; stroke-dasharray: 279.6; stroke-dashoffset: 279.6; }
.hp-page-num {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-family: "Barlow", sans-serif; font-size: var(--text-xl, 25.63px) !important; font-weight: 600;
	color: var(--primary-l-2, #f88672); transition: color 0.3s ease;
}
.hp-page-item.active .hp-page-num { color: var(--primary, #de121d); }

/* Slides */
.hp-slides-wrapper { position: relative; min-width: 0; }
.hp-slide { display: none; flex-direction: column; width: 100%; animation: hp-fade 0.45s ease-in-out; }
.hp-slide.active { display: flex; }
@keyframes hp-fade { from { opacity: 0; } to { opacity: 1; } }

/* Gallery */
.hp-gallery { position: relative; width: 100%; overflow: hidden; margin-bottom: 37px; }
.hp-gallery__track { display: flex; gap: 11px; width: max-content; will-change: transform; }
.hp-gallery__img { height: 441px; width: auto; flex: 0 0 auto; display: block; object-fit: cover; border-radius: 30px 0; background: lightgray 50% / cover no-repeat; }
.hp-gallery__fade { position: absolute; top: 0; right: 0; bottom: 0; width: 200px; pointer-events: none; z-index: 2; background: linear-gradient(to right, rgba(255,255,255,0) 0%, #fff 92%); }

/* (4) arrows: red icon only, white bg + animation on hover */
.hp-gallery__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; box-shadow: none; cursor: pointer; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.hp-gallery__arrow img { width: 30px; height: 30px; display: block; }
.hp-gallery__arrow--prev { left: 20px; }
.hp-gallery__arrow--next { right: 20px; }
.hp-gallery__arrow:hover, .hp-gallery__arrow:focus-visible { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.25); transform: translateY(-50%) scale(1.15); }
.hp-gallery__arrow:active { transform: translateY(-50%) scale(0.95); }

/* Title + content */
.hp-title { margin: 0 0 20px; color: #1e2022; font-family: "Inter", sans-serif; font-size: 23.99px; font-weight: 600; line-height: 28px; }
.hp-content-row { display: flex; gap: 40px; justify-content: space-between; align-items: stretch; }
.hp-info-col { flex: 1 1 auto; max-width: 815px; min-width: 0; display: flex; flex-direction: column; }

.hp-country { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex: 0 0 auto; }
.hp-country__img { width: 44px; height: 29px; flex-shrink: 0; aspect-ratio: 44/29; border: 1px solid #000; object-fit: cover; }
.hp-country__text { color: var(--primary, #de121d); text-align: center; font-family: "Inter", sans-serif; font-size: 18px; font-weight: 400; line-height: 28px; }

/* (9) body copy at --text-xl */
.hp-excerpt {
	color: var(--secondary-l-1, #45474a); font-family: "Inter", sans-serif;
	font-size: var(--text-m) !important; font-weight: 400; line-height: var(--space-m, 28px);
	margin-bottom: 24px; flex: 1 1 auto; min-height: 0;
}

.hp-view-more {
	display: inline-flex; width: 146.359px; height: 39.8px; padding: var(--space-2xs, 9.9px) var(--space-s, 19.8px);
	flex: 0 0 auto; flex-direction: column; justify-content: center; align-items: flex-start; border-radius: 4px;
	background: var(--primary, #de121d); color: #fff; text-align: center; font-family: "Barlow", sans-serif;
	font-size: var(--text-m, 18px); font-weight: 500; line-height: var(--space-s, 19.8px);
	text-transform: capitalize; text-decoration: none; box-sizing: border-box; transition: background-color 0.3s ease;
}
.hp-view-more:hover { background-color: var(--primary-d-2, #a50e16); }

/* Related products */
.hp-related-col { flex: 0 0 auto; width: 274px; display: flex; flex-direction: column; gap: 24px; }
.hp-related { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; }
/* (5) transparency image 262x262 square, contained */
.hp-related__img { display: block; width: 262px; height: 262px; max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; }
.hp-related__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hp-related__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 274px;
	color: #1e2022; text-align: center; font-family: "Inter", sans-serif; font-size: 18px; font-weight: 500;
	line-height: 40px; text-transform: capitalize; transition: color 0.2s ease;
}
.hp-related:hover .hp-related__title { color: var(--primary, #de121d); }

/* ===== TABLET ===== */
@media (max-width: 1024px) {
	.hp-projects__inner { grid-template-columns: 72px 1fr; gap: 20px; padding: 40px 16px; }
	.hp-pagination { gap: 24px; }
	.hp-page-item, .hp-page-ring { width: 66px; height: 66px; }
	.hp-gallery__img { height: 360px; }
	.hp-related-col { width: 240px; }
	.hp-related__img { width: 200px; height: 200px; }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
	.hp-projects__inner { grid-template-columns: 1fr; gap: 16px; padding: 32px 12px; }

	/* (6) pagination horizontal + scrollable */
	.hp-pagination {
		flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 14px;
		overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
		scrollbar-width: none; padding-bottom: 4px; margin-bottom: 12px;
	}
	.hp-pagination::-webkit-scrollbar { display: none; }
	.hp-page-item, .hp-page-ring { width: 56px; height: 56px; }
	.hp-page-num { font-size: var(--text-xl, 20px); }

	.hp-gallery { margin-bottom: 24px; }
	.hp-gallery__img { height: 220px; }
	.hp-gallery__fade { width: 90px; }

	/* (8) arrows fully on screen */
	.hp-gallery__arrow { width: 38px; height: 38px; }
	.hp-gallery__arrow img { width: 20px; height: 20px; }
	.hp-gallery__arrow--prev { left: 8px; }
	.hp-gallery__arrow--next { right: 8px; }

	.hp-title { margin-bottom: 14px; }

	/* (7) info + related 50/50 in one row, equal height */
	.hp-content-row { flex-direction: row; gap: 16px; align-items: stretch; }
	.hp-info-col { flex: 1 1 50%; width: 50%; max-width: 50%; min-width: 0; }
	.hp-related-col { flex: 1 1 50%; width: 50%; min-width: 0; gap: 12px; }

	.hp-excerpt {
		display: -webkit-box; -webkit-box-orient: vertical;
		-webkit-line-clamp: var(--hp-lines, 4); overflow: hidden; margin-bottom: 16px;
	}

	.hp-related__img { width: 100%; height: auto; max-width: 262px; }
	.hp-related__title { line-height: 24px; font-size: 16px; }
	.hp-view-more { width: 100%; align-items: center; }
}