/* Y25 Card Module Styles */

.y25-card-module {
	/* Typography */
	--y25-card-font-serif: "WeWork Serif";
	--y25-card-font-sans: "Apercu Pro";

	/* Colors */
	--y25-card-color-black: #000;
	--y25-card-color-text: #444;
	--y25-card-color-white: #fff;
	--y25-card-color-bg: #f5f5f5;
	--y25-card-color-border: #f0f0f0;
	--y25-card-color-editor-bg: #f9f9f9;
	--y25-card-color-border-light: #ddd;
	--y25-card-color-border-lighter: #ccc;
	--y25-card-color-border-lightest: #eee;
	--y25-card-color-muted: #999;
	--y25-card-color-link: #3b5bbe;

	/* Shadows */
	--y25-card-shadow: 0 0 20px 0 rgba(183, 183, 183, 0.16);
	--y25-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);

	/* Layout */
	--y25-card-radius: 0.75rem;
	--y25-card-radius-small: 0.25rem;
	--y25-card-gap: 1.5rem;
	--y25-card-padding: 1.5rem;
	--y25-card-image-max-height: 16rem;
	--y25-card-transition: 0.3s ease;

	width: 100%;
	max-width: 100%;
}

/* Module Header */
.y25-card-module-header {
	margin-bottom: 2.5rem;
}

.y25-card-headline,
.ray-running-text .y25-card-headline,
.single-landing_page .page-wrapper h3.y25-card-headline {
	position: relative;
	font-family: var(--y25-card-font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.8rem;
	color: var(--y25-card-color-black);
	margin-bottom: 0;
	margin-top: 0;
	width: 100%;
}

.y25-card-module-subhead,
.ray-running-text .y25-card-module-subhead {
	font-family: var(--y25-card-font-sans);
	font-size: 1rem;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
	color: var(--y25-card-color-text);
	margin: 0;
}

.y25-card-content-separator {
	background: var(--y25-card-color-border);
	height: 0.0625rem;
}

.y25-card-content-inner {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 7.2rem;
}

/* Cards Grid */
.y25-card-module-cards-wrapper {
	position: relative;
	width: 100%;
}

.y25-card-module-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	width: 100%;
}

/* Individual Card */
.y25-card {
	display: flex;
	flex-direction: column;
	background: var(--y25-card-color-white);
	border-radius: var(--y25-card-radius);
	overflow: hidden;
	gap: var(--y25-card-gap);
	box-shadow: var(--y25-card-shadow);
	transition: box-shadow var(--y25-card-transition);
	position: relative;
	padding-bottom: var(--y25-card-padding);
	border: 1px solid var(--y25-card-color-border);
}

/* Card Content */
.y25-card-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 0 var(--y25-card-padding);
	gap: 1.25rem;
}

.y25-card:hover {
	box-shadow: var(--y25-card-shadow-hover);
}

/* Card Image */
.y25-card-image {
	width: 100%;
	height: auto;
	overflow: hidden;
	background: var(--y25-card-color-bg);
	max-height: var(--y25-card-image-max-height);
}

.y25-card-image img {
	width: 100%;
	height: auto;
	display: block;
	max-height: var(--y25-card-image-max-height);
	object-fit: cover;
}

/* Card Chip */
.y25-card-chip {
	position: absolute;
	left: 0.75rem;
	top: 0.75rem;
	display: flex;
	gap: 0.625rem;
	justify-content: center;
	align-items: center;
	padding: 0.4rem 0.5rem 0.25rem 0.5rem;
	background: var(--y25-card-color-white);
	border-radius: 2.5rem;
}

.y25-card-chip p,
.ray-running-text .y25-card-chip p {
	color: var(--y25-card-color-black);
	font-size: 0.75rem;
	font-weight: 600;
	font-family: var(--y25-card-font-sans);
	line-height: 140%;
	margin-bottom: 0;
}

/* Card Bullets */
.y25-card-bullets,
.single-landing_page .page-wrapper ul.y25-card-bullets {
	list-style: none;
	padding: 0;
	flex-grow: 1;
	width: 100%;
	margin: 0;
}

