.team-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: calc(var(--space-section));
    margin-bottom: var(--space-section);
    text-align: center;
}

.our-team {
    padding: var(--space-xs);
    border: 1px solid var(--gold);
    border-radius: 999px;
}

.team-heading h2 {
    font-family: var(--urbanist);
    font-size: var(--fs-xl);
    font-weight: 500;
    color: var(--primary-color);
}

.team-heading p {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
    max-width: 800px;
}

.our-team p {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: var(--primary-color);
}

.scrolling-team {
    overflow-x: hidden;
    margin-bottom: calc(var(--space-section) * 2);
}

.scrolling-container {
    display: flex;
    align-items: center;
    gap: calc(var(--space-xl) * 2);
    padding: var(--space-md) 0;
    width: 100%;
    
    background-color: transparent;
}

.scrolling-element {
    display: flex;
    flex-shrink: 0;
    gap: 5px;
    align-items: center;
    width: auto;
    height: 50px;
}

.scrolling-element .image {
    width: 4px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 999px;
    margin-right: 10px;
}

.scrolling-element .info {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: var(--primary-color);
}

.scrolling-element .info h3 {
    font-size: var(--fs-sm);
}

.team-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    align-items: flex-start;
    gap: var(--space-section) var(--space-lg);
    margin-bottom: calc(var(--space-section) * 2);
}

.team-card {
    max-width: 400px;
    height: auto;
    display: flex;
    
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.team-card:nth-child(even) {
    flex-direction: row-reverse;
}

.team-card .image {
    
    height: auto;
    flex: 0 0 50%;
    min-width: 250px;
    max-width: 400px;
    height: 450px;
    background-color: grey;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--space-sm);
}

.team-card .info {
    
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-family: var(--urbanist);
    color: var(--primary-color);
}

.team-card .info p {
    font-size: var(--fs-sm);
}

.team-card .attribute p {
    font-size: 10px;
}

.team-card h3 {
    font-size: var(--fs-lg);
    font-weight: 500;
}

.attribute-row {
    display: flex;
    gap: var(--space-xs);
}

.attribute {
    background-color: transparent;
    padding: calc(var(--space-xs) - 8px) var(--space-xs);
    border: 1px solid var(--gold);
    border-radius: 999px;
}





@media (min-width: 769px) and (max-width: 1024px) {
    .team-card-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        align-items: start;
    }

    .team-card,
    .team-card:nth-child(even) {
        flex-direction: row;
        align-items: stretch;
        gap: var(--space-md);
        max-width: 100%;
    }

    .team-card .image {
        flex: 0 0 45%;
        min-width: 0;
        max-width: none;
        width: 100%;
        height: 300px;
    }

    .team-card .info {
        flex: 1 1 55%;
        min-width: 0;
    }
}


@media (max-width: 1024px) {

    
    .team-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-card .image {
        flex: none;
        width: 100%;
        height: 300px;
        min-width: unset;
    }

    .team-card .info {
        flex: none;
        width: 100%;
    }

    .team-card:nth-child(even) {
        flex-direction: column;
    }

    .attribute-row {
        flex-wrap: wrap;
    }

    .team-card.top-card {
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 768px) {

    .team-card-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--space-section) + 10px);
    }

    .team-heading p {
        font-size: var(--fs-sm);
    }

    .team-card .image {
        height: 220px;
    }

    
    .scrolling-element {
        height: 40px;
    }

    .scrolling-element .image {
        width: 4px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .team-card .image {
        height: 180px;
    }
}