.team-members-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.team-member-card {
	background: #f2f2f2;
	border: 1px solid #e3e3e3;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	transition: transform 200ms ease;
}

.team-member-card:hover {
	transform: translateY(-2px);
}

.team-member-image-wrap {
	position: relative;
}

.team-member-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.team-member-image-placeholder {
	background: #d9d9d9;
}

.team-member-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	background: #d8ad43;
	color: #ffffff;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.team-member-view-bio {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	border: 0;
	border-radius: 999px;
	padding: 12px 24px;
	background: #ffffff;
	color: #032a5a;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.team-member-card:hover .team-member-view-bio {
	opacity: 1;
}

.team-member-content {
	padding: 18px 20px 20px;
}

.team-member-name {
	margin: 0;
	color: #032a5a;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
}

.team-member-designation {
	margin: 8px 0 0;
	color: #ea6b34;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.team-member-bio-html {
	display: none;
}

.team-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.team-modal.is-open {
	display: flex;
}

.team-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(3, 9, 22, 0.45);
}

.team-modal-dialog {
	position: relative;
	z-index: 2;
	width: min(1040px, 100%);
	background: #f3f3f3;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.team-modal-topline {
	height: 4px;
	background: #d8ad43;
}

.team-modal-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px 0;
}

.team-modal-nav {
	display: inline-flex;
	gap: 10px;
}

.team-modal-nav-btn {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #032a5a;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.team-modal-close {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #e8e8e8;
	color: #666666;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.team-modal-body {
	display: grid;
	grid-template-columns: 320px 1fr;
	min-height: 460px;
}

.team-modal-image-col {
}

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

.team-modal-content-col {
	padding: 18px 28px 28px;
}

.team-modal-employment {
	display: inline-block;
	background: #e5d4a2;
	color: #b38d2f;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.team-modal-title {
	margin: 0 0 8px;
	color: #032a5a;
	font-size: 46px;
	line-height: 1.1;
	font-weight: 700;
}

.team-modal-designation {
	margin: 0;
	color: #ea6b34;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.team-modal-divider {
	height: 1px;
	background: #e3e3e3;
	margin: 16px 0 18px;
}

.team-modal-bio {
	color: #616161;
	font-size: 20px;
	line-height: 1.6;
}

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

body.team-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.team-members-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-modal {
		padding: 10px;
	}

	.team-modal-dialog {
		width: 100%;
		max-height: calc(100vh - 20px);
		border-radius: 22px;
	}

	.team-modal-body {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.team-modal-image-col {
		height: 300px;
	}

	.team-modal-controls {
		padding: 12px 14px 10px;
	}

	.team-modal-content-col {
		padding: 18px 22px 24px;
	}

	.team-modal-title {
		font-size: 48px;
	}

	.team-modal-designation {
		font-size: 32px;
	}

	.team-modal-bio {
		font-size: 38px;
		line-height: 1.5;
	}
}

@media (max-width: 767px) {
	.team-members-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.team-member-view-bio {
		font-size: 18px;
		padding: 10px 18px;
	}

	.team-modal {
		padding: 2px;
		align-items: stretch;
	}

	.team-modal-dialog {
		height: 100%;
		max-height: 100vh;
		border-radius: 24px;
	}

	.team-modal-controls {
		padding: 14px 22px 12px;
	}

	.team-modal-nav-btn {
		width: 34px;
		height: 34px;
		font-size: 22px;
	}

	.team-modal-close {
		width: 34px;
		height: 34px;
		font-size: 24px;
	}

	.team-modal-image-col {
		height: 330px;
	}

	.team-modal-content-col {
		padding: 18px 32px 30px;
	}

	.team-modal-employment {
		font-size: 14px;
		letter-spacing: 1.6px;
		padding: 5px 14px;
		margin-bottom: 14px;
	}

	.team-modal-title {
		font-size: 52px;
		line-height: 1.08;
		margin-bottom: 10px;
	}

	.team-modal-designation {
		font-size: 33px;
		letter-spacing: 2.4px;
	}

	.team-modal-bio {
		font-size: 39px;
		line-height: 1.56;
	}

	.team-modal-divider {
		margin: 16px 0 20px;
	}
}
