/**
 * Testimonials Pattern Styles
 *
 * Styling für das Testimonials Pattern basierend auf Figma Design.
 *
 * @package Hundeschule_TT5_Child
 * @since 1.0.0
 */

/* Testimonials Section - py-20 bg-gray-50 */
.hs-testimonials-section {
	padding-top: 5rem; /* py-20 */
	padding-bottom: 5rem;
	background-color: #f9fafb; /* bg-gray-50 */
	position: relative;
	overflow: hidden;
}

/* Testimonials Container - max-w-7xl mx-auto px-12 */
.hs-testimonials-container {
	max-width: 72rem; /* max-w-7xl = 1280px */
	margin-left: auto;
	margin-right: auto;
	padding-left: 3rem; /* px-12 */
	padding-right: 3rem;
}

/* Testimonials Heading */
.hs-testimonials-heading {
	font-size: 1.5rem; /* text-3xl */
	font-weight: 600 !important;
	line-height: 1.5;
	font-weight: var(--font-weight-medium, 500);
	color: var(--foreground, oklch(0.145 0 0));
	margin-bottom: 2rem; /* mb-8 */
	margin-top: 0;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.hs-testimonials-heading {
		font-size: 1.875rem; /* md:col-span-3 and md:col-span-2 */
	}
}

/* Testimonials Layout - grid md:grid-cols-5 gap-6 */
.hs-testimonials-layout.wp-block-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem; /* gap-6 */
	margin: 0 !important;
	align-items: stretch;
}

@media (min-width: 768px) {
	.hs-testimonials-layout.wp-block-columns {
		grid-template-columns: 3fr 2fr; /* md:col-span-3 and md:col-span-2 */
	}
}

.hs-testimonials-layout.wp-block-columns .wp-block-column {
	margin: 0 !important;
	padding: 0 !important;
}

/* Testimonials Content Column */
.hs-testimonials-content {
	position: relative;
}

/* Testimonials Slider */
.hs-testimonials-slider {
	position: relative;
	background-color: #ffffff; /* bg-white */
	border-radius: 3.125rem; /* rounded-[50px] */
	padding: 1.5rem; /* p-6 */
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    height: 100%;
}

