/* PEGTV Homepage Slider — JEG Design Inc. */
.pegtv-hero {
	--pegtv-speed: 600ms;
	--pegtv-bar: #6EC1E4;
	--pegtv-teal: var(--e-global-color-secondary, #28A9B8);
	--pegtv-orange: var(--e-global-color-accent, #F59334);
	position: relative;
	width: 100%;
	font-family: "Nunito", sans-serif;
	-webkit-user-select: none;
	user-select: none;
}
.pegtv-hero *,
.pegtv-hero *::before,
.pegtv-hero *::after { box-sizing: border-box; }

.pegtv-hero__viewport {
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
}
.pegtv-hero__track {
	display: flex;
	will-change: transform;
}
.pegtv-hero__track.is-animating {
	transition: transform var(--pegtv-speed) ease;
}
.pegtv-hero__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: calc(575px + 120px);
	padding: 60px 80px;
	color: #fff;
}

/* Background image + dark overlay */
.pegtv-hero__bg {
	position: absolute;
	left: 0;
	right: 0;
	top: -12%;
	height: 124%;
	z-index: 0;
	pointer-events: none;
}
.pegtv-hero:not(.has-parallax) .pegtv-hero__bg { top: 0; height: 100%; }
.pegtv-hero__bg picture,
.pegtv-hero__bg img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}
.pegtv-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: var(--pegtv-overlay, .6);
	z-index: 1;
	pointer-events: none;
}

/* Text */
.pegtv-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}
.pegtv-hero__content { max-width: 100%; }
.pegtv-hero .pegtv-hero__eyebrow {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: var(--pegtv-orange);
	letter-spacing: normal;
	text-transform: none;
}
.pegtv-hero .pegtv-hero__title {
	margin: 0 0 10px -5px;
	padding: 0;
	font-family: inherit;
	font-size: 90px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: normal;
}
.pegtv-hero .pegtv-hero__text {
	margin: 20px 0 0;
	padding: 0;
	max-width: 725px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 2em;
	color: #fff;
}

/* Button (matches the "Rayen" hover effect used before) */
.pegtv-hero .pegtv-hero__btn {
	position: relative;
	display: inline-block;
	overflow: hidden;
	margin-top: 50px;
	padding: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	color: #fff;
	background-color: var(--pegtv-teal);
	border: 1px solid var(--pegtv-teal);
	border-radius: 0;
	transition: background-color .3s, border-color .3s;
}
.pegtv-hero .pegtv-hero__btn > span,
.pegtv-hero .pegtv-hero__btn::before {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 25px;
	transition: transform .3s cubic-bezier(.75, 0, .125, 1);
}
.pegtv-hero .pegtv-hero__btn::before {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	transform: translate3d(-100%, 0, 0);
}
.pegtv-hero .pegtv-hero__btn:hover,
.pegtv-hero .pegtv-hero__btn:focus-visible {
	color: #fff;
	background-color: transparent;
	border-color: #fff;
}
.pegtv-hero .pegtv-hero__btn:hover::before,
.pegtv-hero .pegtv-hero__btn:focus-visible::before { transform: translate3d(0, 0, 0); }
.pegtv-hero .pegtv-hero__btn:hover > span,
.pegtv-hero .pegtv-hero__btn:focus-visible > span { transform: translate3d(0, 100%, 0); }
.pegtv-hero .pegtv-hero__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Progress bar under the slides */
.pegtv-hero__progress {
	position: relative;
	height: 20px;
	background: rgba(0, 0, 0, .25);
	overflow: hidden;
}
.pegtv-hero__bar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: var(--pegtv-bar);
}
.pegtv-hero__pause {
	position: absolute;
	right: 0;
	top: 0;
	width: 32px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, .35);
	cursor: pointer;
	opacity: .75;
	transition: opacity .2s;
}
.pegtv-hero__pause:hover,
.pegtv-hero__pause:focus-visible { opacity: 1; background: rgba(0, 0, 0, .55); }
.pegtv-hero__pause:focus-visible { outline: 2px solid var(--pegtv-teal); outline-offset: -2px; }
/* pause icon (two bars) */
.pegtv-hero__pause::before,
.pegtv-hero__pause::after {
	content: "";
	position: absolute;
	top: 5px;
	width: 3px;
	height: 10px;
	background: #fff;
}
.pegtv-hero__pause::before { left: 12px; }
.pegtv-hero__pause::after { left: 17px; }
/* play icon (triangle) */
.pegtv-hero.is-paused .pegtv-hero__pause::before {
	left: 13px;
	width: 0;
	height: 0;
	background: none;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
}
.pegtv-hero.is-paused .pegtv-hero__pause::after { display: none; }

.pegtv-hero.is-dragging .pegtv-hero__track { cursor: grabbing; }
.pegtv-hero__slide img { -webkit-user-drag: none; }

/* Tablet */
@media (max-width: 1024px) {
	.pegtv-hero__slide { min-height: calc(500px + 60px); padding: 30px; }
	.pegtv-hero .pegtv-hero__title { font-size: 60px; }
	.pegtv-hero .pegtv-hero__text { margin-top: 0; font-size: 16px; }
	.pegtv-hero .pegtv-hero__btn { margin-top: 30px; font-size: 16px; }
}

/* Phone */
@media (max-width: 767px) {
	.pegtv-hero__slide { min-height: calc(305px + 30px); padding: 15px; }
	.pegtv-hero .pegtv-hero__eyebrow { font-size: 16px; }
	.pegtv-hero .pegtv-hero__title { font-size: 35px; margin-left: -3px; }
	.pegtv-hero .pegtv-hero__text { font-size: 15px; line-height: 1.6em; }
	.pegtv-hero .pegtv-hero__btn { margin-top: 20px; width: 170px; font-size: 15px; }
	.pegtv-hero .pegtv-hero__btn > span,
	.pegtv-hero .pegtv-hero__btn::before { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.pegtv-hero__track.is-animating { transition-duration: 1ms; }
	.pegtv-hero .pegtv-hero__btn > span,
	.pegtv-hero .pegtv-hero__btn::before { transition: none; }
}
