.team {
    padding: 2rem 1rem;
    text-align: center;
}

.team h2 {
    color: #000;
}

.team-grid {
    display: grid;
    gap: 2rem;
    max-width: 300px;
    margin: 0 auto;
    padding-bottom: 2rem;
    grid-template-columns: 1fr;
}

.wrapper-hover {
    border-radius: 12px;  
    overflow: hidden;  
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapper-hover:hover {
    transform: scale(1.02);
    box-shadow: 2px 24px 12px rgba(0, 0, 0, 0.411);
}

.wrapper-hover:hover .team-card {
    border-color: var(--accent);
}

.team-card-wrapper {
    position: relative;
    overflow: visible;

}

.team-card {
    background: #000;
    border-radius: 12px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
}

.team-card-inner {
    transition: transform 0.3s ease;
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
    padding: 0.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heading-wrapper {
    margin-bottom: 0.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 1rem;
}

.icon-wrapper {
    margin-bottom: 1rem;
}

.icon {
    width: 28px;
    height: 28px;
}

@media (min-width: 900px) and (max-width: 1023px) {
    .card-image {
        height: 380px;
    }
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
    }

    .team-card {
        min-width: 200px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-card {
        min-width: 250px;
    }

    .card-image {
        height: 450px;
    }
}