/**
 * Hero slider (anasayfa): metinler mor dikdörtgen alan içinde, satır kırılsın
 * .ls-hero-mor = mor kutu, .ls-hero-text-wrap = metin sarmalayıcı (sabit genişlik)
 * .hero-mobile = mobilde LayerSlider yerine kullanılan sabit hero (768px altı)
 */

/* ========== Mobil hero (carousel, tam ekran arka plan, ortalı mor kutu) ========== */
.vs-hero-wrapper .hero-mobile {
	position: relative;
	width: 100%;
	max-width: 100vw;
	min-height: 320px;
	height: 50vh;
	overflow: hidden;
	padding: 0;
}
.vs-hero-wrapper .hero-mobile .hero-mobile-slider {
	position: relative;
	width: 100%;
	height: 100%;
}
.vs-hero-wrapper .hero-mobile .hero-mobile-slider .slick-list,
.vs-hero-wrapper .hero-mobile .hero-mobile-slider .slick-track,
.vs-hero-wrapper .hero-mobile .hero-mobile-slide {
	height: 100%;
}
.vs-hero-wrapper .hero-mobile .hero-mobile-slide {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.hero-mobile-bg {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.hero-mobile-mor {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	background-color: #490D59;
	border-radius: 24px 24px 12px 24px;
	padding: 24px 20px 20px;
	text-align: center;
	box-sizing: border-box;
	opacity: 0.95;
}
.hero-mobile-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hero-mobile-dots .slick-dots {
	position: static;
	bottom: auto;
}
.hero-mobile-dots .slick-dots li button:before {
	color: rgba(255,255,255,0.6);
}
.hero-mobile-dots .slick-dots li.slick-active button:before {
	color: #fff;
	opacity: 1;
}
/* Mobilde hero tam genişlik, resim tam ekran */
@media (max-width: 767px) {
	.vs-hero-wrapper {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		padding-left: 0;
		padding-right: 0;
	}
	.vs-hero-wrapper .hero-mobile {
		width: 100%;
		min-height: 280px;
		height: 55vh;
	}
	.vs-hero-wrapper .hero-mobile .hero-mobile-slide {
		min-height: 280px;
	}
	.hero-mobile-bg {
		background-size: cover;
		background-position: center;
	}
}
.hero-mobile-title {
	font-family: 'Fredoka', sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 8px 0;
	white-space: normal;
	word-wrap: break-word;
}
.hero-mobile-title:last-of-type {
	margin-bottom: 12px;
}
.hero-mobile-desc {
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
	margin: 0 0 14px 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hero-mobile-mor .vs-btn {
	font-size: 14px;
	padding: 10px 20px;
	white-space: nowrap;
}
/* Metnin alt satıra inmesi: LayerSlider nowrap'ı geçersiz kıl */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor,
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor .ls-hero-text-wrap {
	white-space: normal !important;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
}

/* Metin sarmalayıcı: sabit genişlik, içerik satır kırılsın */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-text-wrap {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor .ls-hero-title,
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor .ls-hero-desc {
	white-space: normal !important;
	word-wrap: break-word !important;
	overflow-wrap: break-word !important;
	word-break: break-word !important;
}

/* İçerik genişliği kutuyu geçmesin, satır kırılsın */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor .ls-hero-title,
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor .ls-hero-desc {
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 0 1 auto !important;
}

/* Başlık: en fazla 2 satır, taşan gizlensin, satır kırılsın */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-title {
	overflow: hidden !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	min-width: 0;
}

/* Açıklama: en fazla 3 satır, satır kırılsın */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-desc {
	overflow: hidden !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	min-width: 0;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Desktop: metin alanı sabit genişlik (mor kutu içi = 711 - 48 padding) */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-tablet.ls-hide-phone .ls-hero-text-wrap {
	max-width: 663px !important;
}

/* Tablet */
.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-phone .ls-hero-text-wrap {
	max-width: 1120px !important;
}

/* Mobil: mor kutu sabit boyut, ortala, metin okunaklı (LayerSlider inline scale’i geçersiz kıl) */
@media (max-width: 767px) {
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-tablet {
		width: calc(100vw - 32px) !important;
		max-width: 420px !important;
		min-height: 220px !important;
		height: auto !important;
		left: 50% !important;
		top: 50% !important;
		margin-left: max(-210px, calc(-50vw + 16px)) !important;
		margin-top: -110px !important;
		padding: 24px 20px 20px !important;
		border-radius: 24px 24px 12px 24px !important;
		opacity: 0.95 !important;
	}
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-tablet .ls-hero-text-wrap {
		width: 100% !important;
		max-width: 100% !important;
	}
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-tablet .ls-hero-title {
		font-size: 26px !important;
		line-height: 1.25 !important;
		margin: 0 0 8px 0 !important;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-tablet .ls-hero-title:last-of-type {
		margin-bottom: 12px !important;
	}
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-tablet .ls-hero-desc {
		font-size: 14px !important;
		line-height: 1.4 !important;
		margin: 0 0 12px 0 !important;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-tablet .vs-btn {
		font-size: 14px !important;
		padding: 10px 20px !important;
	}

	/* LayerSlider render: ls-device-is-phone + ls-hide-on-tablet ls-hide-on-desktop (mor kutu ve metin ayrı katman) */
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-fullscreen-wrapper,
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone.ls-container {
		min-height: 320px !important;
		height: auto !important;
	}
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-inner {
		min-height: 320px !important;
	}
	/* Sadece mor kutu katmanı (background rgb veya hex); metin katmanlarına dokunma */
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-wrapper.ls-in-out:has(> div[style*="73, 13, 89"]),
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-wrapper.ls-in-out:has(> div[style*="490D59"]),
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-wrapper.ls-in-out:has(> div[style*="490d59"]) {
		width: calc(100% - 32px) !important;
		max-width: 420px !important;
		left: 50% !important;
		top: 50% !important;
		margin-left: calc(-50% + 16px) !important;
		margin-top: -110px !important;
		height: 220px !important;
		min-height: 220px !important;
	}
	/* Mor kutu iç div: rgb veya hex (tarayıcı farkı) */
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-wrapper.ls-in-out > div[style*="73, 13, 89"],
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-wrapper.ls-in-out > div[style*="490D59"],
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-wrapper.ls-in-out > div[style*="490d59"] {
		width: 100% !important;
		height: 100% !important;
		min-height: 220px !important;
		left: 0 !important;
		top: 0 !important;
		border-radius: 24px 24px 12px 24px !important;
		padding: 24px 20px 20px !important;
		box-sizing: border-box !important;
	}
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop h1.ls-text-layer {
		font-size: 26px !important;
		line-height: 1.25 !important;
		width: calc(100% - 32px) !important;
		max-width: 388px !important;
		left: 50% !important;
		margin-left: -50% !important;
		white-space: normal !important;
		word-wrap: break-word !important;
	}
	.vs-hero-wrapper .vs-hero-carousel.ls-device-is-phone .ls-wrapper.ls-hide-on-tablet.ls-hide-on-desktop .ls-html-layer .vs-btn {
		font-size: 14px !important;
		padding: 10px 20px !important;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor.ls-hide-desktop.ls-hide-phone {
		max-width: calc(100vw - 48px) !important;
	}
}

.vs-hero-wrapper .vs-hero-carousel .ls-hero-mor .vs-btn {
	white-space: nowrap;
}
