.kpe-pcards { width: 100%; font-family: 'Poppins', sans-serif; }
.kpe-pcards *, .kpe-pcards *::before, .kpe-pcards *::after { box-sizing: border-box; }

/* header */
.kpe-pcards__header { display: flex; flex-direction: column; width: fit-content; max-width: 100%; margin: 0 auto 28px; }
.kpe-pcards__eyebrow { align-self: flex-start; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #0e9494; }
.kpe-pcards__title { margin: 0 0 8px; font-size: 40px; font-weight: 800; line-height: 1.15; color: #0e2a63; }
.kpe-pcards__sparkle { display: inline-block; vertical-align: top; margin-left: 6px; }
.kpe-pcards__sparkle .a, .kpe-pcards__sparkle .b { stroke: #f0307e; }
.kpe-pcards__subtitle { margin: 0; font-size: 16px; line-height: 1.5; color: #4a6580; text-align: center; }

/* grid */
.kpe-pcards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* box */
.kpe-pc { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #edf1f6; border-radius: 20px; box-shadow: 0 10px 30px rgba(14, 42, 99, .08); transition: transform .3s ease, box-shadow .3s ease; }
.kpe-pcards--lift .kpe-pc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14, 42, 99, .14); }
.kpe-pc__image { position: relative; width: 100%; height: 175px; overflow: hidden; }
.kpe-pc__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kpe-pcards--lift .kpe-pc:hover .kpe-pc__image img { transform: scale(1.05); }
.kpe-pc__badge { display: inline-block; padding: 6px 12px; border-radius: 8px; background: #0e9494; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .6px; line-height: 1.2; text-transform: uppercase; }
.kpe-pc__badge--img { position: absolute; top: 12px; left: 12px; z-index: 2; }
.kpe-pc__badge--body { display: none; }
.kpe-pc__body { display: flex; flex-direction: column; align-items: flex-start; flex-grow: 1; padding: 18px 18px 6px; }
.kpe-pc__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.25; color: #0e2a63; }
.kpe-pc__price { display: inline-block; margin-bottom: 10px; padding: 4px 18px; border-radius: 999px; background: #c9f1ee; color: #0e2a63; font-size: 17px; font-weight: 700; line-height: 1.3; }
.kpe-pc__desc { margin: 0; font-size: 13px; line-height: 1.45; color: #5c6a82; }
.kpe-pc__footer { padding: 14px 18px 18px; }
.kpe-pc__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 20px; border-radius: 999px; background: #0e9494; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: opacity .2s ease, transform .2s ease; }
.kpe-pc__btn:hover { color: #fff; opacity: .9; }
.kpe-pc__btn:focus-visible { outline: 3px solid #0e2a63; outline-offset: 2px; }
.kpe-pcards--card-link .kpe-pc__btn::after { content: ''; position: absolute; inset: 0; z-index: 3; }

/* tablet */
@media (max-width: 1024px) {
	.kpe-pcards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.kpe-pcards__title { font-size: 34px; }
}

/* mobile */
@media (max-width: 767px) {
	.kpe-pcards__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.kpe-pcards__title { font-size: 26px; }
	.kpe-pcards__subtitle { font-size: 13px; text-align: left; }
	.kpe-pcards__header { margin: 0 auto 18px 0; }
	.kpe-pcards__sparkle { width: 22px; height: 22px; }

	/* horizontal: small image left, text right, full-width button underneath */
	.kpe-pcards--m-horizontal .kpe-pc { display: grid; grid-template-columns: 98px minmax(0, 1fr); grid-template-areas: "img body" "foot foot"; column-gap: 12px; padding: 12px; border-radius: 18px; }
	.kpe-pcards--m-horizontal .kpe-pc__image { grid-area: img; height: 120px; border-radius: 14px; }
	.kpe-pcards--m-horizontal .kpe-pc__badge--img { display: none; }
	.kpe-pcards--m-horizontal .kpe-pc__badge--body { display: inline-block; margin-bottom: 6px; padding: 4px 9px; font-size: 10px; }
	.kpe-pcards--m-horizontal .kpe-pc__body { grid-area: body; padding: 2px 0 0; }
	.kpe-pcards--m-horizontal .kpe-pc__title { font-size: 14px; margin-bottom: 6px; }
	.kpe-pcards--m-horizontal .kpe-pc__price { font-size: 14px; padding: 3px 14px; margin-bottom: 6px; }
	.kpe-pcards--m-horizontal .kpe-pc__desc { font-size: 12px; }
	.kpe-pcards--m-horizontal .kpe-pc__footer { grid-area: foot; padding: 12px 0 0; }
	.kpe-pcards--m-horizontal .kpe-pc__btn { padding: 11px 16px; font-size: 13px; }

	/* stacked */
	.kpe-pcards--m-stacked .kpe-pc__image { height: 160px; }
}

@media (prefers-reduced-motion: reduce) { .kpe-pc, .kpe-pc__image img, .kpe-pc__btn { transition: none !important; transform: none !important; } }
