.container{
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}
.box{
    width: 100%;
    height: 100%;
    padding: 2em 1.5em;
    background: linear-gradient(#ffffff 50%,black 50%);
    background-size: 100% 200%;
    background-position: 0 2.5%;
    border-radius: 5px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.5s;
    margin: 0px 15px;

}
.head1{
    color:black;
}
.head2{
    color:black;
}

.box:hover{
    transition: 0.5s;
    background: black;
    background-position: 0 100%;
}
.box:hover .head1 
{
    color: white;
}
.box:hover .head2 
{
    color: white;
}
.box h4{
    margin-left: 14px;
    margin-top: 10px;
}
.box p
{
    font-size: 16px;
    line-height: 28px;
    height: 40%;
    padding: 0 15px 15px 15px;
    overflow: hidden;
    color: black;
}
#btn
{
    background-color: black;
    color: #fff;
    padding: 10px 15px;
    margin: 15px;
    border-radius: 5px;
    float:right;

}
@media (max-width:992px)
{
 
    .container{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 50px;
    }
    .box{
    max-width:100%;
    background-color: whitesmoke;
    border-radius: 5px;
    box-shadow: 0 7px 7px gray;
    margin-top: 50px;
    
    }
}