main {
    padding-bottom: 0;
}

.team-head .bar-title {
    margin-top: 0.5rem;
    padding-bottom: 0;
}

.team-head .bar-title::after {
    content: none;
}

.team-head .bar-lead {
    margin-top: 0.6rem;
}

/* ── Team cards ────────────────────────────────── */
.team-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 1.2rem) / 4);
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.4rem 0.3rem 1.6rem;
    margin: -0.4rem -0.3rem -1.6rem;
}

.team-track::-webkit-scrollbar {
    display: none;
}

.teacher-card {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #f1e6cc;
    box-shadow: 0 14px 30px rgb(120 86 20 / 9%);
    text-align: center;
    transition: translate 0.25s ease, box-shadow 0.25s ease;
}

.teacher-card:hover {
    translate: 0 -4px;
    box-shadow: 0 20px 38px rgb(120 86 20 / 14%);
}

.teacher-media {
    position: relative;
}

.teacher-media img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.teacher-icon {
    position: absolute;
    left: 1.1rem;
    bottom: -26px;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid #fff;
    background: linear-gradient(135deg, #f6ce71 0%, #e2ad38 100%);
    color: #1f2430;
    font-size: 1.25rem;
    box-shadow: 0 10px 18px rgb(223 170 60 / 32%);
}

.teacher-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 2.1rem 1.3rem 1.4rem;
}

.teacher-role {
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: #fbf0d6;
    color: #a87414;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.teacher-body h3 {
    margin: 0.8rem 0 0;
    color: #14161c;
    font-size: 1.05rem;
}

.teacher-body p {
    margin: 0.6rem 0 0;
    color: #6a717c;
    font-size: 0.88rem;
    line-height: 1.65;
}

.teacher-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.1rem;
}

.teacher-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f1ec;
    color: #1f2430;
    text-decoration: none;
    transition: background-color 0.2s ease, translate 0.2s ease;
}

.teacher-socials a:hover {
    translate: 0 -2px;
    background: #f6ce71;
}

/* Gold button with a white circle chevron, as in the mockup */
.btn-chevron {
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
}

.btn-chevron i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 1.15rem;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1080px) {
    .team-track {
        grid-auto-columns: calc((100% - 1.2rem) / 2);
    }
}

@media (max-width: 768px) {
    .team-track {
        grid-auto-columns: 82%;
    }
}
