﻿

/* entire container, keeps perspective */
/*.flip-container {
    perspective: 1000px;
    -moz-transform: perspective(1000px);
    -moz-transform-style: preserve-3d;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -o-perspective: 1000;
}*/
    /* flip the pane when hovered */
    /*.flip-container:hover .flipper, .flip-container.hover .flipper {
        transform: rotateY(180deg);
    }

.flip-container, .front, .back {
    width: 360px;
    height: 360px;
}*/



/* flip speed goes here */
/*.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
}*/

/* hide back of pane during swap */
/*.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
}*/

/* front pane, placed above back */
/*.front {
    z-index: 2;*/
    /* for firefox 31 */
    /*transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    background: #074286;
    color:white
}*/

/* back, initially hidden pane */
/*.back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.thumbnail {
    background: none;
    border: none;
}

.mb {
    margin-bottom: 20px;
}*/
.flip-card {
    background-color: transparent;
    width: 380px;
    height: 410px;
    perspective: 1000px;
    margin-top:30px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;  
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/*@media(hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}*/

.flip-card:active .flip-card-inner {
    transition: none;
    transition-delay: 300ms;
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
}

.flip-card-front {
    background-color: #074286;
    color: white;
    text-align: center;
}

.flip-card-back {
    background-color: white;
    color: black;
    transform: rotateY(180deg);
    margin-left: 10px;
    margin-right: 10px;
}




.why-us h2 {
    position: relative;
    margin-bottom: 35px;
}

    .why-us h2::after {
        content: "";
        width: 120px;
        height: 3px;
        display: inline-block;
        background: #FFC107;
        position: absolute;
        left: 0px;
        right: 0px;
        bottom: -20px;
        margin: 0 auto;
    }

.why-us .box {
    padding: 50px 30px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.10);
    transition: 1s;
    position: relative;
    background-color: #333; /* #bbbab7   #333  */
    max-height: 230px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    height: 150px;
}

    .why-us .box:hover {
        padding: 30px 30px 70px 30px;
        box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.20);
        background-color: rgba(20, 30, 97, 0.3);
        /*background-color: #074286;*/
        max-height:none;
    }

    .why-us .box img {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        z-index: -1;
        opacity: 0;
        transition: all ease 1s;
    }

    .why-us .box:hover img {
        opacity: 1;        
    }

    .why-us .box span {
        display: block;
        font-size: 56px;
        font-weight: 700;
        color: #565b62;
        position: absolute;
        right: 10px;
        top: 0px;
        line-height: normal;
    }

    .why-us .box h4 a {
        font-size: 24px;
        font-weight: 600;
        padding: 0;
        margin: 20px 0;
        color: #ffff;
        text-decoration: none;
    }

    .why-us .box p {
        color: #aaaaaa;
        font-size: 15px;
        margin: 0;
        padding: 0;
    }

    .why-us .box:hover span,
    .why-us .box:hover h4 a,
    .why-us .box:hover p {
        color: #fff;
    }


.truncateBox {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    color: darkgrey;
}

    .truncateBox:hover {
        -webkit-box-orient: vertical;
        display: block;
        -webkit-line-clamp: 0;        
        text-overflow: ellipsis;
        white-space: normal;
        color: darkgrey;
    }



.services-category-box a {
    color: #ffff;
    font-size: 15px;
    padding: 10px 30px;
    border-radius: 3px;
    text-align: center;
    font-weight: 700;
    background-color: #074286;
    display: inline-block;
    min-width: 120px;
    margin-right: 30px;
    margin-bottom: 20px;
    -webkit-transition: all 400ms ease-out;
    transition: all 400ms ease-out;
    will-change: transform;
}

    .services-category-box a:hover {
        color: #fff;
        background-color: #B4C875;
    }

.services-category-info {
    margin-top: 30px;
    margin-bottom: 50px;
}

    .services-category-info h6 {
        font-size: 18px;
        color: #5f5f5f;
    }



.services-more-btn-box {
    margin-top: 15px;
}