.medipro-team {
    padding: var(--space-2xl) 0;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}


/*
========================================
Team Flip Card
========================================
*/


.team-card {

    width:100%;

    background: transparent;

    height: 420px;

    perspective: 1000px;

}


.team-card-inner {

    position: relative;

    width:100%;

    height:100%;

    transition: transform .7s ease;

    transform-style: preserve-3d;

}



.team-card:hover .team-card-inner {

    transform: rotateY(180deg);

}



.team-card-front,
.team-card-back {


    position:absolute;

    inset:0;

    box-sizing:border-box;

    backface-visibility:hidden;

    border-radius:16px;

    padding:2rem;

    background:#fff;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    text-align:center;

}




.team-card-back {


    transform:rotateY(180deg);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}



/*
========================================
Team Image
========================================
*/


.team-card__image {

    padding-top:1rem;

}



.team-card__image img {

    width:120px;

    height:120px;

    object-fit:cover;

    margin:0 auto;

    display:block;

}


/*
========================================
Team Image Shapes
========================================
*/


.team-image-circle img {

    border-radius:50%;

}



.team-image-rounded img {

    border-radius:16px;

}



.team-image-square img {

    border-radius:0;

}



/*
========================================
Team Content
========================================
*/


.team-card__content {

    padding:1.25rem;

}



.team-card__name {

    margin-top:1rem;

    margin-bottom:.4rem;

}



.team-card__position {

    color:var(--medipro-primary);

    font-weight:600;

    margin-bottom:1rem;

}



.team-card__bio {

    margin-bottom:1rem;

}



.team-card__social {

    display:flex;

    justify-content:center;

    gap:1rem;

    margin:1rem 0;

}



.team-card__social a {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--medipro-primary);

    color: #fff;

    text-decoration: none;

    transition: all .3s ease;

}


.team-card__social a:hover {

    transform: translateY(-3px);

    opacity: .85;

}


.team-card__social i {

    font-size: 16px;

}



.team-card__contact {

    margin-bottom:1rem;

}



.team-card__contact a,
.team-card__contact span {

    display:block;

    margin-bottom:.4rem;

}



/*
========================================
Single Team Page
========================================
*/


.team-single {

    padding:var(--space-2xl) 0;

}




.team-single__hero {

    display:flex;

    align-items:center;

    gap:4rem;

    margin-bottom:4rem;

}




.team-single__image img,
.team-profile-image {

    width:320px;

    height:320px;

    object-fit:cover;

    border-radius:50%;

}




.team-single__info h1 {

    margin-bottom:1rem;

}




.team-single__position {

    color:var(--medipro-primary);

    font-weight:600;

    font-size:1.15rem;

    margin-bottom:1.5rem;

}




.team-single__contact {

    margin-bottom:1.5rem;

}




.team-single__contact p {

    margin-bottom:.5rem;

}




.team-single__contact a {

    text-decoration:none;

}




.team-single__social {

    display:flex;

    gap:1rem;

}




.team-single__social a {

     width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--medipro-primary);

    color:#fff;

    text-decoration:none;

    transition:all .3s ease;

}




.team-single__social a:hover {

    transform:translateY(-3px);

    opacity:.85;

}




.team-single__content {

    max-width:900px;

    margin:auto;

    line-height:1.8;

}




.team-single__content h2 {

    margin-bottom:1.5rem;

}




@media(max-width:768px){


    .team-single__hero {

        flex-direction:column;

        text-align:center;

        gap:2rem;

    }



    .team-single__image img,
    .team-profile-image {

        width:220px;

        height:220px;

    }



    .team-single__social {

        justify-content:center;

    }

    .team-single__social i {

    font-size:18px;

}

}
/*
========================================
Team Columns
========================================
*/


.team-columns-2 {

    grid-template-columns:repeat(2,1fr);

}



.team-columns-3 {

    grid-template-columns:repeat(3,1fr);

}



.team-columns-4 {

    grid-template-columns:repeat(4,1fr);

}



/*
========================================
Related Team Members
========================================
*/


.related-team {

    margin-top:5rem;

    padding-top:3rem;

    border-top:1px solid #e5e7eb;

}



.related-team .section-heading {

    text-align:center;

    margin-bottom:3rem;

}

/*
========================================
Related Team Card Sizing
========================================
*/


.related-team .team-grid {

    grid-template-columns: repeat(3, 1fr);

    max-width:1100px;

    margin:0 auto;

}



.related-team .team-card {

    height:380px;

}




@media(max-width:1024px){

    .related-team .team-grid {

        grid-template-columns:repeat(2,1fr);

    }

}



@media(max-width:768px){

    .related-team .team-grid {

        grid-template-columns:1fr;

    }

}