/* Communicatie Table Styles - VVIVS Theme */
.communicatie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.communicatie-table th,
.communicatie-table td {
    border: 1px solid #1B4E0C;
    padding: 12px 15px;
    text-align: left;
    color: #000000;
}

.communicatie-table th {
    background-color: #1B4E0C;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.communicatie-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.communicatie-table tbody tr:nth-child(even) {
    background-color: #e8f5e9;
}

.communicatie-table tbody tr:hover {
    background-color: #c8e6c9;
    transition: background-color 0.2s ease;
}

/* Photo cell styling */
.communicatie-table td.photo-cell {
    text-align: center;
    width: 120px;
}

.communicatie-table .contact-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1B4E0C;
}

/* Column widths */
.communicatie-table td:nth-child(1),
.communicatie-table th:nth-child(1) {
    /* Foto - Photo */
    text-align: center;
    width: 15%;
}

.communicatie-table td:nth-child(2),
.communicatie-table th:nth-child(2) {
    /* Naam - Name */
    text-align: left;
    width: 20%;
    font-weight: 600;
}

.communicatie-table td:nth-child(3),
.communicatie-table th:nth-child(3) {
    /* Functie - Function */
    text-align: left;
    width: 25%;
}

.communicatie-table td:nth-child(4),
.communicatie-table th:nth-child(4) {
    /* Email */
    text-align: left;
    width: 25%;
}

.communicatie-table td:nth-child(5),
.communicatie-table th:nth-child(5) {
    /* Telefoon - Phone */
    text-align: left;
    width: 20%;
}

/* Email link styling */
.communicatie-table a {
    color: #1B4E0C;
    text-decoration: none;
    font-weight: 500;
}

.communicatie-table a:hover {
    color: #2d7a1a;
    text-decoration: underline;
}


/* Responsive design */
@media (max-width: 768px) {
    .communicatie-table {
        font-size: 12px;
    }
    
    .communicatie-table th,
    .communicatie-table td {
        padding: 8px 6px;
    }
    
    .communicatie-table .contact-photo {
        width: 60px;
        height: 60px;
    }
    
    .communicatie-table td.photo-cell {
        width: 80px;
    }
}

/* Mobile: Stack table for very small screens */
@media (max-width: 480px) {
    .communicatie-table,
    .communicatie-table thead,
    .communicatie-table tbody,
    .communicatie-table th,
    .communicatie-table td,
    .communicatie-table tr {
        display: block;
    }
    
    .communicatie-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .communicatie-table tr {
        margin-bottom: 15px;
        border: 2px solid #1B4E0C;
    }
    
    .communicatie-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }
    
    .communicatie-table td:before {
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: #1B4E0C;
    }
    
    .communicatie-table td.photo-cell {
        text-align: center;
        padding-left: 15px;
    }
    
    .communicatie-table td.photo-cell:before {
        content: "";
    }
}
