/* cc-font-inherit-reset: some theme stylesheets set font-family directly on
 * span/a/strong (e.g. "p, a, strong, span { font-family: Poppins }"), which
 * stops a parent's Typography control from reaching inner text. Kept at the top
 * so explicit rules below and Elementor controls still win. */
.cc-book-hero :where(span, a, strong, b, em, i) {
	font-family: inherit;
}

.cc-book-hero {
	--cc-book-hero-content-col: 54%;
	--cc-book-hero-highlight: #0a4bdc;
	--cc-book-hero-highlight-from: #0a4bdc;
	--cc-book-hero-highlight-to: #3d8bff;
	--cc-book-hero-transition: 260ms;
	--cc-book-hero-button-lift: -2px;
	--cc-book-hero-icon-shift: 4px;
	--cc-book-hero-image-x: 0px;
	--cc-book-hero-image-y: 0px;
	--cc-book-hero-image-rotate: 0deg;
	--cc-book-hero-float-distance: -12px;
	--cc-book-hero-float-duration: 6s;
	--cc-book-hero-glow: rgba(58, 125, 255, 0.32);
	--cc-book-hero-glow-size: 125%;
	--cc-book-hero-ring: rgba(255, 255, 255, 0.85);
	--cc-book-hero-ring-glow: rgba(96, 156, 255, 0.4);
	--cc-book-hero-ring-size: 112%;
	--cc-book-hero-ring-width: 2px;
	--cc-book-hero-decor-x: 55%;
	--cc-book-hero-decor-y: 45%;
	background: linear-gradient(115deg, #f9fbfe 0%, #f2f6fc 48%, #e1eafb 100%);
	box-sizing: border-box;
	overflow: hidden;
	padding: 88px 48px 80px;
	position: relative;
	width: 100%;
}

/* Optional background image + tint, painted above the section background. */
.cc-book-hero__bg,
.cc-book-hero__overlay {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.cc-book-hero__bg {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.cc-book-hero__inner {
	align-items: center;
	box-sizing: border-box;
	column-gap: 48px;
	display: flex;
	flex-wrap: wrap;
	margin: 0 auto;
	max-width: 1360px;
	position: relative;
	row-gap: 56px;
	width: 100%;
	z-index: 1;
}

/* ---- Text column ---------------------------------------------------- */

.cc-book-hero__content {
	align-items: flex-start;
	box-sizing: border-box;
	display: flex;
	flex: 0 1 var(--cc-book-hero-content-col);
	flex-direction: column;
	min-width: 0;
	position: relative;
	z-index: 2;
}

.cc-book-hero__eyebrow {
	align-items: center;
	display: flex;
	gap: 20px;
	margin: 0 0 32px;
}

.cc-book-hero__eyebrow-line {
	background: #f2b01e;
	border-radius: 2px;
	display: block;
	flex: 0 0 auto;
	height: 3px;
	width: 44px;
}

.cc-book-hero__eyebrow-text {
	color: #0a2a6b;
	font-family: "Archivo", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.42em;
	line-height: 20px;
	text-transform: uppercase;
}

.cc-book-hero__title {
	color: #0a1240;
	font-family: "Archivo", sans-serif;
	font-size: var(--cc-fc-type-h1-size, 72px);
	font-style: normal;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: var(--cc-fc-type-h1-line-height, 76px);
	margin: 0 0 32px;
	max-width: 820px;
	overflow-wrap: break-word;
}

.cc-book-hero__title .cc-title--highlight {
	color: var(--cc-book-hero-highlight);
}

.cc-book-hero--highlight-gradient .cc-book-hero__title .cc-title--highlight {
	-webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg, var(--cc-book-hero-highlight-from), var(--cc-book-hero-highlight-to));
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.cc-book-hero__description,
.cc-book-hero__description p {
	color: #4a4f5c;
	font-family: "Poppins", sans-serif;
	font-size: var(--cc-fc-type-body-size, 18px);
	font-style: normal;
	font-weight: 400;
	line-height: var(--cc-fc-type-body-line-height, 30px);
}

.cc-book-hero__description {
	margin: 0 0 36px;
	max-width: 740px;
}

.cc-book-hero__description p {
	margin: 0;
}

.cc-book-hero__description p + p {
	margin-top: 14px;
}

/* Links follow the description color by default (Style > Description > Link Color overrides). */
.cc-book-hero__description a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cc-book-hero__description strong,
.cc-book-hero__description b {
	color: #1b2133;
	font-weight: 600;
}

/* ---- Buttons --------------------------------------------------------- */

.cc-book-hero__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 24px 52px;
	margin: 0 0 44px;
}

.cc-book-hero__button {
	align-items: center;
	background: linear-gradient(180deg, #0f3fb8 0%, #0a2f9a 100%);
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: 0 14px 28px -10px rgba(10, 47, 154, 0.55);
	box-sizing: border-box;
	color: #fff;
	display: inline-flex;
	font-family: "Poppins", sans-serif;
	font-size: 19px;
	font-style: normal;
	font-weight: 600;
	gap: 14px;
	justify-content: center;
	line-height: 1.2;
	min-height: 64px;
	min-width: 290px;
	padding: 16px 36px;
	text-decoration: none;
	transition: transform var(--cc-book-hero-transition) ease, box-shadow var(--cc-book-hero-transition) ease, background var(--cc-book-hero-transition) ease, color var(--cc-book-hero-transition) ease, border-color var(--cc-book-hero-transition) ease, filter var(--cc-book-hero-transition) ease;
}

/* Brighten instead of swapping the background, so a custom Normal background
   keeps its color on hover (set a Hover background to change it). */
.cc-book-hero__button:hover,
.cc-book-hero__button:focus-visible {
	box-shadow: 0 18px 32px -10px rgba(10, 47, 154, 0.6);
	filter: brightness(1.1);
	color: #fff;
	text-decoration: none;
	transform: translateY(var(--cc-book-hero-button-lift));
}

.cc-book-hero__button:focus-visible,
.cc-book-hero__link:focus-visible {
	outline: 3px solid #69a3ff;
	outline-offset: 3px;
}

.cc-book-hero__button-icon {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
	transition: transform var(--cc-book-hero-transition) ease, color var(--cc-book-hero-transition) ease;
}

.cc-book-hero__button-icon svg {
	display: block;
	height: 1em;
	width: 1em;
}

.cc-book-hero__button-icon svg:not([fill="none"]) {
	fill: currentColor;
}

.cc-book-hero__button:hover .cc-book-hero__button-icon,
.cc-book-hero__button:focus-visible .cc-book-hero__button-icon {
	transform: translateX(var(--cc-book-hero-icon-shift));
}

.cc-book-hero__link {
	border-bottom: 2px solid currentColor;
	color: #0b3bb0;
	display: inline-block;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	padding: 0 0 6px;
	text-decoration: none;
	transition: color var(--cc-book-hero-transition) ease, border-color var(--cc-book-hero-transition) ease;
}

.cc-book-hero__link:hover,
.cc-book-hero__link:focus-visible {
	color: #0a2a80;
	text-decoration: none;
}

/* ---- Quote ----------------------------------------------------------- */

.cc-book-hero__quote {
	border-left: 2px solid #cfd5e0;
	box-sizing: border-box;
	column-gap: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	max-width: 560px;
	padding: 6px 0 6px 28px;
}

.cc-book-hero__quote.has-mark {
	grid-template-columns: auto minmax(0, 1fr);
}

.cc-book-hero__quote-mark {
	color: #c3cad8;
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 72px;
	font-style: normal;
	font-weight: 700;
	line-height: 0.8;
	margin-top: 2px;
}

.cc-book-hero__quote-text {
	background: none;
	border: 0;
	color: #3e4352;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	quotes: none;
}

.cc-book-hero__quote-text::before,
.cc-book-hero__quote-text::after {
	content: none;
}

.cc-book-hero__quote-cite {
	color: #3e4352;
	font-family: "Poppins", sans-serif;
	font-size: 13.5px;
	font-style: normal;
	font-weight: 400;
	line-height: 20px;
	margin-top: 10px;
}

/* ---- Image + decoration ---------------------------------------------- */

.cc-book-hero__media {
	align-items: center;
	display: flex;
	flex: 1 1 280px;
	justify-content: center;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.cc-book-hero__image-wrap {
	display: flex;
	justify-content: inherit;
	position: relative;
	width: 100%;
	z-index: 1;
}

.cc-book-hero__image {
	display: block;
	height: auto;
	max-width: 640px;
	transform: translate(var(--cc-book-hero-image-x), var(--cc-book-hero-image-y)) rotate(var(--cc-book-hero-image-rotate));
	width: 100%;
}

.cc-book-hero--decor .cc-book-hero__media::before,
.cc-book-hero--decor .cc-book-hero__media::after {
	aspect-ratio: 1;
	content: "";
	left: var(--cc-book-hero-decor-x);
	pointer-events: none;
	position: absolute;
	top: var(--cc-book-hero-decor-y);
	transform: translate(-50%, -50%);
	z-index: 0;
}

.cc-book-hero--decor .cc-book-hero__media::before {
	background: radial-gradient(closest-side, var(--cc-book-hero-glow), transparent);
	width: var(--cc-book-hero-glow-size);
}

.cc-book-hero--decor .cc-book-hero__media::after {
	border: var(--cc-book-hero-ring-width) solid var(--cc-book-hero-ring);
	border-radius: 50%;
	box-shadow: 0 0 48px var(--cc-book-hero-ring-glow), inset 0 0 48px var(--cc-book-hero-ring-glow);
	box-sizing: border-box;
	opacity: 0.9;
	width: var(--cc-book-hero-ring-size);
}

.cc-book-hero--float .cc-book-hero__image-wrap {
	animation: cc-book-hero-float var(--cc-book-hero-float-duration) ease-in-out infinite;
}

@keyframes cc-book-hero-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(var(--cc-book-hero-float-distance));
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-book-hero--float .cc-book-hero__image-wrap {
		animation: none;
	}

	.cc-book-hero__button,
	.cc-book-hero__button-icon {
		transition: none;
	}
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 1200px) {
	.cc-book-hero {
		padding: 72px 40px;
	}

	.cc-book-hero__inner {
		column-gap: 32px;
	}
}

@media (max-width: 1024px) {
	.cc-book-hero {
		--cc-book-hero-content-col: 100%;
		padding: 64px 32px;
	}

	.cc-book-hero__title {
		max-width: none;
	}

	.cc-book-hero__image {
		max-width: 520px;
	}
}

@media (max-width: 767px) {
	.cc-book-hero {
		padding: 48px 20px;
	}

	.cc-book-hero__inner {
		row-gap: 40px;
	}

	.cc-book-hero__eyebrow {
		gap: 14px;
		margin-bottom: 24px;
	}

	.cc-book-hero__eyebrow-line {
		width: 32px;
	}

	.cc-book-hero__eyebrow-text {
		font-size: 12px;
		letter-spacing: 0.3em;
	}

	.cc-book-hero__title {
		letter-spacing: -0.015em;
		margin-bottom: 24px;
	}

	.cc-book-hero__title br {
		display: none;
	}

	.cc-book-hero__description {
		margin-bottom: 28px;
	}

	.cc-book-hero__actions {
		gap: 20px 32px;
		margin-bottom: 36px;
		width: 100%;
	}

	.cc-book-hero__button {
		flex: 1 1 100%;
		font-size: 17px;
		min-height: 56px;
		min-width: 0;
	}

	.cc-book-hero__quote {
		padding-left: 20px;
	}

	.cc-book-hero__quote-mark {
		font-size: 56px;
	}

	.cc-book-hero__quote-text br {
		display: none;
	}
}

@media (max-width: 479px) {
	.cc-book-hero {
		padding: 40px 16px;
	}
}
