/* ✅ Algemene stijlen voor de slider */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    height: auto;
}

/* ✅ Slider opbouw */
.slider {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
}

/* ✅ Slides configureren */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

/* ✅ Eerste slide direct zichtbaar */
.slide:first-child {
    left: 0;
    opacity: 1;
}

/* ✅ Actieve slide */
.slide.active {
    opacity: 1;
    transform: translateX(0%);
    left: 0;
    position: relative;
    z-index: 2;
}

/* ✅ Afbeeldingen binnen de slider */
.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ✅ Overlay met tekst */
.overlay {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: white;
    opacity: 0.95;
}

/* ✅ Tekst stijlen in de overlay */
.overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: goldenrod;
}

.overlay p {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 12px;
}

/* ✅ Slider-knop */
.slider-btn {
    display: inline-block;
    background: goldenrod;
    color: black;
    font-size: 1rem;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* ✅ Pijlen voor de slider */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    z-index: 100;
    opacity: 1;
    visibility: visible;
}

/* ✅ Pijlen styling en hover-effect */
.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background: rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

/* ✅ Navigatie Dots */
.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    height: 25px;
    display: flex;
    gap: 8px;
}

/* ✅ Stijl voor de dots */
.dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* ✅ Actieve dot */
.dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.6);
}

/* ✅ Responsieve Aanpassingen */
@media (max-width: 768px) {
    .overlay {
        bottom: 10%;
        width: 90%;
        padding: 15px;
    }

    .overlay h2 {
        font-size: 1.8rem;
    }

    .overlay p {
        font-size: 1rem;
    }

    .slider-btn {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .prev, .next {
        font-size: 1.5rem;
        padding: 8px 12px;
    }

    .dots {
        bottom: 1px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }
}
