@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
body {
    font-family: 'Poppins', sans-serif;
}

.team-section {
    text-align: center;
    padding: 50px;
}

.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member {
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
    width: 250px;
    box-shadow: 1px 4px 10px 3px rgb(44 47 50);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    height: 400px; /* Set a fixed height for all cards */
    position: relative; /* For absolute positioning of more-info */
    overflow: hidden; /* Hide overflowing content */
}

.team-member .member-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member .image-container {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.team-member img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.team-member h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.team-member p {
    font-size: 0.9em;
    color: #666;
}

.view-more {
    margin-top: auto; /* Push button to bottom of card */
    z-index: 1; /* Ensure button stays on top */
}

.view-more:hover {
    background: #005580;
}

.more-info {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f9f9f9;
    transition: top 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}
.team-member.expanded .more-info {
    top: 0;
}

.more-info p {
    font-size: 0.8em;
}

.more-info img {
    width: 20px;
    vertical-align: middle;
}
