/* BASE Banners – rotating carousel, sits at top of the content column */

.bb-ad-slot {
	width: 100%;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	padding: 16px 0;
}

.bb-ad-slot * ,
.bb-ad-slot *::before,
.bb-ad-slot *::after {
	box-sizing: border-box;
}

.bb-ad-slot.bb-pending {
	display: none;
}

.bb-carousel {
	position: relative;
	width: 100%;
	max-width: 970px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
}

.bb-viewport {
	overflow: hidden;
	width: 100%;
}

.bb-track {
	display: flex;
	direction: ltr;
	transition: transform .55s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}

.bb-slide {
	flex: 0 0 100%;
	min-width: 100%;
	direction: rtl;
}

.bb-banner {
	--bb-bg: #14213d;
	--bb-text: #ffffff;
	--bb-btn: #e0b34c;
	--bb-overlay: 0.35;
	position: relative;
	width: 100%;
	min-height: 200px;
	color: var(--bb-text);
	background-color: var(--bb-bg);
	overflow: hidden;
}

.bb-banner.bb-has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--bb-bg-image);
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.bb-banner.bb-has-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bb-bg);
	opacity: var(--bb-overlay);
	z-index: 1;
}

.bb-inner {
	position: relative;
	z-index: 2;
	min-height: 200px;
	padding: 22px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.bb-logo img {
	display: block;
	max-height: 48px;
	width: auto;
	max-width: 170px;
	object-fit: contain;
}

.bb-body {
	display: flex;
	flex-direction: column;
	align-items: inherit;
	gap: 10px;
}

.bb-heading {
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.7rem);
	line-height: 1.15;
	font-weight: 800;
	color: var(--bb-text);
}

.bb-subtext {
	margin: 0;
	font-size: clamp(0.85rem, 1.3vw, 1rem);
	line-height: 1.45;
	opacity: 0.95;
	color: var(--bb-text);
	max-width: 58ch;
}

.bb-btn {
	display: inline-block;
	background: var(--bb-btn);
	color: #14213d;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 10px 24px;
	border-radius: 999px;
	transition: transform .15s ease, filter .15s ease;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	white-space: nowrap;
	margin-top: 2px;
}

.bb-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: #14213d;
}

.bb-fulllink {
	display: contents;
	color: inherit;
	text-decoration: none;
}

.bb-close {
	position: absolute;
	top: 8px;
	inset-inline-end: 10px;
	z-index: 8;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}

.bb-close:hover {
	background: rgba(0, 0, 0, .6);
}

.bb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 7;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: #14213d;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	transition: background .15s ease, transform .15s ease;
}

.bb-nav:hover {
	background: #fff;
}

.bb-prev {
	inset-inline-end: 12px;
}

.bb-next {
	inset-inline-start: 12px;
}

.bb-dots {
	position: absolute;
	bottom: 10px;
	inset-inline: 0;
	z-index: 7;
	display: flex;
	justify-content: center;
	gap: 7px;
}

.bb-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.bb-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

.bb-layout-centered .bb-inner {
	text-align: center;
	align-items: center;
}

.bb-layout-left .bb-inner {
	align-items: flex-start;
	text-align: start;
}

.bb-layout-left .bb-body {
	align-items: flex-start;
}

.bb-layout-split.bb-has-bg::before,
.bb-layout-split.bb-has-bg::after {
	content: none;
}

.bb-layout-split .bb-inner {
	flex-direction: row;
	align-items: center;
	text-align: start;
	gap: 26px;
	padding: 0;
}

.bb-layout-split .bb-inner::before {
	content: "";
	flex: 0 0 40%;
	align-self: stretch;
	background-image: var(--bb-bg-image, none);
	background-size: cover;
	background-position: center;
	background-color: rgba(0, 0, 0, .12);
}

.bb-layout-split .bb-body {
	flex: 1 1 auto;
	align-items: flex-start;
	padding: 20px 28px 20px 0;
}

.bb-layout-split .bb-logo {
	display: none;
}

.bb-banner.bb-has-media .bb-inner {
	flex-direction: row;
	align-items: stretch;
	justify-content: flex-start;
	text-align: start;
	padding: 0;
	gap: 0;
}

.bb-has-media .bb-media {
	flex: 0 0 42%;
	align-self: stretch;
	overflow: hidden;
}

.bb-has-media .bb-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bb-has-media .bb-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-align: start;
	gap: 10px;
	padding: 22px 30px;
}

.bb-has-media .bb-body {
	align-items: flex-start;
}

.bb-layout-bar,
.bb-layout-bar .bb-inner {
	min-height: 84px;
}

.bb-layout-bar .bb-inner {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 12px 52px;
}

.bb-layout-bar .bb-logo img {
	max-height: 32px;
}

.bb-layout-bar .bb-body {
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.bb-layout-bar .bb-heading {
	font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.bb-layout-bar .bb-subtext {
	font-size: 0.88rem;
}

.bb-layout-bar .bb-btn {
	padding: 8px 18px;
	font-size: 0.88rem;
	margin-top: 0;
}

@media (max-width: 782px) {
	.bb-ad-slot {
		padding: 12px 0;
	}

	.bb-banner,
	.bb-inner {
		min-height: 170px;
	}

	.bb-inner {
		padding: 20px 20px;
	}

	.bb-nav {
		width: 32px;
		height: 32px;
		font-size: 20px;
	}

	.bb-banner.bb-has-media .bb-inner {
		flex-direction: column;
	}

	.bb-has-media .bb-media {
		flex: 0 0 auto;
		width: 100%;
		height: 130px;
	}

	.bb-has-media .bb-content {
		width: 100%;
		align-items: center;
		text-align: center;
		padding: 18px 20px;
	}

	.bb-has-media .bb-body {
		align-items: center;
	}

	.bb-layout-split .bb-inner {
		flex-direction: column;
		gap: 0;
	}

	.bb-layout-split .bb-inner::before {
		flex: 0 0 auto;
		width: 100%;
		min-height: 110px;
	}

	.bb-layout-split .bb-body {
		width: 100%;
		padding: 18px 18px;
		align-items: center;
		text-align: center;
	}

	.bb-layout-left .bb-inner {
		align-items: center;
		text-align: center;
	}

	.bb-layout-left .bb-body {
		align-items: center;
	}

	.bb-layout-bar,
	.bb-layout-bar .bb-inner {
		min-height: 0;
	}

	.bb-layout-bar .bb-inner {
		flex-direction: column;
		padding: 16px 44px;
		text-align: center;
	}
}

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

.bb-ad-slot.bb-closing {
	transition: opacity .3s ease, max-height .4s ease, padding .3s ease;
	opacity: 0;
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	overflow: hidden;
}
