/* ==========================================================
   DGO Hero Slider Widget
   ========================================================== */

.dgo-hero {
	background: #fff;
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: stretch;
}

/* ---------- Filigran ---------- */
.dgo-hero__watermark {
	position: absolute;
	top: 50%;
	right: -4%;
	transform: translateY(-50%);
	opacity: 0.07;
	pointer-events: none;
	z-index: 0;
	line-height: 0;
}

.dgo-hero__watermark img {
	width: 640px;
	height: auto;
}

/* ---------- Slaytlar ---------- */
.dgo-hero__slides {
	position: relative;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	display: grid;
}

.dgo-hero__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.6s ease, visibility 0.6s;
	z-index: 1;
}

.dgo-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

/* ---------- İçerik (sol) ---------- */
.dgo-hero__content {
	max-width: 620px;
}

.dgo-hero__title {
	margin: 0 0 24px;
	font-size: 44px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--dgo-primary, #111);
}

.dgo-hero__title b,
.dgo-hero__title strong {
	font-weight: 700;
}

.dgo-hero__desc {
	margin: 0 0 36px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--dgo-muted, #555);
	max-width: 480px;
}

/* İçerik giriş animasyonu — aktif slaytta sırayla yukarı kayar */
.dgo-hero__slide .dgo-hero__title,
.dgo-hero__slide .dgo-hero__desc,
.dgo-hero__slide .dgo-hero__actions {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.dgo-hero__slide.is-active .dgo-hero__title {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.15s;
}

.dgo-hero__slide.is-active .dgo-hero__desc {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.28s;
}

.dgo-hero__slide.is-active .dgo-hero__actions {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.4s;
}

/* ---------- Butonlar ---------- */
.dgo-hero__actions {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.dgo-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dgo-hero__btn--primary {
	background: var(--dgo-primary, #111);
	color: #fff;
	padding: 15px 26px;
	border-radius: var(--dgo-radius, 6px);
}

.dgo-hero__btn--primary svg {
	transition: transform 0.2s ease;
}

.dgo-hero__btn--primary:hover svg {
	transform: translateX(4px);
}

.dgo-hero__btn--link {
	color: var(--dgo-primary, #111);
	padding-bottom: 4px;
	border-bottom: 1.5px solid currentColor;
}

.dgo-hero__btn--link:hover {
	opacity: 0.65;
}

/* ---------- Görsel (sağ) ---------- */
.dgo-hero__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	line-height: 0;
	min-height: 100%;
}

.dgo-hero__media img {
	max-width: 100%;
	height: auto;
	max-height: 640px;
	object-fit: contain;
	object-position: bottom center;
}

/* ---------- Oklar ---------- */
.dgo-hero__arrow,
.dgo-hero__arrow:hover,
.dgo-hero__arrow:focus,
.dgo-hero__arrow:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	margin: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.dgo-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dgo-primary, #111);
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.dgo-hero__arrow:hover {
	opacity: 1;
}

.dgo-hero__arrow--prev { left: 12px; }
.dgo-hero__arrow--next { right: 12px; }

.dgo-hero__arrow:focus-visible {
	outline: 2px solid var(--dgo-primary, #111) !important;
	outline-offset: 2px !important;
}

/* ---------- Noktalar ---------- */
.dgo-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}

.dgo-hero__dot,
.dgo-hero__dot:hover,
.dgo-hero__dot:focus,
.dgo-hero__dot:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.dgo-hero__dot {
	width: 26px;
	height: 20px;
	position: relative;
	cursor: pointer;
}

.dgo-hero__dot::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 2px;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	transition: background-color 0.25s ease;
}

.dgo-hero__dot.is-active::before,
.dgo-hero__dot:hover::before {
	background: var(--dgo-primary, #111);
}

.dgo-hero__dot:focus-visible {
	outline: 2px solid var(--dgo-primary, #111) !important;
	outline-offset: 2px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.dgo-hero__title {
		font-size: 36px;
	}
}

@media (max-width: 767px) {
	/* Mobil kompozisyon: solda slogan, sağında küçük görsel,
	   açıklama altta tam genişlik, en altta butonlar */
	.dgo-hero__slide {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) auto;
		grid-template-areas:
			"title   media"
			"desc    desc"
			"actions actions";
		align-items: center;
		column-gap: 10px;
		text-align: left;
	}

	/* İçerik sarmalayıcıyı kaldır — çocuklar doğrudan grid'e otursun */
	.dgo-hero__content {
		display: contents;
	}

	/* Slogan: görselin yanında, dikey ortalı */
	.dgo-hero__title {
		grid-area: title;
		font-size: 23px;
		line-height: 1.32;
		margin: 0;
		overflow-wrap: break-word;
	}

	/* Görsel: sağda, küçük, daire zeminli */
	.dgo-hero__media {
		grid-area: media;
		order: 0;
		position: relative;
		align-items: center;
		justify-content: flex-end;
		justify-self: end;
		align-self: center;
		min-height: 0;
		margin-right: -12px; /* hafif kenara taşma */
	}

	.dgo-hero__media::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 55%;
		transform: translate(-50%, -50%);
		width: 135%;
		aspect-ratio: 1;
		border-radius: 50%;
		background: var(--dgo-soft, #f2f2ef);
		z-index: 0;
	}

	.dgo-hero__media img {
		position: relative;
		z-index: 1;
		max-height: 225px;
		max-width: 37vw;
	}

	/* Açıklama: bloğun altında tam genişlik */
	.dgo-hero__desc {
		grid-area: desc;
		font-size: 14px;
		line-height: 1.65;
		margin: 22px 0 0;
		max-width: none;
		/* Uzun metin taşmasın — 3 satırda kes */
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Butonlar en altta yan yana */
	.dgo-hero__actions {
		grid-area: actions;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 16px 20px;
		margin-top: 24px;
		min-width: 0;
		position: relative;
		z-index: 2;
	}

	.dgo-hero__btn--primary {
		font-size: 11px;
		letter-spacing: 0.06em;
		padding: 14px 18px;
		gap: 8px;
	}

	.dgo-hero__btn--link {
		font-size: 11px;
	}

	/* Mobilde filigranı gizle — daire zemin sahneyi kuruyor */
	.dgo-hero__watermark {
		display: none;
	}

	.dgo-hero__arrow {
		display: none;
	}

	.dgo-hero__dots {
		bottom: 8px;
		left: 24px;
		transform: none;
	}
}

/* Çok dar ekranlarda başlık fontunu biraz düşür */
@media (max-width: 360px) {
	.dgo-hero__title {
		font-size: 20px;
	}

	.dgo-hero__media img {
		max-height: 200px;
		max-width: 35vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dgo-hero * {
		transition: none !important;
	}
}
