/**
 * Flexible Cards Block Styles
 */

.brandspeak-flexible-cards-block {
	position: relative;
	background-color: #F47E65;
	overflow: hidden;
	padding-bottom: 20vh;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card {
	position: relative;
	width: 100vw;
	padding: 30px 0;
	z-index: 2;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card:last-of-type {
	margin-bottom: -20vh;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-cards-curve {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 56%;
	pointer-events: none;
	z-index: 0;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-cards-curve svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-cards-curve svg path {
	fill: #FFE999 !important;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner {
	padding: 40px;
	background-color: #FFFFFF;
	display: flex;
	gap: 60px;
	align-items: center;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner--even {
	flex-direction: row-reverse;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner--odd {
	flex-direction: row;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__image {
	flex: 0 0 45%;
	max-width: 500px;
	aspect-ratio: 1920 / 1080;
	overflow: hidden;
	border-radius: 8px;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__content {
	flex: 1;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1.5rem;
	color: #0b0b0b;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__text {
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.6;
	color: #0b0b0b;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__text p {
	margin: 0 0 1rem;
}

.brandspeak-flexible-cards-block .brandspeak-flexible-card__text p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.brandspeak-flexible-cards-block .brandspeak-flexible-card {
		padding: 60px 0;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner {
		gap: 40px;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-card__image {
		flex: 0 0 40%;
	}
}

@media (max-width: 768px) {
	.brandspeak-flexible-cards-block .brandspeak-flexible-card {
		padding: 40px 0;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-card__container {
		padding: 0 1rem;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner,
	.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner--even,
	.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner--odd {
		flex-direction: column;
		gap: 30px;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-card__image {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-cards-curve svg {
		min-height: 300px;
	}
}

@media (max-width: 480px) {
	.brandspeak-flexible-cards-block .brandspeak-flexible-card {
		padding: 30px 0;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-card__inner {
		gap: 20px;
	}

	.brandspeak-flexible-cards-block .brandspeak-flexible-cards-curve svg {
		min-height: 200px;
	}
}
