/* Gold Coast Schools — QE Split Hero (RE-978)
Page: courses/real-estate/sales-associate-pre-license-course/
Enqueued only on that page — see enqueue_gc_split_hero_assets() in functions.php. */

/* Hide the original single-panel hero content once the split hero is injected. */
#courses-hero-section-v2 .opti-original-hero-content {
	display: none !important;
}

/* Override the section's default gradient background, only when the split hero is present. */
#courses-hero-section-v2:has(.opti-split-hero) {
	background: #ffffff !important;
}

.opti-split-hero {
	display: flex;
	width: 100%;
	font-family: inherit;
	/* No border-radius/overflow here — rounding is per-panel instead so the
	Affirm tooltip can pop outside the panel box on narrow screens. */
}

.opti-split-hero__panel {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 24px;
	padding: 56px 64px;
	box-sizing: border-box;
}

.opti-split-hero__panel--online {
	background-color: #d2deed;
	color: #292929;
	border-radius: 24px 0 0 24px;
}

.opti-split-hero__panel--in-person {
	background-color: #215ba8;
	color: #ffffff;
	border-radius: 0 24px 24px 0;
}

.opti-split-hero__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* margin-top: auto pins the CTA to the bottom of the panel regardless of
how much content is above it, so both panels' CTAs line up. */
.opti-split-hero__cta-row {
	position: relative;
	margin-top: auto;
	width: 100%;
}

.opti-split-hero__eyebrow {
	font-family: 'Proxima Nova', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 4.76px;
	text-transform: uppercase;
	margin: 0;
}

.opti-split-hero__panel--online .opti-split-hero__eyebrow {
	color: #215ba8;
}

.opti-split-hero__panel--in-person .opti-split-hero__eyebrow {
	color: #d2deed;
}

.opti-split-hero__heading {
	font-family: 'Proxima Nova', sans-serif;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.19;
	margin: 0;
}

.opti-split-hero__body {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	margin: 0;
	max-width: 90%;
}

.opti-split-hero__bullets {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	margin: 0;
	padding: 0 0 0 24px;
	max-width: 90%;
	list-style: disc;
}

.opti-split-hero__bullets li {
	margin: 0 0 8px 0;
}

.opti-split-hero__bullets li:last-child {
	margin-bottom: 0;
}

.opti-split-hero__meta {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.4;
	margin: 0;
}

.opti-split-hero__price {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 32px;
	line-height: 1.4;
	margin: 0;
}

.opti-split-hero__price-asterisk {
	font-size: 22px;
}

.opti-split-hero__panel--online .opti-split-hero__price {
	color: #215ba8;
}

/* Affirm financing disclaimer tooltip. Static markup, not a live Affirm
widget — the copy is set in gc-split-hero.js and must be updated there
if terms change. */
.opti-split-hero__affirm-terms {
	/* Absolutely positioned so it doesn't add height to .cta-row, which
	would break the CTA alignment between panels. */
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 8px;
	display: inline-block;
	color: #000000;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.opti-split-hero__affirm-tooltip {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 0;
	width: 320px;
	max-width: calc(100vw - 32px);
	padding: 16px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	z-index: 100;
}

.opti-split-hero__affirm-tooltip::after {
	position: absolute;
	top: 100%;
	left: 20px;
	width: 0;
	height: 0;
	content: "";
	border-width: 8px;
	border-style: solid;
	border-color: #ffffff transparent transparent;
}

.opti-split-hero__affirm-terms:hover .opti-split-hero__affirm-tooltip,
.opti-split-hero__affirm-terms:focus-within .opti-split-hero__affirm-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.opti-split-hero__affirm-tooltip-title {
	display: block;
	margin-bottom: 8px;
	color: #222222;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.opti-split-hero__affirm-tooltip-text {
	display: block;
	color: #555555;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}

.opti-split-hero__schedule {
	border: 2px solid #d2deed;
	border-radius: 8px;
	padding: 14px 20px 14px 28px;
	display: inline-block;
	width: fit-content;
	box-sizing: border-box;
	min-width: min(310px, 100%); /* fixed 310px overflowed narrow (320px) viewports */
	margin-top: 20px;
}

.opti-split-hero__schedule-label {
	font-family: 'Proxima Nova', sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: 4.08px;
	text-transform: uppercase;
	color: #d2deed;
	margin: 0 0 4px 0;
}

.opti-split-hero__schedule-value {
	font-family: 'Proxima Nova', sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.4;
	color: #ffffff;
	margin: 0; /* overrides the theme's global p margin-bottom */
}

.opti-split-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 220px;
	height: 54px;
	box-sizing: border-box;
	border-radius: 16px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s ease;
}

.opti-split-hero__cta:hover {
	opacity: 0.85;
}

.opti-split-hero__panel--online .opti-split-hero__cta {
	background-color: #215ba8;
	color: #ffffff;
}

.opti-split-hero__panel--in-person .opti-split-hero__cta {
	background-color: #fbb040;
	color: #292929;
}

/* Mobile: stack panels vertically */
@media (max-width: 900px) {
	.opti-split-hero {
		flex-direction: column;
		min-height: 0;
	}
	.opti-split-hero__panel {
		padding: 40px 24px;
	}
	.opti-split-hero__panel--online {
		border-radius: 24px 24px 0 0;
	}
	.opti-split-hero__panel--in-person {
		border-radius: 0 0 24px 24px;
	}
	.opti-split-hero__heading {
		font-size: 30px;
	}
	/* #courses-hero-section-v2's own 50px bottom padding plus
	#learning-format's 50px top padding (100px combined, pre-existing on
	every course page) is too much dead space on small screens. Tightened
	only when our variant is active. */
	#courses-hero-section-v2:has(.opti-split-hero) {
		padding-bottom: 24px !important;
	}
}
