/* Hero of hospitalcampus.php: gradient as on the webinar landing pages (WebinarLandingHero.css),
   copy left, the teaser video as a card right; CTA and video button share the row below, so they
   sit on one line. Stacked below 1200px in source order. */

.rd-hc-hero {
	position: relative;
	padding-block: var(--rd-spacing-huge);
	background: linear-gradient(115deg, var(--rd-blue-1000) 18%, var(--rd-blue-800) 72%, var(--rd-blue-600));
	color: var(--rd-font-light);
}

/* The page centres every top-level section with !important (inline style of hospitalcampus.php). */
.rd-homepage > .rd-hc-hero {
	text-align: left !important;
}

.rd-hc-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
	grid-template-areas:
		'COPY MEDIA'
		'CTA VIDEOBTN';
	align-items: center;
	gap: var(--rd-spacing-lg) var(--rd-spacing-xxx-lg);
}

.rd-hc-hero-copy {
	grid-area: COPY;
}

.rd-hc-hero-cta {
	grid-area: CTA;
	justify-self: start;
}

/* Eyebrow: quieter than the page default so the headline leads. Scoped like the rule above to
   beat the .rd-facilities-landing eyebrow of care-facility-pages.css. */
.rd-homepage > .rd-hc-hero .tg_o_h1 {
	font-size: var(--rd-fontsize-5);
	font-weight: var(--rd-fontweights-open-sans-1);
}

/* The space below the headline carries the swoosh. */
.rd-hc-hero .tg_o_h1 + h1 {
	color: var(--rd-font-light);
	margin-bottom: var(--rd-spacing-lg);
}

/* The span wraps in the copy column; as an inline box its ::after would hang off the last
   line fragment only. As a block the swoosh runs under the whole span. */
.rd-hc-hero h1 .rd-hc-hero-swoosh {
	display: inline-block;
	position: relative;
}

/* Replaces the generic headline swoosh of redesign.css with the drawn one: full span width, below the line. */
.rd-hc-hero h1 .rd-hc-hero-swoosh::after {
	top: 100%;
	bottom: auto;
	left: 0;
	width: 100%;
	height: 18px;
	margin-left: 0;
	background: url(/src/img/2024/svg/svg_img/hc-headline-swoosh.svg) center / 100% 100% no-repeat;
	mask-image: none;
	-webkit-mask-image: none;
}

.rd-hc-hero-price {
	font-size: var(--rd-fontsize-5);
	line-height: 29px;
	margin-bottom: var(--rd-spacing-big);
}

.rd-hc-hero-benefits {
	list-style: none;
	padding: 0;
	margin: 0;
	font-weight: var(--rd-fontweights-open-sans-1);
}

/* On the li: the global li line-height would override one inherited from the list. */
.rd-hc-hero-benefits li {
	line-height: 36px;
}

.rd-hc-hero-benefits li::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 9px;
	border-left: 3px solid var(--rd-hc-blue-100);
	border-bottom: 3px solid var(--rd-hc-blue-100);
	transform: rotate(-45deg);
	margin: -6px var(--rd-spacing-sm) 0 0;
	vertical-align: middle;
}

.rd-hc-hero-media {
	grid-area: MEDIA;
	position: relative;
}

.rd-hc-hero-media video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--rd-borderradius-border-xl);
	background: var(--rd-blue-1000);
	box-shadow: var(--rd-shadow-level-2);
}

.rd-hc-hero-video-btn {
	grid-area: VIDEOBTN;
	justify-self: start;
}

/* Stat card: the hero's Störer (max. one per page), overlapping the bottom right corner of the video. */
.rd-hc-hero-stat {
	position: absolute;
	right: calc(-1 * var(--rd-spacing-lg));
	bottom: calc(-1 * var(--rd-spacing-x-big));
	display: flex;
	align-items: center;
	gap: var(--rd-spacing-md);
	max-width: 330px;
	padding: var(--rd-spacing-md) var(--rd-spacing-big) var(--rd-spacing-md) var(--rd-spacing-md);
	border-radius: var(--rd-borderradius-border-lg);
	background: var(--rd-font-light);
	box-shadow: var(--rd-shadow-level-2);
	color: var(--rd-hc-text-subtle);
	font-size: var(--rd-fontsize-4);
	line-height: 1.35;
}

.rd-hc-hero-stat .rd-icon-coins-hand {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--rd-borderradius-border-big);
	background: var(--rd-blue-200);
}

.rd-hc-hero-stat .rd-icon-coins-hand::before {
	width: 26px;
	height: 26px;
	background-color: var(--rd-font-dark);
}

.rd-hc-hero-stat p {
	margin: 0;
}

.rd-hc-hero-stat-value {
	display: block;
	font-size: var(--rd-fontsize-12);
	line-height: 1.1;
	font-weight: var(--rd-fontweights-open-sans-0);
	color: var(--rd-font-dark);
}

.rd-hc-hero-stat sup,
.rd-hc-hero-footnote sup {
	font-size: 0.7em;
}

/* Anchored bottom right in the hero; as a .container it lines up with the content edge. */
.rd-hc-hero-footnote {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--rd-spacing-x-big);
	margin: 0 auto;
	font-size: var(--rd-fontsize-3);
	color: var(--rd-hc-blue-100);
	text-align: right;
}

/* Copy first, video card below, everything centred; the square mobile cut of the teaser plays here
   (see the <source> media query in hospitalcampus.php, which must match this breakpoint). */
@media (max-width: 1199px) {
	.rd-homepage > .rd-hc-hero {
		text-align: center !important;
	}

	.rd-hc-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: 'COPY' 'CTA' 'MEDIA' 'VIDEOBTN';
	}

	/* Centred as a block, left-aligned inside, so the checkmarks stay in one column. */
	.rd-hc-hero-benefits {
		display: inline-block;
		text-align: left;
	}

	.rd-hc-hero-cta,
	.rd-hc-hero-video-btn {
		justify-self: center;
	}

	.rd-hc-hero-media {
		width: 100%;
		max-width: 560px;
		margin: var(--rd-spacing-x-big) auto 0;
	}

	.rd-hc-hero-media video {
		aspect-ratio: 1;
	}

	.rd-hc-hero-stat {
		text-align: left;
	}

	/* Clears the stat card hanging below the video. */
	.rd-hc-hero-video-btn {
		margin-top: var(--rd-spacing-x-big);
	}
}

@media (max-width: 991px) {
	.rd-hc-hero {
		padding-block: var(--rd-spacing-xx-lg);
	}

	.rd-hc-hero-video-btn {
		margin-top: 0;
	}

	/* Under the video instead of hanging over the edge, slightly overlapping it. */
	.rd-hc-hero-stat {
		position: relative; /* not static: the video would paint over the overlap */
		right: auto;
		bottom: auto;
		max-width: none;
		margin: calc(-1 * var(--rd-spacing-x-big)) var(--rd-spacing-md) 0;
	}

	/* !important: HomepageNew.css forces a bold mobile eyebrow on every page. */
	.rd-homepage > .rd-hc-hero .tg_o_h1 {
		font-size: var(--rd-fontsize-4);
		font-weight: var(--rd-fontweights-open-sans-1) !important;
	}

	.rd-hc-hero .tg_o_h1 + h1 {
		margin-bottom: var(--rd-spacing-md);
	}

	.rd-hc-hero h1 .rd-hc-hero-swoosh::after {
		display: none;
	}
}

/* Phones: the CTA spans the column like the video card below it. */
@media (max-width: 575px) {
	.rd-hc-hero-cta {
		justify-self: stretch;
	}
}
