
/* Department Book Cover Styles */
.book-wrap {
    perspective: 1000px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.book-cover {
    width: 100%;
    max-width: 380px;
    height: 520px;
    background: #fdf5e6;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(200,180,150,0.2) 100%);
    border: 1px solid #d2b48c;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.5), inset 8px 0 20px rgba(0,0,0,0.1);
    position: relative;
    padding: 40px 30px 30px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px 12px 12px 4px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    transition: transform 0.5s ease;
}

.book-cover:hover {
    transform: rotateY(-5deg) translateX(5px);
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(0,0,0,0.15);
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.book-top-devanagari {
    font-size: 18px;
    color: #8b4513;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.8;
}

.book-main-title {
    font-family: 'Alegreya', serif;
    font-size: 24px;
    color: #2a407c;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 25px;
    padding: 15px 5px;
    border-top: 1.5px solid #8b4513;
    border-bottom: 1.5px solid #8b4513;
    width: 100%;
}

.book-illustration {
    flex-grow: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 8px solid #fff;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.book-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.05);
}

.book-bottom-title {
    font-family: 'Alegreya', serif;
    font-size: 14px;
    color: #555;
    font-style: italic;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
    width: 80%;
}

/* Responsive */
@media (max-width: 768px) {
    .book-cover {
        max-width: 320px;
        height: 450px;
        padding: 30px 20px 20px 35px;
    }
    .book-main-title {
        font-size: 20px;
    }
}
