/* Basic carousel styles */
.carousel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Ensure the carousel is visible */
.carousel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 300px;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.current {
    display: block;
    opacity: 1;
}

/* Navigation controls */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.btn-prev, .btn-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}

.btn-prev:hover, .btn-next:hover {
    background: rgba(0,0,0,0.8);
}

/* Slide navigation */
.slidenav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slidenav li {
    display: inline-block;
    margin: 0 5px;
}

.slidenav button {
    background: #ccc;
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}

.slidenav button.current {
    background: #333;
}

/* Ensure the carousel is visible */
.carousel:before {
    content: "Carousel Container";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 0, 0, 0.1);
    color: red;
    padding: 5px;
    font-size: 12px;
    z-index: 9999;
}
