/**
 * Team Block Styles
 */

.team-section {
	width: 100%;
	padding: 4rem 0;
}

.team-section__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	margin-bottom: 3rem;
}

.team-section__label {
	flex: 0 1 50%;
}

.team-section__action {
	white-space: nowrap;
}

.team-section__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.our-team__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.team-card {
	overflow: hidden;
	max-width: 24.5rem;
	width: 100%;
	position: relative;
}

.team-card__image {
	width: 100%;
	overflow: hidden;
	border-radius: 0.5rem;
	background: var(--primary-1);
	display: block;
}

.team-card__image img {
	width: 100%;
	height: 28.125rem;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.team-card:hover .team-card__image img {
	transform: scale(1.05);
}

.team-card__info {
	padding: 0.75rem 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.team-card__text {
	flex: 1;
}

.team-card__name {
	font-weight: 700;
	color: var(--primary-16);
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.team-card__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
	display: block;
}

.team-card__name a:hover {
	color: var(--primary-4);
}

.team-card__position {
	font-size: 1.125rem;
	color: var(--primary-12);
	line-height: 1.4;
	margin: 0;
}

.team-card__social {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(-0.625rem);
	flex-shrink: 0;
	color: var(--primary-16);
	text-decoration: none;
}

.team-card__social:hover {
	transform: translateY(-0.625rem) scale(1.1);
	color: var(--primary-4);
}

.team-card__line {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 0.1875rem;
	width: 0;
	background: var(--primary-16);
	transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card__social {
	opacity: 1;
	transform: translateY(0);
}

.team-card:hover .team-card__line {
	width: 100%;
}

@media (max-width: 90rem) {
	.team-section__grid,
	.our-team__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 75rem) {
	.team-section__grid,
	.our-team__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 61.99875rem) {
	.team-section__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.team-section__label {
		flex: 1;
	}

	.team-section__grid,
	.our-team__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}

	.team-card__social {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 47.99875rem) {
	.team-section__grid,
	.our-team__grid {
		grid-template-columns: repeat(1, 1fr);
		gap: 1rem;
	}

	.team-card {
		max-width: 100%;
	}
}

@media (max-width: 47.99875em) {
	.team-card {
		max-width: 100%;
	}
}

@media (max-width: 29.99875rem) {
	.team-section__grid,
	.our-team__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 20em) {
	.team-section__header {
		margin-bottom: 2rem;
	}
	.team-card__name {
		font-size: 1.25rem;
	}
}

@media (min-width: 20em) and (max-width: 120em) {
	.team-card__name {
		font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
	}
}

@media (min-width: 120em) {
	.team-card__name {
		font-size: 1.5rem;
	}
}

