/* Shared leadership and teacher cards on the Recruitment page. */
.recruitment-team-section {
	padding: clamp(34px, 5vw, 68px) 0 !important;
	background: var(--ms-bg, #f5fbfb) !important;
	scroll-margin-top: 120px;
}

body.admin-bar .recruitment-team-section { scroll-margin-top: 152px; }

.recruitment-team-section .team-slider-box {
	box-sizing: border-box;
	overflow: hidden;
	padding: 30px 40px 24px !important;
	border: 1px solid rgba(11, 111, 120, .12);
	border-radius: 28px;
	background: radial-gradient(circle at 50% 0, rgba(13, 143, 151, .08), transparent 50%), linear-gradient(180deg, #fff 0%, #f3fafb 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.recruitment-team-section .section-title-wrapper-slider {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1.5px solid rgba(11, 111, 120, .08);
}

.recruitment-team-section .title-left-group {
	flex: 1 1 auto;
	padding: 0 100px;
	text-align: center;
}

.recruitment-team-section .title-left-group h2 {
	margin: 0;
	color: var(--ms-primary-dark, #075f6b);
	font-family: var(--ms-font-heading, Arial, Helvetica, sans-serif);
	font-size: clamp(27px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.2;
}

.recruitment-team-section .team-group {
	margin-top: 18px;
	padding: 0 !important;
	overflow: visible;
}

.recruitment-team-section .team-group + .team-group {
	margin-top: 30px;
	padding-top: 20px !important;
	border-top: 1px solid rgba(11, 111, 120, .12);
}

.recruitment-team-section .team-group-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-bottom: 8px;
}

.recruitment-team-section .team-group-header h3 {
	margin: 0;
	color: #0b6f78;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

.recruitment-team-section .team-group-subtitle {
	max-width: 720px;
	margin: 0 auto 14px;
	color: var(--ms-text-muted, #64748b);
	font: 400 15px/1.45 Arial, Helvetica, sans-serif;
	text-align: center;
}

.recruitment-team-section .slider-controls-group {
	position: absolute;
	right: 0;
	display: flex;
	gap: 10px;
}

.recruitment-team-section .team-slider-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid rgba(11, 111, 120, .18);
	border-radius: 50%;
	color: #0b6f78;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .03);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.recruitment-team-section .team-slider-btn:hover,
.recruitment-team-section .team-slider-btn:focus-visible {
	border-color: #0b6f78;
	color: #fff;
	background: #0b6f78;
}

.recruitment-team-section .team-slider-container {
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
}

.recruitment-team-section .team-slider-track {
	display: flex;
	box-sizing: border-box;
	gap: 20px;
	overflow-x: auto;
	padding: 10px 5px 12px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.recruitment-team-section .team-slider-track::-webkit-scrollbar { display: none; }

.recruitment-team-section .team-avatar-card {
	position: relative;
	flex: 0 0 calc(25% - 15px);
	min-width: calc(25% - 15px);
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate;
	padding: 16px 14px;
	border: 1px solid rgba(11, 111, 120, .12);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(11, 111, 120, .07);
	text-align: center;
	scroll-snap-align: start;
	cursor: pointer;
	transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.recruitment-team-section .team-avatar-card:hover {
	transform: translateY(-6px);
	border-color: rgba(11, 111, 120, .3);
	box-shadow: 0 18px 40px rgba(11, 111, 120, .14);
}

.recruitment-team-section .team-avatar-card:focus-visible {
	outline: 3px solid #f59b00;
	outline-offset: 3px;
}

.recruitment-team-section .team-card-top-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	background: #0b6f78;
	box-shadow: 0 4px 12px rgba(11, 111, 120, .22);
}

.recruitment-team-section .team-card-dots {
	position: absolute;
	top: 14px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 32px;
	color: #0b6f78;
	opacity: .25;
	pointer-events: none;
}

.recruitment-team-section .team-avatar-photo-box {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 215px;
	margin: 0 auto 12px;
	overflow: hidden;
	border-radius: 20px;
}

.recruitment-team-section .team-avatar-bg-circle {
	position: absolute;
	top: 15px;
	left: 50%;
	z-index: 1;
	width: 185px;
	height: 185px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(215, 242, 244, .95), rgba(185, 232, 236, .75));
	transform: translateX(-50%);
}

.recruitment-team-section .team-avatar-portrait-img {
	position: relative;
	z-index: 2;
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 6px 12px rgba(11, 111, 120, .12));
	transition: transform .32s ease;
}

.recruitment-team-section .team-avatar-card:hover .team-avatar-portrait-img { transform: scale(1.04) translateY(-2px); }

.recruitment-team-section .team-card-bottom-wave {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 3;
	width: 100%;
	height: 14px;
	pointer-events: none;
}

.recruitment-team-section .team-card-bottom-wave svg { display: block; width: 100%; height: 100%; }
.recruitment-team-section .team-card-meta-text { position: relative; z-index: 5; padding-top: 4px; }

.recruitment-team-section .team-member-name {
	display: -webkit-box;
	min-height: 38px;
	margin: 0 0 6px;
	overflow: hidden;
	color: var(--ms-primary-dark, #075f6b);
	font: 700 14.5px/1.3 Arial, Helvetica, sans-serif;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.recruitment-team-section .team-member-role {
	display: -webkit-box;
	min-height: 29px;
	margin: 0;
	overflow: hidden;
	color: var(--ms-accent-gold, #e98c00);
	font: 600 12px/1.25 Arial, Helvetica, sans-serif;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.recruitment-team-section .team-member-profile-status {
	display: inline-flex;
	margin: 8px 0 0;
	padding: 5px 10px;
	border-radius: 999px;
	color: #0a717c;
	background: #e8f6f6;
	font: 700 11px/1.25 Arial, Helvetica, sans-serif;
}

.about-team-profile-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(5, 70, 76, .62);
	opacity: 1;
	visibility: visible;
	transition: opacity .2s ease, visibility .2s ease;
}

.about-team-profile-modal[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }

.about-team-profile-modal__dialog {
	position: relative;
	width: min(940px, 100%);
	height: min(400px, calc(100vh - 48px));
	max-height: min(400px, calc(100vh - 48px));
	overflow: hidden;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 44, 49, .32);
}

.about-team-profile-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #096e78;
	background: #eff8f8;
	font-size: 30px;
	line-height: 38px;
	cursor: pointer;
}

.about-team-profile-modal__inner,
.about-team-profile__content { height: 100%; min-height: 0; }
.about-team-profile__content { display: flex; align-items: stretch; }

.about-team-profile__image {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex: 0 0 30%;
	min-width: 220px;
	box-sizing: border-box;
	height: 100%;
	padding: 28px 18px 0;
	overflow: hidden;
	background: linear-gradient(155deg, #d9f2f3, #a7dfe2);
}

.about-team-profile__image img { display: block; width: 100%; max-width: 220px; height: 100%; max-height: 330px; object-fit: contain; object-position: bottom; }
.about-team-profile__body { flex: 1 1 0; width: 0; min-height: 0; box-sizing: border-box; padding: 38px 42px 40px; overflow-y: auto; font-family: Arial, Helvetica, sans-serif; }
.about-team-profile__role { margin: 0 0 6px; color: #e98c00; font-size: 13px; font-weight: 600; line-height: 1.45; letter-spacing: .07em; text-transform: uppercase; text-align: left; }
.about-team-profile__name { width: 100% !important; max-width: none !important; margin: 0; color: #075f6b; font: 600 clamp(24px, 2.2vw, 32px)/1.18 Arial, Helvetica, sans-serif !important; white-space: nowrap; text-align: left; }
.about-team-profile__section { margin-top: 17px; padding: 0 !important; }
.about-team-profile__section h3 { margin: 0 0 7px; color: #0a717c; font: 700 15px/1.35 Arial, Helvetica, sans-serif; }
.about-team-profile__section.is-specialty h3 { display: none; }
.about-team-profile__section.is-specialty .about-team-profile__text { color: #0a717c; font-weight: 600; text-align: center; }
.about-team-profile__text { color: #334155; font: 400 14px/1.58 Arial, Helvetica, sans-serif; text-align: left; }
.about-team-profile__text > :first-child { margin-top: 0; }
.about-team-profile__text > :last-child { margin-bottom: 0; }
.about-team-profile__text p { margin: 0 0 14px; }
.about-team-profile__text ul { margin: 0; padding-left: 20px; }
.about-team-profile__pending { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(11, 111, 120, .16); border-radius: 14px; color: #0a717c; background: #f2fafa; }
.about-team-profile__pending p { margin: 0; font-weight: 700; }
body.about-team-profile-open { overflow: hidden; }

@media (max-width: 991px) {
	.recruitment-team-section .team-avatar-card { flex-basis: calc(33.333% - 14px); min-width: calc(33.333% - 14px); }
}

@media (max-width: 767px) {
	.recruitment-team-section { padding: 30px 0 !important; scroll-margin-top: 108px; }
	body.admin-bar .recruitment-team-section { scroll-margin-top: 154px; }
	.recruitment-team-section .team-slider-box { padding: 24px 12px 18px !important; border-radius: 20px; }
	.recruitment-team-section .title-left-group { padding: 0; }
	.recruitment-team-section .title-left-group h2 { font-size: 25px; }
	.recruitment-team-section .team-group-header { justify-content: flex-start; padding-right: 82px; }
	.recruitment-team-section .team-group-header h3 { font-size: 18px; text-align: left; }
	.recruitment-team-section .team-group-subtitle { max-width: none; margin: 0 0 12px; font-size: 14px; text-align: left; }
	.recruitment-team-section .team-slider-btn { width: 34px; height: 34px; font-size: 25px; }
	.recruitment-team-section .team-slider-track { gap: 12px; cursor: grab; }
	.recruitment-team-section .team-slider-track.is-mouse-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
	.recruitment-team-section .team-avatar-card { flex-basis: calc(50% - 6px); min-width: calc(50% - 6px); padding: 12px 8px; border-radius: 18px; }
	.recruitment-team-section .team-card-top-badge { top: 8px; left: 8px; width: 30px; height: 30px; }
	.recruitment-team-section .team-card-top-badge svg { width: 15px; height: 15px; }
	.recruitment-team-section .team-avatar-photo-box { height: 165px; margin-bottom: 8px; border-radius: 14px; }
	.recruitment-team-section .team-avatar-bg-circle { top: 10px; width: 140px; height: 140px; }
	.recruitment-team-section .team-member-name { font-size: 13px; line-height: 1.25; }
	.recruitment-team-section .team-member-role { font-size: 11.5px; line-height: 1.2; }
	.about-team-profile-modal { padding: 12px; overflow-y: auto; }
	.about-team-profile-modal__dialog { height: auto; max-height: calc(100dvh - 24px); border-radius: 20px; }
	.about-team-profile-modal__inner { height: auto; max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; }
	.about-team-profile__content { height: auto; flex-direction: column; }
	.about-team-profile__image { flex: none; min-width: 0; width: 100%; height: 190px; padding: 14px 20px 0; }
	.about-team-profile__image img { width: auto; max-width: 180px; max-height: 176px; }
	.about-team-profile__body { flex: 0 1 auto; width: 100%; min-height: 0; padding: 20px 22px 26px; overflow: visible; }
	.about-team-profile__role { margin-right: 42px; font-size: 11px; }
	#page #content .about-team-profile__name { box-sizing: border-box; width: 100% !important; max-width: 100% !important; font-size: 22px !important; line-height: 1.15 !important; letter-spacing: -.025em !important; white-space: nowrap; }
}

@media (max-width: 420px) {
	.about-team-profile__body { padding: 18px 20px 24px; }
	.about-team-profile__text { font-size: 13px; }
}
