/**
 * Team Featured styles.
 *
 * @package NexioEducation
 */

.team-featured {
	max-width: var(--wp--style--global--content-size, 1156px);
	margin: 0 auto;
	padding: 64px 0 80px;
}

.team-featured-title {
	color: #064d8e;
	font-family: "Apris Trial", serif;
	font-size: 44px;
	font-weight: 300;
	line-height: 52px;
	margin: 0 0 32px;
}

.team-featured-list {
	display: flex;
	flex-direction: column;
}

/* Member card */
.team-featured-member {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-bottom: 24px;
}

.team-featured-divider {
	border: none;
	border-top: 1px solid rgba(6, 77, 142, 0.25);
	margin: 0;
	width: 100%;
}

.team-featured-list > .team-featured-divider:last-child {
	margin-top: 0;
}

.team-featured-member-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 60px;
}

/* Left column - image and basic info */
.team-featured-member-left {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.team-featured-member-image {
	width: 212px;
	height: 212px;
	overflow: hidden;
	border-radius: 50%;
}

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

.team-featured-member-info {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.team-featured-name-role {
	display: flex;
	flex-direction: column;
}

.team-featured-member-name {
	color: #064d8e;
	font-family: "Apris Trial", serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 28px;
	margin: 0;
}

.team-featured-member-role {
	color: #064d8e;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	margin: 0;
}

.team-featured-member-education {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.team-featured-education-label {
	color: #064d8e;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
}

.team-featured-education-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.team-featured-education-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.team-featured-education-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.team-featured-education-text {
	color: #064d8e;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	max-width: 350px;
}

/* Right column - bio and link */
.team-featured-member-right {
	width: 684px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-height: 254px;
}

.team-featured-member-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.team-featured-profile-heading {
	color: #064d8e;
	font-family: "Apris Trial", serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 28px;
	margin: 0;
}

.team-featured-member-bio {
	color: #064d8e;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
}

.team-featured-member-bio p {
	margin: 0 0 18px;
}

.team-featured-member-bio p:last-child {
	margin-bottom: 0;
}

.team-featured-member-link {
	align-self: flex-end;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0;
	background: transparent;
	border: 1.2px solid rgba(6, 77, 142, 0.25);
	color: #064d8e;
	padding: 8px 32px;
	border-radius: 33px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 16.8px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.team-featured-member-link:hover {
	background: #064d8e;
	color: #fff;
	border-color: #064d8e;
}

.team-featured-member-link svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.team-featured-member-link:hover svg path {
	fill: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
	.team-featured {
		padding: 64px 80px 80px;
	}
}

@media (max-width: 1024px) {
	.team-featured {
		padding: 48px 40px 64px;
	}

	.team-featured-member-right {
		width: auto;
		flex: 1;
		min-height: auto;
	}

	.team-featured-member-inner {
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.team-featured {
		padding: 40px 20px 48px;
	}

	.team-featured-title {
		font-size: 32px;
		line-height: 40px;
	}

	.team-featured-member-inner {
		flex-direction: column;
		gap: 24px;
	}

	.team-featured-member-left {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
	}

	.team-featured-member-image {
		width: 140px;
		height: 140px;
	}

	.team-featured-member-info {
		flex: 1;
		min-width: 200px;
	}

	.team-featured-member-right {
		width: 100%;
	}

	.team-featured-member-link {
		align-self: flex-start;
	}
}
