.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;
    }
}

/* ===== Single Book Page Styling ===== */
.owt7-lms-single-book {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    font-family: "Inter", sans-serif;
}

/* Back button */
.owt7-lms-single-book .owt7_lms_back_button {
    display: inline-block;
    margin-bottom: 25px;
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.owt7-lms-single-book .owt7_lms_back_button:hover {
    color: #005a87;
    transform: translateX(-3px);
}

/* Container layout */
.owt7-lms-single-book .book-details-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

/* Book cover */
.owt7-lms-single-book .book-cover {
    flex: 0 0 230px;
    text-align: center;
}

.owt7-lms-single-book .book-cover img {
    width: 100%;
    max-width: 230px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.owt7-lms-single-book .book-cover img:hover {
    transform: scale(1.03);
}

/* Book Info Section */
.owt7-lms-single-book .book-info {
    flex: 1;
    min-width: 260px;
}

.owt7-lms-single-book .book-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.owt7-lms-single-book .book-author,
.owt7-lms-single-book .book-status,
.owt7-lms-single-book .book-category,
.owt7-lms-single-book .book-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.owt7-lms-single-book .book-info strong {
    color: #000;
}

/* Description style */
.owt7-lms-single-book .book-description {
    margin-top: 15px;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .owt7-lms-single-book .book-details-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .owt7-lms-single-book .book-cover img {
        max-width: 200px;
    }

    .owt7-lms-single-book .book-info {
        width: 100%;
    }

    .owt7-lms-single-book .book-description {
        text-align: left;
    }
}