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

/* Feature Section Padding (py-16 md:py-26) */
.hs-feature-section {
	padding-top: 6rem !important; /* py-16 */
	padding-bottom: 6rem !important;
	background-color: #ffffff; /* bg-white */
}

@media (min-width: 768px) {
	.hs-feature-section {
		padding-top: 6.5rem; /* md:py-26 */
		padding-bottom: 6.5rem;
	}
}

/* Feature Container - max-w-6xl with proper padding */
.hs-feature-container {
	max-width: 72rem; /* max-w-6xl = 1152px */
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem; /* px-4 */
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.hs-feature-container {
		padding-left: 1.5rem; /* sm:px-6 */
		padding-right: 1.5rem;
	}
}

/* Feature Grid - grid md:grid-cols-2 gap-8 md:gap-10 items-center */
.hs-feature-grid.wp-block-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem; /* gap-8 */
	align-items: center;
	margin: 0 !important;
}

@media (min-width: 768px) {
	.hs-feature-grid.wp-block-columns {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem; /* md:gap-10 */
	}
}

/* Reset column padding/margin */
.hs-feature-grid.wp-block-columns .wp-block-column {
	margin: 0 !important;
	padding: 0 !important;
}

/* Feature Image Column - visible on all screen sizes */
.hs-feature-image-column {
	display: block;
}

/* Feature Image Wrapper - relative positioning for decorative SVG */
.hs-feature-image-wrapper {
	position: relative;
	z-index: 10;
	overflow: visible;
}

/* Decorative SVG via ::before pseudo-element - absolute top-10 -left-30 w-72 h-72 text-orange-50 -z-0 -rotate-40 hidden lg:block */
.hs-feature-image-wrapper::before {
	content: '';
	position: absolute;
	top: 2.5rem; /* top-10 */
	left: -7.5rem; /* -left-30 */
	width: 18rem; /* w-72 */
	height: 18rem; /* h-72 */
	z-index: 0;
	transform: rotate(-40deg);
	display: none;
	pointer-events: none;
	background-image: url('../../assets/icons/blob-decorative.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

@media (min-width: 1024px) {
	.hs-feature-image-wrapper::before {
		display: block;
	}
}

/* Feature Image - h-[280px] md:h-[350px] rounded-[30px] md:rounded-[40px] overflow-hidden shadow-2xl */
.hs-feature-image {
	margin: 0 !important;
	position: relative;
	z-index: 10;
	max-height: 16rem; /* max-height for mobile */
	height: auto; /* Allow height to adjust */
	border-radius: 30px; /* rounded-[30px] */
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
	display: block;
	width: 100%;
}

@media (min-width: 768px) {
	.hs-feature-image {
		max-height: none; /* Remove max-height on desktop */
		height: 350px; /* md:h-[350px] */
		border-radius: 40px; /* md:rounded-[40px] */
	}
}

.hs-feature-image img {
	width: 100%;
	height: 100%;
	max-height: 16rem; /* max-height for mobile */
	object-fit: cover;
	display: block;
}

@media (min-width: 768px) {
	.hs-feature-image img {
		max-height: none; /* Remove max-height on desktop */
	}
}

/* Feature Content Column */
.hs-feature-content-column {
	width: 100%;
}

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

@media (min-width: 768px) {
	.hs-feature-heading {
		font-size: 2.25rem; /* md:text-4xl */
	}
}

/* Feature Text - text-sm text-gray-600 mb-4 leading-relaxed */
.hs-feature-text {
	font-size: 0.875rem; /* text-sm */
	color: var(--muted-foreground, #717182); /* text-gray-600 */
	line-height: 1.75; /* leading-relaxed */
	font-weight: 400;
	margin-top: 0;
	margin-bottom: 1rem; /* mb-4 */
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

.hs-feature-text:last-of-type {
	margin-bottom: 1.5rem; /* mb-6 */
}

/* Feature Icons Grid - grid grid-cols-2 gap-4 mb-6 */
.hs-feature-icons-grid.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem; /* gap-4 */
	margin-bottom: 1.5rem !important; /* mb-6 */
	margin-top: 0 !important;
}

.hs-feature-icons-grid.wp-block-columns .wp-block-column {
	margin: 0 !important;
	padding: 0 !important;
}

/* Feature Icon Item */
.hs-feature-icon-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

/* Feature Icon Wrapper - w-8 h-8 bg-orange-100 rounded-xl */
.hs-feature-icon-wrapper {
	width: 3rem; /* w-8 */
	height: 3rem; /* h-8 */
	background-color: #ffedd5; /* bg-orange-100 */
	border-radius: 0.75rem; /* rounded-xl */
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
}

/* Icon Text Block in Feature Pattern */
.hs-feature-icon-wrapper .wp-block-hundeschule-icon-text {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hs-feature-icon-wrapper .wp-block-hundeschule-icon-text .hs-icon-text {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	gap: 0;
}

.hs-feature-icon-wrapper .wp-block-hundeschule-icon-text .hs-icon-text__icon {
	width: 1.5rem; /* w-4 */
	height: 1.5rem; /* h-4 */
	color: #f97316; /* text-orange-500 */
	flex-shrink: 0;
}

.hs-feature-icon-wrapper .wp-block-hundeschule-icon-text .hs-icon-text__icon svg {
	width: 100%;
	height: 100%;
	color: #f97316;
	stroke: #f97316;
	stroke-width: 2;
}

.hs-feature-icon-wrapper .wp-block-hundeschule-icon-text .hs-icon-text__content {
	display: none; /* Hide text content */
}

/* Feature Icon Label - text-gray-700 text-sm */
.hs-feature-icon-label {
	font-size: 0.85rem; /* text-sm */
	color: #374151; /* text-gray-700 */
	font-weight: 400;
	margin: 0;
	padding: 0;
	line-height: 1.5;
}

@media (min-width: 768px) {
.hs-feature-icon-label {
	font-size: 0.95rem;
}
}

/* Feature Button Wrapper */
.hs-feature-button-wrapper {
	margin-top: 0;
	margin-bottom: 0;
}

/* Feature Button - px-6 py-2.5 bg-orange-500 text-white rounded-full hover:bg-orange-600 */
.hs-feature-button .wp-block-button__link {
	padding-left: 1.5rem; /* px-6 */
	padding-right: 1.5rem;
	padding-top: 0.625rem; /* py-2.5 */
	padding-bottom: 0.625rem;
	background-color: #f97316; /* bg-orange-500 */
	color: #ffffff; /* text-white */
	border-radius: 9999px; /* rounded-full */
	font-size: 0.875rem; /* text-sm */
	font-weight: 400;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
	border: none;
	cursor: pointer;
	display: inline-block;
}

.hs-feature-button .wp-block-button__link:hover,
.hs-feature-button .wp-block-button__link:focus-visible {
	background-color: #ea580c; /* hover:bg-orange-600 */
	color: #ffffff;
}


.hs-feature-button{
	width: 100%;
	margin-top: 1rem;
}

@media (min-width: 768px) {
.hs-feature-button {
	width: auto;
}
}


