.tm-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.tm-filter label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tm-filter select {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    min-width: 240px;
}

.tm-department-section {
    margin-bottom: 5rem;
}

.tm-department-title {
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}




.tm-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
}

.tm-card {
    text-align: center;
}


/* CTA tile */
.tm-cta-card {
    background-color: #0b4f2f; /* elho groen */
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

/* Zorgt dat de CTA zich als echte card gedraagt */
.tm-cta-card .tm-cta-link {
    display: flex;
    width: 100%;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    padding: 2rem;
}

/* Inner content */
.tm-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
}

/* Titel */
.tm-cta-title {
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 500;
    color: #ffffff;
}

/* Button */
.tm-cta-button {
    background-color: #ffffff;
    color: #0b4f2f;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hover effect (optioneel maar mooi) */
.tm-cta-card:hover {
    background-color: #094226;
}

.tm-cta-card:hover .tm-cta-button {
    background-color: #f2f2f2;
}




.tm-image {
    margin-bottom: 1.5rem;
}

.tm-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tm-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tm-job {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75rem;
}

.tm-quote {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .tm-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tm-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tm-team-grid {
        grid-template-columns: 1fr;
    }
}

#tm-department-filter option,
#tm-department-filter {
    text-transform: uppercase;
    border: 1px solid #0b4f2f; /* elho groen */
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Focus state (belangrijk bij openen) */
#tm-department-filter:focus {
    outline: none;
    border-color: #0b4f2f;
    box-shadow: 0 0 0 2px rgba(11, 79, 47, 0.15);
}

.tm-card .tm-image {
    width: 180px;
    height: 240px;
    overflow: hidden;
}

.tm-card .tm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
