/*
 * Müşteri yorumları: yorumlar yatay scroll-snap izinde; JS (behaviors/carousel.js) avatar şeridini kurar.
 * JS yoksa her yorumun avatarı altında görünür ve yorumlar yatay kaydırılarak gezilir.
 */
.rt-testimonials {
	position: relative;
	isolation: isolate;
	padding-top: 3.0625rem;
	text-align: center;
}

/* Başlığın arkasındaki krem daire (Ø247) */
.rt-testimonials::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 5.25rem;
	left: 50%;
	width: 15.4375rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--rt-testimonials-circle);
	translate: -50% 0;
}

.rt-testimonials__title {
	margin: 0;
	color: var(--rt-color-contrast);
	font-family: var(--rt-font-family-heading);
	font-size: var(--rt-font-size-x-large);
	font-weight: var(--rt-font-weight-semibold);
	line-height: 1.25;
}

/* Tırnak ikonu 95×67, başlığın 27px üstünde */
.rt-testimonials__title::before {
	content: "";
	display: block;
	width: 5.9375rem;
	height: 4.1875rem;
	margin: 0 auto 1.6875rem;
	background-color: var(--rt-color-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 95 67'%3E%3Cpath d='M20.929 0C9.388 0 0 9.441 0 21.048C0 32.245 8.737 41.429 19.715 42.063C19.905 44.127 19.762 49.745 14.409 57.56C14.005 58.15 14.078 58.945 14.581 59.45C16.771 61.653 18.125 63.04 19.072 64.011C20.312 65.279 20.878 65.859 21.706 66.615C21.987 66.871 22.341 67 22.697 67C23.043 67 23.387 66.878 23.665 66.637C32.992 58.474 43.354 41.608 41.854 20.941C40.976 8.807 32.176 0 20.929 0ZM22.711 63.491C22.31 63.093 21.852 62.623 21.176 61.932C20.356 61.091 19.229 59.938 17.521 58.215C24.018 48.147 22.791 40.977 22.254 39.949C21.999 39.461 21.476 39.132 20.929 39.132C11.015 39.132 2.949 31.02 2.949 21.048C2.949 11.078 11.015 2.966 20.929 2.966C30.586 2.966 38.149 10.616 38.914 21.155C40.599 44.401 26.862 59.493 22.711 63.491Z'/%3E%3Cpath d='M94.855 20.941L94.855 20.94C93.973 8.807 85.172 0 73.929 0C62.389 0 53 9.441 53 21.048C53 32.245 61.738 41.429 72.716 42.063C72.906 44.125 72.762 49.741 67.409 57.56C67.004 58.15 67.077 58.945 67.58 59.45C69.761 61.644 71.112 63.029 72.06 63.998C73.305 65.275 73.874 65.857 74.706 66.616C74.987 66.871 75.343 67 75.697 67C76.043 67 76.387 66.878 76.665 66.635C85.992 58.472 96.352 41.607 94.855 20.941ZM75.711 63.491C75.307 63.09 74.845 62.618 74.163 61.919C73.343 61.079 72.221 59.929 70.52 58.215C77.016 48.146 75.791 40.977 75.255 39.949C75 39.462 74.476 39.132 73.929 39.132C64.014 39.132 55.949 31.02 55.949 21.048C55.949 11.078 64.014 2.966 73.929 2.966C83.584 2.966 91.148 10.616 91.914 21.157L91.914 21.155C93.598 44.398 79.862 59.493 75.711 63.491Z'/%3E%3C/svg%3E") 50% 50% / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 95 67'%3E%3Cpath d='M20.929 0C9.388 0 0 9.441 0 21.048C0 32.245 8.737 41.429 19.715 42.063C19.905 44.127 19.762 49.745 14.409 57.56C14.005 58.15 14.078 58.945 14.581 59.45C16.771 61.653 18.125 63.04 19.072 64.011C20.312 65.279 20.878 65.859 21.706 66.615C21.987 66.871 22.341 67 22.697 67C23.043 67 23.387 66.878 23.665 66.637C32.992 58.474 43.354 41.608 41.854 20.941C40.976 8.807 32.176 0 20.929 0ZM22.711 63.491C22.31 63.093 21.852 62.623 21.176 61.932C20.356 61.091 19.229 59.938 17.521 58.215C24.018 48.147 22.791 40.977 22.254 39.949C21.999 39.461 21.476 39.132 20.929 39.132C11.015 39.132 2.949 31.02 2.949 21.048C2.949 11.078 11.015 2.966 20.929 2.966C30.586 2.966 38.149 10.616 38.914 21.155C40.599 44.401 26.862 59.493 22.711 63.491Z'/%3E%3Cpath d='M94.855 20.941L94.855 20.94C93.973 8.807 85.172 0 73.929 0C62.389 0 53 9.441 53 21.048C53 32.245 61.738 41.429 72.716 42.063C72.906 44.125 72.762 49.741 67.409 57.56C67.004 58.15 67.077 58.945 67.58 59.45C69.761 61.644 71.112 63.029 72.06 63.998C73.305 65.275 73.874 65.857 74.706 66.616C74.987 66.871 75.343 67 75.697 67C76.043 67 76.387 66.878 76.665 66.635C85.992 58.472 96.352 41.607 94.855 20.941ZM75.711 63.491C75.307 63.09 74.845 62.618 74.163 61.919C73.343 61.079 72.221 59.929 70.52 58.215C77.016 48.146 75.791 40.977 75.255 39.949C75 39.462 74.476 39.132 73.929 39.132C64.014 39.132 55.949 31.02 55.949 21.048C55.949 11.078 64.014 2.966 73.929 2.966C83.584 2.966 91.148 10.616 91.914 21.157L91.914 21.155C93.598 44.398 79.862 59.493 75.711 63.491Z'/%3E%3C/svg%3E") 50% 50% / contain no-repeat;
}

.rt-testimonials__track {
	display: grid;
	grid-auto-columns: 100%;
	grid-auto-flow: column;
	padding-top: 3.9375rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.rt-testimonials__track::-webkit-scrollbar {
	display: none;
}

.rt-testimonial {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Alıntı (803px, 20/28) → 62px → sarı çizgi (2×72) → isteğe bağlı ad, ünvan */
.rt-testimonials .rt-testimonial__quote {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 50.1875rem;
	margin: 0 auto;
	padding: 0 var(--rt-spacing-40);
	border: 0;
	/* The original theme: the theme's core/quote block style (cream box, medium weight) does not apply here */
	background: none;
	color: var(--rt-color-body);
	font-size: var(--rt-font-size-medium);
	font-style: normal;
	font-weight: var(--rt-font-weight-regular);
	line-height: 1.4;
}

.rt-testimonial__quote p {
	margin: 0;
}

.rt-testimonial__quote::after {
	content: "";
	order: 2;
	width: 2px;
	height: 4.5rem;
	margin-top: 3.875rem;
	background-color: var(--rt-color-accent);
}

.rt-testimonial__quote cite {
	order: 3;
	margin-top: 1.25rem;
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-base);
	font-style: normal;
	font-weight: var(--rt-font-weight-semibold);
	line-height: 1.5;
}

/* Avatar: JS yoksa yorumun altında 80px; JS şeridi kurunca slayttaki avatar gizlenir */
.rt-testimonials .rt-testimonial__avatar {
	width: 5rem;
	margin: var(--rt-spacing-40) 0 0;
}

.rt-testimonials[data-rt-ready] .rt-testimonial__avatar {
	display: none;
}

.rt-testimonial__avatar img,
.rt-testimonials__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
}

/* Avatar şeridi: 80px gri avatarlar, aktif olan 125px ve renkli; 4px beyaz çerçeve + gölge */
.rt-testimonials__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rt-spacing-40);
	margin-top: 3.8125rem;
}

