/* Meet the Team page template. */

/* One consistent design for the whole page — no dark band, no filter
 * tabs, just a heading followed by a flat grid, repeated per group. */
.team-group h2 {
	color: #0a2240;
	margin-bottom: 40px;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
}

/* Both Executive Leadership and Regional & Functional Leaders use the
 * exact same card style — a full-width photo with name/title below and
 * the LinkedIn icon in the corner. */
.team-card-executive,
.team-card-leader {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-card-executive .team-card-photo,
.team-card-leader .team-card-photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eef0f8;
}

.team-card-executive .team-card-photo img,
.team-card-leader .team-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.team-card-executive .team-card-body,
.team-card-leader .team-card-body {
	position: relative;
	padding: 18px 20px 20px;
}

.team-card-executive .team-card-body h3,
.team-card-leader .team-card-body h3 {
	margin: 0 0 4px;
	color: #0a2240;
}

.team-card-executive .team-card-title,
.team-card-leader .team-card-title {
	margin: 0;
	color: rgba(32, 40, 45, 0.6);
	padding-right: 30px;
}

.team-card-executive .team-card-linkedin,
.team-card-leader .team-card-linkedin {
	position: absolute;
	right: 20px;
	bottom: 20px;
}

/* --- Clickable cards (have a bio) --- */
.team-card-clickable {
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-card-clickable:hover {
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
	transform: translateY(-3px);
}

.team-card-view-profile {
	display: inline-block;
	margin-top: 6px;
	border: none;
	background: none;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	color: #0a2240;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* --- Profile detail modal --- */
.team-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(10, 34, 64, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s;
}

.team-modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.team-modal {
	position: relative;
	width: 100%;
	max-width: 780px;
	max-height: 85vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(10, 34, 64, 0.3);
	display: flex;
	transform: translateY(10px);
	transition: transform 0.2s ease;
}

.team-modal-backdrop.is-open .team-modal {
	transform: translateY(0);
}

.team-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(10, 34, 64, 0.06);
	color: rgba(10, 34, 64, 0.6);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.team-modal-close:hover {
	background: #0a2240;
	color: #fff;
}

.team-modal-left {
	flex: 0 0 260px;
	padding: 40px 30px;
	text-align: center;
	background: rgba(10, 34, 64, 0.03);
	border-radius: 14px 0 0 14px;
}

.team-modal-photo {
	width: 160px;
	height: 160px;
	margin: 0 auto 20px;
	border-radius: 50%;
	overflow: hidden;
	background: #eef0f8;
}

.team-modal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.team-modal-left h3 {
	margin: 0 0 6px;
	color: #0a2240;
}

.team-modal-left p {
	margin: 0;
	color: rgba(32, 40, 45, 0.65);
}

.team-modal-right {
	flex: 1;
	padding: 40px 40px 40px 30px;
	min-width: 0;
}

.team-modal-bio p {
	margin: 0 0 14px;
	line-height: 1.75;
	text-align: left;
}

.team-modal-bio p:last-child {
	margin-bottom: 0;
}

.team-modal-bio ul,
.team-modal-bio ol {
	margin: 0 0 14px;
	padding-left: 22px;
	text-align: left;
}

.team-modal-bio h1,
.team-modal-bio h2,
.team-modal-bio h3,
.team-modal-bio h4 {
	text-align: left;
	color: #0a2240;
	margin: 20px 0 10px;
}

@media (max-width: 767px) {
	.team-modal {
		flex-direction: column;
		max-height: 90vh;
	}
	.team-modal-left {
		border-radius: 14px 14px 0 0;
		padding: 30px 24px;
	}
	.team-modal-photo {
		width: 120px;
		height: 120px;
	}
	.team-modal-right {
		padding: 30px 24px;
	}
}
