/* Team widget — grid 3 kolom */
.widget_team {
    background: #fff;
}

.widget_team .penci-block_content,
.widget_team .team-widget-grid {
    margin: 0;
    padding: 0;
}

.team-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #ececec;
    border-left: 1px solid #ececec;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 18px 24px;
    background: #fff;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.team-member-photo-wrap {
    margin-bottom: 18px;
}

.team-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.team-member-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 42px;
}

.team-member-name {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
}

.team-member-job {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #888;
}

.team-member-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.team-member-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.team-member-social-link:hover {
    color: #005331;
    opacity: 0.85;
}

.block-widget-team {
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.block-widget-team .home-widget-slot > .widget_team > .penci-block_content {
    margin: 0;
    padding: 0;
}

.block-widget-team .penci-block_content.home-widget-slot {
    padding-top: 0;
}

.home-widget-main-stack .widget_team,
.block-homepage.block-widget-team {
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .team-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .team-widget-grid {
        grid-template-columns: 1fr;
    }
}
