.barousel1 {
    position: relative;
    width: 100%;
    /* max-width: 800px; */
    margin: auto;
    overflow: hidden;
    /* border: 2px solid #000; */
    border-radius: 10px;
}

.barousel-inner1 {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.barousel-item1 {
    min-width: 100%;
    position: relative;
}

.barousel-item1 img {
    width: 100%;
    max-height: 500px; /* Set the maximum height for images */
    object-fit: contain; /* Ensure the image covers the container while maintaining aspect ratio */
    border-radius: 10px;
}
/* Add the blur effect to the background */
  .barousel-item1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('blur_image22.jpeg') center center / cover no-repeat; /* Add your background image */
     filter: blur(10px); /* Adjust the blur effect here */
       z-index: -1; /* Keep the blurred background behind the image   */
    border-radius: 10px; 
}  

.barousel-item3::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--random-color, transparent); /* Use the random color here */
    filter: blur(10px); /* Apply the blur effect */
    z-index: -1; /* Keep the blurred background behind the image */
    border-radius: 10px;
}
.barousel-item2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--random-light-color, transparent); /* Use the random light color here */
    filter: blur(10px); /* Apply the blur effect */
    z-index: -1; /* Keep the blurred background behind the image */
    border-radius: 10px;
}


.barousel-caption1 {
    position: absolute;
    bottom: 10px; /* Adjusted for better positioning */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
}

.barousel-caption1 h5 {
    margin: 0;
    font-size: 1.5rem;
}

.barousel-caption1 p {
    margin: 5px 0 0;
    font-size: 1rem;
}

.barousel-control1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 30%;
    user-select: none;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.barousel-control1.prev {
    left: 10px;
}

.barousel-control1.next {
    right: 10px;
}

.barousel-control1:hover {
    background-color: #335EEA;
    color: #000;
}

.barousel-pause-play1 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.barousel-pause-play1:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
}
/* Mobile-Responsive Adjustments */
@media (max-width: 768px) {
    /* On smaller screens, adjust image height */
    .barousel-item1 img {
        max-height: 300px; /* Adjust max height for mobile screens */
    }

    .barousel-caption1 h5 {
        font-size: 1.2rem; /* Smaller font size for mobile */
    }

    .barousel-caption1 p {
        font-size: 0.9rem; /* Smaller font size for mobile */
    }

    /* Adjust the barousel control button size */
    .barousel-control1 {
        font-size: 1.2rem; /* Smaller control buttons */
        padding: 8px;
    }

    .barousel-pause-play1 {
        font-size: 1.2rem; /* Smaller pause/play button */
        padding: 8px;
    }
}

@media (max-width: 480px) {
    /* On very small screens like phones, make further adjustments */
    .barousel-item1 img {
        max-height: 250px; /* Reduce height for very small screens */
    }

    .barousel-caption1 h5 {
        font-size: 1rem; /* Adjust font size for very small screens */
    }

    .barousel-caption1 p {
        font-size: 0.8rem; /* Adjust font size for very small screens */
    }

    /* Adjust control buttons for very small screens */
    .barousel-control1 {
        font-size: 1.2rem; /* Keep control buttons smaller */
        padding: 6px;
    }

    .barousel-pause-play1 {
        font-size: 1.2rem; /* Keep pause/play button smaller */
        padding: 6px;
    }
}