/* Ensure the body doesn't add unwanted margins for a true full-width effect */
body {
    overflow-x: hidden; /* Prevent horizontal scrollbar during slide transitions */
}

.slider-container {
	position: relative;
	width: calc(100vw + 1px); /* Full Viewport Width */
	height: 100dvh; /* Adjust the height as needed for your hero section */
	min-height: 500px;
	overflow: hidden;	
	transition: all .5s;
}
.noscroll .slider-track {
	width: 290vw;
}
.slider-track {
	display: flex;
	width: 300vw; /* 3 slides * 100vw */
	height: 100%;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother transition */
	transition: all .5s;
}
.slide {
	width: calc(100vw + 1px); /* Each slide takes up the full viewport width */
	/*flex-shrink: 0;*/
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	padding: 0 5%;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.slide-content {
	z-index: 4;
}
.slide-content h2 { 
	font-size: 2.75rem; 
	margin-bottom: 15px;
	font-weight: 850;
}
.slide-content p { font-size: 1.25rem; max-width: 800px; }

/* --- Navigation Arrows --- */
.slider-arrow {
	position: absolute;
	bottom: 0;
	height: calc(100dvh - 100px);
	background-color: unset;
	color: white;
	border: none;
	padding: 15px;
	cursor: pointer;
	z-index: 30;
}
.slider-track:hover .slider-arrow {
	opacity: 1;
}
.slider-arrow img {
	filter: invert(1);
	transition: all .25s;
	position: relative;
	right: 0;
	top: -50px;
	border-radius: 19px;
	width: 60px;
	padding: 10px;
	box-sizing: border-box;
}
@media (max-width: 640px) {
	.slider-arrow img {
		display: none;
	}
}

.slider-arrow.prev-arrow img {
	transform: scaleX(-1);
}
.slider-arrow:hover {
	opacity: 1 !important;
}
.slider-arrow:hover img, .slider-arrow:focus img {
	right: -3px;
	background-color: rgba(255, 255, 255, 0.4);
}
.slider-arrow.prev-arrow:hover img, .slider-arrow.prev-arrow:focus img {
	right: 3px;
}
.prev-arrow { 
	left: 0;
}
.next-arrow { 
	right: 14px; 
}

/* --- Filling Pagination Dots --- */
.slider-pagination {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	gap: 12px;
	width: 80%;
  max-width: 400px;
}

.pagination-dot {
	width: 100%;
	height: 10px;
	border: 2px solid rgb(255 255 255 / 75%);
	cursor: pointer;
	overflow: hidden;
	position: relative;
	border-radius: 6px;
	transition: all .125s ease;
}

.pagination-dot.active .pagination-fill {
	position: absolute;
	top: 0;
	left: -2px;
	width: 0%; /* Starts empty */
	height: 100%; 
	background-color: rgb(255 53 0);
	background-color: rgb(255 255 255);
	transition: width 0s linear; /* Controlled by JS for animation */
	border-radius: 2px;
}

/* Ensure the fill is visible on the active dot */
.pagination-dot.active .pagination-fill {
	width: calc(100% + 4px); /* Initially full for active slide when the animation starts */
}

/* slide bg's */
.bg1 {
	background-image: linear-gradient(181deg, rgb(0 26 44 / 69%) 10%, rgb(0 26 44 / 21%)), url(/_img/h1.webp);
	background-position: center bottom;
}
.bg2 {
    background-image: linear-gradient(360deg, rgb(0 0 0 / 24%), rgb(0 0 0 / 73%) 100% 50%), url(/_img/h2.webp);
    background-position: center top;
}
.bg3 {
	background-image: linear-gradient(180deg, rgb(0 0 0 / 45%), rgb(0 0 0 / 43%) 50% 40%), url(/_img/h3.webp);
}
.bg4 {
	background-image: linear-gradient(0deg, rgb(0 9 15 / 95%), rgb(1 14 26 / 50%) 40%), url(/_img/h4.webp);
	background-position: center top;
}
.bg5 {
	background-image: linear-gradient(180deg, rgb(0 0 0 / 25%), rgb(0 0 0 / 23%) 50% 40%), url(/_img/h5.webp);
	background-position: center bottom;
}
.bg6 {
	background-image: linear-gradient(360deg, rgb(0 0 0 / 76%), rgb(3 30 37 / 54%) 40%), url(/_img/h6.webp);
}
.bg7 {
	background-image: linear-gradient(181deg, rgb(0 0 0 / 20%) 10%, rgb(0 5 9 / 62%)), url(/_img/h7.webp);
  background-position: center bottom;
}
.bg8 {
	background-image: linear-gradient(181deg, rgb(0 26 44 / 59%) 10%, rgb(0 5 9 / 18%)), url(/_img/h8.webp);
}
.bg9 {
	background-image: linear-gradient(0deg, rgb(0 0 0 / 19%) 70%, rgb(0 0 0 / 75%)), url(/_img/h9.webp);
  background-position: center bottom;
}

.slide.one {
	/*background-image: linear-gradient(360deg, rgb(0 0 0 / 61%), rgb(2 16 28 / 79%) 90%), url(/_img/hero-city.webp);*/
}
.slide.two {
	/*background-image: linear-gradient(360deg, rgb(35 20 0 / 68%), rgb(0 29 92 / 49%) 90%), url(/_img/h7.webp);*/
}
.slide.three {
	/*background-image: linear-gradient(360deg, rgb(2 18 54 / 54%), rgb(2 16 28 / 79%) 90%), url(/_img/hero-earth.webp);*/
}
.dark .overlay.top {
	background: linear-gradient(to bottom, black 5%, rgba(0, 0, 0, 0.738) 26%, rgba(0, 0, 0, 0.591) 34%, rgba(0, 0, 0, 0.392) 47%, rgba(0, 0, 0, 0.298) 56.5%, rgba(0, 0, 0, 0.194) 65%, rgba(0, 0, 0, 0.126) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.042) 86.1%, rgba(0, 0, 0, 0.021) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.002) 98.2%, transparent 100%);
	top: 0;
	opacity: 0.7;
	height: 208px;
	z-index: 1;
}
.dark .overlay.bottom {
	background: linear-gradient(to top, black 5%, rgba(0, 0, 0, 0.738) 26%, rgba(0, 0, 0, 0.591) 34%, rgba(0, 0, 0, 0.392) 47%, rgba(0, 0, 0, 0.298) 56.5%, rgba(0, 0, 0, 0.194) 65%, rgba(0, 0, 0, 0.126) 73%, rgba(0, 0, 0, 0.075) 80.2%, rgba(0, 0, 0, 0.042) 86.1%, rgba(0, 0, 0, 0.021) 91%, rgba(0, 0, 0, 0.008) 95.2%, rgba(0, 0, 0, 0.002) 98.2%, transparent 100%);
	bottom: 0;
	opacity: 0.7;
	height: 50dvh;
	z-index: 1;
}

/* Photo: credits */
.slide::after {
    position: absolute;
		display: block;
		width: auto;
		display: block;
    bottom: -3px;
    right: 28px; /* remove to center */
    z-index: 20;
    text-align: right;
		color: rgb( 255 255 255 / 40%);
		font-size: .875rem;
		padding: 2px 7px;
    padding: 3px 7px 7px;
    border-radius: 8px 8px 0 0;
    /*background: rgb(0 0 0 / 44%);*/
}

.slide.bg1::after {
    content: 'Photo: Carlson Ndam';
}
.slide.bg2::after {
    content: 'Photo: Francesco Ugaro';
}
.slide.bg3::after {
    content: 'Photo: Clay Banks';
}
.slide.bg4::after {
    content: 'Photo: Tanya Nevidoma';
}
.slide.bg5::after {
    content: 'Photo: Antonio Janeski';
    background: rgb(0 0 0 / 64%);
}
.slide.bg6::after {
    content: 'Photo: xxxxxx6';
}
.slide.bg7::after {
    content: 'Photo: Carlson Ndam';
}
.slide.bg8::after {
    content: 'Photo: Tonia Kraakman';
}
.slide.bg9::after {
    content: 'Photo: Claudio Schwarz';
}