.home-slide,
.home-slide-content,
.home-slide-image { height: 100%; }

.home-slider {
    position: relative;
    width: 100%;
    height: clamp(420px, 70vh, 680px);
  	max-height: none;     /* allow the clamp to work */
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center the slides */
}

.home-slide-wrapper {
    width: 100%;
    height: 100%; /* Ensure the wrapper fills the height of the slider */
    position:relative;
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 20px;
    color: #fff;
    text-align: left;
}


.home-slide-content {
    position: relative; /* Ensure content is above the overlay */
    z-index: 3; /* Bring the content above the overlay */
    max-width: 100%; /* Adjust to full width to accommodate side-by-side layout */
    display: flex;
    flex-direction: row; /* Change to row to align children side by side */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Vertically align content */
    padding: 20px;
    width: 100%; /* Ensure it takes full width */
}

.home-slide-text {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    word-wrap: break-word; /* Ensures long words wrap */
    overflow-wrap: break-word; /* Alternative for better browser support */
    max-width: 100%; /* Ensures the text container doesn't exceed its parent */
    white-space: normal; /* Allows text to break into multiple lines */
}


.home-slide-image {
    width: 50%; /* Take up the other half */
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-slide-image img {
    display: block;
  width: auto;          /* don't force width to 100% */
  height: 100%;         /* scale by height to match the slider */
  max-height: 100%;
  object-fit: contain;
}


.home-slide h1, .home-slide h2, .home-slide h3, 
.home-slide h4, .home-slide h5, .home-slide h6, 
.home-slide span {
    color: #233F73;
    margin-bottom: 0px;
    font-size: clamp(2rem, 5vw, 4.5rem) !important; /* Prevents oversized text */
    font-family: 'Nohemi-med', sans-serif !important;
    line-height: 1; /* Slightly increase for better readability */
    word-wrap: break-word; /* Ensures long words wrap */
    overflow-wrap: break-word; /* Alternative for better browser support */
    max-width: 100%; /* Prevents overflowing out of container */
    display: block;
}


.slide-sub-headline {
    color: #4A5A63;
    font-size: calc(1rem + 0.5vw); /* Responsive font size */
    margin-top: 5px;
    opacity: 0.9; /* Slight transparency */
	line-height:1.5;
	font-weight:600;
	margin-bottom:25px;
}


.slide-button {
    padding: 15px 30px;
    background-color: #233F73;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
	font-weight:700;
	position:relative;
	font-family:'Raleway', sans-serif;
	text-transform:uppercase;
}



.slide-button:hover {
    background-color: #4499C5;
	color:#fff;
}

/* Navigation Arrows grouped in bottom-right corner */
.slider-arrows {
    position: absolute;
    bottom: 50px;
    right: 20px; /* Position the arrows in the bottom-right corner */
    display: flex;
    gap: 10px; /* Space between the arrows */
    z-index: 5; /* Ensure arrows are on top of everything */
}

.slider-arrows button, .slider-arrows button:active, .slider-arrows button:focus {
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 10px 22px;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	border-radius: 5px;
	color:#233F73 !important;
	
}

.slider-arrows button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}




.slider-navigation {
	display:none;
    position: absolute;
    bottom: 15px;
    left: 10px;
}

.slider-navigation .slider-bullet {
    display: inline-block;
    width: 65px;
    height: 5px;
    background-color: #fff;
    border-radius: 0;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.25s;
    box-shadow: 0 0 5px #000;
}

.slider-navigation .slider-bullet.active,
.slider-navigation .slider-bullet:hover {
    background-color: #fff;
    opacity: 1;
}






/* Ensure slider is responsive */
@media (max-width: 767px) {
    .home-slide {
        max-height: 600px; /* Reduce height on smaller screens */
		padding:0 15px;
    }

    .slide-content {
        max-width: 100%; 
		padding:0;
    }

    .home-slide h1, .home-slide h2, .home-slide h3, .home-slide h4, .home-slide h5, .home-slide h6, .home-slide span {
        font-size: calc(1.2rem + 1vw); /* Adjust font size on mobile */
    }

    

    .slider-navigation {
        bottom: 10px; /* Adjust for smaller screens */
        right: 10px;
    }

    
}
