.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slide {
    display: none;
    margin-top: 50px;
}

.slide img {
    width: 100%;
    height: auto; 
}

.slider-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Basis lay-out voor de commitment-secties */
.commitments {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

.commitment-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.normal-layout .text-content {
    order: 1;
}

.normal-layout .image-content {
    order: 2;
}

.reverse-layout .text-content {
    order: 2;
}

.reverse-layout .image-content {
    order: 1;
}

.text-content {
    flex: 1;
    padding: 20px;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-content img {
    width: 100%;
    height: auto;
    max-width: 400px;
    transition: transform 0.3s ease; /* Zoom-in effect on hover */
}

.image-content img.zoom-image:hover {
    transform: scale(1.1); /* Vergroot afbeelding bij hover */
}

.learnmore {
    display: inline-block;
    margin-top: 0.2rem;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}
.learnmore:hover {
    color: #003d82;
}

.learnmore::after {
    content: " ►"
}

@media screen and (max-width: 768px) {
    .slider-text {
        font-size: 1.2rem; /* Verklein de tekst in de slider */
        bottom: 10px;
        left: 10px;
        padding: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Kleinere box-shadow */
    }

    .prev, .next {
        font-size: 16px;
        padding: 10px;
    }

    .text-content, .image-content {
        margin-bottom: 1rem;
        padding: 0;
    }

    .text-content h3 {
        font-size: 1.6rem; /* Vergroot de titel */
        margin-bottom: 0.5rem;
    }

    .text-content p {
        font-size: 1.2rem;
        line-height: 1.8;
    }

    .image-content img {
        max-width: 90%; 
        height: auto;
    }

    .learnmore {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
}


