.custom-kachel-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	min-height: 350px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: #333;
	font-family: inherit;
}

.custom-kachel-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
	z-index: 1;
}

.custom-kachel-wrapper:hover .custom-kachel-image {
	transform: scale(1.05);
}

.custom-kachel-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--ck-overlay-color, rgba(0, 0, 0, 0.4));
	transition: background-color 0.4s ease;
	z-index: 2;
}

.custom-kachel-wrapper:hover .custom-kachel-overlay {
	background-color: var(--ck-hover-color, rgba(196, 92, 36, 0.85));
}

.custom-kachel-content {
	position: relative;
	z-index: 3;
	padding: 40px;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #fff;
	box-sizing: border-box;
}

.custom-kachel-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.custom-kachel-title {
	font-size: 32px;
	font-weight: 600;
	margin: 0;
	color: #fff;
	line-height: 1.2;
	opacity: 1;
	transform: translateY(-10px);
	transition: all 0.5s ease;
}

.custom-kachel-wrapper:hover .custom-kachel-title {
	opacity: 1;
	transform: translateY(0);
}

/* The line animation: from left to right on hover */
.custom-kachel-line {
	height: 4px;
	background-color: #fff;
	width: 0;
	margin-top: 15px;
	transition: width 0.5s ease;
}

.custom-kachel-wrapper:hover .custom-kachel-line {
	width: 90%;
}

.custom-kachel-tags-wrapper {
	margin-top: 15px;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.5s ease;
}

.custom-kachel-wrapper:hover .custom-kachel-tags-wrapper {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.1s;
}

.ck-tags {
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	display: inline-block;
	opacity: 0.9;
}

.custom-kachel-bottom {
	margin-top: auto;
	display: flex;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.5s ease;
}

.custom-kachel-wrapper:hover .custom-kachel-bottom {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.2s;
}

.custom-kachel-socials {
	display: flex;
	gap: 12px;
}

.ck-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: #fff;
	color: #555;
	text-decoration: none;
	font-size: 24px;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ck-social-icon:hover {
	transform: scale(1.05);
	background-color: #f0f0f0;
	color: #333;
}

.ck-youtube-icon div {
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 11px;
	line-height: 1.1;
	text-align: center;
	letter-spacing: -0.5px;
}

/* Tablet & Mobile: Show Hover State by default */
@media screen and (max-width: 1024px) {
	.custom-kachel-image {
		transform: scale(1.05);
	}

	.custom-kachel-overlay {
		background-color: var(--ck-hover-color, rgba(196, 92, 36, 0.85));
	}

	.custom-kachel-title {
		opacity: 1;
		transform: translateY(0);
	}

	.custom-kachel-line {
		width: 90%;
	}

	.custom-kachel-tags-wrapper {
		opacity: 1;
		transform: translateY(0);
	}

	.custom-kachel-bottom {
		opacity: 1;
		transform: translateY(0);
	}
}