/* Ensure the slider takes the full width of the container */
.carousel {
    width: 100%;
    height: 350px; /* Set fixed height for the slider */
    overflow: hidden; /* Hide any content outside of the container */
}

/* Adjust image inside the carousel to fit the width and height */
.carousel-inner {
    height: 100%;
}

/* The images should cover the entire width and have a fixed height */


/* Style for next/previous arrows */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 16 16"%3E%3Cpath d="M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z"/%3E%3C/svg%3E');
}

.carousel-control-next-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 16 16"%3E%3Cpath d="M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z"/%3E%3C/svg%3E');
}

/* Center carousel indicators */
.carousel-indicators {
    position: relative;
    bottom: 20px;
    left: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
    gap: 10px;
    transform: none; /* Remove translateX to avoid offset */
    z-index: 2;
    pointer-events: auto;
}


/* Style for indicator buttons */
.carousel-indicators button {
    width: 12px; /* Adjust size */
    height: 12px; /* Adjust size */
    background-color: rgba(255, 255, 255, 0.5); /* Default color */
    border: none;
    border-radius: 50%; /* Make them circular */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1); /* Highlight active indicator */
}

/* General slider styles */
.glory-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.glory-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Default slide styles */
.glory-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

/* Active slide */
.glory-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

/* Vertical slider styles */
.glory-slider.vertical-slider .slide {
    transform: translateY(100%); /* Default position for non-active slides */
    transition: transform 1s ease-in-out;
}

.glory-slider.vertical-slider .slide.active {
    transform: translateY(0); /* Slide into view vertically */
}

/* Side-scrolling slider styles */
.glory-slider.side-scrolling-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.glory-slider.side-scrolling-slider .slide {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
    opacity: 1; /* Ensure slides are visible in side-scrolling */
    transform: none; /* No transform for side-scrolling */
    transition: none; /* Disable transitions for side-scrolling */
}

.glory-slider .slide img {
    width: 100%;
    height: 100%;
    display: block;
}