.y25-card-bullets li:not(:last-child) {
	margin-bottom: 0.75rem;
}

.y25-card-bullets li.y25-card-bullet-item i,
.ray-running-text li.y25-card-bullet-item i {
	line-height: revert-layer;
	color: var(--y25-card-color-black);
	font-style: normal;
}

.y25-card-bullets li {
	font-family: var(--y25-card-font-sans);
	font-size: 1rem;
	line-height: 1.4rem;
	position: relative;
	color: var(--y25-card-color-text);
}

.y25-card-bullets li.y25-card-bullet-item {
	display: flex;
	gap: 0.5rem;
}

/* Card CTA */
.y25-card-cta {
	color: var(--y25-card-color-link);
	font-family: var(--y25-card-font-sans);
	font-size: 1rem;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-skip-ink: none;
	text-decoration-thickness: auto;
	text-underline-offset: auto;
	text-underline-position: from-font;
}

.y25-card-cta::after {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-left: 0.25rem;
	vertical-align: middle;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M11.3538 8.35378L6.35378 13.3538C6.30733 13.4002 6.25218 13.4371 6.19148 13.4622C6.13079 13.4874 6.06573 13.5003 6.00003 13.5003C5.93434 13.5003 5.86928 13.4874 5.80859 13.4622C5.74789 13.4371 5.69274 13.4002 5.64628 13.3538C5.59983 13.3073 5.56298 13.2522 5.53784 13.1915C5.5127 13.1308 5.49976 13.0657 5.49976 13C5.49976 12.9343 5.5127 12.8693 5.53784 12.8086C5.56298 12.7479 5.59983 12.6927 5.64628 12.6463L10.2932 8.00003L5.64628 3.35378C5.55246 3.25996 5.49976 3.13272 5.49976 3.00003C5.49976 2.86735 5.55246 2.7401 5.64628 2.64628C5.7401 2.55246 5.86735 2.49976 6.00003 2.49976C6.13272 2.49976 6.25996 2.55246 6.35378 2.64628L11.3538 7.64628C11.4003 7.69272 11.4372 7.74786 11.4623 7.80856C11.4875 7.86926 11.5004 7.93433 11.5004 8.00003C11.5004 8.06574 11.4875 8.13081 11.4623 8.1915C11.4372 8.2522 11.4003 8.30735 11.3538 8.35378Z'/%3E%3C/svg%3E")
		no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M11.3538 8.35378L6.35378 13.3538C6.30733 13.4002 6.25218 13.4371 6.19148 13.4622C6.13079 13.4874 6.06573 13.5003 6.00003 13.5003C5.93434 13.5003 5.86928 13.4874 5.80859 13.4622C5.74789 13.4371 5.69274 13.4002 5.64628 13.3538C5.59983 13.3073 5.56298 13.2522 5.53784 13.1915C5.5127 13.1308 5.49976 13.0657 5.49976 13C5.49976 12.9343 5.5127 12.8693 5.53784 12.8086C5.56298 12.7479 5.59983 12.6927 5.64628 12.6463L10.2932 8.00003L5.64628 3.35378C5.55246 3.25996 5.49976 3.13272 5.49976 3.00003C5.49976 2.86735 5.55246 2.7401 5.64628 2.64628C5.7401 2.55246 5.86735 2.49976 6.00003 2.49976C6.13272 2.49976 6.25996 2.55246 6.35378 2.64628L11.3538 7.64628C11.4003 7.69272 11.4372 7.74786 11.4623 7.80856C11.4875 7.86926 11.5004 7.93433 11.5004 8.00003C11.5004 8.06574 11.4875 8.13081 11.4623 8.1915C11.4372 8.2522 11.4003 8.30735 11.3538 8.35378Z'/%3E%3C/svg%3E")
		no-repeat center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: transform 0.25s ease;
}

.y25-card-cta:hover::after {
	transform: translateX(4px);
}

/* Bullet Navigation */
.y25-card-module-bullets {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
	padding: 0;
	list-style: none;
}

.y25-card-module-bullet {
	background: var(--y25-card-color-black);
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	padding: 0;
	opacity: 0.2;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
}

