/* Two Paths - Mr.D — base styles (all colors/fonts overridden by Elementor controls) */

.tpmrd-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.tpmrd-wrapper * {
	box-sizing: border-box;
}

.tpmrd-header {
	max-width: 780px;
	margin: 0 auto 40px;
	text-align: center;
}

.tpmrd-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.tpmrd-badge span {
	display: inline-block;
	width: 26px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.tpmrd-title {
	font-size: 42px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 14px;
}

.tpmrd-subtitle {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

/* Cards row */
.tpmrd-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: stretch;
}

.tpmrd-card {
	position: relative;
	flex: 1 1 320px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0,0,0,0.06);
	overflow: hidden;
}

.tpmrd-ribbon {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: 999px;
	white-space: nowrap;
	max-width: calc(100% - 40px); /* keeps it inside the card padding instead of overflowing/clipping */
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 6px 14px rgba(0,0,0,0.22);
	border: 1px solid rgba(255,255,255,0.35);
	text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.tpmrd-card-top {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.tpmrd-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tpmrd-icon img {
	width: 90px;
	height: 90px;
	object-fit: contain;
	display: block;
}

.tpmrd-card-heading {
	flex: 1;
}

.tpmrd-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.tpmrd-card-title {
	font-size: 24px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0;
}

.tpmrd-card-desc {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 22px;
}

.tpmrd-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
	padding-top: 18px;
	margin-top: 4px;
	border-top: 1px solid rgba(0,0,0,0.08);
	margin-bottom: 26px;
	width: 100%;
}

.tpmrd-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0; /* allow item to shrink inside grid instead of overflowing + getting clipped */
}

.tpmrd-feature-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(0,0,0,0.04);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tpmrd-feature-icon img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	display: block;
}

.tpmrd-feature-text {
	min-width: 0; /* allow text to wrap/shrink instead of forcing the grid column wider than the card */
	flex: 1 1 auto;
}

.tpmrd-feature-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 2px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.tpmrd-feature-desc {
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: break-word;
	word-break: break-word;
}

.tpmrd-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	padding: 16px 28px;
	border-radius: 10px;
	margin-top: auto;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tpmrd-button:hover {
	transform: translateY(-2px);
	color: inherit;
}

.tpmrd-button svg {
	flex-shrink: 0;
}

/* ---------- Highlighted / featured card ---------- */
.tpmrd-card-highlighted {
	position: relative;
	z-index: 2;
	transform: scale(1.03);
	border-width: 2px;
	box-shadow: 0 20px 45px rgba(0,0,0,0.16);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.tpmrd-title {
		font-size: 34px;
	}
	.tpmrd-card-title {
		font-size: 21px;
	}
	.tpmrd-ribbon {
		top: 18px;
		right: 18px;
		font-size: 10.5px;
		padding: 7px 16px;
	}
}

@media (max-width: 767px) {
	.tpmrd-cards {
		flex-direction: column;
	}
	.tpmrd-card {
		flex: 0 0 auto; /* on desktop "flex: 1 1 320px" sets a 320px starting WIDTH; once flex-direction becomes column here, that same value is read as a starting HEIGHT and flex-shrink squeezes the card shorter than its content, forcing the overflow to visually spill onto the next card. Resetting basis/shrink here makes the card size purely to its content. */
		min-width: 100%;
		width: 100%;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible; /* the corner-ribbon clip is only needed on desktop's absolute-positioned ribbon; on mobile the ribbon is static, so this can't hide content even if a theme forces a height on the card */
	}
	.tpmrd-features {
		grid-template-columns: minmax(0, 1fr);
		max-height: none !important;
		overflow: visible !important;
	}
	.tpmrd-feature-item,
	.tpmrd-feature-text {
		width: 100%;
	}
	.tpmrd-feature-title,
	.tpmrd-feature-desc {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}
	.tpmrd-title {
		font-size: 28px;
	}
	.tpmrd-card-top {
		flex-wrap: wrap;
	}
	.tpmrd-icon img {
		width: 64px;
		height: 64px;
	}
	.tpmrd-ribbon {
		position: static; /* drop out of absolute flow so it can't overflow/clip on narrow cards */
		display: inline-flex;
		align-items: center;
		align-self: flex-start; /* IMPORTANT: without this, being a flex-column child stretches it to 100% width, turning the pill into a blank-looking full-width bar */
		width: auto;
		max-width: 100%;
		top: auto;
		right: auto;
		margin-bottom: 14px;
	}
	/* scaling a stacked, full-width card looks broken on mobile - keep the shadow/border emphasis only */
	.tpmrd-card-highlighted {
		transform: none;
	}
}

@media (max-width: 480px) {
	.tpmrd-ribbon {
		font-size: 10px;
		padding: 6px 14px;
		letter-spacing: 0.5px;
	}
}
