.s-team-members .team-nav {
	margin-bottom: 40px;
	gap: 12px;
}

.s-team-members .team-members__row {
	row-gap: 24px;
	column-gap: 24px;
	max-width: 80%;
	margin: 0 auto;
	padding: 0;
}

.s-team-members .team-member__col {
	max-width: calc(50% - 12px);
	flex: 0 0 calc(50% - 12px);
	min-width: 0;
	padding: 0;
}

.s-team-members .team-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: #1a1a1a;
	padding: 8px;
	aspect-ratio: 514 / 614;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.s-team-members .team-card:hover {
	border-color: #f74902;
	box-shadow: 0 0 20px rgba(247, 73, 2, 0.4), inset 0 0 20px rgba(247, 73, 2, 0.05);
}

/* Photo */
.s-team-members .team-card__photo-wrap {
	border-radius: 8px;
	overflow: hidden;
}

.s-team-members .team-card__photo {
	width: 100%;
	aspect-ratio: 500 / 385;
	object-fit: cover;
	display: block;
}

/* Overlay transition */
.s-team-members .team-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 48px;
	background: #1a1a1a;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	overflow-y: auto;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.s-team-members .team-card__overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.s-team-members .team-card__overlay-header {
	position: relative;
}

.s-team-members .team-card__overlay .team-card__name {
	font-size: 28px;
	font-weight: 300;
	margin-bottom: 4px;
}

.s-team-members .team-card__overlay .team-card__role {
	font-size: 14px;
	opacity: 0.7;
	margin-bottom: 24px;
}

.s-team-members .team-card__bio {
	margin-top: auto;
}

.s-team-members .team-card__bio p {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	opacity: 0.8;
	margin-bottom: 24px;
}

.s-team-members .team-card__bio p:last-child {
	margin-bottom: 0;
}

/* Info - always visible */
.s-team-members .team-card__info {
	position: relative;
	margin-top: 16px;
	padding: 0 12px;
}

.s-team-members .team-card__name {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	margin-bottom: 2px;
}

.s-team-members .team-card__role {
	font-size: 14px;
	line-height: 1.2;
	opacity: 0.7;
	margin-bottom: 0;
}

.s-team-members .team-card .team-card__linkedin {
	position: absolute;
	top: 0;
	right: 0;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none !important;
	background: none !important;
	background-image: none !important;
	background-size: 0 0 !important;
	padding-bottom: 0 !important;
	transition: border-color 0.3s ease;
}

.s-team-members .team-card__linkedin svg {
	width: 24px;
	height: 24px;
}

.s-team-members .team-card__linkedin::after,
.s-team-members .team-card__linkedin::before {
	display: none !important;
}

.s-team-members .team-card__linkedin:hover {
	border-color: #f74902 !important;
}

.s-team-members .team-card .team-card__view-profile,
.s-team-members .team-card .team-card__view-profile span {
	background: none !important;
	background-image: none !important;
	background-size: 0 0 !important;
	padding-bottom: 0 !important;
	text-decoration: none !important;
	border-bottom: none !important;
	cursor: pointer;
}

.s-team-members .team-card .team-card__view-profile {
	position: absolute;
	bottom: 56px;
	left: 20px;
	color: #fff;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: opacity 0.3s ease;
}

.s-team-members .team-card__view-profile:hover {
	opacity: 0.7;
}

.s-team-members .team-card__view-profile::after,
.s-team-members .team-card__view-profile::before {
	display: none !important;
}

.s-team-members .team-card__view-profile .btn__icon {
	width: 10px;
	height: 10px;
}

/* Small PC screens */
@media (max-width: 1440px) {
	.s-team-members .team-card__overlay {
		padding: 32px;
	}

	.s-team-members .team-card__overlay .team-card__name {
		font-size: 22px;
	}

	.s-team-members .team-card__overlay .team-card__role {
		font-size: 12px;
	}

	.s-team-members .team-card__bio p {
		font-size: 14px;
		margin-bottom: 16px;
	}

	.s-team-members .team-card .team-card__linkedin {
		width: 40px;
		height: 40px;
	}

	.s-team-members .team-card__linkedin svg {
		width: 18px;
		height: 18px;
	}
}

/* Mobile: overlay always visible below content */
@media (max-width: 1024px) {
	.s-team-members .team-member__col {
		max-width: 100%;
		flex: 0 0 100%;
	}

	.s-team-members .team-card {
		aspect-ratio: auto;
		height: auto;
		display: flex;
		flex-direction: column;
	}

	.s-team-members .team-card__photo-wrap {
		order: 1;
	}

	.s-team-members .team-card__info {
		order: 2;
	}

	.s-team-members .team-card .team-card__view-profile {
		position: static;
		order: 3;
		margin-top: 12px;
		padding: 0 12px;
	}

	.s-team-members .team-card__overlay {
		position: static;
		opacity: 0;
		visibility: hidden;
		max-height: 0;
		padding: 0 12px;
		background: none;
		border-top: none;
		margin-top: 0;
		z-index: auto;
		transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, visibility 0.3s ease;
		overflow-y: hidden;
		order: 4;
	}

	.s-team-members .team-card__overlay.is-visible {
		opacity: 1;
		visibility: visible;
		max-height: 600px;
		padding: 12px 12px 0;
		margin-top: 12px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.s-team-members .team-card__overlay .team-card__overlay-header {
		display: none;
	}

	.s-team-members .team-card__bio {
		margin-top: 0;
	}

	.s-team-members .team-card__bio p {
		font-size: 14px;
		margin-bottom: 12px;
	}


}
