/* =========================================================================
   CTA Banner (TOA) — block styles
   Background is a single uploaded image (multicolour tile/gradient
   mosaic) — see background_image field. Heading/description sit in
   dark purple directly on top of it, matching the reference.
   ========================================================================= */

.toa-ctab {
	--toa-purple: var(--wp--preset--color--brand-purple, #410064);
	--toa-pink:   var(--wp--preset--color--brand-pink, #ff3f8f);

	position: relative;
	background-color: var(--toa-purple);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding-block: clamp(3.5rem, 8vw, 6rem);
	padding-inline: clamp(1.25rem, 5vw, 4rem);
	text-align: center;
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.toa-ctab__inner {
	position: relative;
	max-width: 760px;
	margin-inline: auto;
}

.toa-ctab__heading {
	margin: 0;
	color: var(--primary-purple-purple-900, var(--toa-purple, #410064));
	text-align: center;
	font-family: var(--Typography-family-display, var(--wp--preset--font-family--heading, "Sora", system-ui, sans-serif));
	font-size: clamp(1.75rem, 8vw, 4.5rem);
	font-style: normal;
	font-weight: 800;
	line-height: 110%;
}

.toa-ctab__description {
	margin: 0.75rem 0 0;
	color: var(--primary-purple-purple-900, var(--toa-purple, #410064));
	text-align: center;
	font-family: var(--Typography-family-body, var(--wp--preset--font-family--body, "Sora", system-ui, sans-serif));
	font-size: var(--Typography-size-md, 16px);
	font-style: normal;
	font-weight: 400;
}

.toa-ctab__cta-wrap {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: clamp(1.5rem, 3vw, 2rem);
}
.toa-ctab__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.5rem 0.5rem 1.5rem;
	border-radius: 999px;
	background: var(--toa-purple);
	color: var(--toa-pink);
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.toa-ctab__cta:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}
.toa-ctab__cta:focus-visible {
	outline: 3px solid var(--toa-purple);
	outline-offset: 2px;
}
.toa-ctab__cta svg {
	flex: none;
	width: 32px;
	height: 32px;
}

/* Secondary (outline) button — used when a CTA banner needs two actions,
   e.g. "Browse webinars" + "Read FAQs". */
.toa-ctab__cta--secondary {
	background: transparent;
	color: var(--toa-purple);
	border: 2px solid var(--toa-purple);
	padding: 0.5rem 1.25rem;
}
.toa-ctab__cta--secondary svg {
	width: 28px;
	height: 28px;
}
.toa-ctab__cta--secondary:hover {
	background: rgba(65, 0, 100, 0.06);
	filter: none;
}