/* Homepage slider (home.html .owl-carousel-home, slide template newshome/.../News/Detail.html), redesigned 2026-10-16.
   Photo fills the slide, caption on a gradient at the bottom, whole slide clickable, slim progress dots and round
   arrows on the photo. Overrides the older rules in styles.css (.newsHome, .owl-dots). */

.owl-carousel-home .owl-stage-outer {
	padding-bottom: 0;
}

.ogv-hero-slide {
	position: relative;
	height: calc(100vh - 95px);
	min-height: 440px;
	max-height: 760px;
	margin: 0;
	overflow: hidden;
	background: #365f0a;
}

@media (min-width: 768px) {
	.newsHome.ogv-hero-slide {
		margin-top: 0;
	}
}

.ogv-hero-image {
	position: absolute;
	inset: 0;
	width: 100% !important; /* owl sets img width */
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	transition: transform 7.5s ease-out;
}

.owl-item.active .ogv-hero-image {
	transform: scale(1);
}

.ogv-hero-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(17, 24, 10, 0) 35%, rgba(17, 24, 10, 0.35) 60%, rgba(17, 24, 10, 0.85) 100%);
	pointer-events: none;
}

.ogv-hero-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 0 28px 64px;
	color: #fff;
}

.ogv-hero-kicker {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	border-radius: var(--ogv-radius);
	background: #6fb016;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ogv-hero-title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(1.5rem, 2.2vw, 2.125rem);
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Whole slide clickable */
.ogv-hero-link,
.ogv-hero-link:hover,
.ogv-hero-link:focus {
	color: #fff !important;
	text-decoration: none;
	text-transform: none;
}

.ogv-hero-link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
}

.ogv-hero-link:focus-visible {
	outline: none;
}

.ogv-hero-slide:has(.ogv-hero-link:focus-visible) {
	box-shadow: inset 0 0 0 4px #fff;
}

.ogv-hero-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-weight: 700;
	opacity: 0.9;
}

.ogv-hero-more i {
	transition: transform 0.2s ease;
}

.ogv-hero-slide:hover .ogv-hero-more i {
	transform: translateX(4px);
}

/* Dots: slim bars on the photo, active one wider */
.owl-carousel-home .owl-dots {
	position: absolute;
	top: auto;
	right: auto;
	bottom: 26px;
	left: 28px;
	z-index: 4;
	display: flex;
	gap: 6px;
	margin: 0 !important;
}

.owl-carousel-home .owl-dots .owl-dot span {
	display: block;
	width: 18px;
	height: 4px;
	margin: 0;
	border-radius: var(--ogv-radius);
	background: rgba(255, 255, 255, 0.5) !important;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.owl-carousel-home .owl-dots .owl-dot.active span {
	width: 36px;
	background: #fff !important;
}

.owl-carousel-home .owl-dots .owl-dot:hover span {
	background: rgba(255, 255, 255, 0.85) !important;
}

/* Arrows: round buttons on the photo, visible on hover / keyboard focus */
.owl-carousel-home .owl-nav {
	margin: 0;
}

.owl-carousel-home .owl-nav button.owl-prev,
.owl-carousel-home .owl-nav button.owl-next {
	position: absolute;
	top: 40%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: var(--ogv-radius)!important;
	background: rgba(255, 255, 255, 0.9) !important;
	color: #365f0a !important;
	font-size: 22px !important;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.owl-carousel-home .owl-nav button.owl-prev {
	left: 16px;
}

.owl-carousel-home .owl-nav button.owl-next {
	right: 16px;
}

.owl-carousel-home:hover .owl-nav button,
.owl-carousel-home .owl-nav button:focus-visible {
	opacity: 1;
}

.owl-carousel-home .owl-nav button:hover {
	background: #fff !important;
}

@media (hover: none) {
	/* touch: swipe, no arrows */
	.owl-carousel-home .owl-nav {
		display: none;
	}
}

@media (max-width: 991px) {
	.ogv-hero-slide {
		height: 62vh;
		min-height: 380px;
	}

	.ogv-hero-caption {
		padding: 0 20px 56px;
	}

	.owl-carousel-home .owl-dots {
		left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ogv-hero-image,
	.owl-item.active .ogv-hero-image {
		transform: none;
		transition: none;
	}
}
