.faculty-section {
    padding: 14px 0 36px;
}

/* Hide the legacy, comment-only carousel retained below the new grid. */
.faculty-section + .faculty {
    display: none !important;
}

.faculty-title {
    margin: 8px 0 28px;
    color: #183f42;
    font-size: 2.35rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-align: center;
}

.faculty-title::after {
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: #008b8f;
    content: "";
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    align-items: stretch;
}

.faculty-card {
    min-width: 0;
    margin: 0;
    padding: 24px 14px 20px;
    border: 1px solid rgba(0, 104, 107, .14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 65, 67, .08);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.faculty-card:hover {
    border-color: rgba(0, 139, 143, .38);
    box-shadow: 0 12px 30px rgba(20, 65, 67, .14);
    transform: translateY(-4px);
}

.faculty-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.faculty-photo {
    width: 154px;
    height: 154px;
    margin: 0 auto 17px;
    overflow: hidden;
    border: 4px solid #edf6f6;
    border-radius: 50%;
    background: #f3f7f7;
    box-shadow: 0 3px 12px rgba(0, 104, 107, .14);
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Per-photo focal points keep faces centered despite different source crops. */
.faculty-photo img.focus-gao { object-position: 50% 42%; }
.faculty-photo img.focus-shi { object-position: 50% 38%; }
.faculty-photo img.focus-huo { transform: scale(1.18); transform-origin: 54% 44%; }
.faculty-photo img.focus-li { transform: scale(1.12); transform-origin: 50% 30%; }
.faculty-photo img.focus-fan { object-position: 50% 28%; }
.faculty-photo img.focus-yang { object-position: 50% 30%; }
.faculty-photo img.focus-shijieqi { object-position: 50% 22%; }
.faculty-photo img.focus-wang { object-position: 50% 18%; }
.faculty-photo img.focus-zhang { object-position: 50% 16%; }
.faculty-photo img.focus-guo { transform: scale(1.08); transform-origin: 50% 43%; }
.faculty-photo img.focus-chen { transform: scale(1.24); transform-origin: 38% 22%; }
.faculty-photo img.focus-meng { object-position: 50% 24%; }

.faculty-photo img.contain {
    object-fit: contain;
}

.postdoc-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 3px solid #edf6f6;
    border-radius: 50%;
    background: #f3f7f7;
}

.postdoc-photo a,
.postdoc-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.postdoc-photo img {
    object-fit: cover;
}

.postdoc-photo img.postdoc-zhang { object-position: 50% 16%; }
.postdoc-photo img.postdoc-guo { transform: scale(1.08); transform-origin: 50% 43%; }
.postdoc-photo img.postdoc-chen { transform: scale(1.24); transform-origin: 38% 22%; }
.postdoc-photo img.postdoc-meng { object-position: 50% 24%; }

.faculty-card h3 {
    margin: 0 0 8px;
    color: #174f52;
    font-size: 1.28rem;
    font-weight: 600;
}

.faculty-role,
.faculty-unit {
    margin: 0;
    line-height: 1.65;
}

.faculty-role {
    color: #40585a;
    font-size: .96rem;
}

.faculty-unit {
    color: #7a8b8c;
    font-size: .88rem;
}

@media (max-width: 980px) {
    .faculty-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .faculty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .faculty-card {
        padding: 18px 8px 16px;
    }

    .faculty-photo {
        width: 124px;
        height: 124px;
    }
}

@media (max-width: 420px) {
    .faculty-grid {
        grid-template-columns: 1fr;
    }
}
