/* Bar Slider Styles */

.bar-slider-container {
    position: relative;
    width: 100%;
    padding: 0 80px;
    margin: 40px auto;
    box-sizing: border-box;
}

.bar-slider {
    position: relative;
    width: 50%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bar-slider {
        width: 100%;
        max-width: 100%;
    }
    
    .bar-slider-container {
        padding: 0 60px;
        margin: 20px auto;
    }
}

.bar-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.bar-slide.active {
    opacity: 1;
    display: block;
}

.bar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f5f5f5;
}

/* Navigation buttons */
.bar-prev, .bar-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 25px;
    height: 25px;
    font-size: 25px;
    font-weight: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 200;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.bar-prev {
    left: 0;
}

.bar-next {
    right: 0;
}

.bar-prev:hover, .bar-next:hover {
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Dots indicator */
.bar-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    border-radius: 20px;
    width: 80%;
    margin: 0 auto;
}

.bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bar-dot.active {
    background-color: white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}