.rt-testimonials__avatars {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--rt-spacing-30) 3.75rem;
}

/* Oklar: vurgu çerçeveli daire + ok; yalnız mobilde */
.rt-testimonials__arrow {
	display: none;
	flex: none;
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 2px solid var(--rt-color-accent);
	border-radius: 50%;
	background: none;
	color: var(--rt-color-contrast);
	cursor: pointer;
}

.rt-testimonials__arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 17'%3E%3Cpath d='M1.5 1.5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50% / 0.5rem 0.875rem no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 17'%3E%3Cpath d='M1.5 1.5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50% / 0.5rem 0.875rem no-repeat;
}

.rt-testimonials__arrow--prev::before {
	scale: -1 1;
}

.rt-testimonials__arrow:hover {
	background-color: var(--rt-color-accent);
}

.rt-testimonials__arrow:focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: 3px;
}

.rt-testimonials__avatar {
	box-sizing: border-box;
	width: 5rem;
	aspect-ratio: 1;
	margin: 0;
	padding: 0;
	border: 4px solid var(--rt-color-base);
	border-radius: 50%;
	background-color: var(--rt-color-surface);
	box-shadow: var(--rt-shadow-avatar);
	cursor: pointer;
	transition: width 0.35s ease, box-shadow 0.35s ease;
}

