/* ===================================== */
/* Algemene sectie */
/* ===================================== */

.block-section {
    background: #e0dddd;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
}

.block-container {
    width: 100%;
    max-width: 1250px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}


/* ===================================== */
/* Blokken */
/* ===================================== */

.block-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.block-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}


/* ===================================== */
/* Header (klikbaar) */
/* ===================================== */

.block-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 5px 0;
}

.block-icon {
    position: absolute;
    left: 0;
    width: 42px;
    height: 42px;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #222;
}

/* Pijltje */
.toggle-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* Draai pijltje wanneer open */
.block-item.active .toggle-arrow {
    transform: rotate(180deg);
}


/* ===================================== */
/* Tabel */
/* ===================================== */

.block-table {
    width: 85%;
    margin: 25px auto 0 auto;
    border-collapse: collapse;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    animation: fadeIn 0.3s ease;
}

.block-table.active {
    display: table;
}

/* Cellen */
.block-table th,
.block-table td {
    padding: 15px;
    border: 1px solid #e5e5e5;
    text-align: left;
    font-size: 0.95rem;
}

/* Header rij */
.block-table th {
    background: #db3434;
    color: #ffffff;
    font-weight: 600;
}

/* Eerste kolom */
.block-table td:first-child {
    font-weight: 600;
    width: 25%;
}

/* Zebra effect */
.block-table tr:nth-child(even) {
    background: #f2f2f2;
}


/* ===================================== */
/* Links */
/* ===================================== */

.block-table a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.block-table a:hover {
    color: #db3434;
    text-decoration: underline;
}


/* ===================================== */
/* Animatie */
/* ===================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===================================== */
/* Responsive */
/* ===================================== */

@media (max-width: 768px) {

    .block-item {
        padding: 20px;
    }

    .block-table {
        width: 100%;
        font-size: 0.9rem;
    }

    .block-title {
        font-size: 1.1rem;
    }

    .block-icon {
        width: 34px;
        height: 34px;
    }
}


.link-foto {
    width: 100%;
    max-width: 1250px;
    max-height: 500px;
    margin: 20px auto;
    object-fit: cover;   /* 🔹 voorkomt vervorming */
    display: block;
    margin-top: 20px;
    border-radius: 10px; /* Ronde hoeken */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Zachte schaduw */
}

/* ============================= */
/* Sectie */
/* ============================= */

.image-text-section {
    padding: 80px 20px;
    max-width: 1250px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.image-text-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 50px;
}


/* ============================= */
/* Afbeelding */
/* ============================= */

.image-side {
    flex: 1;
}

.image-side img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: block;
}


/* ============================= */
/* Tekst */
/* ============================= */

.text-side {
    flex: 1;
}

.text-side h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.text-side p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #000;
}

/* ============================= */
/* Responsive: afbeelding boven tekst op mobiel */
/* ============================= */
@media (max-width: 768px) {

    /* Block-items blijven gewoon onder elkaar */
    .block-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Image-text layout op mobiel: afbeelding boven tekst */
    .image-text-container {
        flex-direction: column;  /* stapel items verticaal */
        align-items: center;     /* optioneel: centreren */
        gap: 20px;               /* afstand tussen afbeelding en tekst */
    }

    .image-side, 
    .text-side {
        width: 100%;             /* beide nemen volledige breedte */
        flex: none;              /* geen flex-grow */
    }

    .text-side h2 {
        font-size: 1.5rem;       /* iets kleinere kop op mobiel */
    }

    .text-side p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .image-side img {
        width: 100%;
        max-width: 100%;         /* voorkomt uitrekken */
    }

    .link-foto {
        max-width: 390px;
        height: auto;
    }
}