/* Team Member CSS Start */
.teamsection {
   
    /* margin: 50px auto; */


   
    background: url("../images/team/personal_info_bg.jpg") #016ABD;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    min-height: 110vh;

    display: flex;

    justify-content: center;
    align-items: center;
    /* clip-path: polygon(0 7%, 50% 0, 100% 7%, 100% 100%, 0 100%);
    margin-top: -70px; */

}



/* Fade-in animation */
@keyframes fadeIngUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teamMemberSection {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* align-items: center; */
    gap: 10px;
    opacity: 0;
    /* Initial state for fade-in */
    transform: translateY(50px);
    /* Starting position */
    animation: fadeIngUp 1s ease-out forwards;
    /* Fade-in animation */

    /* min-height: 100vh; */

    flex-wrap: wrap;
    margin-top: 150px;
}

.teamMemberImage {
    /* padding: 10px; */
    width: 40%;
    text-align: center;
    /* margin-top: 100px; */
}

.teamMemberImage img {
    width: 50%;
    height: auto;

}

/* .teamMember img {
    width: 100%;
    height: auto;
    object-fit: cover;
} */

.teamMember {
    padding: 10px;
    width: 50%;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
}

.teamMember h2 {
    font-family: "Fredericka the Great", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 48px;
}

.teamMember h3 {

    font-size: 30px;
    margin-bottom: 1em;
}

.teamMember p {
  
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 1em;
    /* color: #cccccc !important; */
}


.teamMember a button {
    position: relative;
    padding: 10px 30px;
    margin-bottom: 20px;
    border: 2px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;

    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 24px;
    margin-top: 30px;
    overflow: hidden;
    transition: color 0.5s, border-color 0.5s;

}

.teamMember a button::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 300%;
    background-color: #FFFFFF;
    z-index: 1;
    transition: transform 0.7s;
    transform: translateY(0);
    color: #000000;
    /* Text color to black on hover */

}

.teamMember a button:hover::before {
    transform: translateY(-100%);
}

.teamMember a button:hover {
    color: #000000;
    /* Text color to black on hover */
    border-color: #FFFFFF;
    /* Border color to black on hover */
}

.teamMember a button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.teamMember a button span {
    position: relative;
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 1366px) {


    .teamMember h2 {
        font-size: 42px;
    }
    
    .teamMember h3 {
        font-size: 26px;
    }
    
    .teamMember p {
        font-size: 20px;
        line-height: 1.6;
    }

    .teamsection {
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .teamMemberSection {
        margin-top: 150px;
    }
    
}



@media screen and (max-width: 992px) {

   

    .teamMemberSection {
        flex-direction: column;
    }

    .teamMemberImage {
        width: 100%;
    }

    .teamMember {      
        width: 94%;
        margin: 0 auto;       
    }

    .teamMemberImage img {
        width: 60%;
        max-width: 250px;      
    }

    .teamMember h2 {
        font-size: 36px;
    }
    
    .teamMember h3 {
        font-size: 22px;
    }
    
    .teamMember p {
        font-size: 18px;
        line-height: 1.6;
    }
    .teamMemberSection {
        margin-top: 150px;
    }
   
}

@media (max-width: 768px) {

    .teamMember h2 {
        font-size: 30px;
    }
    
    .teamMember h3 {
        font-size: 22px;
    }
    
    .teamMember p {
        font-size: 18px;
        line-height: 1.6;
    }
 
    .teamMemberSection {
        margin-top: 150px;
    }

}

@media (max-width: 480px) {

    .teamMember h2 {
        font-size: 24px;
    }
    
    .teamMember h3 {
        font-size: 20px;
    }
    
    .teamMember p {
        font-size: 16px;
        line-height: 1.6;
    }
    .teamMemberSection {
        margin-top: 150px;
    }

}


