.team-members-section.module-team {
	position: relative;
}

.team-members-section.module-team::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: auto;
	aspect-ratio: 1440 / 36;
	background-color: transparent;
	background-image: url("../../../images/cream-hero-top-mask-01.svg");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% 100%;
	pointer-events: none;
}

.team-members-section .team {
	max-width: 1180px;
	padding: 1.5rem 1.25rem 4rem;
}

.team-members-section__header {
	max-width: 40rem;
	margin: 1.75rem auto 6rem;
	text-align: center;
}

.team-members-section__pre-title {
	margin: 0 0 0.35rem;
	color: #152041;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.team-members-section__separator {
	display: block;
	width: auto;
	max-width: 8.5rem;
	height: auto;
	max-height: 1.25rem;
	margin: 0 auto 1.15rem;
	object-fit: contain;
	object-position: center;
}

.team-members-section__title {
	max-width: 12.5em;
	margin: 0 auto 0.9rem;
	color: #162859;
	font-family: "Taviraj", Georgia, "Times New Roman", serif;
	font-size: clamp(2.4rem, 4vw, 3.15rem);
	font-weight: 400;
	line-height: 1.12;
	text-transform: none;
	letter-spacing: 0;
}

.team-members-section__text {
	max-width: 36rem;
	margin: 0 auto;
	color: #8b919c;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: 0;
}

.team-members-section .team-filters {
	gap: 1.75rem;
	margin-bottom: 2.5rem;
}

.team-members-section .filter-btn {
	padding: 0 0 0.45rem;
	color: #152041;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	opacity: 1;
}

.team-members-section .filter-btn.active {
	color: #3551a3;
}

.team-members-section .filter-btn.active::after,
.team-members-section .filter-btn:hover::after {
	width: 100%;
	background-color: #3551a3;
}

.team-members-section .team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.35rem 1.15rem;
	justify-items: stretch;
}

.team-members-section .team-card,
.team-members-section .team-card:hover,
.team-members-section .team-card * {
	cursor: pointer;
}

.team-members-section .team-card {
	width: 100%;
	height: auto;
	max-width: none;
	transform: none;
}

.team-members-section .team-card__inner {
	display: flex;
	flex-direction: column;
	height: auto;
	overflow: hidden;
	border-radius: 22px;
	background: transparent;
	box-shadow:
		0 9.31px 9.31px -4.66px rgba(0, 0, 0, 0.03),
		0 23.28px 27.93px -4.66px rgba(0, 0, 0, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-members-section .team-card:hover .team-card__inner,
.team-members-section .team-card:focus-within .team-card__inner {
	transform: translateY(-6px);
	box-shadow:
		0 14px 16px -6px rgba(0, 0, 0, 0.06),
		0 30px 38px -8px rgba(0, 0, 0, 0.16);
}

.team-members-section .team-card__media {
	position: relative;
	overflow: hidden;
	line-height: 0;
	background: #0f1830;
}

.team-members-section .team-card__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / .8;
	object-fit: cover;
	object-position: top center;
}

.team-members-section .team-card__body {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 308 / 203;
	margin-top: calc(6.81 / 308 * -100% - 6px);
	padding: 2.85rem 1rem 0.65rem;
	overflow: hidden;
	background-image: url("../../../images/bottom-card-team-mask.svg");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% calc(100% + 2px);
	text-align: center;
}

.team-members-section .team-card__name {
	flex: 0 0 auto;
	margin: 0 0 0.35rem;
	max-width: 100%;
	color: #162859;
	font-family: "Taviraj", Georgia, "Times New Roman", serif;
	font-size: clamp(1.15rem, 8.5cqw, 21px);
	font-weight: 500;
	line-height: 1.2;
}

.team-members-section .team-card__role {
	flex: 0 0 auto;
	margin: 0;
	width: 100%;
	max-width: 16rem;
	height: calc(1.45em * 2);
	overflow: hidden;
	color: #a67d49;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.45;
	text-transform: uppercase;
}

.team-members-section .team-card__linkedin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	margin-top: 0.45rem;
	padding-top: 0.55rem;
	border-top: 1px solid #A67D49;
	text-decoration: none;
}

.team-members-section .team-card__linkedin-icon {
	display: block;
	width: 20px;
	height: 20px;
}

.team-members-section .team-card__linkedin:hover,
.team-members-section .team-card__linkedin:focus-visible {
	opacity: 0.75;
}

@media (max-width: 1100px) {
	.team-members-section .team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.team-members-section .team-grid {
		grid-template-columns: 1fr;
		max-width: 22rem;
		margin: 0 auto;
	}

	.team-members-section .team-card__role {
		font-size: clamp(.8rem, 3cqw, 2rem);
	}

	.team-members-section .team-card__body {
		padding: 3.85rem 1rem 0.65rem;
	}

	.team-members-section .team-card__name {
		font-size: clamp(1.15rem, 7cqw, 2.5rem);
	}

	.team-members-section .team-card.is-paged-out {
		display: none;
	}

	.team-members-section .team-members-pagination:not([hidden]) {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0.7rem;
		margin: 2.25rem auto 0;
	}
}

.team-members-pagination {
	display: none;
}

.team-members-pagination__page,
.team-members-pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.15rem;
	height: 3.15rem;
	padding: 0;
	border: 1px solid #e7e7e7;
	border-radius: 50%;
	background: #fff;
	color: #c5c8ce;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.team-members-pagination__page.is-current {
	border-color: transparent;
	background: #f4f1ea;
	color: #162859;
}

.team-members-pagination__ellipsis {
	font-size: 1rem;
	letter-spacing: 0.08em;
}

.team-members-pagination__arrow {
	border-color: transparent;
	background: #c0a47f;
	color: #162859;
}

