/* ===========================================
   Services
   =========================================== */

/* Services Container */
#services {
    margin-bottom: 20rem;
    margin-top: 5rem;
}

#services h2 {
    text-align: center;
    font-size: 26px;
}

#services h3 {
    text-align: center;
    font-size: 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 kolommen voor grotere schermen */
    gap: 1.5rem;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
}

/* Service Card */
.service-card {
    position: relative;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 300px; 
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.service-card img {
    width: 100%;
    height: calc(100% - 30px);
    object-fit: cover;
}

/* Hover Effect */
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Layout services */
.service-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.text-image-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Text Section */
.text-section {
    max-width: 45%;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.text-section h2 {
    text-align: center;
    color: #1784CD;
}

.text-section h3 {
    margin-top: 1.5rem;
    color: #1784CD;
}

.text-section ul {
    padding-left: 20px;
    font-size: 1.2rem;
}

.text-section ul li {
    margin: 10px 0;
    font-size: 1.6rem;
}

/* Image Section */
.image-section img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 600px;
}

/* Kader en Button */
.quote-box {
    background-color: #f0f8ff;
    border-left: 5px solid #1784CD;
    padding: 30px;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.quote-box p {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quote-button {
    padding: 10px 20px;
    background-color: #1784CD;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.quote-button:hover {
    background-color: #157370;
}

@media screen and (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem; 
    }

    .service-card {
        height: 250px; 
    }

    #services h2 {
        font-size: 22px;
    }

    #services h3 {
        font-size: 18px; 
    }

    .service-section {
        padding: 20px 0; 
    }

    .text-image-group {
        flex-direction: column; 
        align-items: center; 
    }

    .text-section {
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .text-section h2, .text-section h3 {
        font-size: 20px;
    }

    .text-section ul {
        font-size: 1.4rem;
    }

    .text-section ul li {
        font-size: 1.4rem;
    }

    .image-section img {
        max-width: 100%;
        height: auto;
    }

    .quote-box {
        font-size: 1rem;
        padding: 20px;
        max-width: 90%;
    }

    .quote-box p {
        font-size: 1.4rem;
    }

    .quote-button {
        padding: 8px 16px;
        font-size: 1rem;
    }
}