.card-container {
    margin: 7%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.card {
    width: 25%;
    height: 400px;
    perspective: 1000px;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    transition: transform 250ms, opacity 400ms;
    transition: 1s box-shadow;
}

.card:hover {
    -webkit-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
    -moz-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
}

.card-front,
.card-back {
    font-family: 'Poppins';
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.8s;
    background-color: #ffffff;
    border-radius: 10px;

}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card:hover .card-front {
    transform: rotateY(180deg);
    transform: translateY(-10px);
    box-shadow: 0 5px 35px 0px rgba(0, 0, 0, .1);
}

.card:hover .card-back {
    transform: rotateY(0deg);
}

.outer-img {
    border: 2px solid #a56969;
    display: inline-block;
    border-radius: 50%;
    margin-top: 6%;
}

.faculty-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 5px;
}

.faculty-name {
    margin-top: 8%;
    font-size: larger;
    color: #1f1f1f;
    font-weight: 600;
}

.faculty-designation {
    font-size: 13px;
    color: #292929;
    font-weight: 600;
}

.faculty-department {
    font-size: small;
    color: #4b4b4b;
    font-weight: 600;
}

.social-media {
    flex: wrap;
    flex-direction: row;
    align-self: center;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #666;
}

.social-link:hover {
    color: #333;
}

.fa {
    padding: 10px;
    font-size: 15px;
    width: 40px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    font-style: normal;
    margin: 5px 5px;
}

.fa:hover {
    opacity: 0.7;
    text-decoration: none;
    font-style: normal;
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-twitter {
    background: #55ACEE;
    color: white;
}

.fa-google {
    background: #dd4b39;
    color: white;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.fa-youtube {
    background: #bb0000;
    color: white;
}

.fa-instagram {
    background: #125688;
    color: white;
}

.fa-pinterest {
    background: #cb2027;
    color: white;
}

.fa-snapchat-ghost {
    background: #fffc00;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.fa-skype {
    background: #00aff0;
    color: white;
}

.fa-android {
    background: #a4c639;
    color: white;
}

.fa-dribbble {
    background: #ea4c89;
    color: white;
}

.fa-vimeo {
    background: #45bbff;
    color: white;
}

.fa-tumblr {
    background: #2c4762;
    color: white;
}

.fa-vine {
    background: #00b489;
    color: white;
}

.fa-foursquare {
    background: #45bbff;
    color: white;
}

.fa-stumbleupon {
    background: #eb4924;
    color: white;
}

.fa-flickr {
    background: #f40083;
    color: white;
}

.fa-yahoo {
    background: #430297;
    color: white;
}

.fa-soundcloud {
    background: #ff5500;
    color: white;
}

.fa-reddit {
    background: #ff5700;
    color: white;
}

.fa-rss {
    background: #ff6600;
    color: white;
}

.faculty-head {
    text-align: center;
}

@media only screen and (max-width: 1045px) {
    .card {
        width: 30%;
        height: 400px;
    }
}

@media only screen and (max-width: 768px) {
    .card {
        width: 100%;
        height: 400px;
    }
}

@media only screen and (max-width: 480px) {
    .card {
        width: 100%;
        height: 400px;
    }
}