/* yepx/cards — ikon + başlık + açıklama ızgarası. Token fallback. */

.yepx-cards {
	--yepx-cards-bg: transparent;
	--yepx-cards-card-bg: #ffffff;
	--yepx-cards-ink: var(--yepx-color-ink, #1c2333);
	--yepx-cards-muted: var(--yepx-color-muted, #8b90a5);
	--yepx-cards-icon: #e8a07a;
	--yepx-cards-icon-bg: #fff3ea;
	--yepx-cards-r: 24px;
	--yepx-cards-shadow: 0 10px 32px rgba(16, 24, 40, 0.06);
	--yepx-cards-dcols: 3;
	--yepx-cards-tcols: 2;
	--yepx-cards-mcols: 1;
	--yepx-cards-cols: var(--yepx-cards-mcols);
	--yepx-cards-cgap: 24px;
	--yepx-cards-rgap: 24px;
	--yepx-cards-dur: var(--yepx-duration, 240ms);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	background: var(--yepx-cards-bg);
	color: var(--yepx-cards-ink);
}
.yepx-cards *,
.yepx-cards *::before,
.yepx-cards *::after {
	box-sizing: border-box;
}
.yepx-cards--w-container,
.yepx-home-v2 .yepx-cards--w-container,
.yepx-preview .yepx-cards--w-container,
.yepx-sec .yepx-cards--w-container {
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.yepx-cards--w-wide,
.yepx-home-v2 .yepx-cards--w-wide,
.yepx-preview .yepx-cards--w-wide,
.yepx-sec .yepx-cards--w-wide {
	width: 90vw;
	max-width: 90vw;
	margin-left: calc(50% - 45vw);
	margin-right: calc(50% - 45vw);
}
.yepx-cards--w-full,
.yepx-home-v2 .yepx-cards--w-full,
.yepx-preview .yepx-cards--w-full,
.yepx-sec .yepx-cards--w-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.yepx-cards__inner {
	width: min(var(--yepx-container-max, 1240px), calc(100% - 28px));
	margin-left: auto;
	margin-right: auto;
}
.yepx-cards--w-full .yepx-cards__inner,
.yepx-cards--w-wide .yepx-cards__inner {
	width: min(var(--yepx-container-max, 1240px), calc(100% - 28px));
}
.yepx-cards__grid {
	display: grid;
	grid-template-columns: repeat(var(--yepx-cards-cols), minmax(0, 1fr));
	column-gap: var(--yepx-cards-cgap);
	row-gap: var(--yepx-cards-rgap);
	list-style: none;
	margin: 0;
	padding: 0;
}
.yepx-cards--align-left .yepx-cards__card {
	text-align: left;
	align-items: flex-start;
}
.yepx-cards--align-center .yepx-cards__card {
	text-align: center;
	align-items: center;
}
.yepx-cards--align-right .yepx-cards__card {
	text-align: right;
	align-items: flex-end;
}
.yepx-cards__item {
	margin: 0;
	min-width: 0;
}
.yepx-cards__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 28px 26px;
	background: var(--yepx-cards-card-bg);
	border-radius: var(--yepx-cards-r);
	box-shadow: var(--yepx-cards-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform var(--yepx-cards-dur) ease, box-shadow var(--yepx-cards-dur) ease;
}
a.yepx-cards__card:hover,
a.yepx-cards__card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(16, 24, 40, 0.1);
}
.yepx-cards__card--static:hover {
	transform: none;
}
.yepx-cards__card--shadow-none {
	--yepx-cards-shadow: none;
}
.yepx-cards__card--shadow-soft {
	--yepx-cards-shadow: 0 10px 32px rgba(16, 24, 40, 0.06);
}
.yepx-cards__card--shadow-medium {
	--yepx-cards-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
}
.yepx-cards__head {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0 0 10px;
	min-width: 0;
}
.yepx-cards--align-center .yepx-cards__head,
.yepx-cards__card--align-center .yepx-cards__head {
	justify-content: center;
}
.yepx-cards--align-right .yepx-cards__head,
.yepx-cards__card--align-right .yepx-cards__head {
	justify-content: flex-end;
}
.yepx-cards__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 50%;
	background: var(--yepx-cards-icon-bg);
	color: var(--yepx-cards-icon);
	flex: 0 0 auto;
}
.yepx-cards__icon svg,
.yepx-cards__svg {
	width: 22px;
	height: 22px;
	display: block;
	stroke: currentColor;
	fill: none;
}
.yepx-cards__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--yepx-cards-title, var(--yepx-cards-ink));
	letter-spacing: -0.01em;
	flex: 1 1 auto;
	min-width: 0;
}
.yepx-cards--align-center .yepx-cards__title,
.yepx-cards__card--align-center .yepx-cards__title,
.yepx-cards--align-right .yepx-cards__title,
.yepx-cards__card--align-right .yepx-cards__title {
	flex: 0 1 auto;
}
.yepx-cards__title p {
	margin: 0;
}
.yepx-cards__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	font-weight: 400;
	color: var(--yepx-cards-desc, var(--yepx-cards-muted));
}
.yepx-cards__desc p {
	margin: 0 0 0.4em;
}
.yepx-cards__desc p:last-child {
	margin-bottom: 0;
}
.yepx-cards--dcols-1 { --yepx-cards-dcols: 1; }
.yepx-cards--dcols-2 { --yepx-cards-dcols: 2; }
.yepx-cards--dcols-3 { --yepx-cards-dcols: 3; }
.yepx-cards--dcols-4 { --yepx-cards-dcols: 4; }
.yepx-cards--tcols-1 { --yepx-cards-tcols: 1; }
.yepx-cards--tcols-2 { --yepx-cards-tcols: 2; }
.yepx-cards--tcols-3 { --yepx-cards-tcols: 3; }
.yepx-cards--mcols-1 { --yepx-cards-mcols: 1; }
.yepx-cards--mcols-2 { --yepx-cards-mcols: 2; }
@media (min-width: 768px) {
	.yepx-cards { --yepx-cards-cols: var(--yepx-cards-tcols); }
}
@media (min-width: 1025px) {
	.yepx-cards { --yepx-cards-cols: var(--yepx-cards-dcols); }
}
@media (max-width: 767px) {
	.yepx-cards__card { padding: 22px 20px 20px; }
	.yepx-cards__title { font-size: 1.05rem; }
	.yepx-cards__icon { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
	.yepx-cards__card {
		transition: none;
	}
	a.yepx-cards__card:hover,
	a.yepx-cards__card:focus-visible {
		transform: none;
	}
}
[data-yepx-motion="off"] .yepx-cards__card {
	transition: none;
}
[data-yepx-motion="off"] a.yepx-cards__card:hover {
	transform: none;
}
.yepx-cards--editor-preview .yepx-cards__grid {
	pointer-events: none;
}
.editor-styles-wrapper .yepx-cards-ed .block-editor-inner-blocks,
.editor-styles-wrapper .yepx-cards-ed .block-editor-block-list__layout {
	display: contents;
}
.editor-styles-wrapper .yepx-cards-ed .yepx-cards__grid > .block-editor-inner-blocks {
	display: contents;
}
.editor-styles-wrapper .yepx-cards-ed .yepx-cards__grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid;
	grid-template-columns: repeat(var(--yepx-cards-cols), minmax(0, 1fr));
	column-gap: var(--yepx-cards-cgap);
	row-gap: var(--yepx-cards-rgap);
}
.yepx-cards-ed--structure .yepx-cards,
.yepx-cards-ed--structure .yepx-cards__card {
	background: transparent;
	box-shadow: none;
	padding: 0;
}
