/* ========== TEAM SECTION STYLES ========== */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 30px;
    justify-content: center;
    padding: 20px 0;
}

/* ========== BASE TEAM CARD ========== */
.team-card {
    flex: 1 1 200px; /* Grow, shrink, min 250px before wrapping */
    max-width: 350px; /* Prevents cards from getting too wide */
    background: transparent;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 0;
    text-align: center;
}

.team-card:hover {
    opacity: 0.95;
}

/* ========== STYLED CARD VARIANT ========== */
.team-card-styled {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.team-card-styled:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    opacity: 1;
    cursor: pointer;
}

.team-card-styled .team-card-image {
    margin-bottom: 20px;
}

/* ========== CARD IMAGE ========== */
.team-card-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-card-image {
    box-shadow: 0 6px 20px rgba(0, 132, 201, 0.25);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

/* ========== CARD CONTENT ========== */
.team-card .team-member-name {
    font-family: 'Ruda', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #595959;
    margin-bottom: 8px;
}

.team-card .team-member-title {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0084c9;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card .team-member-bio {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #595959;
    opacity: 0.85;
}

.team-card p {
    margin-bottom: 0;
}

.team-card .team-member-bio-long {
    display: none;
}

/* ========== EXPAND ICON ========== */
.team-card-expand-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 27px;
    height: 27px;
    background-color: #fff;
    color: #00a5db;
    border-radius: 50%;
    border: 1px solid #00a5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 132, 201, 0.3);
}

.team-card-styled:hover .team-card-expand-icon {
    transform: rotate(90deg);
}

/* ========== SMALLER IMAGE VARIANT ========== */
/* Optional: Use when cards get narrow */
.team-card-compact .team-card-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}