/* === Bureau General === */
.bureau-section {
    padding: 4rem 1rem;
    scroll-margin-top: 160px;
}

.bureau-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.wysiwyg {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.wysiwyg a {
    color: black;
    text-decoration: none;
    transition: 0.3s;
}

.wysiwyg a:hover {
    color: #8e9090;
    text-decoration: underline;
}

/* === Profiel Section === */
.profile-image {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: block;
}

/* === Historie Section === */
.split-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.split-section .left,
.split-section .right {
    flex: 1;
    min-width: 300px;
}

.video-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.video-wrapper.video-placeholder {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-wrapper img.video-preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.history-image img {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 6rem auto 0 auto;
}

/* === Team Grid === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.team-member {
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.team-member h3 {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
}

.team-member .function {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #444;
}

/* === CTA Footer Section === */
.bureau-footer-cta {
    width: 40%;
    margin: 0 auto 50px auto;
    padding: 4rem 1rem;
    background-size: cover;
    background-position: center;
    color: black;
    /* CHANGED */
    text-align: center;
}

.bureau-footer-cta .container,
.bureau-footer-cta .cta-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bureau-footer-cta .cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid black;
    /* CHANGED */
    background: transparent;
    color: black;
    /* CHANGED */
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%;
}

.bureau-footer-cta .cta-button:hover {
    background: black;
    /* CHANGED */
    color: white;
    /* CHANGED */
}

/* === Modal Styles === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    /* Align to top to allow vertical space */
    overflow-y: auto;
    /* Enable scrolling if content is too tall */
    padding: 2rem 1rem;
    /* Add padding for spacing */
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    max-width: 800px;
    width: 100%;
    gap: 2rem;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    /* Prevent it from growing too tall */
    overflow-y: auto;
    /* Enable internal scrolling if needed */
}

.modal-left img {
    width: 250px;
    height: auto;
    border-radius: 6px;
}

.modal-right {
    flex: 1;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* === Modal Contact Styles === */
.modal-email a {
    color: black;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-email a:hover {
    color: #8e9090;
    text-decoration: underline;
}

.modal-linkedin {
    margin-top: 1rem;
}

.modal-linkedin img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-linkedin img:hover {
    opacity: 0.7;
}

/* === Responsive === */
@media screen and (max-width: 1024px) {

    .video-wrapper iframe {
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member img {
        width: 180px;
        /* CHANGED to reduce width */
        height: auto;
        /* CHANGED to give more height */
        margin: 0 auto;
        object-fit: cover;
    }

    .profile-image {
        max-width: 100%;
    }

    .bureau-section h2 {
        font-size: 1.5rem !important;
    }

    .bureau-footer-cta {
        width: 100%;
        margin: 0 auto 40px auto;
    }

    .history-image img {
        max-width: 100%;
    }

    .modal-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-left img {
        width: 80%;
    }

    .close-modal {
        top: 0.5rem;
        right: 0.5rem;
    }
}