/* ============================================================
   ERAS® SOCIETY – CENTRES OF EXCELLENCE
   ============================================================ */

.eras-centres {
	--centres-blue: #064487;
	--centres-blue-dark: #043565;
	--centres-navy: #14213d;
	--centres-light: #f4f8fb;
	--centres-border: #dfe8ee;
	--centres-text: #344b5e;
	--centres-muted: #718393;

	background: #fff;
	color: var(--centres-text);
}


/* ============================================================
   SHARED CONTAINER
   ============================================================ */

.eras-centres > section > .container {
	width: 100%;
	max-width: 1200px;

	margin-inline: auto;
	padding-inline: 24px;

	box-sizing: border-box;
}


/* ============================================================
   HERO
   ============================================================ */

.eras-centres__hero {
	position: relative;

	overflow: hidden;

	padding: 105px 0 110px;

	background:
		linear-gradient(
			135deg,
			#f8fbfd 0%,
			#edf6fa 100%
		);
}


/* Decorative rings */

.eras-centres__hero::before,
.eras-centres__hero::after {
	content: "";

	position: absolute;

	border: 1px solid rgba(6, 68, 135, .065);
	border-radius: 50%;

	pointer-events: none;
}

.eras-centres__hero::before {
	top: -360px;
	right: -170px;

	width: 720px;
	height: 720px;
}

.eras-centres__hero::after {
	bottom: -430px;
	left: -280px;

	width: 660px;
	height: 660px;
}


.eras-centres__hero .container {
	position: relative;
	z-index: 2;
}


.eras-centres__hero-grid {
	display: grid;
	grid-template-columns:
		minmax(0, .82fr)
		minmax(0, 1fr);

	gap: clamp(65px, 9vw, 145px);

	align-items: center;
}


.eras-centres__hero-left,
.eras-centres__hero-right {
	min-width: 0;
}


