/* Elementor homepage integration and dynamic Amber sections. */
.elementor-page .elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

.home-banner {
	position: relative;
	width: 100%;
	max-width: none !important;
	padding: 0 !important;
	overflow: hidden;
	background: #b6151d;
}

.home-banner .elementor-widget-image-carousel,
.home-banner .elementor-widget-container,
.home-banner .elementor-image-carousel-wrapper {
	width: 100%;
}

.home-banner .swiper-slide {
	line-height: 0;
}

.home-banner .swiper-slide-image {
	display: block;
	width: 100%;
	height: clamp(430px, 48vw, 690px);
	object-fit: cover;
	object-position: center;
}

.home-banner .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #fff;
	box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
	opacity: 0.65;
}

.home-banner .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 99px;
	opacity: 1;
}

.home-popup-slot.e-con,
.home-popup-slot .elementor-widget-shortcode,
.home-popup-slot .elementor-widget-container {
	min-height: 0;
	height: 0;
	margin: 0;
	padding: 0;
	gap: 0;
}

.home-events.e-con,
.home-about.e-con,
.home-services.e-con,
.home-schools.e-con,
.home-partners.e-con {
	max-width: none;
	padding-inline: 0;
	gap: 0;
}

.home-events.e-con {
	padding-block: 4rem 4.25rem;
	background: #f4f4f4;
	text-align: center;
}

.home-events__inner.e-con,
.home-about__grid.e-con,
.home-services__grid.e-con,
.home-partners__inner.e-con {
	width: min(1180px, calc(100% - 2rem));
	max-width: 1180px;
	margin-inline: auto;
}

.home-schools__inner.e-con {
	width: min(1440px, calc(100% - 0.5rem));
	max-width: 1440px;
	margin-inline: auto;
}

.home-events .elementor-heading-title {
	margin: 0;
	color: #414141;
	font-size: clamp(2rem, 3.4vw, 2.7rem);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.home-events__intro .elementor-widget-container {
	max-width: 830px;
	margin: 0.85rem auto 2.35rem;
	color: #818181;
	font-size: 0.94rem;
	line-height: 1.85;
}

.home-events__intro {
	max-width: none;
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.home-events__intro p {
	margin: 0;
}

.amber-home-events-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.8rem;
	text-align: left;
}

.amber-home-event-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.amber-home-event-card__media {
	position: relative;
	overflow: hidden;
	margin-bottom: 0.9rem;
	background: #fff;
	box-shadow: 0 10px 28px rgb(0 0 0 / 8%);
}

.amber-home-event-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.amber-home-event-card a:hover .amber-home-event-card__media img,
.amber-home-event-card a:focus-visible .amber-home-event-card__media img {
	transform: scale(1.025);
}

.amber-home-event-card__media span {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.42rem 0.82rem;
	background: linear-gradient(180deg, #d5232c, #99141a);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
}

.amber-home-event-card__type {
	margin: 0 0 0.28rem;
	color: #979797;
	font-size: 0.82rem;
}

.amber-home-event-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.03rem;
	font-weight: 800;
	line-height: 1.5;
}

.amber-home-event-card time {
	color: #8c8c8c;
	font-size: 0.84rem;
}

.amber-home-event-card time::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 0.42rem;
	border: 1.5px solid #aaa;
	border-radius: 2px;
	vertical-align: -1px;
}

.home-about.e-con {
	padding-top: 4.25rem;
	background: #fff;
}

.home-about__grid.e-con {
	display: grid;
	grid-template-columns: 0.7fr 1.3fr;
	gap: 4rem;
	align-items: start;
	padding: 0;
}

.home-about__title .elementor-heading-title {
	margin: 0;
	color: #303030;
	font-size: clamp(2rem, 3.6vw, 2.8rem);
	font-weight: 800;
	letter-spacing: 0.04em;
}

.home-about__copy.e-con {
	gap: 0;
}

.home-about__copy .elementor-widget-text-editor {
	color: #626262;
	font-size: 0.96rem;
	line-height: 1.95;
}

.home-about__copy .elementor-widget-text-editor p {
	margin: 0 0 0.85rem;
}

