/* Team component */

.team-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--team-section-bg, #ffffff);
    position: relative;
}

.team-section__header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.team-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    color: #d39b37;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.team-section__eyebrow::before,
.team-section__eyebrow::after {
    content: '';
    width: 54px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.team-section__title {
    margin: 0;
    color: #233a57;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 300;
}

.team-section__title strong,
.team-section__title b {
    font-weight: 800;
}

.team-section__subtitle {
    max-width: 720px;
    margin: 1.2rem auto 0;
    color: #55657a;
    font-size: 1.05rem;
    line-height: 1.75;
}

.team-grid {
    display: grid;
    gap: 1.35rem;
}

.team-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.team-card__media {
    aspect-ratio: 4 / 4.4;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(35, 58, 87, 0.1), rgba(35, 58, 87, 0.02));
    color: #233a57;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.team-card__body {
    padding: 1.5rem 1.35rem 1.45rem;
}

.team-card__name {
    margin: 0;
    color: #314760;
    font-size: 1.7rem;
    line-height: 1.18;
    font-weight: 800;
}

.team-card__role {
    margin: 0.45rem 0 1rem;
    color: #d39b37;
    font-size: 1rem;
    font-weight: 600;
}

.team-card__specialties {
    list-style: none;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid #e9eef4;
    display: grid;
    gap: 0.7rem;
}

.team-card__specialties li {
    position: relative;
    padding-left: 1.55rem;
    color: #42566f;
    line-height: 1.55;
}

.team-card__specialties li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.62rem;
    height: 0.62rem;
    border: 1.5px solid #d39b37;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px #ffffff;
    background: #f1d29a;
}

@media (max-width: 1199px) {
    .team-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .team-grid--cols-3,
    .team-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .team-grid,
    .team-grid--cols-2,
    .team-grid--cols-3,
    .team-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .team-card__body {
        padding: 1.25rem 1.1rem 1.2rem;
    }

    .team-card__name {
        font-size: 1.4rem;
    }
}
