.ebook-card {
    max-width: 95%;
    margin: 30px auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ebook-card a {
    text-decoration: none;
    color: black;
}
.ebook-thumb {
    position: relative;
    height: 315px;
    width: 315px;
}
.ebook-card .text {
    margin-top: 60px;
    border-radius: 10px;
    padding: 30px 20px 30px 130px;
    position: relative;
    box-shadow: 0px 0px 10px #0000003d;
    z-index: -1;
    min-height: 180px;
    display: flex;
    align-items: center;
       text-decoration: none;
  color: black; 
}

a {
  text-decoration: none;
}

.ebook-card,
.ebook-card * {
  text-decoration: none;
  color: #000; 
}

.ebook-card .text:before {
    content: '';
    background: url(../../images/socxo/team/box-line.png) 0px 0px no-repeat;
    background-size: 75%;
    width: 116px;
    height: 230px;
    position: absolute;
    left: auto;
    right: -55px;
    top: -25px;
    z-index: -1;
}
.ebook-card .text p+p{
    position:relative;
}
.ebook-card:hover .text p+p:before {
    content: '';
    width: 132px;
    height: 2px;
    background-color: black;
    position: absolute;
    top: auto;
    bottom: 0px;
    left: 0px;
    right: auto;
}
.ebook-card .text p.book_title{
    height:55px; overflow:hidden;
}


.text-container {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0px;
}

.ebook-banner {
    background: #f4f4f4;
}
.ebook-banner img{
    max-width: 80%;
    margin: auto;
}
@media only screen and (max-width: 1025px) {
    .ebook-thumb {
        height: 280px;
        width: 280px;
    }
}
@media only screen and (max-width: 992px) {

    .ebook-card:hover .text p+p:before {
        right: 0px;
        margin: auto;
    }
    .ebook-card {   
        margin: 10px auto; 
    } 
    .ebook-thumb {
        text-align: center;
        width: 100%;
        height: auto;
        margin-bottom: -100px;
        z-index: -1;
        padding-top: 30px;
    }  

    .ebook-card .text {
        margin: auto;
        padding: 20px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        background:white;
    }
    .ebook-card .text:before{
        content:none;
    }


}