.rt-testimonials__avatar img {
	filter: grayscale(1);
	transition: filter 0.35s ease;
}

.rt-testimonials__avatar:hover img,
.rt-testimonials__avatar[aria-current="true"] img {
	filter: none;
}

.rt-testimonials__avatar[aria-current="true"] {
	width: 7.8125rem;
	box-shadow: 0 0 20px var(--rt-testimonials-avatar-shadow);
}

.rt-testimonials__avatar:focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.rt-testimonials__avatar,
	.rt-testimonials__avatar img {
		transition: none;
	}
}

/* Mobil: alıntı 16px; yalnız aktif avatar, oklarla gezilir */
@media (max-width: 37.5rem) {
	.rt-testimonials .rt-testimonial__quote {
		font-size: var(--rt-font-size-base);
		line-height: 1.625;
	}

	.rt-testimonial__quote::after {
		height: 3rem;
		margin-top: var(--rt-spacing-40);
	}

	/* Tek avatar + iki yanında oklar */
	.rt-testimonials__controls {
		margin-top: var(--rt-spacing-50);
	}

	.rt-testimonials__arrow {
		display: block;
	}

	.rt-testimonials__avatar:not([aria-current="true"]) {
		display: none;
	}

	.rt-testimonials__avatar[aria-current="true"] {
		width: 6.25rem;
	}
}

/*
 * Cards variant (shop-home-1): centred title and intro, two white cards per view (one on mobile) with stars, quote and
 * name, dots under them. The track bleeds into the gutter so the card shadow is not clipped at its sides.
 */
.rt-testimonials--cards {
	--rt-testimonials-bleed: 1.5rem;
	padding-top: 0;
}

.rt-testimonials--cards::before,
.rt-testimonials--cards .rt-testimonials__title::before {
	content: none;
}

.rt-testimonials--cards .rt-testimonials__title {
	font-size: var(--rt-font-size-x-large);
	font-weight: var(--rt-font-weight-bold);
	line-height: var(--rt-font-line-height-heading);
}

.rt-testimonials__text {
	max-width: 36.25rem;
	margin: 1.25rem auto 0;
	color: var(--rt-color-body);
	font-size: var(--rt-font-size-base-plus);
	line-height: calc(26 / 18);
}

/* Title or intro to cards: 94px; room under the cards for their shadow, then the dots */
.rt-testimonials--cards .rt-testimonials__track {
	grid-auto-columns: calc((100% - 1.875rem) / 2);
	column-gap: 1.875rem;
	margin-inline: calc(-1 * var(--rt-testimonials-bleed));
	padding: 0.25rem var(--rt-testimonials-bleed) 4.5rem;
	scroll-padding-inline: var(--rt-testimonials-bleed);
}

.rt-testimonials--cards .rt-testimonials__title + .rt-testimonials__track,
.rt-testimonials--cards .rt-testimonials__text + .rt-testimonials__track {
	margin-top: 5.625rem;
}

/* Card 554×320: stars 45px from the top, quote centred between stars and name, name 68px from the bottom */
.rt-testimonials--cards .rt-testimonial {
	box-sizing: border-box;
	align-items: stretch;
	min-height: 20rem;
	padding: 2.8125rem 3.0625rem 4.0625rem;
	background-color: var(--rt-color-base);
	box-shadow: var(--rt-testimonials-card-shadow);
}

/*
 * The quote box steps aside (display: contents) so the avatar, which follows the quote in the markup, can sit between
 * the quote text and its cite. Without a picture the original theme prints no avatar at all, so nothing is loaded or hidden.
 */
