/*
 * VirtualRun Core - homepage slider (v0.6.26, completed v0.6.28,
 * upgraded to hero mode v0.6.29). Dependency-free, no external
 * libraries. Scoped entirely under .vr-slider so it never leaks
 * into or conflicts with theme styles.
 */
.vr-slider {
	position: relative;
	overflow: hidden;
}

.vr-slider-track {
	display: flex;
	transition: transform 0.45s ease;
}

.vr-slide {
	position: relative;
	flex: 0 0 100%;
	display: flex;
	align-items: center;
}

.vr-slide-background {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #071b33, #0b4bc4 55%, #1266f1 130%);
}

.vr-slide-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vr-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 27, 51, 0.88) 0%, rgba(7, 27, 51, 0.55) 45%, rgba(7, 27, 51, 0.15) 100%);
}

.vr-slide-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.vr-slide-content {
	max-width: 680px;
	color: #ffffff;
}

.vr-slide-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.14);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.vr-slide-title {
	margin: 0 0 14px;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.15;
}

.vr-slide-description {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.vr-slide-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
}

.vr-slide-date {
	font-size: 13px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.14);
	padding: 7px 14px;
	border-radius: 999px;
}

.vr-slide-countdown {
	font-size: 13px;
	font-weight: 700;
	background: #ffffff;
	color: #0b4bc4;
	padding: 7px 14px;
	border-radius: 999px;
}

.vr-slide-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.vr-slide-button,
.vr-slide-button-secondary {
	display: inline-block;
}

.vr-slide-button-secondary.vr-btn-outline {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.6);
}

.vr-slide-button-secondary.vr-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* ---------- Hero mode ---------- */
.vr-slider-hero .vr-slide {
	min-height: 480px;
	padding: 90px 0 60px;
}

.vr-slider-hero .vr-slide-title {
	font-size: 46px;
}

/* ---------- Section mode (below-hero placement, v0.6.26-0.6.28 behavior) ---------- */
.vr-slider-section {
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(7, 27, 51, 0.14);
}

.vr-slider-section .vr-slide {
	min-height: 380px;
	padding: 32px 0;
}

.vr-slider-section .vr-slide-inner {
	max-width: none;
	padding: 0 32px;
}

/* ---------- Arrows, dots, progress ---------- */
.vr-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: #071b33;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.vr-slider-arrow:hover {
	background: #ffffff;
}

.vr-slider-arrow:focus-visible {
	outline: 2px solid #1266f1;
	outline-offset: 2px;
}

.vr-slider-prev {
	left: 20px;
}

.vr-slider-next {
	right: 20px;
}

.vr-slider-dots {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.vr-slider-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
}

.vr-slider-dot-active {
	background: #ffffff;
	width: 24px;
	border-radius: 999px;
}

.vr-slider-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.18);
	z-index: 2;
}

.vr-slider-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: #ffffff;
}

/* ---------- Search panel (hero mode only) ---------- */
.vr-slider-search {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 28px auto 0;
}

.vr-hero-search-form {
	padding: 16px;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(7, 27, 51, 0.2);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	align-items: center;
}

.vr-hero-search-field input,
.vr-hero-search-field select {
	width: 100%;
	height: 42px;
	min-width: 0;
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid #d9e3f0;
	border-radius: 8px;
	font-size: 14px;
	color: #0b1c33;
}

.vr-hero-search-button {
	height: 42px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.vr-slider-hero .vr-slide {
		min-height: 420px;
		padding: 70px 0 40px;
	}
	.vr-slide-title {
		font-size: 30px;
	}
	.vr-slider-hero .vr-slide-title {
		font-size: 32px;
	}
}

@media (max-width: 640px) {
	.vr-slide {
		min-height: 320px;
	}
	.vr-slide-inner {
		padding: 0 18px;
	}
	.vr-slide-description {
		font-size: 13.5px;
	}
	.vr-slide-button,
	.vr-slide-button-secondary {
		width: 100%;
		text-align: center;
	}
	.vr-slide-actions {
		flex-direction: column;
	}
	.vr-slider-arrow {
		width: 34px;
		height: 34px;
		font-size: 16px;
	}
	.vr-slider-search {
		margin-top: 18px;
	}
	.vr-hero-search-form {
		grid-template-columns: 1fr;
	}
}