.home-about__office {
	color: #999;
	font-size: 0.9rem;
}

.home-about__more .elementor-button {
	padding: 0;
	background: transparent;
	box-shadow: none;
	color: #3d3d3d;
	font-weight: 700;
}

.home-about__more .elementor-button:hover,
.home-about__more .elementor-button:focus-visible {
	color: #b6151d;
}

.home-wave {
	position: relative;
	width: 100%;
	height: 235px;
	margin-top: 2.25rem;
	overflow: hidden;
	line-height: 0;
}

.home-wave:not(.home-wave--animated) img {
	display: block;
	width: 100%;
	height: 235px;
	object-fit: cover;
	object-position: center bottom;
}

.home-wave--animated {
	display: block;
	height: clamp(200px, 24vw, 330px);
	min-height: 200px;
	isolation: isolate;
	background: #fff;
	pointer-events: none;
	contain: layout paint;
}

.home-wave__stage,
.home-wave--animated > .elementor-widget-container {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #fff;
}

.home-wave__svg {
	display: none;
}

.home-wave__stage::before {
	position: absolute;
	left: -7%;
	bottom: -4%;
	z-index: 1;
	width: 114%;
	height: 112%;
	background-image: url("/wp-content/uploads/images/red%20color%20change.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	content: "";
	transform-origin: 50% 100%;
	backface-visibility: hidden;
	will-change: transform;
	animation: amber-home-wave-figma 10s ease-in-out infinite;
}

@keyframes amber-home-wave-figma {
	0%,
	100% {
		transform: translate3d(-0.9%, 1%, 0) scale3d(1.008, 1.015, 1);
	}

	50% {
		transform: translate3d(0.9%, -1%, 0) scale3d(1.018, 1.03, 1);
	}
}

.home-services-visual {
	position: relative;
	width: 100%;
	height: clamp(330px, 39.25vw, 600px);
	margin-top: clamp(2.75rem, 5vw, 4.75rem);
	overflow: hidden;
	line-height: 0;
}

.home-wave--animated + .home-services-visual {
	margin-top: 0;
}

.home-services-visual > .elementor-widget-container {
	height: 100%;
	overflow: hidden;
	background: #f5f4f2;
}

.home-services-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.home-services.e-con {
	margin: 0;
	padding-block: clamp(4.75rem, 7vw, 6.25rem) 3rem;
	background: #f6f6f6;
}

.home-services__grid.e-con {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 4.25rem);
	padding: 0;
}

.home-services__item.e-con {
	display: flex;
	gap: 0;
	align-items: center;
	padding: 0;
	text-align: center;
}

