/* MEET OUR TEAM SECTION (page-about-us.php) */

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 34px 24px;
	margin-bottom: 50px;
}

.team-card {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-family: 'Sora', sans-serif;
}

.team-card-img {
	width: 100%;
	aspect-ratio: 0 / 1;
	object-fit: cover;
	background: #E9EBF0;
	margin-bottom: 16px;
	transition: box-shadow .3s ease-out;
}

.team-card-name {
	display: block;
	color: #1C3F95;
	font-weight: 700;
	font-size: 18px;
	line-height: 24px;
	margin-bottom: 4px;
	transition: color .3s ease-out;
}

.team-card-title {
	display: block;
	color: #35383E;
	font-size: 14px;
	line-height: 20px;
}

.team-card:hover .team-card-name {
	color: #0535AC;
}

/* .team-card.is-active .team-card-img {
	box-shadow: 0 0 0 3px #1C3F95;
} */

/* DETAIL PANEL */
.team-detail {
	display: none;
}
.page-template-page-about-us .md-inner-cont-wrap {
    margin-top: 40px;
}
.team-detail.is-active {
	display: flex;
	flex-wrap: wrap;
}

.team-detail-photo {
	position: relative;
    flex: 0 0 30%;
    max-width: 18%;
    overflow: hidden;
}

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

.team-detail-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 28px;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
	color: #fff;
}

.team-detail-caption h3 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
}

.team-detail-caption p {
	margin: 0;
	font-size: 16px;
	color: #fff;
	opacity: .9;
}

.team-detail-content {
	flex: 1;
	min-width: 280px;
	background: #1C3F95;
	color: #fff;
	padding: 40px 45px;
}

.team-detail-content h4 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.team-detail-content h4:not(:first-child) {
	margin-top: 30px;
}

.team-detail-text,
.team-detail-text p {
	font-size: 16px;
	line-height: 27px;
	color: rgba(255, 255, 255, .9);
	margin-bottom: 0;
}

@media all and (max-width: 767px) {

	.team-detail-photo,
	.team-detail-content {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.team-detail-photo {
		min-height: 280px;
	}

	.team-detail-content {
		padding: 30px 24px;
	}
}