/* Three Pillars block (v2) — stepped dark cards on a glowing stage. */

.three-pillars {
	position: relative;
	width: 100%;
	background: transparent;
	font-family: var(--wp--preset--font-family--system-sans-serif, 'Poppins', sans-serif);
	/* Shared brand gradient used by the number + rule. */
	--tp-grad: linear-gradient(135deg, #ffffff 0%, #e67198 60%, var(--wp--preset--color--primary, #d61254) 100%);
}



/* Cards bottom-aligned so the stepped heights read as a chart.
   Per-position heights (set in render.php) descend left-to-right,
   with cards in natural 01 → 03 order. */
.three-pillars .tp-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: end;
	gap: clamp(18px, 2vw, 30px);
}

.three-pillars .tp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var(--tp-minh, 352px);
	padding: 40px 38px 36px;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.018);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.three-pillars .tp-card:hover {
	transform: translateY(-10px);
	border-color: rgba(232, 31, 99, 0.55);
	box-shadow: 0 30px 70px -30px rgba(232, 31, 99, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	background: radial-gradient(120% 120% at 50% -10%, rgba(232, 31, 99, 0.10), rgba(255, 255, 255, 0.018) 55%);
}

.three-pillars .tp-card-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 26px;
}

.three-pillars .tp-num {
	font-weight: 800;
	font-size: 50px;
	line-height: 1;
	background: var(--tp-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.three-pillars .tp-tag {
	flex: 0 0 auto;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 100px;
	padding: 6px 13px;
}

.three-pillars .tp-heading {
	font-weight: 700;
	font-size: 22px;
	line-height: 1.28;
	margin: 0 0 14px;
	color: #ffffff;
}

.three-pillars .tp-para {
	font-size: 15px;
	line-height: 1.68;
	margin: 0;
	color: rgba(255, 255, 255, 0.58);
}

.three-pillars .tp-foot {
	margin-top: auto;
	padding-top: 30px;
}

.three-pillars .tp-rule {
	height: 1px;
	margin-bottom: 18px;
	background: var(--tp-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.three-pillars .tp-card:hover .tp-rule {
	transform: scaleX(1);
}

.three-pillars .tp-cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.35s ease, gap 0.35s ease;
}
.three-pillars .tp-cta .tp-arrow {
	font-size: 16px;
}
.three-pillars .tp-card:hover .tp-cta {
	color: #ffffff;
	gap: 16px;
}

.three-pillars .tp-empty {
	margin: 0;
	padding: 28px;
	text-align: center;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: 14px;
	color: rgba(255, 255, 255, 0.6);
}

/* Tablet: two across, heights relax. */
@media (max-width: 980px) {
	.three-pillars .tp-row {
		grid-template-columns: repeat(2, 1fr);
		align-items: stretch;
	}
	.three-pillars .tp-card {
		min-height: 0;
	}
}

/* Mobile: single column. */
@media (max-width: 640px) {
	.three-pillars .tp-row {
		grid-template-columns: 1fr;
	}
	.three-pillars .tp-card {
		padding: 32px 26px 30px;
	}
	.three-pillars .tp-num {
		font-size: 42px;
	}
}
