.ourteam-hero {
    height: 80vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;


    background-image: url("../images/ourteamhero/ourteamhero.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

}


/* Content */
.ourteam-content {
    position: relative;
    z-index: 2;
}

.ourteam-content h1 {
    font-size: 48px;
    color: #fff;
    font-weight: 700;
}

.ourteam-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.team-section {
    padding: 80px 0;
    background: #ffffff;
}

.team-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}



/* CARD */
/* .team-card {
    text-align: center;
    width: 260px;
    cursor: pointer;
    border: 1px solid #555;
    background: #f0f7ff;

    height: 280px;
   
    position: relative;
    transition: all 0.5s;
  
}

.team-card:hover {
    height: 400px;


} */

.team-card {
    text-align: center;
    width: 260px;
    cursor: pointer;
    border: 1px solid #555;
    background: #f0f7ff;

    height: 280px;
    overflow: hidden;

    position: relative;
    transition: height 0.4s ease;
}


.team-img-box {
    position: relative;
    width: 220px;
    height: 220px;
    margin: auto;
}


.team-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.6s ease;
}

.team-img {
    position: absolute;
    width: 75%;
    height: 75%;
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border-radius: 50%;
}


.team-card:hover .team-bg {
    transform: rotate(25deg);
}


.team-info {
    /* margin-top: 20px; */
    transition: 0.4s;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.team-role {
    font-size: 14px;
    color: #777;
}


.team-details {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}

.team-card.active .team-details {
    opacity: 1;
}

/* keep your existing animation */
.team-card:hover .team-bg {
    transform: rotate(25deg);
}