/* Trusted By Experts Block Styles */

.xb-trusted-experts-section {
	padding: 60px 20px;
	background-color: #ffffff; /* Typically placed on white, or inherits */
	overflow: hidden;
}

.xb-trusted-experts-title {
	text-align: center;
	font-family: "Outfit", -apple-system, sans-serif;
	font-size: 32px;
	font-weight: 800;
	color: #000;
	margin-bottom: 40px;
}

.xb-trusted-experts-carousel {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.xb-trusted-experts-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 10px 5px 30px; /* Padding for shadow */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none;  /* IE and Edge */
	scroll-behavior: smooth;
}

.xb-trusted-experts-track::-webkit-scrollbar {
	display: none;
}

.xb-trusted-expert-card {
	flex: 0 0 340px;
	scroll-snap-align: center;
	background: #ffffff;
	border: 1px solid #E4E6EB;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	flex-direction: column;
}

.xb-expert-header {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.xb-expert-avatar {
	margin-right: 12px;
}

.xb-expert-avatar svg {
	display: block;
}

.xb-expert-meta {
	display: flex;
	flex-direction: column;
}

.xb-expert-name {
	font-weight: 600;
	font-size: 15px;
	color: #050505;
	line-height: 1.2;
}

.xb-expert-time {
	font-size: 13px;
	color: #65676B;
	display: flex;
	align-items: center;
	margin-top: 2px;
}

.xb-expert-globe {
	margin-left: 4px;
	display: flex;
	align-items: center;
}

.xb-expert-content {
	font-size: 15px;
	color: #050505;
	line-height: 1.4;
	margin-bottom: 16px;
	flex-grow: 1; /* Pushes stats/actions to bottom if cards differ in height */
}

.xb-expert-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 10px;
	border-bottom: 1px solid #CED0D4;
	font-size: 15px;
	color: #65676B;
}

.xb-expert-reactions {
	display: flex;
	align-items: center;
}

.xb-reaction-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	border: 2px solid #fff; /* overlap effect */
	margin-right: -4px;
	z-index: 1;
}

.xb-reaction-icon.xb-reaction-love {
	z-index: 2;
}

.xb-reaction-icon.xb-reaction-haha {
	z-index: 3;
}

.xb-reaction-count {
	margin-left: 8px;
}

.xb-expert-actions {
	display: flex;
	justify-content: space-between;
	padding-top: 4px;
}

.xb-expert-action-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: #65676B;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.xb-expert-action-btn:hover {
	background-color: #F2F3F5;
}

.xb-expert-action-btn svg {
	margin-right: 6px;
}

/* Nav arrows (hidden on mobile, visible on desktop) */
.xb-trusted-experts-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	color: #333;
	transition: all 0.2s ease;
}

.xb-trusted-experts-nav:hover {
	background: #f8f9fa;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.xb-trusted-experts-prev { left: -20px; }
.xb-trusted-experts-next { right: -20px; }

/* Dots below the carousel */
.xb-trusted-experts-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.xb-trusted-experts-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #ddd;
	transition: background-color 0.3s;
}

.xb-trusted-experts-dot.active {
	background-color: #333;
}

/* Responsive constraints */
@media (max-width: 1240px) {
	.xb-trusted-experts-prev { left: 10px; }
	.xb-trusted-experts-next { right: 10px; }
}

@media (max-width: 768px) {
	.xb-trusted-experts-nav {
		display: none; /* Rely on scroll-snap on mobile */
	}
	
	.xb-trusted-expert-card {
		flex: 0 0 85vw; /* Almost full width, but peaks at the next card */
	}
	
	.xb-trusted-experts-title {
		font-size: 24px;
	}
}
