/**
 * Top Speakers carousel — Premium Redesign (v4 compatible)
 * Matches reference: grayscale portraits, hex wireframes, progress-bar navigation.
 */

.section-wrapper[data-id="intersections-top-speakers"] {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.section-wrapper[data-id="intersections-top-speakers"] .wp-block-gutenverse-section>.guten-container {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline: 0 !important;
}

.section-wrapper[data-id="intersections-top-speakers"] .guten-topSpeakersCol.guten-column {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.section-wrapper[data-id="intersections-top-speakers"] .guten-topSpeakersCol>.guten-column-wrapper {
	padding: 0 !important;
	margin: 0 !important;
}

.intersections-top-speakers.top-speakers-section {
	--ts-dark: #221e4d;
	--ts-text: #666666;
	--ts-magenta: #e6007c;
	--ts-font: "Poppins", system-ui, sans-serif;
	--ts-line: #d1dadd;
	--ts-line-active: #221e4d;

	background: linear-gradient(to right, #fffdf6, #f8fafb, #f9f0f9);
	padding: clamp(4rem, 10vw, 8rem) 0;
	overflow: hidden;
	position: relative;
	width: 100%;
	font-family: var(--ts-font);
}

.intersections-top-speakers .section-header {
	text-align: center;
	margin-bottom: clamp(3rem, 6vw, 4rem);
	padding: 0 20px;
}

.intersections-top-speakers .section-title {
	font-size: clamp(2rem, 5vw, 52px);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ts-dark);
	margin: 0;
}

.intersections-top-speakers .section-title .dot {
	display: none;
	/* Hide as per premium design */
}

/* --- Carousel Layout --- */
.intersections-top-speakers__viewport {
	overflow: hidden;
	width: 100%;
	padding: 40px 0;
	cursor: grab;
	position: relative;
}

.intersections-top-speakers__viewport:active {
	cursor: grabbing;
}

.intersections-top-speakers__track {
	display: flex;
	gap: 60px;
	padding: 0 10vw;
	transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
	will-change: transform;
	width: max-content;
}

/* --- Speaker Card --- */
.intersections-top-speakers .speaker-card {
	width: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.intersections-top-speakers .speaker-assembly {
	position: relative;
	width: 220px;
	height: 220px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.intersections-top-speakers .speaker-bg-circle {
	position: absolute;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	z-index: 1;
	transition: transform 0.5s ease;
}

.intersections-top-speakers .speaker-card.variant-pink .speaker-bg-circle {
	background: linear-gradient(135deg, #ffd07f 0%, #ff2692 100%);
	opacity: 0.8;
}

.intersections-top-speakers .speaker-card.variant-blue .speaker-bg-circle {
	background: linear-gradient(135deg, #c2f1ff 0%, #7466ff 100%);
	opacity: 0.8;
}

.intersections-top-speakers .speaker-hex-wire {
	position: absolute;
	width: 200px;
	height: 200px;
	top: 50%;
	left: 50%;
	transform: translate(-55%, -50%) rotate(0deg);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50 2, 95 24, 95 76, 50 98, 5 76, 5 24' fill='none' stroke='%23221E4D' stroke-width='0.6' /%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	z-index: 2;
	opacity: 0.3;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Hover state: rotates counter-clockwise, shifts left, and lowers slightly (+5px) */
.intersections-top-speakers .speaker-card:hover .speaker-hex-wire {
	transform: translate(-65%, calc(-46% + 5px)) rotate(-22deg);
	opacity: 0.6;
}

.intersections-top-speakers .speaker-photo {
	position: relative;
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
	z-index: 3;
	filter: grayscale(100%) contrast(1.1);
	transition: filter 0.6s ease, transform 0.6s ease;
}

.intersections-top-speakers .speaker-card:hover .speaker-photo {
	filter: grayscale(0%) contrast(1);
	transform: scale(1.05);
}

.intersections-top-speakers .speaker-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--ts-dark);
	margin-bottom: 4px;
	line-height: 1.2;
}

.intersections-top-speakers .speaker-role {
	font-size: 15px;
	color: var(--ts-text);
	font-weight: 400;
}

.intersections-top-speakers .speaker-company {
	font-size: 14px;
	color: var(--ts-text);
	opacity: 0.8;
	margin-top: 2px;
}

/* --- Controls (Progress Bar Style) --- */
.intersections-top-speakers__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(15px, 4vw, 30px);
	margin-top: 40px;
	position: relative;
}

.intersections-top-speakers__nav-prev,
.intersections-top-speakers__nav-next {
	background: none;
	border: none;
	color: var(--ts-dark);
	cursor: pointer;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.intersections-top-speakers__nav-prev:hover,
.intersections-top-speakers__nav-next:hover {
	opacity: 0.6;
}

.intersections-top-speakers__nav-icon {
	width: 24px;
	height: 24px;
	color: var(--ts-dark);
}

.intersections-top-speakers__dots {
	display: flex;
	align-items: center;
	gap: 0;
	width: clamp(100px, 20vw, 200px);
	height: 2px;
	background: var(--ts-line);
	position: relative;
}

/* Transform dots into progress bar segments */
.intersections-top-speakers__dot {
	flex: 1;
	height: 100%;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	transition: background-color 0.4s;
}

.intersections-top-speakers__dot.is-active {
	background: var(--ts-line-active);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
	.intersections-top-speakers__track {
		gap: 30px;
		padding: 0 20px;
	}

	.intersections-top-speakers .speaker-card {
		width: 220px;
	}

	.intersections-top-speakers .speaker-assembly {
		width: 180px;
		height: 180px;
	}

	.intersections-top-speakers .speaker-photo,
	.intersections-top-speakers .speaker-bg-circle {
		width: 130px;
		height: 130px;
	}

	.intersections-top-speakers .speaker-hex-wire {
		width: 160px;
		height: 160px;
	}

	.intersections-top-speakers .section-title {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.intersections-top-speakers__track {
		transition: none !important;
	}
}