/* Set a fixed height for all slides and ensure proper spacing between them */
.bnr-swipe-container {
    width: 100%;
    height: 522px; /* Fixed height for all slides */
    position: relative;
    margin: 0 auto; /* Center the carousel */
    max-width: 100%; /* Allow full-width */
    padding: 0; /* Remove any padding */
}

.bnr-swipe-slide {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.bnr-swipe-container .bnr-swipe-slide .bnr-swipe-image {
    height: 100%; 
    width: 100%; 
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.bnr-swipe-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    color: #ffffff; 
    padding: 0; 
    background: none;
    max-width: 80%;
}

/* Title */
.bnr-swipe-title {
    font-size: 50px;
    font-weight: 600;
	line-height: 1;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Description */
.bnr-swipe-text {
    margin-bottom: 10px;
	font-size: 18px;
	line-height: 1;
    font-weight: 300;
    color: #ffffff;
}

/* Button */
.bnr-swipe-button {
    font-family: "Fira Sans", Sans-serif;
    font-size: 15px;
    font-weight: 400;
	color: #fff;
    line-height: 25px;
    background-color: #35AC5A;
    border-radius: 90px;
    padding: 5px 40px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.bnr-swipe-button:hover {
    background-color: #179a4c;
	color: #fff;
	transform: scale(1.05);
}

.swiper-wrapper-container {
    position: relative;
    width: 100%;
}

.swiper-wrapper-container .bnr-swiper-scrollbar {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 2px;
    position: relative !important; 
}

.swiper-wrapper-container .bnr-swiper-scrollbar .swiper-scrollbar-drag {
    background: rgba(0, 0, 0, .5);
    height: 100%;
    border-radius: 2px;
}

/* Ensure the swiper container is responsive */
@media (max-width: 767px) {
    .bnr-swipe-container {
        width: 100%;
    }

    .bnr-swipe-content {
        max-width: 80%; /* Adjust the content width on smaller screens */
    }

    .bnr-swipe-title {
        font-size: 52px; /* Smaller font size on mobile */
    }

    .bnr-swipe-button {
        padding: 8px 40px; /* Smaller button on mobile */
    }
}

@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.elementor-widget .carousel-image {
    animation: fade <?php echo $settings['animation_duration']; ?>ms infinite;
}

.bnr-swipe-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.bnr-swipe-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFFFFF00 45%, #000000 100%);
    z-index: 2;
    pointer-events: none;
}

.bnr-swipe-image.active {
    opacity: 1;
}