.team-section {
    min-height: 600px;
    width: 100%; /* Full width */
    display: block;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 20px 20px;
    text-align: center;
}

.team-description {
    margin-top: auto;  /* This pushes the div to the bottom */
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    flex-direction: column;
    vertical-align: top;
}

.team-description p {
    text-align: left;
    width: 100%;
    padding: 1px;
}

.team-description button {
    display: inline-block;
    padding: 5px 10px;
    font-size: medium;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    width: 100px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.team-description button:hover {
    box-shadow: none;
    transform: none;
    transition: none;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
}

.team-member {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 200px; /* For smaller screens */
    flex: 1 1 calc(100% - 40px); /* By default, make it take the full width minus some margin */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100%;  /* Ensure consistent height */
}

.team-photo {
 /*   width: 100%; */
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.team-positions {
    font-size: 1.1em;
    margin-bottom: 15px;
/*    height: 50px; */
}

.linkedin {
    padding-bottom: 10px;
    text-align: center;
    font-size: small;
}

.linkedin a {
    color: #005b9f;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (min-width: 600px) {
    .team-member {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (min-width: 1024px) {
    .team-member {
        flex: 1 1 calc(33.333% - 40px);
    }
}
