/* Front-end "Team & Experts" box. Theme-agnostic, RTL-first, scoped to .ac-te-box. */

.ac-te-box {
	margin: 2.5rem 0 1rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	background: #fafbfc;
	text-align: right;
}

.ac-te-group + .ac-te-group {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e9edf1;
}

.ac-te-card__role {
	margin: 0 0 0.2rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #6b7580;
}

.ac-te-card {
	display: flex;
	flex-direction: row; /* container is dir="rtl", so this places the photo on the right */
	justify-content: flex-start;
	gap: 1rem;
	align-items: flex-start;
}

.ac-te-card + .ac-te-card {
	margin-top: 1rem;
}

.ac-te-card__photo {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden; /* clips the image to a circle regardless of theme rules */
	background: #e6eaee;
	line-height: 0;
}

/* Force a consistent round 84px avatar, overriding theme/Elementor image styles. */
.ac-te-card__photo img,
.ac-te-card__photo svg {
	width: 84px !important;
	height: 84px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

.ac-te-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ac-te-card__name {
	margin: 0 0 0.15rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
}

.ac-te-card__name a {
	text-decoration: none;
}

.ac-te-card__title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	color: #6b7580;
}

.ac-te-card__spec {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: #78828d;
}

.ac-te-card__bio {
	font-size: 0.95rem;
	line-height: 1.7;
}

.ac-te-card__bio p {
	margin: 0 0 0.5rem;
}

.ac-te-card__links {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.ac-te-card__links li {
	margin: 0;
}

.ac-te-card__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.9rem;
	text-decoration: none;
}

.ac-te-card__links .dashicons {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
}

@media (max-width: 480px) {
	.ac-te-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.ac-te-box {
		text-align: center;
	}
}
