/**
 * TechBBQ Text and Cards List with Background — intro + numbered cards with orb backdrop.
 *
 * Figma Startups "How it Works": 7157:70026 / 7156:68008 / 7141:66738 / 7136:46121
 * Life Science "Why Paradigm" (plain, no orb): 7166:88224
 * Plain sections: vertical spacing on the Elementor wrapper container, not widget root CSS.
 * Orb sections: vertical spacing lives on the widget root (inner padding), not the Elementor container.
 *
 * Breakpoints (mobile-first): 0–767, 768–1023, 1024–1439, 1440+.
 */

.techbbq-text-and-cards-list-with-background {
	--techbbq-text-cards-bg-inner-gap: var(--techbbq-space-3);
	--techbbq-text-cards-bg-heading-gap: 12px;
	--techbbq-text-cards-bg-intro-gap: var(--techbbq-space-3);
	--techbbq-text-cards-bg-title-size: 30px;
	--techbbq-text-cards-bg-desc-max-width: 576px;
	--techbbq-text-cards-bg-list-gap: var(--techbbq-space-1);
	--techbbq-text-cards-bg-card-gap: var(--techbbq-space-3);
	--techbbq-text-cards-bg-card-title-size: 20px;
	--techbbq-text-cards-bg-card-text-size: var(--techbbq-text-paragraph-s-size);
	--techbbq-text-cards-bg-list-width: 100%;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: var(--techbbq-section-space-medium) 0 72px;
	overflow: hidden;
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
}

.techbbq-text-and-cards-list-with-background__orb {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	pointer-events: none;
}

.techbbq-text-and-cards-list-with-background__orb-inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: rotate(180deg);
}

img.techbbq-text-and-cards-list-with-background__orb-image,
.techbbq-text-and-cards-list-with-background__orb-picture {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}

.techbbq-text-and-cards-list-with-background__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-text-cards-bg-inner-gap);
	align-items: stretch;
	width: 100%;
}

.techbbq-text-and-cards-list-with-background__intro {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-text-cards-bg-intro-gap);
	align-items: flex-start;
	width: 100%;
}

.techbbq-text-and-cards-list-with-background__heading {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-text-cards-bg-heading-gap);
	align-items: flex-start;
	width: 100%;
}

.techbbq-text-and-cards-list-with-background__title {
	margin: 0;
	font-size: var(--techbbq-text-cards-bg-title-size);
}

.techbbq-text-and-cards-list-with-background__description {
	max-width: var(--techbbq-text-cards-bg-desc-max-width);
	margin: 0;
	color: var(--techbbq-content-secondary);
}

.techbbq-text-and-cards-list-with-background__list {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-text-cards-bg-list-gap);
	width: var(--techbbq-text-cards-bg-list-width);
}

.techbbq-text-and-cards-list-with-background__card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-text-cards-bg-card-gap);
	align-items: flex-start;
	width: 100%;
	padding: 20px;
	border-radius: 12px;
	background-color: var(--techbbq-bg-surface);
}

.techbbq-text-and-cards-list-with-background__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	align-self: flex-start;
	padding: 4px;
}

.techbbq-text-and-cards-list-with-background__icon-image {
	display: block;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}

.techbbq-text-and-cards-list-with-background__card-body {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-1);
	align-items: flex-start;
	width: 100%;
}

.techbbq-text-and-cards-list-with-background__card-title {
	margin: 0;
	font-size: var(--techbbq-text-cards-bg-card-title-size);
	line-height: 1.2;
}

.techbbq-text-and-cards-list-with-background__card-text {
	margin: 0;
	font-size: var(--techbbq-text-cards-bg-card-text-size);
	line-height: 1.4;
	color: var(--techbbq-content-tertiary);
	letter-spacing: 0.02em;
}

/* ── Tablet (768–1023) ── */
@media (min-width: 768px) {
	.techbbq-text-and-cards-list-with-background {
		--techbbq-text-cards-bg-inner-gap: var(--techbbq-space-5);
		--techbbq-text-cards-bg-title-size: 42px;
		--techbbq-text-cards-bg-card-title-size: var(--techbbq-text-h6-size);
		padding-bottom: 80px;
	}

	.techbbq-text-and-cards-list-with-background__card {
		justify-content: space-between;
		min-height: 260px;
	}
}

/* ── Desktop (1024–1439) ── */
@media (min-width: 1024px) {
	.techbbq-text-and-cards-list-with-background {
		--techbbq-text-cards-bg-inner-gap: var(--techbbq-space-5);
		--techbbq-text-cards-bg-title-size: 44px;
		padding-bottom: 88px;
	}

	.techbbq-text-and-cards-list-with-background__inner {
		flex-direction: row;
		align-items: flex-start;
	}

	.techbbq-text-and-cards-list-with-background__intro,
	.techbbq-text-and-cards-list-with-background__list {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* ── Wide screen (1440+) ── */
@media (min-width: 1440px) {
	.techbbq-text-and-cards-list-with-background {
		--techbbq-text-cards-bg-inner-gap: var(--techbbq-space-2);
		--techbbq-text-cards-bg-title-size: var(--techbbq-text-h3-size);
		--techbbq-text-cards-bg-card-title-size: var(--techbbq-text-h5-size);
		--techbbq-text-cards-bg-card-text-size: var(--techbbq-text-paragraph-m-size);
		--techbbq-text-cards-bg-list-width: 692px;
		padding-bottom: var(--techbbq-section-space-large);
	}

	.techbbq-text-and-cards-list-with-background__intro {
		flex: 1 1 0;
	}

	.techbbq-text-and-cards-list-with-background__list {
		flex: 0 0 var(--techbbq-text-cards-bg-list-width);
	}
}

/* Plain section — no orb backdrop (Life Science x Deep Tech §4). */
.techbbq-text-and-cards-list-with-background--plain,
.techbbq-text-and-cards-list-with-background-wrap--plain .techbbq-text-and-cards-list-with-background {
	overflow: visible;
	background-color: transparent;
}

.techbbq-text-and-cards-list-with-background--plain .techbbq-text-and-cards-list-with-background__orb,
.techbbq-text-and-cards-list-with-background-wrap--plain .techbbq-text-and-cards-list-with-background__orb {
	display: none;
}

.techbbq-text-and-cards-list-with-background--plain .techbbq-text-and-cards-list-with-background__card,
.techbbq-text-and-cards-list-with-background-wrap--plain .techbbq-text-and-cards-list-with-background__card {
	justify-content: space-between;
	gap: 0;
}

.techbbq-text-and-cards-list-with-background-wrap--plain .techbbq-text-and-cards-list-with-background {
	padding-top: 0;
	padding-bottom: 0;
}
