/* Call to Action widget. */

.vora-cta {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 100%;
	padding: 48px 40px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

/* The overlay is its own layer rather than a gradient on the background, so its
   colour and opacity stay independent of the image and can be tuned until the
   text actually passes contrast. */
.vora-cta__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.vora-cta__body,
.vora-cta__actions {
	position: relative;
	z-index: 1;
}

.vora-cta__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.vora-cta__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vora-cta__title { margin: 0; color: #fff; line-height: 1.2; }

.vora-cta__text {
	margin: 0;
	max-width: 60ch;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.6;
}

.vora-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex: none;
}

.vora-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 6px;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.vora-cta__btn--secondary { background: transparent; }

.vora-cta__btn--secondary:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 767px) {
	/* Side-by-side stops working long before the container does — the buttons
	   end up beside a two-word column of text. */
	.vora-cta { flex-direction: column !important; text-align: center; }
	.vora-cta__actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.vora-cta__btn { transition: none; }
}
