/*--------------------------------------------------------------
# Featured Books
--------------------------------------------------------------*/

.cg-books{

    padding:100px 0;

    background:#F8FAFC;

}

/* Grid */

.books-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-top:60px;

}

/* Card */

.book-card{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    border:1px solid #E8EEF6;

    box-shadow:0 15px 45px rgba(15,23,42,.06);

    transition:.35s;

}

.book-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 70px rgba(15,23,42,.12);

}

/* Cover */

.book-cover{

    position:relative;

    overflow:hidden;

    background:#F4F7FC;

    padding:30px;

    display:flex;

    justify-content:center;

    align-items:center;

}

.book-cover img{

    width:190px;

    height:270px;

    object-fit:cover;

    border-radius:12px;

    transition:.4s;

    box-shadow:0 20px 40px rgba(0,0,0,.18);

}

.book-card:hover .book-cover img{

    transform:scale(1.05) rotate(-2deg);

}

/* Badge */

.book-badge{

    position:absolute;

    top:18px;

    right:18px;

    background:#EC7A1C;

    color:#fff;

    padding:8px 16px;

    border-radius:30px;

    font-size:12px;

    font-weight:700;

}

/* Content */

.book-content{

    padding:28px;

}

.book-content h3{

    font-size:24px;

    color:#0F172A;

    margin-bottom:10px;

    line-height:1.3;

}

.book-author{

    color:#64748B;

    margin-bottom:18px;

    font-size:15px;

}

/* Rating */

.book-rating{

    display:flex;

    align-items:center;

    gap:10px;

    color:#F59E0B;

    font-size:18px;

    margin-bottom:24px;

}

.book-rating span{

    color:#24346E;

    font-weight:700;

}

/* Footer */

.book-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    border-top:1px solid #EEF2F7;

    padding-top:20px;

}

.book-footer span{

    color:#64748B;

    font-size:14px;

}

.book-footer a{

    background:#24346E;

    color:#fff;

    text-decoration:none;

    padding:12px 18px;

    border-radius:12px;

    font-size:14px;

    font-weight:700;

    transition:.3s;

}

.book-footer a:hover{

    background:#EC7A1C;

}

/* Responsive */

@media(max-width:1200px){

.books-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:767px){

.cg-books{

padding:70px 0;

}

.books-grid{

grid-template-columns:1fr;

}

.book-cover{

padding:25px;

}

.book-cover img{

width:170px;

height:240px;

}

.book-content{

padding:22px;

}

.book-content h3{

font-size:22px;

}

.book-footer{

flex-direction:column;

align-items:stretch;

}

.book-footer a{

text-align:center;

}

}