.home-services__item .elementor-heading-title {
	margin: 0;
	color: #555;
	font-size: clamp(1.75rem, 2.55vw, 2.35rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.12em;
}

.home-services__en {
	min-height: 4rem;
	margin-top: 1.95rem;
	color: #5c5c5c;
	font-size: clamp(1.02rem, 1.45vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
}

.home-services__copy {
	min-height: 15rem;
	margin-top: 2.75rem;
	color: #6e6e6e;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.95;
}

.home-services__copy p,
.home-services__en p {
	margin: 0;
}

.home-services__button .elementor-button {
	min-width: 7.9rem;
	min-height: 3rem;
	margin-top: 1.25rem;
	padding: 0.85rem 1.4rem;
	border-radius: 5px;
	background-color: #b6151d !important;
	background-image: linear-gradient(180deg, #d1262e, #a3151a) !important;
	box-shadow: 0 7px 16px rgb(196 18 26 / 26%);
	color: #fff !important;
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.2;
}

.home-schools.e-con {
	padding-block: 0.35rem 1.35rem;
	background: #f8f8f8;
}

.home-schools__card.e-con {
	display: flex;
	gap: 0;
	margin-bottom: 0;
	padding: clamp(2.4rem, 4vw, 3.6rem);
	padding-bottom: clamp(3.75rem, 6.25vw, 4.5rem);
	background: #fff;
	border-radius: clamp(28px, 3vw, 42px);
	box-shadow: 0 10px 16px rgb(20 25 33 / 18%);
}

.home-schools__card::before {
	content: "";
	display: block;
	position: static;
	inset: auto;
	flex: 0 0 auto;
	width: 82px;
	height: 6px;
	margin-bottom: 2rem;
	border-radius: 99px;
	background: linear-gradient(90deg, #8b1b91 0%, #d84d88 100%);
}

.home-schools__title .elementor-heading-title {
	margin: 0 0 2.45rem;
	color: #171c27;
	font-size: clamp(2rem, 3.2vw, 2.8rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: 0.035em;
}

.home-schools__title a {
	color: inherit;
	text-decoration: none;
}

.home-schools__image,
.home-schools__image .elementor-widget-container,
.home-schools__image a {
	display: block;
	width: 100%;
}

.home-schools__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1773 / 588;
	border-radius: 0;
	background: #d8ddd9;
}

.home-schools__image .elementor-widget-container {
	position: static;
}

.home-schools__image img {
	position: absolute;
	top: -5.1%;
	left: -8.75%;
	display: block;
	width: 115.06%;
	max-width: none;
	height: auto;
	border-radius: 0;
}

.home-schools .amber-flags {
	display: none;
	flex-wrap: wrap;
	justify-content: center;
	width: min(900px, 100%);
	max-width: 100%;
	margin: 3.75rem auto 0;
	gap: 2.3rem 3.75rem;
}

.home-schools .amber-flag {
	flex: 0 0 150px;
	width: 150px;
	gap: 0.85rem;
	color: #555;
	font-size: 1.13rem;
	font-weight: 500;
	transition: color 180ms ease, transform 180ms ease;
}

.home-schools .amber-flag:is(:hover, :focus-visible) {
	color: #b6151d;
	transform: translateY(-4px);
}

.home-schools .amber-flag img {
	width: 124px;
	height: 124px;
	box-shadow: 0 9px 22px rgb(28 38 58 / 14%);
}

.home-partners.e-con {
	padding-block: 4.5rem 5.25rem;
	background: #fff;
	text-align: center;
}

.home-partners__title .elementor-heading-title {
	margin: 0 0 2.1rem;
	color: #555;
	font-size: clamp(1.7rem, 2.7vw, 2.15rem);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.home-partners__title::before {
	content: "";
	display: block;
	width: 46px;
	height: 4px;
	margin: 0 auto 1rem;
	background: #c4121a;
}

.amber-partner-logos {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-block: 0.75rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.amber-partner-logos__track {
	display: flex;
	width: max-content;
	animation: amber-partner-marquee 26s linear infinite;
	will-change: transform;
}

.amber-partner-logos:is(:hover, :focus-within) .amber-partner-logos__track {
	animation-play-state: paused;
}

.amber-partner-logos:focus-visible {
	outline: 2px solid #c4121a;
	outline-offset: 5px;
}

.amber-partner-logos__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: clamp(2rem, 4vw, 4.5rem);
	padding-right: clamp(2rem, 4vw, 4.5rem);
}

.amber-partner-logo {
	display: flex;
	flex: 0 0 clamp(160px, 17vw, 230px);
	align-items: center;
	justify-content: center;
	width: clamp(160px, 17vw, 230px);
	height: 104px;
	margin: 0;
	padding: 0.65rem 0.8rem;
}

.amber-partner-logo__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.amber-partner-logo img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

.amber-partner-logo img[src$="/aec-education.png"] {
	transform: scale(1.25);
}

@keyframes amber-partner-marquee {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.amber-partner-logos {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.amber-partner-logos__track {
		width: 100%;
		animation: none;
	}

	.amber-partner-logos__group {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		padding-right: 0;
	}

	.amber-partner-logos__group[aria-hidden="true"] {
		display: none;
	}
}

.home-partners__note {
	max-width: 760px;
	margin: 4.5rem auto 0;
	color: #555;
	font-size: clamp(1.55rem, 3vw, 2.25rem);
	font-weight: 400;
	line-height: 1.5;
}

.home-partners__note .elementor-widget-container {
	margin: 0;
	color: inherit;
	font: inherit;
}

.home-partners__note p {
	margin: 0;
	color: inherit;
	font: inherit;
}

.home-partners__note::before {
	content: "";
	display: block;
	width: 46px;
	height: 4px;
	margin: 0 auto 1.55rem;
	background: #c4121a;
}

.home-partners__certs.e-con {
	display: block;
	width: min(860px, 100%);
	margin: 2.35rem auto 0;
	padding: 0;
}

.home-partners__certs > .elementor-element,
.home-partners__certs .elementor-widget-container {
	width: 100%;
}

.amber-home-certifications {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 6vw, 5.5rem);
	width: 100%;
}

.amber-home-certification {
	margin: 0;
}

.amber-home-certification__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 142px;
	border-radius: 8px;
}

.amber-home-certification a.amber-home-certification__media:focus-visible {
	outline: 3px solid #c4121a;
	outline-offset: 5px;
}

.amber-home-certification__media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.amber-current-event {
	position: fixed;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	z-index: 999;
	overflow: hidden;
	width: min(340px, calc(100vw - 2.5rem));
	background: #fff;
	border: 1px solid rgb(0 0 0 / 7%);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
}

.amber-current-event__media,
.amber-current-event__media img {
	display: block;
	width: 100%;
}

.amber-current-event__media {
	line-height: 0;
}

.amber-current-event__media img {
	height: 150px;
	object-fit: cover;
}

.amber-current-event__body {
	padding: 1rem 1.15rem 1.15rem;
}

.amber-current-event__body.e-con {
	gap: 0;
}

.amber-current-event__eyebrow {
	margin: 0 0 0.35rem;
	color: #b6151d;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.amber-current-event__eyebrow p,
.amber-current-event__summary p {
	margin: 0;
}

.amber-current-event h2 {
	margin: 0 0 0.5rem;
	font-size: 1.02rem;
	line-height: 1.45;
}

.amber-current-event__summary {
	margin: 0 0 0.85rem;
	color: #666;
	font-size: 0.82rem;
	line-height: 1.65;
}

a.amber-current-event__button,
.amber-current-event__button .elementor-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 5px;
	background: linear-gradient(180deg, #d1262e, #a3151a);
	box-shadow: 0 6px 14px rgb(196 18 26 / 25%);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

a.amber-current-event__button:hover,
a.amber-current-event__button:focus-visible,
.amber-current-event__button .elementor-button:hover,
.amber-current-event__button .elementor-button:focus-visible {
	background: #8d1015;
	color: #fff;
}

.elementor-editor-active .amber-current-event {
	position: relative;
	right: auto;
	bottom: auto;
	width: min(340px, 100%);
	margin: 1rem auto;
}

.amber-event-registration-section {
	margin-top: 2.5rem;
	padding: 2rem;
	background: #f7f7f7;
	border-radius: 12px;
}

.amber-registration-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
}

.amber-registration-form p {
	margin: 0;
}

.amber-registration-form p:first-child,
.amber-registration-form p:nth-last-child(-n + 2) {
	grid-column: 1 / -1;
}

.amber-registration-form :is(input:not([type="checkbox"]), select) {
	width: 100%;
	min-height: 46px;
	margin-top: 0.35rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid #cfcfcf;
	border-radius: 5px;
	background: #fff;
}

.amber-registration-form button {
	min-width: 9rem;
	min-height: 44px;
	border: 0;
	border-radius: 5px;
	background: #b6151d;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.home-wave__stage::before {
		animation: none !important;
		transform: scale3d(1.012, 1.02, 1) !important;
		will-change: auto;
	}

	.amber-home-event-card__media img {
		transition: none;
	}
}

@media (max-width: 959px) {
	.home-banner .swiper-slide-image {
		height: clamp(320px, 72vw, 480px);
		object-position: center;
	}

	.amber-home-events-grid,
	.home-about__grid.e-con,
	.home-services__grid.e-con {
		grid-template-columns: 1fr;
	}

	.home-about__grid.e-con {
		gap: 1.4rem;
	}

	.home-services__copy,
	.home-services__en {
		min-height: 0;
	}

	.home-services__item.e-con {
		max-width: 680px;
		margin-inline: auto;
		padding-inline: 0.75rem;
	}

	.home-schools.e-con {
		padding-block: 0.5rem 1.5rem;
	}

	.home-partners__note {
		margin-top: 3.75rem;
	}

	.home-partners__certs.e-con {
		width: min(860px, 100%);
	}
}

@media (max-width: 600px) {
	.home-events.e-con,
	.home-about.e-con,
	.home-partners.e-con {
		padding-top: 2.75rem;
	}

	.home-wave:not(.home-wave--animated) img {
		height: 150px;
	}

	.home-wave__stage::before {
		left: -34%;
		width: 168%;
		height: 118%;
	}

	.home-services-visual {
		height: clamp(155px, 39.25vw, 235px);
		margin-top: 2.5rem;
	}

	.home-services-visual img {
		object-position: right center;
	}

	.home-services.e-con {
		padding-block: 3.5rem 3.75rem;
	}

	.home-services__grid.e-con {
		gap: 4rem;
	}

	.home-services__item .elementor-heading-title {
		font-size: clamp(1.6rem, 8vw, 2rem);
	}

	.home-services__en {
		min-height: 0;
		margin-top: 0.85rem;
	}

	.home-services__copy {
		min-height: 0;
		margin-top: 1.1rem;
	}

	.home-services__button .elementor-button {
		margin-top: 1.4rem;
	}

	.home-schools.e-con {
		padding-block: 0.5rem 1rem;
	}

	.home-schools__inner.e-con {
		width: calc(100% - 1rem);
	}

	.home-schools__card.e-con {
		padding: 1.35rem 1rem 1.45rem;
		padding-bottom: 1.75rem;
		border-radius: 22px;
		box-shadow: 0 7px 12px rgb(20 25 33 / 16%);
	}

	.home-schools__card::before {
		width: 62px;
		height: 5px;
		margin-bottom: 1.2rem;
	}

	.home-schools__title .elementor-heading-title {
		margin-bottom: 1.35rem;
		font-size: 1.7rem;
	}

	.home-schools__image {
		aspect-ratio: 16 / 7;
		border-radius: 0;
	}

	.home-schools__image img {
		top: -12.2%;
		left: -8.75%;
		height: auto;
	}

	.home-partners.e-con {
		padding-bottom: 3.75rem;
	}

	.home-partners__title .elementor-heading-title {
		margin-bottom: 1.45rem;
		font-size: 1.55rem;
	}

	.amber-partner-logos {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
	}

	.amber-partner-logos__track {
		animation-duration: 20s;
	}

	.amber-partner-logos__group {
		gap: 1.25rem;
		padding-right: 1.25rem;
	}

	.amber-partner-logo {
		flex-basis: 150px;
		width: 150px;
		height: 78px;
		padding: 0.35rem;
	}

	.home-partners__note {
		margin-top: 3rem;
		font-size: 1.25rem;
		line-height: 1.55;
	}

	.home-partners__note::before {
		margin-bottom: 1.15rem;
	}

	.home-partners__certs.e-con {
		margin-top: 1.65rem;
	}

	.amber-home-certifications {
		grid-template-columns: 1fr;
		gap: 1.35rem;
	}

	.amber-home-certification__media {
		height: 112px;
	}

	.amber-current-event {
		right: max(0.75rem, env(safe-area-inset-right));
		bottom: max(0.75rem, env(safe-area-inset-bottom));
		left: max(0.75rem, env(safe-area-inset-left));
		width: auto;
		display: grid;
		grid-template-columns: 86px 1fr;
		border-radius: 10px;
	}

	.amber-current-event__media img {
		height: 100%;
		min-height: 132px;
	}

	.amber-current-event__body {
		padding: 0.75rem 0.8rem;
	}

	.amber-current-event__summary {
		display: none;
	}

	.amber-current-event h2 {
		margin-bottom: 0.55rem;
		font-size: 0.88rem;
	}

	a.amber-current-event__button,
	.amber-current-event__button .elementor-button {
		min-height: 36px;
		font-size: 0.86rem;
	}

	.amber-registration-form {
		grid-template-columns: 1fr;
	}

	.amber-registration-form p {
		grid-column: 1 !important;
	}
}