.rt-testimonials--cards .rt-testimonial__quote {
	display: contents;
	font-size: var(--rt-font-size-base-plus);
	line-height: calc(28 / 18);
}

.rt-testimonials--cards .rt-testimonial__quote p {
	margin-block: auto;
	padding-top: 1.5625rem;
}

.rt-testimonials--cards .rt-testimonial__quote::after {
	content: none;
}

.rt-testimonials--cards .rt-testimonial__quote cite {
	margin-top: 1.9375rem;
	font-size: var(--rt-font-size-base-plus);
	font-weight: var(--rt-font-weight-medium);
}

/* Optional avatar: 64px, round, above the name */
.rt-testimonials--cards .rt-testimonial .rt-testimonial__avatar {
	display: block;
	order: 2;
	flex: none;
	width: 4rem;
	height: 4rem;
	margin: 1.9375rem auto 0;
}

.rt-testimonials--cards .rt-testimonial:has(> .rt-testimonial__avatar) cite {
	margin-top: 0.75rem;
}

.rt-testimonials--avatars .rt-testimonial__rating {
	display: none;
}

/* Five 18px stars every 24.5px; the first --rt-rating of them (half steps) in the accent colour, the rest grey */
.rt-testimonial__rating {
	display: block;
	flex: none;
	width: 7.25rem;
	height: 1.125rem;
	margin-inline: auto;
	background: linear-gradient(to right, var(--rt-color-accent) calc(var(--rt-rating, 5) * 1.53125rem - 0.203125rem), var(--rt-color-line) 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24.5 18'%3E%3Cpath d='M9.04 0.4L11.83 6.06L18.08 6.96L13.56 11.37L14.62 17.59L9.04 14.65L3.46 17.59L4.52 11.37L0 6.96L6.25 6.06Z'/%3E%3C/svg%3E") 0 0 / 1.53125rem 1.125rem repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24.5 18'%3E%3Cpath d='M9.04 0.4L11.83 6.06L18.08 6.96L13.56 11.37L14.62 17.59L9.04 14.65L3.46 17.59L4.52 11.37L0 6.96L6.25 6.06Z'/%3E%3C/svg%3E") 0 0 / 1.53125rem 1.125rem repeat-x;
}

/* Dots: 3px grey, the current page's 7px black; 11px apart */
.rt-testimonials__dots {
	display: flex;
	justify-content: center;
	margin-top: 0.125rem;
}

.rt-testimonials__dots[hidden] {
	display: none;
}

.rt-testimonials__dot {
	display: grid;
	place-items: center;
	width: 0.6875rem;
	height: 1.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.rt-testimonials__dot::before {
	content: "";
	width: 3px;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--rt-color-line);
	transition: width 0.2s ease, background-color 0.2s ease;
}

.rt-testimonials__dot:hover::before,
.rt-testimonials__dot[aria-current="true"]::before {
	background-color: var(--rt-color-contrast);
}

.rt-testimonials__dot[aria-current="true"]::before {
	width: 7px;
}

.rt-testimonials__dot:focus-visible {
	outline: 2px solid var(--rt-color-accent);
	outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
	.rt-testimonials__dot::before {
		transition: none;
	}
}

@media (max-width: 64rem) {
	.rt-testimonials--cards .rt-testimonial {
		padding-inline: 2rem;
	}
}

/* Mobile: one card per view */
@media (max-width: 37.5rem) {
	.rt-testimonials--cards .rt-testimonials__track {
		grid-auto-columns: 100%;
	}

	.rt-testimonials--cards .rt-testimonials__title + .rt-testimonials__track,
	.rt-testimonials--cards .rt-testimonials__text + .rt-testimonials__track {
		margin-top: var(--rt-spacing-50);
	}

	.rt-testimonials--cards .rt-testimonial {
		min-height: 0;
		padding: 2rem var(--rt-spacing-40) var(--rt-spacing-50);
	}

	.rt-testimonials--cards .rt-testimonial__quote {
		font-size: var(--rt-font-size-base);
		line-height: var(--rt-font-line-height-body);
	}

	.rt-testimonials--cards .rt-testimonial__quote cite {
		margin-top: var(--rt-spacing-40);
		font-size: var(--rt-font-size-base);
	}
}
