/**
 * Event detail hero, three variants plus webinar treatment.
 *
 * Variant modifier classes from field_event_variant:
 *   .event-hero--default    dark hero, media right
 *   .event-hero--hosted     centered, no media, byline
 *   .event-hero--cobranded  media right with partner logo card + byline
 */

.event-hero {
	background-color: #2D2F3B; /* verify against mock: could be #122E52 navy */
	border-radius: 12px;
	color: #FFFFFF;
	margin: 0 auto;
	overflow: hidden;
	padding: 40px 36px;
	/* Inset card, not full bleed. */
	width: min(1320px, calc(100% - 48px));
}

.event-hero__inner {
	align-items: stretch;
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(12, 1fr);
}

.event-hero__main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	grid-column: span 12;
	justify-content: center;
}

.event-hero--has-image .event-hero__main {
	grid-column: span 7;
}

.event-hero__media {
	display: none;
	grid-column: span 5;
	position: relative;
}

.event-hero--has-image .event-hero__media {
	display: block;
	margin: -40px -48px -40px 0;
}

/* Hosted variant: centered column, no media. */
.event-hero--hosted .event-hero__main {
	align-items: center;
	margin: 0 auto;
	max-width: 760px;
	text-align: center;
}

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

.event-hero__title {
	color: #FFFFFF;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
}

.event-hero__subheading {
	font-size: 18px;
	font-weight: 300;
	line-height: 24px;
	margin: 0;
}

.event-hero__byline {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

.event-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.event-hero--hosted .event-hero__tags {
	justify-content: center;
}

.event-hero__tag {
	background-color: rgba(237, 251, 255, 0.14);
	border-radius: 1000px;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 12px;
}

/* Date / venue / register panel ----------------------------------------- */

.event-hero__schedule {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.event-hero__panel {
	align-items: center;
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 20px 32px;
	padding: 16px 20px;
}

.event-hero__calendar {
	align-items: center;
	background-color: #253FD6;
	border-radius: 8px;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
	min-width: 72px;
	padding: 10px 12px;
}

.event-hero__calendar-dow {
	font-size: 13px;
	font-weight: 400;
}

.event-hero__calendar-day {
	font-size: 32px;
	font-weight: 600;
	margin: 2px 0;
}

.event-hero__calendar-month {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.event-hero__when,
.event-hero__where {
	display: block;
	line-height: 20px;
}

.event-hero__weekday,
.event-hero__venue {
	font-size: 14px;
	font-weight: 300;
	opacity: 0.85;
	vertical-align: middle;
}

.event-hero__dates,
.event-hero__city {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-top: 4px;
}

.event-hero__times,
.event-hero__address {
	display: block;
	font-size: 14px;
	font-weight: 300;
	margin-top: 2px;
	opacity: 0.85;
}

.event-hero__times p {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
}

.event-hero__register {
	background-color: #03CFFF;
	border-radius: 1000px;
	color: #2D2F3B;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	margin-left: auto;
	padding: 14px 28px;
	text-decoration: none;
	transition: transform 160ms ease, filter 160ms ease;
	white-space: nowrap;
}

.event-hero__register:hover,
.event-hero__register:focus-visible {
	background: linear-gradient(225deg, #03CFFF 0.53%, #2E5FFF 100.53%);
	color: #FFFFFF;
	transform: translateY(-2px);
}

/* Back link --------------------------------------------------------------- */

.event-hero__back {
	align-items: center;
	color: #03CFFF;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	text-decoration: none;
}

.event-hero--hosted .event-hero__back {
	justify-content: center;
}

.event-hero__back:hover {
	color: #FFFFFF;
}

.event-hero__back-icon {
	fill: currentColor;
	height: 14px;
	transform: rotate(180deg); /* sprite arrow-right flipped to point back */
	width: 14px;
}

/* Page ground ------------------------------------------------------------- */

.event-hero-band {
	background-color: #EEEEEE;
	padding: 48px 0 40px;
}

/* Media column ------------------------------------------------------------ */

.event-hero__image {
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	width: 100%;
}

.event-hero__partner-card {
	background-color: #FFFFFF;
	border-radius: 10px 0 0 0;
	bottom: 0;
	display: inline-flex;
	padding: 12px 16px;
	position: absolute;
	right: 0;
}

.event-hero__partner-logo {
	display: block;
	height: 32px;
	width: auto;
}

@media (max-width: 575.98px) {
	.event-hero {
		padding: 24px 8px;
	}

	.event-hero--has-image .event-hero__media {
		margin: 0 -20px -24px;
	}
}

@media (max-width: 991.98px) {
	.event-hero--has-image .event-hero__main,
	.event-hero__media {
		grid-column: span 12;
	}

	.event-hero--has-image .event-hero__media {
		margin: 0 -48px -40px;
	}

	.event-hero__title {
		font-size: 32px;
	}

	.event-hero__register {
		margin-left: 0;
	}
}

.event-hero__panel-icon {
	fill: #03CFFF;
	height: 18px;
	margin-right: 8px;
	vertical-align: -4px;
	width: 18px;
}

.event-hero__back {
	color: #FFFFFF;
}
