/* Section headings */
.team-subsection-title {
    text-align: center;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.01em;
    max-width: none;
    margin: 0 auto 28px;
}

/* Contributors */
.team-contributors {
    margin-bottom: 96px;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 32px;
}

.contributor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.contributor-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 2px solid #f0f0f7;
}

.contributor-name {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #141416;
}

.team-page {
    padding-bottom: 0;
}

.team-sponsors {
    margin-inline: calc(50% - 50vw);
    padding-top: 72px;
    padding-bottom: 72px;
    background-color: #fafafd;
}

.sponsors-group + .sponsors-group {
    margin-top: 56px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 24px;
    margin-bottom: 32px;
}

.sponsors-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.sponsor-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 200px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.sponsor-logo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(20, 20, 22, 0.1);
}

.sponsor-logo {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.team-sponsor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease;
}

a.team-sponsor:hover {
    transform: translateY(-3px);
}

.sponsor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #f0f0f7;
}

.sponsor-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #df3efb 0%, #701980 100%);
}

.sponsor-name {
    font-size: 13px;
    color: #666880;
    margin: 0;
}

.team-pagination {
    margin-top: 24px;
}

.team-pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    opacity: 0.4;
    pointer-events: none;
}

.team-socials .icon-linkedin-fill {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTIwLjQ0NyAyMC40NTJoLTMuNTU0di01LjU2OWMwLTEuMzI4LS4wMjctMy4wMzctMS44NTItMy4wMzctMS44NTMgMC0yLjEzNiAxLjQ0NS0yLjEzNiAyLjkzOXY1LjY2N0g5LjM1MVY5aDMuNDE0djEuNTYxaC4wNDZjLjQ3Ny0uOSAxLjYzNy0xLjg1IDMuMzctMS44NSAzLjYwMSAwIDQuMjY3IDIuMzcgNC4yNjcgNS40NTV2Ni4yODZ6TTUuMzM3IDcuNDMzYy0xLjE0NCAwLTIuMDYzLS45MjYtMi4wNjMtMi4wNjUgMC0xLjEzOC45Mi0yLjA2MyAyLjA2My0yLjA2MyAxLjE0IDAgMi4wNjQuOTI1IDIuMDY0IDIuMDYzIDAgMS4xMzktLjkyNSAyLjA2NS0yLjA2NCAyLjA2NXptMS43ODIgMTMuMDE5SDMuNTU1VjloMy41NjR2MTEuNDUyek0yMi4yMjUgMEgxLjc3MUMuNzkyIDAgMCAuNzc0IDAgMS43Mjl2MjAuNTQyQzAgMjMuMjI3Ljc5MiAyNCAxLjc3MSAyNGgyMC40NTFDMjMuMiAyNCAyNCAyMy4yMjcgMjQgMjIuMjcxVjEuNzI5QzI0IC43NzQgMjMuMiAwIDIyLjIyMiAwaC4wMDN6Ii8+PC9zdmc+");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTIwLjQ0NyAyMC40NTJoLTMuNTU0di01LjU2OWMwLTEuMzI4LS4wMjctMy4wMzctMS44NTItMy4wMzctMS44NTMgMC0yLjEzNiAxLjQ0NS0yLjEzNiAyLjkzOXY1LjY2N0g5LjM1MVY5aDMuNDE0djEuNTYxaC4wNDZjLjQ3Ny0uOSAxLjYzNy0xLjg1IDMuMzctMS44NSAzLjYwMSAwIDQuMjY3IDIuMzcgNC4yNjcgNS40NTV2Ni4yODZ6TTUuMzM3IDcuNDMzYy0xLjE0NCAwLTIuMDYzLS45MjYtMi4wNjMtMi4wNjUgMC0xLjEzOC45Mi0yLjA2MyAyLjA2My0yLjA2MyAxLjE0IDAgMi4wNjQuOTI1IDIuMDY0IDIuMDYzIDAgMS4xMzktLjkyNSAyLjA2NS0yLjA2NCAyLjA2NXptMS43ODIgMTMuMDE5SDMuNTU1VjloMy41NjR2MTEuNDUyek0yMi4yMjUgMEgxLjc3MUMuNzkyIDAgMCAuNzc0IDAgMS43Mjl2MjAuNTQyQzAgMjMuMjI3Ljc5MiAyNCAxLjc3MSAyNGgyMC40NTFDMjMuMiAyNCAyNCAyMy4yMjcgMjQgMjIuMjcxVjEuNzI5QzI0IC43NzQgMjMuMiAwIDIyLjIyMiAwaC4wMDN6Ii8+PC9zdmc+");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.contributors-empty {
    text-align: center;
    color: #666880;
    font-size: 15px;
}

/* Call to action */
.team-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 32px;
    margin-bottom: 96px;
    border-radius: 24px;
    text-align: center;
    color: #fafafd;
    background: linear-gradient(120deg, #701980 0%, #2a1a4a 52%, #135b80 100%);
}

.team-cta-title {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.team-cta-caption {
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 28px;
}

/* Dark theme */
.dark .team-page .contributor-name {
    color: #fafafd;
}

.dark .team-page .sponsor-name {
    color: #9fa1bf;
}

.dark .team-page .contributor-avatar,
.dark .team-page .sponsor-avatar {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .team-page .team-sponsors {
    background-color: #1c1c1f;
}

.dark .team-page .sponsor-logo-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .team-page .sponsor-logo-link:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991.98px) {
    .contributors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sponsors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575.98px) {
    .contributors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
