/* Team Section starts */
/* Heading section */

.teamHeader {
    width: 100%;
    position: relative;
    padding-top: 60px;
}

.teamHeader img {
    width: 100%;
}

.teamHeading {
    margin-top: -145px;
}

.teamHeader .hide-on-mobile {

    width: 100%;
}

.teamHeader .hide-on-desktop {
    display: none;
}


.teamHeader h2 {
    font-size: 3.75em;
    font-family: 'Myriad Pro Semibold';
    color: #ffffff;
    margin-top: 45px;
    margin-bottom: 25px;
}


.team1 {
    width: 100%;



    /* height: 100vh; */
    /* opacity: 0; */
    /* Initial state for fade-in */
    /* transform: translateY(50px); */
    /* Starting position */
    /* animation: fadeIngUp 1s ease-out forwards; */
    /* Fade-in animation */
    background-repeat: no-repeat;
    background-size: cover;
    /* background-position: center; */

    background: url("../images/team/bg.jpg") #016ABD;
    /* margin-top: -7px; */


    /* clip-path: polygon(0 2.5%, 50% 0, 100% 2.5%, 100% 100%, 0 100%); */

    /* overflow: hidden; */

    /* position: absolute; */

}

/* Fade-in animation */
@keyframes fadeIngUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* .heading1{
    text-align: center;
    color: #fff;
}

.team1 .heading1 h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700 !important;
    font-size: 40px !important;
    font-style: normal;

}

.team1 .heading1 h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
} */

.team1 .group1,
.team1 .group2 {

    font-size: 2em;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
    text-align: right;
}

/* Image tile section */

.imgtiles1 {
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
    padding-top: 180px;
}

.top1 {
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: center;
    flex-direction: column; */
    /* align-items: center; */

}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.card1 {
    /* flex: 1 1 23%; 
    box-sizing: border-box;
    max-width: 25%;  */
    flex: 1 1 calc(18% - 16px);
    /* 5 images per row, adjust the gap */
}

.chris-leahy {
    margin-left: 50px;
}

.card1 .clickableLink {
    text-decoration: none;

}

.card1 img {
    position: relative;
    width: 100%;
    height: auto;
}


.card1 .text1 h5 {
    font-size: 0.95em;
    font-family: 'Myriad Pro Bold';
    margin-top: 1em;
    color: #ffffff;

}


.card1 .text1 p {
    font-size: 0.80em;
    /* font-size: 20px; */
    color: #ffffff;

}



/* Fade-up animation */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}





@media (max-width: 1366px) {


    .card1 .text1 h5 {
        font-size: 0.81em;
    }

    .card1 .text1 p {
        font-size: 0.81em;
    }

    .imgtiles1 {
        padding-top: 180px;
    }

    .team1 .group1,
    .team1 .group2 {
        font-size: 1.75em;
    }

}


/* Tablet view */
@media screen and (max-width: 1200px) {


    /* Team section */
    .top1 {
        gap: 0 !important;
    }

    .card1 {
        flex: 50%;
        max-width: 50%;
    }

    .card1 .text1 {
        height: 110px;
    }

    /* .cards{
        gap: 0px;
    }
     */

    .card1 {
        flex: 1 1 calc(24% - 20px);
        /* 2 images per row */
    }

    .chris-leahy {
        margin-left: 0px;
    }

    .card1 .text1 h5 {
        font-size: 1.25em;
    }

    .card1 .text1 p {
        font-size: 0.93em;
    }

    .imgtiles1 {
        padding-top: 150px;
    }

    .team1 .group1,
    .team1 .group2 {
        font-size: 1.56em;
    }

}






@media (max-width: 992px) {

    .teamHeading {
        margin-top: -125px;
    }

    .teamHeader h2 {
        font-size: 2.81em;
        margin-top: 45px;
        margin-bottom: 25px;
    }

    .imgtiles1 {
        padding-top: 100px;
    }

    .team1 .group1,
    .team1 .group2 {
        font-size: 1.37em;
    }

}

@media (max-width: 768px) {

    .card1 {
        flex: 1 1 calc(48% - 20px);
    }

    .chris-leahy {
        margin-left: 0px;
    }

    .cards {
        margin-top: 0px !important;
    }


    .teamHeading {
        margin-top: -125px;
        text-align: center;
    }

    .teamHeader h2 {
        font-size: 2.18em;
        margin-top: 70px;
        margin-bottom: 10px;
    }

    .teamHeader .hide-on-mobile {

        display: none;
    }

    .teamHeader .hide-on-desktop {
        width: 100%;
        display: block;
        height: auto;
    }

    .imgtiles1 {
        padding-top: 100px;
    }

    .team1 .group1,
    .team1 .group2 {
        font-size: 1.37em;
    }
}





/* mobile view */
@media (max-width: 480px) {

    .teamHeading {
        margin-top: -145px;
    }


    /* Team section */
    .card1 {
        flex: 90%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .cards {
        gap: 0px;
        margin-top: 0px !important;
    }

    .card1 .text1 h5 {
        font-size: 1.20em;
    }

    .card1 .text1 p {
        font-size: 0.85em;
    }

    .card1 .text1 {
        height: 90px;
    }

    .card1 .alonzo {
        height: 90px !important;
    }

    .imgtiles1 {
        padding-top: 80px;
    }

    .team1 .group1,
    .team1 .group2 {
        font-size: 1.12em;
    }

}
