/* Home page: the top banner and the [cac_promo] card, both linking to /cac/. */
.bbp-cac-banner {
	position: relative;
	z-index: 110; /* same layer as the theme's top bar and header */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 16px;
	padding: 12px 20px;
	background: #1f5a44;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.bbp-cac-banner:hover,
.bbp-cac-banner:focus-visible {
	background: #234b67;
	color: #ffffff;
}

.bbp-cac-banner:focus-visible {
	outline: 3px solid #f2b84b;
	outline-offset: -3px;
}

.bbp-cac-banner__name {
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f2b84b;
}

.bbp-cac-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 4px 16px;
	border-radius: 999px;
	background: #f2b84b;
	color: #234b67;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.bbp-cac-banner {
		font-size: 15px;
		padding: 10px 16px;
	}
}

/* Promo card */

.cac-promo {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	max-width: 640px;
	margin: 0 auto;
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(circle at 90% 10%, rgba(34, 169, 165, 0.35), transparent 45%),
		radial-gradient(circle at 5% 95%, rgba(242, 184, 75, 0.2), transparent 40%),
		linear-gradient(150deg, #143d2e 0%, #1f5a44 55%, #234b67 100%);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 24px 50px rgba(31, 90, 68, 0.3);
	transition: transform 250ms ease, box-shadow 250ms ease;
}

.cac-promo:hover,
.cac-promo:focus-visible {
	color: #ffffff;
	transform: translateY(-4px);
	box-shadow: 0 30px 60px rgba(31, 90, 68, 0.38);
}

.cac-promo:focus-visible {
	outline: 4px solid #f2b84b;
	outline-offset: 3px;
}

.cac-promo__art {
	display: block;
	margin: 22px 22px 0;
	border: 5px solid #ffffff;
	border-radius: 18px;
	background: #faf7f0;
	overflow: hidden;
	transform: rotate(-1.5deg);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.cac-promo__art img {
	display: block;
	width: 100%;
	height: auto;
}

.cac-promo__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 26px 28px 30px;
	text-align: center;
}

.cac-promo__logo {
	display: block;
	width: 150px;
	height: auto;
	margin-bottom: 14px;
}

.cac-promo__name {
	margin-bottom: 10px;
	color: #a6dedb;
	font-family: "Fredoka", "Trebuchet MS", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cac-promo__title {
	display: block;
	font-family: "Fredoka", "Trebuchet MS", sans-serif;
	font-size: clamp(1.9rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.cac-promo__title em {
	color: #f2b84b;
	font-style: normal;
}

.cac-promo__text {
	display: block;
	max-width: 30em;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.9);
	font-family: "Nunito", "Segoe UI", Arial, sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
}

.cac-promo__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	margin-top: 22px;
	padding: 14px 30px;
	border-radius: 999px;
	background: #f2b84b;
	color: #234b67;
	font-family: "Fredoka", "Trebuchet MS", sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 6px 0 #d79a2a;
	transition: background-color 200ms ease;
}

.cac-promo:hover .cac-promo__btn {
	background: #f6c86b;
}

.cac-promo__note {
	display: block;
	margin-top: 14px;
	color: #a6dedb;
	font-family: "Nunito", "Segoe UI", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

@media (max-width: 800px) {
	.cac-promo {
		margin: 8px auto 20px;
	}

	.cac-promo__art {
		margin: 16px 16px 0;
	}

	.cac-promo__body {
		padding: 22px 18px 26px;
	}

	.cac-promo__btn {
		min-height: 50px;
		margin-top: 18px;
		padding: 11px 24px;
		font-size: 1.05rem;
		box-shadow: 0 4px 0 #d79a2a;
	}

	.cac-promo__btn svg {
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cac-promo,
	.cac-promo__btn {
		transition: none;
	}

	.cac-promo:hover {
		transform: none;
	}
}
