.team {
	background-color: var(--color-bg-light);
	padding: 112px var(--page-padding);
}
.team__header {
	text-align: center;
	margin: 0 auto 48px;
	max-width: 768px;
}
.team__title {
	font-size: 48px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 24px;
	line-height: 1.2;
	min-height: 40px;
}
.team__description {
	font-size: 16px;
	color: #555555;
	max-width: 800px;
	margin: 0 auto 40px;
	line-height: 1.6;
}
.team__filters {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 60px;
	flex-wrap: wrap;
	align-items: start;
}
.filter-button {
	border-radius: 100px;
	border: 1px solid var(--Opacity-Neutral-Darkest-20);
	opacity: 0.5;
	background: var(--Opacity-Neutral-Darkest-10);
	backdrop-filter: blur(5px);
	padding: 4px 10px;
	font-size: var(--text-size-small);
	font-weight: 600;
	line-height: 150%;
	cursor: pointer;
	color: #0a0807;
}
.filter-button.active {
	opacity: 1;
}
.filter-button:hover {
	opacity: 1;
}
.team__grid {
	display: none;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	justify-content: center;
    align-items: start;
}
.team__grid.active {
	display: flex;
}
.team__member {
	text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
	justify-content: center;
	width: 25%;
}
.team__member .top-info, .team__member .bottom-info {
	width: 100%;
}
.team__member .bottom-info {
	margin-top: auto;
}
.team__member-image {
	width: 150px;
	height: 150px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background-color: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}
.team__member-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.team__member-name {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 8px;
}
.team__member-title {
	font-size: 14px;
	color: #666666;
	margin-bottom: 20px;
	line-height: 1.5;
}
.team__member-link {
	display: inline-flex;
	align-items: center;
	justify-content: center; 
	gap: 8px;
	color: #333333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: color 0.3s ease;
}
.team__member-link:hover {
	color: #666666;
}
.team__member-link-icon {
	font-size: 18px;
}
.team__member-bio-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1001;
	display: none;
}
.bg-overlay {
	background-color: rgba(0, 0, 0, 0.7);
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
}
.team__member-bio-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
}
.team__member-bio {
	background-color: var(--color-bg-light);
	max-width: 800px;
	max-height: 665px;
	height: 80vh;
	width: 90vw;
	padding: 56px;
	text-align: left;
	position: relative;
	overflow-y: auto;
}
.team__member-bio .close-btn {
	position: absolute;
	top: 30px;
	right: 30px;
}
.team__member-top-bio {
	display: flex;
	gap: 32px;
	align-items: center;
	margin-bottom: 32px;
}
.team__member-image--bio {
	margin: 0;
}
.team__member-profile h5 {
	font-weight: 600;
	line-height: 140%; /* 33.6px */
}
.team__member-bio-profile p {
	margin-bottom: 20px;
}
.team__member-bio-profile ul {
	list-style-type: disc;
	padding-left: 16px;
  margin-bottom: 12px;
}

@media (max-width: 991px) {
	.team__grid {
		grid-template-columns: 1fr;
	}
	.team__section {
		padding: 40px 16px;
	}
	.team__title {
		font-size: 28px;		
		min-height: auto;
	}
	.team__grid.active {
		display: grid;
	}
	.team__member {
		width: 100%;
	}
	.team__member-image {
		width: 160px;
		height: 160px;
	}
	.team__member-bio {
		padding: 24px;
	}
	.team__member-top-bio {
		flex-direction: column;
		align-items: flex-start;
	}
}
