/* Team Grid Block Styles */
.expert-card {
	cursor: pointer;
}
.expert-card:hover img {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}
.expert-card img {
	transition: transform 0.3s ease;
}
.expert-card h4 {
	transition: color 0.3s ease;
}
.expert-card:hover h4 {
	color: var(--primary-color) !important;
}

/* Expert Modal */
.expert-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	justify-content: center;
	align-items: center;
	padding: 20px;
}
.expert-modal-overlay.active {
	display: flex;
}
.expert-modal {
	background: white;
	max-width: 800px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}
.expert-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	cursor: pointer;
	color: var(--accent-rich-soil);
	z-index: 10;
	background: white;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	padding: 0;
	line-height: 1;
}
.expert-modal-close:hover {
	color: var(--primary-color);
}
.expert-modal-content {
	display: flex;
	flex-direction: row;
}
.expert-modal-image {
	flex: 0 0 300px;
	background: var(--sub-bg);
	padding: 30px;
}
.expert-modal-image img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
}
.expert-modal-info {
	flex: 1;
	padding: 40px;
}
.expert-modal-info h3 {
	color: var(--accent-rich-soil);
	margin-bottom: 5px;
	font-size: 28px;
}
.expert-modal-info .expert-title {
	color: var(--primary-color);
	font-size: 16px;
	margin-bottom: 20px;
	font-weight: 600;
}
.expert-modal-info .expert-bio {
	color: #666;
	line-height: 1.7;
}
.expert-modal-info .expert-bio p {
	margin: 0 0 20px 0 !important;
	padding: 0 !important;
	display: block !important;
}
.expert-modal-info .expert-bio p:last-child {
	margin-bottom: 0 !important;
}
.expert-modal-info .expert-bio ul {
	margin-top: 10px !important;
	margin-bottom: 20px !important;
}
.expert-modal-info .expert-bio ul:last-child {
	margin-bottom: 0 !important;
}

@media (max-width: 768px) {
	.expert-modal-content {
		flex-direction: column;
	}
	.expert-modal-image {
		flex: none;
		padding: 20px;
	}
	.expert-modal-info {
		padding: 20px;
	}
}