.y25-card-module-bullet:hover {
	transform: scale(1.2);
}

.y25-card-module-bullet.active {
	opacity: 1;
}

.y25-card-subhead,
.ray-running-text p.y25-card-subhead {
	margin-bottom: 0;
}

/* Tablet Breakpoint - Slider Mode */
@media (max-width: 1024px) {
	    .y25-card-module {
        overflow: hidden;
        width: -webkit-fill-available;
        max-width: -webkit-fill-available;
    }
	.y25-card-module-cards-wrapper {
		width: 100vw;
			overflow: hidden;
			padding-bottom: 10px;
	}
	.y25-card-module {
		margin-right: calc(-50vw + 50%);
	}
    .y25-card:last-child {
        margin-right: 15vw;
    }
	.y25-card-module-headline {
		font-size: 1.75rem;
	}

	.y25-card-module-header {
		margin-bottom: 2.5rem;
	}

	

	.y25-card-module-cards {
		display: flex;
		gap: 1.5rem;
		width: 100%;
		scroll-behavior: smooth;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.y25-card-module-cards::-webkit-scrollbar {
		display: none;
	}

	.y25-card {
		flex: 0 0 calc(50% - 0.75rem);
		scroll-snap-align: center;
		scroll-snap-stop: always;
		max-width: 460px;
	}

	.y25-card-module-bullets {
		display: flex;
		padding-right: calc(50vw - 50%);
	}
}

/* Mobile Breakpoint */
@media (max-width: 640px) {
	.y25-card {
		        flex: 0 0 100% ;
	}
}


/* Admin Editor Styles */
.block-editor-block-list__block .y25-card-module-block {
	padding: 1.5rem;
	background: #f9f9f9;
	border-radius: 0.25rem;
}

.block-editor-block-list__block .y25-card-module-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}

.block-editor-block-list__block
	.y25-card-module-block
	.y25-card-module-headline {
	padding: 0.5rem 0;
	border: 1px dashed #ccc;
	margin: 0 0 0.5rem 0;
}

.block-editor-block-list__block
	.y25-card-module-block
	.y25-card-module-subhead {
	padding: 0.5rem 0;
	border: 1px dashed #ccc;
}

.block-editor-block-list__block .y25-card-module-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.block-editor-block-list__block .y25-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0.25rem;
	padding: 1rem;
}

.block-editor-block-list__block .y25-card-image-wrapper {
	margin-bottom: 1rem;
}

.block-editor-block-list__block .y25-card-image-placeholder {
	background: #f0f0f0;
	border: 2px dashed #ccc;
	border-radius: 0.25rem;
	padding: 2rem;
	text-align: center;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.block-editor-block-list__block .y25-card-image {
	position: relative;
	margin-bottom: 0.5rem;
}

.block-editor-block-list__block .y25-card-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0.25rem;
}

.block-editor-block-list__block .y25-card-image-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.block-editor-block-list__block .y25-card-chip input {
	margin-bottom: 0.5rem;
}

.block-editor-block-list__block .y25-card-headline,
.block-editor-block-list__block .y25-card-subhead {
	margin-bottom: 0.75rem;
}

.block-editor-block-list__block .y25-card-bullets {
	margin-bottom: 1rem;
	background: #f9f9f9;
	padding: 0.75rem;
	border-radius: 0.25rem;
}

.block-editor-block-list__block .y25-card-bullet-item {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	align-items: flex-start;
}

.block-editor-block-list__block .y25-card-bullet-content {
	flex: 1;
}

.block-editor-block-list__block .y25-card-bullet-content input {
	width: 100%;
}

.block-editor-block-list__block .y25-card-cta {
	margin-bottom: 1rem;
	display: block;
}

.block-editor-block-list__block .y25-card-cta input {
	width: 100%;
	margin-bottom: 0.5rem;
}

.block-editor-block-list__block .y25-card-remove {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	text-align: right;
}

.block-editor-block-list__block .y25-card-module-empty {
	padding: 2rem;
	text-align: center;
	color: #999;
}
.block-editor-block-list__block .components-base-control__help{
	color: #999;
	padding: 0;
	margin: 0;
}
