/* =============================================================================
 * BSMM CTA Banners — COMPACT block (icon + eyebrow + title + desc + button).
 * Compact horizontal layout for ~700–900px columns.
 *
 * Per-instance CSS variables (via inline style):
 *   --bsmm-color           brand color (hex)
 *   --bsmm-color-rgb       brand color "r, g, b" for rgba()
 *   --bsmm-gradient-soft   optional gradient (Instagram, SoundCloud)
 *   --bsmm-icon-bg         optional icon-tile background; falls back to 10% brand
 *   --bsmm-icon-fg         optional icon-tile foreground; falls back to brand
 * =========================================================================== */

.bsmm-cta,
.bsmm-cta * { box-sizing: border-box; }

.bsmm-cta.bsmm-cta {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	color: #304B65 !important;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-decoration: none !important;

	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 24px;

	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);

	margin: 32px auto;
	max-width: 1000px;
	transition: transform 400ms ease, box-shadow 400ms ease;
	cursor: pointer;
}

.bsmm-cta:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(var(--bsmm-color-rgb), 0.18);
}

.bsmm-cta .bsmm-cta__glow {
	position: absolute;
	right: -60px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 999px;
	background: var(--bsmm-color);
	filter: blur(70px);
	opacity: 0;
	transition: opacity 600ms ease;
	pointer-events: none;
	z-index: 0;
}
.bsmm-cta:hover .bsmm-cta__glow { opacity: 0.12; }

.bsmm-cta .bsmm-cta__body {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 auto;
	min-width: 0;
}

.bsmm-cta .bsmm-cta__icon-tile {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 400ms ease;
	background: var(--bsmm-icon-bg, rgba(var(--bsmm-color-rgb), 0.1));
	color: var(--bsmm-icon-fg, var(--bsmm-color));
}
.bsmm-cta .bsmm-cta__icon-tile svg {
	width: 28px;
	height: 28px;
	display: block;
}
.bsmm-cta:hover .bsmm-cta__icon-tile {
	transform: scale(1.06) rotate(3deg);
}

.bsmm-cta .bsmm-cta__lead {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	flex: 1 1 auto;
}

.bsmm-cta .bsmm-cta__eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.2;
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: var(--bsmm-color);
	display: block;
}
.bsmm-cta .bsmm-cta__eyebrow--gradient {
	background-image: var(--bsmm-gradient-soft);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	-webkit-text-fill-color: transparent;
}

.bsmm-cta .bsmm-cta__title {
	font-family: 'Bebas Neue', 'Poppins', 'Arial Narrow', sans-serif !important;
	font-size: 28px;
	font-weight: 700;
	color: #304B65 !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
	margin: 0 0 4px !important;
	padding: 0 !important;
	transition: color 300ms ease;
}
.bsmm-cta:hover .bsmm-cta__title { color: var(--bsmm-color) !important; }

.bsmm-cta .bsmm-cta__desc {
	font-size: 13.5px;
	color: #64748b !important;
	line-height: 1.45;
	margin: 0 !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bsmm-cta .bsmm-cta__cta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff !important;
	flex-shrink: 0;
	white-space: nowrap;
	transition: box-shadow 300ms ease;
}
.bsmm-cta .bsmm-cta__cta--solid {
	background: var(--bsmm-color);
	box-shadow: 0 6px 16px -8px rgba(var(--bsmm-color-rgb), 0.7);
}
.bsmm-cta .bsmm-cta__cta--gradient {
	background: var(--bsmm-gradient-soft, var(--bsmm-color));
	box-shadow: 0 6px 16px -8px rgba(var(--bsmm-color-rgb), 0.7);
}
.bsmm-cta:hover .bsmm-cta__cta {
	box-shadow: 0 10px 22px -8px rgba(var(--bsmm-color-rgb), 0.9);
}

.bsmm-cta .bsmm-cta__cta svg,
.bsmm-cta .bsmm-cta__arrow-wrap svg {
	width: 16px;
	height: 16px;
	transition: transform 300ms ease;
	flex-shrink: 0;
}
.bsmm-cta:hover .bsmm-cta__cta svg,
.bsmm-cta:hover .bsmm-cta__arrow-wrap svg {
	transform: translateX(3px);
}

@media (max-width: 560px) {
	.bsmm-cta.bsmm-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px;
	}
	.bsmm-cta .bsmm-cta__cta { width: 100%; }
}

/* ---------- Editor-only ---------- */

.editor-styles-wrapper .bsmm-cta { max-width: none; }
.bsmm-cta--editor { cursor: default; }

.bsmm-cta__cta .rich-text [data-rich-text-placeholder]::after {
	color: rgba(255, 255, 255, 0.7) !important;
}

.bsmm-cta .rich-text {
	font-family: inherit;
	color: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}
.bsmm-cta h3.bsmm-cta__title.rich-text {
	font-family: 'Bebas Neue', 'Poppins', 'Arial Narrow', sans-serif !important;
}