.eras-centres__hero h1 {
	max-width: 650px;

	margin: 0;

	color: var(--centres-blue);

	font-size: clamp(48px, 5vw, 72px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -.04em;
}


.eras-centres__hero-right {
	max-width: 650px;
}


.eras-centres__hero-right p {
	margin: 0;

	color: #52697b;

	font-size: 17px;
	line-height: 1.75;
}


/* ============================================================
   KICKER
   Same appearance as About
   ============================================================ */

.eras-centres .eras-about-kicker {
	display: flex;
	align-items: center;
	gap: 11px;

	margin-bottom: 18px;

	color: var(--centres-blue);

	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .11em;
	text-transform: uppercase;
}


.eras-centres .eras-about-kicker > span {
	flex: 0 0 auto;

	width: 28px;
	height: 2px;

	background: var(--centres-blue);
}


.eras-centres .eras-about-kicker sup {
	font-size: .65em;
	line-height: 0;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.eras-centres__content {
	padding: 78px 0 90px;

	background: #fff;
}


/* ============================================================
   INTRO
   ============================================================ */

.eras-centres__intro {

	margin: 0 auto 58px;

	color: var(--centres-text);

	text-align: center;
}


.eras-centres__intro p {
	margin: 0 0 16px;

	font-size: 15px;
	line-height: 1.75;
}


.eras-centres__intro p:last-child {
	margin-bottom: 0;
}


/* ============================================================
   LIST HEADING
   ============================================================ */

.eras-centres__heading {
	margin: 0 auto 42px;

	text-align: center;
}


.eras-centres__heading::before {
	content: "";

	display: block;

	width: 28px;
	height: 2px;

	margin: 0 auto 15px;

	background: var(--centres-blue);
}


.eras-centres__heading h2 {
	margin: 0;

	color: var(--centres-blue);

	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.02em;
}


.eras-centres__heading h2 sup {
	font-size: .55em;
	line-height: 0;
}


.eras-centres__heading p {
	margin: 7px 0 0;

	color: var(--centres-muted);

	font-size: 13px;
	line-height: 1.6;
}


/* ============================================================
   CENTRES GRID
   ============================================================ */

.eras-centres__grid {
	display: grid;
	grid-template-columns:
		repeat(5, minmax(0, 1fr));

	gap: 16px;

	width: 100%;
}


/* ============================================================
   CENTRE CARD
   ============================================================ */

.eras-centre-card {
	min-width: 0;
}


.eras-centre-card__link {
	display: flex;
	flex-direction: column;

	width: 100%;
	height: 100%;
	min-height: 245px;

	margin: 0;
	padding: 0;

	border: 1px solid var(--centres-border);
	border-radius: 9px;

	background: #fff;
	color: inherit;

	font: inherit;

	text-align: inherit;

	cursor: pointer;

	overflow: hidden;

	box-shadow:
		0 7px 22px rgba(25, 55, 80, .035);

	transition:
		transform .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
}


.eras-centre-card__link:hover,
.eras-centre-card__link:focus-visible {
	border-color: rgba(6, 68, 135, .20);

	transform: translateY(-4px);

	box-shadow:
		0 17px 36px rgba(25, 55, 80, .08);
}


.eras-centre-card__link:focus-visible {
	outline: 2px solid rgba(6, 68, 135, .22);
	outline-offset: 3px;
}


/* ============================================================
   CARD IMAGE
   ============================================================ */

.eras-centre-card__image {
	display: flex;

	flex: 1;

	min-height: 155px;

	align-items: center;
	justify-content: center;

	padding: 24px;

	border-bottom: 1px solid var(--centres-border);

	background: #fff;
}


.eras-centre-card__image img {
	display: block;

	width: auto;
	height: auto;

	max-width: 150px;
	max-height: 82px;

	object-fit: contain;
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.eras-centre-card__content {
	display: flex;
	flex-direction: column;

	align-items: center;
	justify-content: center;

	min-height: 88px;

	padding: 15px 14px 14px;

	text-align: center;
}


.eras-centre-card__content h3 {
	margin: 0;

	color: var(--centres-blue);

	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
}


/* ============================================================
   COUNTRY BADGE
   ============================================================ */

.eras-centre-card__country {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	gap: 7px;

	width: fit-content;

	margin: 9px auto 0;
	padding: 5px 9px;

	border: 1px solid #dce7ed;
	border-radius: 999px;

	background: #f7fafc;
	color: #607482;

	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}


.eras-centre-card__flag {
	display: block;

	width: 18px;
	height: 13px;

	border-radius: 2px;

	object-fit: cover;

	box-shadow:
		0 0 0 1px rgba(0, 0, 0, .05);
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.eras-centres__empty {
	margin: 50px 0;

	color: var(--centres-muted);

	font-size: 14px;

	text-align: center;
}


/* ============================================================
   CTA CARDS
   IDENTICAL STRUCTURE / STYLE TO ABOUT CTA
   ============================================================ */

.eras-centres__cta-section {
	padding: 0 0 90px;

	background: #fff;
}


/*
 * Same centred content width as the rest of the page.
 */

.eras-centres__cta-section > .container {
	width: 100%;
	max-width: 1200px;

	margin-inline: auto;
	padding-inline: 24px;

	box-sizing: border-box;
}


.eras-centres__cta-grid {
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 16px;

	width: 100%;
}


/* ------------------------------------------------------------
   CTA CARD
   ------------------------------------------------------------ */

.eras-centres__cta {
	position: relative;

	display: flex;
	flex-direction: column;
	justify-content: space-between;

	gap: 28px;

	min-width: 0;
	min-height: 220px;

	padding: 30px;

	border-radius: 11px;

	box-sizing: border-box;

	color: #fff;

	text-decoration: none !important;

	overflow: hidden;

	cursor: pointer;

	transition:
		transform .2s ease,
		box-shadow .2s ease;
}


/*
 * Decorative circle, exactly like About.
 */

.eras-centres__cta::after {
	content: "";

	position: absolute;

	top: -75px;
	right: -75px;

	width: 210px;
	height: 210px;

	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;

	pointer-events: none;
}


/* Primary */

.eras-centres__cta--primary {
	background:
		linear-gradient(
			135deg,
			#0754ae 0%,
			#0c6ac9 100%
		);
}


/* Secondary */

.eras-centres__cta--secondary {
	background:
		linear-gradient(
			135deg,
			#536e87 0%,
			#6f879c 100%
		);
}


/* Hover */

.eras-centres__cta:hover {
	color: #fff;

	text-decoration: none !important;

	transform: translateY(-4px);

	box-shadow:
		0 20px 42px rgba(20, 50, 75, .13);
}


/* Keyboard */

.eras-centres__cta:focus-visible {
	outline: 3px solid rgba(6, 68, 135, .22);
	outline-offset: 4px;
}


/* ------------------------------------------------------------
   CTA CONTENT
   ------------------------------------------------------------ */

.eras-centres__cta-content {
	position: relative;
	z-index: 2;

	min-width: 0;
}


.eras-centres__cta-content h2 {
	margin: 0;

	color: #fff;

	font-size: 27px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.025em;
}


.eras-centres__cta-content h2 sup {
	font-size: .55em;
	line-height: 0;
}


.eras-centres__cta-content p {
	max-width: 470px;

	margin: 11px 0 0;

	color: rgba(255, 255, 255, .82);

	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}


/*
 * Override any inherited colour rules.
 */

.eras-centres__cta--primary h2,
.eras-centres__cta--secondary h2 {
	color: #fff;
}


.eras-centres__cta--primary p,
.eras-centres__cta--secondary p {
	color: rgba(255, 255, 255, .82);
}


/* ------------------------------------------------------------
   CTA BUTTON APPEARANCE
   The whole card is the real <a>.
   ------------------------------------------------------------ */

.eras-centres__cta-button {
	position: relative;
	z-index: 2;

	display: inline-flex;

	align-items: center;

	gap: 9px;

	width: fit-content;

	padding: 9px 12px;

	border-radius: 5px;

	background: #fff;
	color: var(--centres-blue);

	font-size: 11px;
	font-weight: 650;
	line-height: 1.4;

	pointer-events: none;

	transition:
		transform .18s ease;
}


.eras-centres__cta-button span {
	color: inherit;
}


.eras-centres__cta-button i {
	color: inherit;

	font-size: 11px;

	transition:
		transform .18s ease;
}


.eras-centres__cta:hover .eras-centres__cta-button i {
	transform: translateX(2px);
}


/* ============================================================
   MODAL
   ============================================================ */

body.eras-centre-modal-open {
	overflow: hidden;
}


.eras-centre-modal {
	position: fixed;
	z-index: 999999;

	inset: 0;

	display: none;

	align-items: center;
	justify-content: center;

	padding: 24px;
}


.eras-centre-modal.is-open {
	display: flex;
}


/* ============================================================
   MODAL BACKDROP
   ============================================================ */

.eras-centre-modal__backdrop {
	position: absolute;

	inset: 0;

	background: rgba(17, 42, 63, .72);

	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}


/* ============================================================
   MODAL DIALOG
   ============================================================ */

.eras-centre-modal__dialog {
	position: relative;
	z-index: 2;

	width: min(100%, 680px);

	max-height: calc(100vh - 48px);

	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 16px;

	background: #fff;

	box-shadow:
		0 30px 80px rgba(10, 32, 50, .24);

	overflow: auto;
}


/* ============================================================
   MODAL CLOSE
   ============================================================ */

.eras-centre-modal__close {
	position: absolute;
	z-index: 5;

	top: 18px;
	right: 18px;

	display: grid;
	place-items: center;

	width: 38px;
	height: 38px;

	padding: 0;

	border: 1px solid #dce7ed;
	border-radius: 50%;

	background: #fff;
	color: var(--centres-blue);

	font: inherit;
	font-size: 23px;
	font-weight: 300;
	line-height: 1;

	cursor: pointer;

	transition:
		background .18s ease,
		border-color .18s ease,
		transform .18s ease;
}


.eras-centre-modal__close:hover {
	border-color: #c5dae5;

	background: #f3f8fb;

	transform: rotate(4deg);
}


/* ============================================================
   MODAL TOP
   ============================================================ */

.eras-centre-modal__top {
	display: grid;
	grid-template-columns:
		145px
		minmax(0, 1fr);

	gap: 30px;

	align-items: center;

	min-height: 185px;

	padding: 38px 68px 34px 40px;

	background:
		linear-gradient(
			135deg,
			#f8fbfd 0%,
			#eef6fa 100%
		);

	border-bottom: 1px solid var(--centres-border);
}


/* ============================================================
   MODAL LOGO
   ============================================================ */

.eras-centre-modal__logo-wrap {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 145px;
	height: 120px;

	padding: 20px;

	box-sizing: border-box;

	border: 1px solid var(--centres-border);
	border-radius: 11px;

	background: #fff;

	box-shadow:
		0 5px 18px rgba(25, 55, 80, .04);
}


.eras-centre-modal__logo-wrap[hidden] {
	display: none;
}


.eras-centre-modal__logo {
	display: block;

	width: auto;
	height: auto;

	max-width: 105px;
	max-height: 78px;

	object-fit: contain;
}


/* ============================================================
   MODAL HEADING
   ============================================================ */

.eras-centre-modal__heading {
	min-width: 0;
}


.eras-centre-modal__heading h2 {
	margin: 0;

	color: var(--centres-blue);

	font-size: clamp(24px, 3vw, 31px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.025em;
}


.eras-centre-modal__job-title {
	margin-top: 8px;

	color: var(--centres-muted);

	font-size: 13px;
	line-height: 1.5;
}


/* ============================================================
   MODAL DETAILS
   ============================================================ */

.eras-centre-modal__details {
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
}


.eras-centre-modal__detail {
	display: grid;
	grid-template-columns:
		42px
		minmax(0, 1fr);

	gap: 14px;

	align-items: center;

	min-height: 112px;

	padding: 24px 28px;

	box-sizing: border-box;

	border-bottom: 1px solid var(--centres-border);
}


.eras-centre-modal__detail:nth-child(odd) {
	border-right: 1px solid var(--centres-border);
}


.eras-centre-modal__detail:nth-last-child(-n + 2) {
	border-bottom: 0;
}


/* ============================================================
   DETAIL ICON
   ============================================================ */

.eras-centre-modal__detail-icon {
	display: grid;
	place-items: center;

	width: 42px;
	height: 42px;

	border-radius: 9px;

	background: #edf6fb;
	color: var(--centres-blue);

	font-size: 16px;
}


/* ============================================================
   DETAIL TEXT
   ============================================================ */

.eras-centre-modal__detail > div:last-child {
	min-width: 0;
}


.eras-centre-modal__detail > div:last-child > span {
	display: block;

	margin-bottom: 6px;

	color: #8798a4;

	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .10em;

	text-transform: uppercase;
}


.eras-centre-modal__detail strong,
.eras-centre-modal__detail a,
.eras-centre-modal__detail [data-modal-email-container],
.eras-centre-modal__detail [data-modal-telephone-container] {
	color: var(--centres-blue);

	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;

	overflow-wrap: anywhere;
}


.eras-centre-modal__detail a {
	text-decoration: none;
}


.eras-centre-modal__detail a:hover {
	text-decoration: underline;

	text-underline-offset: 3px;
}


/* ============================================================
   UNAVAILABLE
   ============================================================ */

.eras-centre-modal__unavailable {
	color: #a2aeb6 !important;

	font-size: 11px !important;
	font-style: italic;
	font-weight: 500 !important;
	letter-spacing: .025em;

	text-transform: uppercase;
}


/* ============================================================
   RESPONSIVE – LARGE TABLET
   ============================================================ */

@media (max-width: 1150px) {

	.eras-centres__grid {
		grid-template-columns:
			repeat(4, minmax(0, 1fr));
	}

}


/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */

@media (max-width: 950px) {

	.eras-centres__hero-grid {
		grid-template-columns: 1fr;

		gap: 32px;
	}


	.eras-centres__hero-right {
		max-width: 720px;
	}


	.eras-centres__grid {
		grid-template-columns:
			repeat(3, minmax(0, 1fr));
	}

}


/* ============================================================
   RESPONSIVE – MOBILE / SMALL TABLET
   ============================================================ */

@media (max-width: 750px) {

	.eras-centres > section > .container,
	.eras-centres__cta-section > .container {
		padding-inline: 20px;
	}


	.eras-centres__hero {
		padding: 48px 0 58px;
	}


	.eras-centres__hero-grid {
		gap: 28px;
	}


	.eras-centres__hero h1 {
		font-size: clamp(42px, 12vw, 54px);
	}


	.eras-centres__hero-right p {
		font-size: 16px;
	}


	.eras-centres__content {
		padding: 60px 0 70px;
	}


	.eras-centres__heading {
		margin-bottom: 32px;
	}


	.eras-centres__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap: 12px;
	}


	/* CTA */

	.eras-centres__cta-section {
		padding-bottom: 60px;
	}


	.eras-centres__cta-grid {
		grid-template-columns: 1fr;
	}


	.eras-centres__cta {
		min-height: 190px;

		padding: 25px;
	}


	/* Modal */

	.eras-centre-modal {
		padding: 16px;
	}


	.eras-centre-modal__top {
		grid-template-columns:
			105px
			minmax(0, 1fr);

		gap: 20px;

		padding: 32px 55px 28px 26px;
	}


	.eras-centre-modal__logo-wrap {
		width: 105px;
		height: 95px;

		padding: 14px;
	}


	.eras-centre-modal__logo {
		max-width: 78px;
		max-height: 62px;
	}


	.eras-centre-modal__details {
		grid-template-columns: 1fr;
	}


	.eras-centre-modal__detail {
		min-height: 95px;

		padding: 21px 24px;

		border-right: 0 !important;
		border-bottom: 1px solid var(--centres-border) !important;
	}


	.eras-centre-modal__detail:last-child {
		border-bottom: 0 !important;
	}

}


/* ============================================================
   RESPONSIVE – SMALL MOBILE
   ============================================================ */

@media (max-width: 520px) {

	.eras-centres > section > .container,
	.eras-centres__cta-section > .container {
		padding-inline: 16px;
	}


	.eras-centres__grid {
		grid-template-columns: 1fr;
	}


	.eras-centre-card__link {
		min-height: 230px;
	}


	.eras-centre-card__image {
		min-height: 145px;
	}


	.eras-centres__cta-content h2 {
		font-size: 24px;
	}


	.eras-centre-modal {
		align-items: flex-end;

		padding: 0;
	}


	.eras-centre-modal__dialog {
		width: 100%;
		max-height: calc(100vh - 25px);

		border-radius: 16px 16px 0 0;
	}


	.eras-centre-modal__top {
		grid-template-columns: 1fr;

		gap: 18px;

		padding: 48px 22px 25px;
	}


	.eras-centre-modal__logo-wrap {
		width: 120px;
		height: 95px;
	}


	.eras-centre-modal__heading h2 {
		font-size: 24px;
	}


	.eras-centre-modal__detail {
		grid-template-columns:
			38px
			minmax(0, 1fr);

		gap: 12px;

		padding: 18px 20px;
	}


	.eras-centre-modal__detail-icon {
		width: 38px;
		height: 38px;

		font-size: 14px;
	}

}