#ourTeam{
    position: relative;
    background-color: rgb(255, 255, 255)
    /* background: url('../../images/marketcover.png') no-repeat center center/cover; */
}

.card-cover{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #000000;

    opacity: 0.8;
    z-index: 1;
}

.team {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 5em;
    padding-top: 0;
    z-index: 2;
    background-color: white;
    /* background-color: white; */
}
.team-title {
    color: rgb(62, 62, 62);
    position: relative;
    display: grid;
    padding: 20px;
    text-align: center;
    justify-self: auto;
    background-color: white;
    padding-bottom: 0.7em;
    font-family: 'Open Sans', sans-serif;
    z-index: 2;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    max-width: 1200px;
    width: 100%;
}

.team .card {
    position: relative;
    display: flex;
    border-radius: 50%;
    flex-direction: column;
    border: none;
    border-radius: 8px;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 2em;
    border-bottom: 1px solid rgb(110, 38, 94);
    z-index: 2;

    opacity: 0; /* Initially hidden */
    transform: translateY(40px); /* Start off slightly lower */
    transition: opacity 2s ease-in-out, transform 2s ease-in-out; 
}

.team .card.visible{
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Moves to the original position */
}

/* Add hover effect */


.team .card img {
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
}
.team .card-content{
    z-index: 2;
    text-wrap: wrap;
    padding: 1em;
    margin-top: -3em;
    border-radius: 8px;
    border-bottom-right-radius: 50%;
    /* border-bottom-right-radius: 30%; */
    /* border-bottom-right-radius: 0; */
    /* border-top: 4px solid rgb(216, 236, 234); */
    border-bottom: 4px solid rgb(226, 226, 226);
    background-color: rgb(10, 159, 124);
    /* background-color: blue; */

}
.team .card-content h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
    padding-top: 1em;
}

.team .card-content p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    text-wrap: wrap;
    max-width: 80%;
}

/* Footer styling */
.team .card-footer {
    font-size: 12px;
    color: #4CAF50;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .team .card-content h3 {
        font-size: 16px;
        color: #ffffff;
        margin-bottom: 8px;
        padding-top: 1em;
    }
    
    .team .card-content p {
        font-size: 12px;
        text-wrap: wrap;
        max-width: 100%;
    }
    
}

@media (max-width: 480px) {
    .team-container {
        grid-template-columns: 1fr;
    }
    .team-container .team {
        grid-template-columns: 1fr;
    }
    
    .team-container .team .card {
        grid-template-columns: 1fr;
    }
    .team .card-content h3 {
        font-size: 12px;
        margin-bottom: 0;
        padding-top: 0.2;
    }
    
    .team .card-content p {
        font-size: 10px;
        text-wrap: wrap;
        max-width: 100%;
    }
    
    .team {
        padding: 1em;
    }
    
}