.team-logo {
    width: 70%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.card-link {
    text-decoration: none;
    color: white;
}

.card-background-wrapper {
    position: relative;
    height: 200px; 
    overflow: hidden;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
    background-size: 30px;
    opacity: 0.6; 
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    text-align: center;
}
.team-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; 
    margin-bottom: 10px;
}

.team-shirt img {
    width: 80px;
    height: auto;
    object-fit: contain;
}


@media (max-width: 576px) {
    .team-logo {
        width: 50%;
    }
    .card-background-wrapper {
        height: 150px; 
    }
    .text-truncate {
        font-size: 1rem;
    }
    .card-content p {
        font-size: 0.87rem;
    }
    .team-logo {
        width: 60px;
    }
    .team-shirt img {
        width: 60px;
    }
    .team-images {
        gap: 65px;
        margin-bottom: 0; 
    }
}

@media (max-width: 575px) {
    .team-logo {
        width: 20%;
    }
    .card-content {
        top: -25px;
    }
}

@media (max-width: 425px) {
    .card-content h5, .card-content p {
        font-size: 0.9rem;
    }
}