.team-members-pagination__arrow svg {
	display: block;
	width: 0.95rem;
	height: 0.95rem;
}

.team-members-pagination__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.team-members-pagination__page:focus-visible,
.team-members-pagination__arrow:focus-visible {
	outline: 2px solid #162859;
	outline-offset: 3px;
}

html.team-bio-open,
html.team-bio-open body {
	overflow: hidden;
}

.mbm-modal.mbm-modal--team {
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	height: 100vh;
	height: 100dvh;
	padding: 0;
	background: rgba(12, 22, 51, 0);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	overflow: hidden;
	opacity: 1;
	visibility: hidden;
	pointer-events: none;
	transition: background-color 300ms ease-out, visibility 300ms ease-out;
}

.mbm-modal.mbm-modal--team.active {
	background: rgba(0, 0, 0, 0.4);
	visibility: visible;
	pointer-events: auto;
}

.team-bio-panel {
	display: flex;
	flex-direction: column;
	width: min(450px, 100%);
	height: 100%;
	max-height: 100%;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #0c1633 transparent;
	background: #fff;
	box-shadow: 12px 0 36px rgba(12, 22, 51, 0.18);
	transform: translateX(-100%);
	transition: transform 300ms ease-out;
}

.team-bio-panel::-webkit-scrollbar {
	width: 8px;
}

.team-bio-panel::-webkit-scrollbar-track {
	background: transparent;
}

.team-bio-panel::-webkit-scrollbar-thumb {
	background: #0c1633;
	border-radius: 999px;
}

.mbm-modal.mbm-modal--team.active .team-bio-panel {
	transform: translateX(0);
}

.team-bio-panel__media {
	position: relative;
	flex: 0 0 auto;
	background: #0f1830;
}

.team-bio-panel__photo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center top;
	aspect-ratio: 7 / 8;
	max-width: 560px;
}

.team-bio-panel__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #101e427d;
    color: #ffffff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(12, 22, 51, 0.18);
	transition: all 0.3s ease;
}

.team-bio-panel__close svg {
	display: block;
	width: 0.9rem;
	height: 0.9rem;
}

.team-bio-panel__close:hover,
.team-bio-panel__close:focus-visible {
	background: #ffffffb8;
    outline: none;
    color: #072a4f;
}

.team-bio-panel__body {
	flex: 0 0 auto;
	min-height: 0;
	padding: 1.75rem 1.75rem 1.25rem;
	overflow: visible;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.team-bio-panel__name {
	margin: 0;
	color: #162859;
	font-family: "Taviraj", Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 500;
	line-height: 1.15;
}

.team-members-section .team-card__name sup,
.team-bio-panel__name sup {
	font-size: 0.7em;
	line-height: 0;
}

.team-bio-panel__name sup {
	font-size: 0.5em;
	top: -.8em;
}

.team-bio-panel__role {
	margin: 0.45rem 0 0;
	color: #a67d49;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
}

.team-bio-panel__location {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.45rem 0 0;
	color: #5a6275;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
}

.team-bio-panel__role[hidden],
.team-bio-panel__location[hidden],
.team-bio-panel__social[hidden],
.team-bio-panel__photo[hidden] {
	display: none;
}

.team-bio-panel__location::before {
	content: "";
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	background: url("../../../images/icon-location.svg") center / contain no-repeat;
}

.team-bio-panel__social {
	display: flex;
	gap: 0.65rem;
	margin-top: 1rem;
}

.team-bio-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid #d5d8e0;
	border-radius: 50%;
	color: #162859;
	text-decoration: none;
}

.team-bio-panel__icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
}

.team-bio-panel__icon:hover,
.team-bio-panel__icon:focus-visible {
	border-color: #a67d49;
	color: #a67d49;
	outline: none;
}

.team-bio-panel__section {
	margin-top: 1.35rem;
}

.team-bio-panel__section h3 {
	margin: 0 0 0.4rem;
	color: #a67d49;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.team-bio-panel__copy,
.team-bio-panel__copy p {
	color: #162859;
	font-family: "RedHatDisplay", Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.team-bio-panel__copy ul li {
	font-size: 15px;
}

.team-bio-panel__copy p {
	margin: 0 0 0.75rem;
}

.team-bio-panel__copy p:last-child {
	margin-bottom: 0;
}

.team-bio-panel__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(16, 30, 66, 0.12);
}

.team-bio-panel__step {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex: 1 1 0;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.team-bio-panel__step--next {
	justify-content: flex-end;
	text-align: right;
}

.team-bio-panel__step-copy {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.team-bio-panel__step-label {
    color: #a67d49;
    font-family: "RedHatDisplay", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 12%;
    line-height: 1.2;
    text-transform: uppercase;
}

.team-bio-panel__step-name {
	color: #162859;
	font-family: "Taviraj", Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.team-bio-panel__step-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	background: url("../../../images/team-next-prev-btn-arrow.svg") center / contain no-repeat;
}

.team-bio-panel__step--prev .team-bio-panel__step-icon {
	transform: scaleX(-1);
}

.team-bio-panel__step:hover:not(:disabled) .team-bio-panel__step-name,
.team-bio-panel__step:focus-visible:not(:disabled) .team-bio-panel__step-name {
	color: #3551a3;
}

.team-bio-panel__step:focus-visible {
	outline: none;
}

.team-bio-panel__step:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 767px) {
	.team-bio-panel {
		width: 100%;
	}

	.team-bio-panel__media {
		flex-basis: auto;
		min-height: 0;
		max-height: none;
	}

	.team-bio-panel__body {
		padding: 1.35rem 1.25rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbm-modal.mbm-modal--team,
	.team-bio-panel {
		transition: none;
	}
}
