/* Author Overview Hero Slider — shortcode only */

.jove-author-hero {
	position: relative;
	background: #fff;
}

/* Viewport stays fixed; only the track translates */
.jove-author-hero__viewport {
	overflow: hidden;
	width: 100%;
}

.jove-author-hero__slides {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.jove-author-hero__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	position: relative;
	background-color: #fff;
	background-position: center right;
	background-repeat: no-repeat;
	/* background-size: 49% auto; */
	padding: 4rem 0 5rem 9.5rem;
	max-height: 360px;
	overflow: hidden;
	box-sizing: border-box;
}

.jove-author-hero__slide::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		#fff 0.05%,
		rgba(255, 255, 255, 1) 32.57%,
		rgba(255, 255, 255, 0.94) 39.83%,
		rgba(255, 255, 255, 0.7) 59.09%,
		rgba(255, 255, 255, 0) 81.55%
	);
}

.jove-author-hero__content {
	position: relative;
	z-index: 1;
	max-width: 740px;
}

.jove-author-hero__title {
	font-family: Roboto, sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 44px;
	color: #1d1d1d;
	margin: 0 0 16px;
}

.jove-author-hero__quote {
	font-family: Roboto, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
	color: #1d1d1d;
	margin: 0 0 12px;
}

.jove-author-hero__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	color: #333;
	margin: 0 0 20px;
	flex-wrap: wrap;
}

.jove-author-hero__sep {
	color: #d6d6d6;
}

.jove-author-hero__video-link {
	color: #137cec;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	text-decoration: none;
}

.jove-author-hero__video-link:hover {
	text-decoration: underline;
	color: #137cec;
}

.jove-author-hero__video-link img {
	width: 18px;
	height: 18px;
	display: block;
}

.jove-author-hero__btn {
	display: inline-block;
	background: #137cec;
	color: #fff !important;
	font-family: Roboto, sans-serif;
	font-size: 18px;
	font-weight: 500;
	padding: 12px 24px;
	border-radius: 6px;
	border: none;
	text-decoration: none;
	line-height: 25px;
	transition: background 0.2s;
}

.jove-author-hero__btn:hover {
	background: #0f6bc7;
	color: #fff !important;
	text-decoration: none;
}

.jove-author-hero__dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.jove-author-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: transparent;
	border: 1.5px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	padding: 0;
	transition: background 0.3s, transform 0.2s, border-color 0.2s;
}

.jove-author-hero__dot.is-active {
	background: #137cec;
	border-color: #137cec;
	box-shadow: none;
	transform: scale(1.15);
}

.jove-author-hero__dot:hover:not(.is-active) {
	background: rgba(255, 255, 255, 0.5);
}

/* Video popup */
.jove-author-hero-popup {
	display: none;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.jove-author-hero-popup.is-open {
	display: flex;
}

.jove-author-hero-popup__inner {
	position: relative;
	width: 40%;
	max-width: 900px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.jove-author-hero-popup__inner video {
	width: 100%;
	display: block;
}

.jove-author-hero-popup__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
	padding: 0;
}

/* 900–1600px: live Elementor gradient */
@media screen and (min-width: 900px) and (max-width: 1600px) {
	.jove-author-hero__slide {
		max-height: 360px;
	}

	.jove-author-hero__slide::before {
		background: linear-gradient(
			90deg,
			#fff 0.05%,
			rgba(255, 255, 255, 1) 32.57%,
			rgba(255, 255, 255, 0.94) 39.83%,
			rgba(255, 255, 255, 0.7) 59.09%,
			rgba(255, 255, 255, 0) 81.55%
		);
	}
}

/* >1600px */
@media screen and (min-width: 1601px) {
	.jove-author-hero__slide {
		max-height: 360px;
	}

	.jove-author-hero__slide::before {
		background: linear-gradient(
			90deg,
			#fff 0.05%,
			rgba(255, 255, 255, 1) 32.57%,
			rgba(255, 255, 255, 0.96) 45%,
			rgba(255, 255, 255, 0.8) 59.09%,
			rgba(255, 255, 255, 0) 83.55%
		);
	}
}

@media screen and (max-width: 1200px) {
	.jove-author-hero__slide {
		padding: 4rem 2rem 5rem;
	}
}

@media screen and (max-width: 900px) {
	.jove-author-hero__slide {
		max-height: none;
		background-size: cover;
		background-position: top right;
	}
}

/* Mobile — live Elementor overrides */
@media screen and (max-width: 600px) {
	.jove-author-hero__slide {
		padding: 200px 20px 60px;
		background-position: 78% 0 !important;
		max-height: none;
		background-size: auto;
	}

	.jove-author-hero__slide::before {
		background: linear-gradient(
			360deg,
			rgba(255, 255, 255, 1) 0%,
			rgba(255, 255, 255, 1) 55%,
			rgba(255, 255, 255, 0) 82%
		);
	}

	.jove-author-hero__title {
		font-size: 28px;
		line-height: 36px;
	}

	.jove-author-hero__quote {
		font-size: 16px;
		line-height: 24px;
	}

	.jove-author-hero__dots {
		bottom: 16px;
	}

	.jove-author-hero__dot {
		border-color: #c4c4c4;
		box-shadow: none;
	}

	.jove-author-hero__dot.is-active {
		border-color: #137cec;
	}

	.jove-author-hero-popup__inner {
		width: 90%;
	}
}

@media (min-width: 600px) and (max-width: 1024px) {
   .jove-author-hero__content {max-width: 60%;}
}