.loopy-hs-slider {
	position: relative;
}

.loopy-hs-viewport {
	position: relative;
}

.loopy-hs-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.loopy-hs-track::-webkit-scrollbar {
	display: none;
}

.loopy-hs-slide {
	flex: 0 0 100%;
	max-width: 100%;
	scroll-snap-align: start;
}

/* Interior slide: text + imagine */
.loopy-hs-inner {
	display: flex;
	align-items: stretch;
	gap: 48px;
	width: 100%;
	min-height: 480px;
}

.loopy-hs--content-right {
	flex-direction: row-reverse;
}

.loopy-hs-content {
	flex: 0 0 45%;
	max-width: 45%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
}

.loopy-hs-subtitle {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

.loopy-hs-title {
	font-size: 40px;
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 16px;
}

.loopy-hs-text {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 24px;
}

.loopy-hs-text p {
	margin: 0 0 12px;
}

.loopy-hs-text p:last-child {
	margin-bottom: 0;
}

.loopy-hs-button {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	padding: 14px 28px;
	border-radius: 8px;
	background-color: var(--loopy-button-bg, #1a1a1a) !important;
	color: #ffffff;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.loopy-hs-button:hover {
	background-color: var(--loopy-button-bg-hover, #f5c518) !important;
}

/* Imagine "cupola" */
.loopy-hs-image {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.loopy-hs-image img {
	width: 100%;
	height: 420px;
	max-width: 100%;
	object-fit: cover;
	display: block;
	border-top-left-radius: 180px;
	border-top-right-radius: 180px;
	border: 4px solid #f5c518;
	border-bottom: none;
}

/* Sageti navigare */
.loopy-hs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #eee;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	font-size: 20px;
	line-height: 1;
	padding: 0;
	background-color: #ffffff;
	color: #1a1a1a;
}

.loopy-hs-arrow.prev {
	left: 8px;
}

.loopy-hs-arrow.next {
	right: 8px;
}

.loopy-hs-arrow.is-disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* Puncte navigare */
.loopy-hs-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.loopy-hs-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #ddd;
	border: none;
	padding: 0;
	cursor: pointer;
}

.loopy-hs-dot.is-active {
	background-color: #1a1a1a;
}

/* ==================== Tableta ==================== */
@media (max-width: 1024px) {
	.loopy-hs-inner {
		gap: 32px;
		min-height: 420px;
	}

	.loopy-hs-content {
		flex-basis: 50%;
		max-width: 50%;
	}

	.loopy-hs-image img {
		height: 360px;
		border-top-left-radius: 140px;
		border-top-right-radius: 140px;
	}

	.loopy-hs-title {
		font-size: 32px;
	}
}

/* ==================== Mobil: stivuit ==================== */
@media (max-width: 767px) {
	.loopy-hs-inner,
	.loopy-hs--content-right {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		min-height: 0;
	}

	.loopy-hs-content,
	.loopy-hs-image {
		flex: none;
		max-width: 100%;
		width: 100%;
		order: 0;
	}

	/* Implicit: text sus, imagine jos (ordinea din markup). */
	.loopy-hs-image {
		order: 1;
	}

	/* Daca optiunea "Imagine sus, text jos" e activa din panou. */
	.loopy-hs--mobile-image-first .loopy-hs-content {
		order: 1;
	}

	.loopy-hs--mobile-image-first .loopy-hs-image {
		order: 0;
	}

	.loopy-hs-image img {
		height: 280px;
		border-top-left-radius: 100px;
		border-top-right-radius: 100px;
	}

	.loopy-hs-title {
		font-size: 26px;
	}

	.loopy-hs-viewport > .loopy-hs-arrow {
		display: none;
	}
}