/* Quote Icon - absolute -top-4 -left-4 */
.hs-testimonials-slider::before {
	content: '';
	position: absolute;
	top: -1rem; /* -top-4 */
	left: -1rem; /* -left-4 */
	width: 3rem; /* w-12 */
	height: 3rem; /* h-12 */
	background: linear-gradient(to bottom right, #fb923c, #eab308); /* from-orange-400 to-yellow-500 */
	border-radius: 1.125rem; /* rounded-[18px] */
	transform: rotate(12deg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E");
	background-size: 1.75rem 1.75rem; /* w-7 h-7 */
	background-position: center;
	background-repeat: no-repeat;
	transform: rotate(12deg);
}

.hs-testimonials-slider::after {
	content: '';
	position: absolute;
	top: -1.125rem;
	left: -1.125rem;
	width: 3rem;
	height: 3rem;

	background:
	  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E")
	    center / 1.75rem 1.75rem no-repeat,
	  linear-gradient(#f97316, #f99716);

	border-radius: 18px;
	transform: rotate(12deg);
	z-index: 11;
}


/* Testimonial Item */
.hs-testimonial-item {
	display: none;
	margin-top: 0.25rem; /* mt-1 */
    padding-top: 0.75rem;
}

.hs-testimonial-item.hs-testimonial-active {
	display: block;
}

/* Im Editor alle Slides anzeigen */
.block-editor-block-list__layout .hs-testimonial-item,
.editor-styles-wrapper .hs-testimonial-item,
.is-root-container .hs-testimonial-item {
	display: block !important;
	margin-bottom: 1.5rem;
	padding: 1rem;
	background-color: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 0.5rem;
}

.block-editor-block-list__layout .hs-testimonial-item:last-child,
.editor-styles-wrapper .hs-testimonial-item:last-child,
.is-root-container .hs-testimonial-item:last-child {
	margin-bottom: 0;
}

/* Testimonial Name - text-orange-500 text-xs mb-1.5 */
.hs-testimonial-name {
	font-size: 0.85rem; /* text-xs */
	line-height: 1.5;
	color: #f97316; /* text-orange-500 */
	margin-top: 0;
	margin-bottom: 0.5rem; /* mb-1.5 */
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	font-weight: 400;
}

/* Testimonial Text - text-lg text-gray-800 leading-relaxed mb-6 */
.hs-testimonial-text {
	font-size: 1rem; /* text-lg */
	line-height: 1.5; /* leading-relaxed */
	color: #1f2937; /* text-gray-800 */
	margin-top: 0;
	margin-bottom: 1.5rem; /* mb-6 */
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	font-weight: 400;
}

@media (min-width: 768px) {
	.hs-testimonials-text {
		font-size: 1.125rem; /* text-lg */
	}
}

/* Testimonials Navigation */
.hs-testimonials-navigation {
	display: flex;
	flex-direction: column;
	gap: 1rem; /* gap-3 for buttons and dots */
	margin-top: 1rem;
}

/* Navigation Buttons */
.hs-testimonials-navigation .wp-block-buttons {
	display: flex;
	gap: 0.75rem; /* gap-3 */
	margin: 0;
}

.hs-testimonial-prev .wp-block-button__link,
.hs-testimonial-next .wp-block-button__link {
	width: 2.5rem; /* w-10 */
	height: 2.5rem; /* h-10 */
	border-radius: 9999px; /* rounded-full */
	background-color: #f97316; /* bg-orange-500 */
	color: #ffffff; /* text-white */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
	border: none;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.hs-testimonial-prev .wp-block-button__link:hover,
.hs-testimonial-next .wp-block-button__link:hover {
	background-color: #ea580c; /* hover:bg-orange-600 */
}

/* Testimonials Dots */
.hs-testimonials-dots {
	display: flex;
	gap: 0.375rem; /* gap-1.5 */
	margin-top: 1rem; /* mt-4 */
}

.hs-testimonials-dots .hs-testimonial-dot {
	height: 0.375rem; /* h-1.5 */
	border-radius: 9999px;
	background-color: #d1d5db; /* bg-gray-300 */
	width: 0.375rem; /* w-1.5 */
	transition: all 0.3s ease-in-out;
	cursor: pointer;
	border: none;
	padding: 0;
    margin-block-start: 0 !important
}

.hs-testimonials-dots .hs-testimonial-dot.active {
	width: 1.5rem; /* w-6 */
	background-color: #f97316; /* bg-orange-500 */
}

/* Testimonials Gallery */
.hs-testimonials-gallery {
	display: none;
}

@media (min-width: 768px) {
	.hs-testimonials-gallery {
		display: block;
	}
}

/* Gallery Grid - grid-cols-2 grid-rows-2 gap-3 */
.hs-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 0.75rem; /* gap-3 */
	height: 20rem;
}

.hs-gallery-image-1 {
	grid-column: 2;
	grid-row: 1 / span 2;
	border-radius: 1rem 5rem 5rem 1rem; /* rounded-tl-[16px] rounded-tr-[80px] rounded-br-[80px] rounded-bl-[16px] */
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
	margin: 0;
}

.hs-gallery-image-1 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hs-gallery-image-2 {
	grid-column: 1;
	grid-row: 1;
	background-color: #facc15; /* bg-yellow-400 */
	border-radius: 1rem 5rem 5rem 5rem; /* rounded-tl-[16px] rounded-tr-[80px] rounded-br-[80px] rounded-bl-[80px] */
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
	margin: 0;
}

.hs-gallery-image-2 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hs-gallery-image-3 {
	grid-column: 1;
	grid-row: 2;
	border-radius: 5rem 5rem 1rem 5rem; /* rounded-tl-[80px] rounded-tr-[80px] rounded-br-[16px] rounded-bl-[80px] */
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
	margin: 0;
}

.hs-gallery-image-3 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

