/* The home (templates/home.html.j2), as the live site drew it: the values of its two
   Elementor posts (the hero, 15681, and the page, 1300) and of the Elementor and theme
   rules they matched; static/sections.css draws the sections. Breakpoints are Elementor's: tablet up to 1024px, mobile up to 767px. */

/* the hero: title, intro, search box and (tablet and mobile) a logo grid on the left,
   the banner image on the right; the image's height sets the hero's */
.home-hero {
	width: 100%;
	padding: 0 3px;
	background-color: #13396F;
}
.home-hero-inner {
	display: flex;
	max-width: 992px;
	margin: 0 auto;
}
.home-hero-text {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	width: 50%;
	margin-bottom: 1px;
	padding-right: 5px;
}
.home-hero h1 {
	margin: 0 0 5px;
	color: #FFFFFF;
	font-size: 35px;
	font-weight: 600;
	line-height: 1;
	text-align: left;
}
/* custom.css holds every h1 to a 5px bottom margin; the intro adds the widget gap */
.home-hero-intro {
	margin: 5px 0;
	color: #FFFFFFA6;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
}
.home-hero-intro p {
	margin: 0;
}
.home-hero .custom-search-form {
	margin-bottom: 35px;
}
.home-hero .search-input-wrapper {
	display: block;
}
.home-hero .mobile-image-grid {
	display: none;
}
.home-hero-image {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	width: 50%;
	pointer-events: none;
	user-select: none;
}
.home-hero-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* the page's sections (static/sections.css), the last one further from the footer */
.home-page .content-section:last-child {
	margin-bottom: 50px;
}
.home-page .content-section > .content-upcoming {
	margin: 20px 0 15px;
}
.home-button {
	text-align: center;
}
.home-button a {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 100px;
	background-color: #13396F;
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1;
	transition: background-color .3s;
}
.home-button a:hover,
.home-button a:focus {
	background-color: #226CD4;
	color: #FFFFFF;
}

/* the index banners: two per row, the upload under the blue at half opacity, the whole
   card the link */
.content-section > .home-cards {
	display: flex;
	gap: 10px;
	min-height: 100px;
	margin-bottom: 0;
}
.home-cards + .home-cards {
	margin-top: 10px;
}
.home-card {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	padding: 20px;
	border: 1px solid #E6E6E6;
	border-radius: 11px;
	background: var(--card-image) center / cover no-repeat, #FFFFFF;
	isolation: isolate;
	transition: opacity .2s ease-out;
}
.home-card::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: 11px;
	background-color: #13396F;
	opacity: .5;
	content: "";
}
.home-card:hover {
	opacity: .8;
}
.home-card h3 {
	width: 100%;
	margin: 0 !important; /* over custom.css' h3 margins */
	color: #FFFFFF;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-shadow: 0 0 10px rgba(0, 0, 0, .53);
}
.home-card a,
.home-card a:hover {
	color: inherit;
}
.home-card a::after {
	position: absolute;
	inset: 0;
	content: "";
}

@media (max-width: 1024px) {
	.home-hero {
		padding: 0;
		background: #13396F var(--home-backdrop) no-repeat;
		background-size: cover;
	}
	.home-hero-text {
		width: 100%;
		margin: 5px 0 0;
		padding: 35px;
	}
	.home-hero h1 {
		text-align: center;
	}
	.home-hero-intro {
		margin-bottom: 35px;
	}
	.home-hero .mobile-image-grid {
		display: flex;
		margin-bottom: 30px;
	}
	.home-hero-image {
		display: none;
	}
	.home-page .content-section:last-child {
		margin-bottom: 65px;
	}
	.home-card {
		padding: 15px;
	}
	.home-card h3 {
		font-size: 22px;
	}
}
@media (max-width: 768px) {
	.content-section > .home-cards {
		flex-wrap: wrap;
	}
	.home-card {
		flex-basis: 100%;
	}
}
@media (max-width: 767px) {
	.home-hero {
		background-position: center left;
	}
	.home-hero-text {
		margin-top: 10px;
		padding: 15px;
	}
	.home-hero h1 {
		font-size: 26px;
		line-height: 1.1;
		text-align: left;
	}
	.home-hero-intro {
		margin-bottom: 30px;
		font-size: 14px;
	}
}
@media (max-width: 576px) {
	.home-card h3 {
		font-size: 18px;
	}
}
