/* ==========================================================
   IB-S Team page  v1.1.0
   Hero comes from ibs-components.css (.ibs-phero).
   Sections and cards follow the homepage design system.
   ========================================================== */

.et_pb_section:has(.ibs-team-wrap),
.et_pb_row:has(.ibs-team-wrap),
.et_pb_column:has(.ibs-team-wrap) {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.ibs-team-section {
    padding: 6rem 5vw 5rem;
    background: #ffffff;
    box-sizing: border-box;
}
.ibs-team-section--alt { background: #f4f7f5; }
.ibs-team-section__inner {
    max-width: 1380px;
    margin: 0 auto;
}
.ibs-team-section__header {
    max-width: 680px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.ibs-team-section__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #3dba72;
    margin: 0 0 .75rem;
}
.ibs-team-section__title {
    display: inline-block;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0d2218;
    margin: 0 0 .75rem;
}
.ibs-team-section__title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: #3dba72;
    margin: .6rem auto 0;
    border-radius: 2px;
}
.ibs-team-section__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5a50;
    margin: 0;
}

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

.ibs-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem 1.75rem;
    background: #f7fdf9;
    border: 1px solid rgba(61,186,114,0.15);
    border-radius: 8px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.ibs-team-section--alt .ibs-team-card { background: #ffffff; }
.ibs-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(61,186,114,.18), 0 2px 8px rgba(0,0,0,.06);
}

.ibs-team-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    border: 3px solid rgba(61,186,114,.25);
    background: rgba(61,186,114,.10);
}
.ibs-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.ibs-team-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #3dba72;
}
.ibs-team-grid--mit .ibs-team-photo { width: 96px; height: 96px; }

.ibs-team-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0d2218;
    margin: 0 0 .3rem;
    padding: 0;
}
.ibs-team-grid--mit .ibs-team-name { font-size: .95rem; }
.ibs-team-role {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3dba72;
    margin: 0;
    padding: 0;
}
.ibs-team-bio {
    font-size: .9rem;
    line-height: 1.6;
    color: #4a5a50;
    margin: .75rem 0 0;
}

@media (max-width: 1100px) {
    .ibs-team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ibs-team-section { padding: 4rem 5vw; }
    .ibs-team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .ibs-team-photo { width: 92px; height: 92px; }
    .ibs-team-card { padding: 1.5rem .75rem 1.25rem; }
}