.owt7-lms {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0;
}


/* Pagination Styles */

.owt7_lms_front_books .pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin: 20px 0;
}

.owt7_lms_front_books .pagination a,
.owt7_lms_front_books .pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.owt7_lms_front_books .pagination a:hover {
    background-color: #f0f0f0;
}

.owt7_lms_front_books .pagination .current-page {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ===== Book List Grid ===== */
#owt7_lms_books .book-list-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* ✅ 5 books per row */
    gap: 1.5rem;
    padding: 2rem 1rem;
}

/* ===== Individual Book Card ===== */
#owt7_lms_books .book-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

#owt7_lms_books .book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* ===== Book Cover ===== */
#owt7_lms_books .book-card .book-cover {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f7faff, #eef5ff);
}

#owt7_lms_books .book-card .book-cover img {
    width: 90px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#owt7_lms_books .book-card:hover .book-cover img {
    transform: scale(1.05);
}

/* ===== Book Details ===== */
#owt7_lms_books .book-card .book-details {
    padding: 1rem 1.2rem;
    flex-grow: 1;
}

#owt7_lms_books .book-card .book-name {
    color: #0073e6;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#owt7_lms_books .book-card p {
    color: #444;
    font-size: 0.88rem;
    margin: 0.25rem 0;
}

/* ===== Availability Buttons ===== */
.owt7_lms_book_available,
.owt7_lms_book_not_available {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

.owt7_lms_book_available {
    background-color: #27ae60;
    color: #fff;
}

.owt7_lms_book_not_available {
    background-color: #e74c3c;
    color: #fff;
}

/* ===== Footer Button (Centered) ===== */
#owt7_lms_books .book-card .book-footer {
    text-align: center; /* ✅ Center the View button */
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #f0f0f0;
}

#owt7_lms_books .book-card .view-book-btn {
    background-color: #0073e6;
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

#owt7_lms_books .book-card .view-book-btn:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* ===== Responsive Grid ===== */
@media (max-width: 1400px) {
    #owt7_lms_books .book-list-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    #owt7_lms_books .book-list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    #owt7_lms_books .book-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    #owt7_lms_books .book-list-container {
        grid-template-columns: 1fr;
    }
}
