/* ================================
   Book Library – Frontend Styles
   ================================ */

/* Grid for 4 books */
.bl-books-grid,
.bl-latest-books {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Individual book card */
.bl-book-item {
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bl-book-card
{
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bl-book-card-a
{
    border: 2px solid #e2e2e2;
    border-radius: 10px;
    padding: 12px;
    width: 50%;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}
/* Hover effect on card */
.bl-book-card:hover,
.bl-book-item:hover {
    border-color: #0073aa;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-6px);
}

/* Book image wrapper */
.bl-book-card img
{
    width: 50%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.bl-book-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.4s ease;
}


/* Image hover zoom */
.bl-book-card:hover img,
.bl-book-item:hover img {
    transform: scale(1.08);
}

/* Book title */
.bl-book-meta strong,
.bl-book-item h4 {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    color: #222;
    font-weight: 600;
}

/* Download button */
.bl-book-actions a,
.bl-book-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid #0073aa;
    border-radius: 5px;
    text-decoration: none;
    color: #0073aa;
    font-size: 13px;
    transition: all 0.3s ease;
}

.bl-book-actions a:hover,
.bl-book-btn:hover {
    background: #0073aa;
    color: #ffffff;
}

/* Search row */
.bl-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Category tabs */
.bl-category-tabs a {
    display: inline-block;
    margin-right: 10px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
}

.bl-category-tabs a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .bl-books-grid,
    .bl-latest-books {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bl-books-grid,
    .bl-latest-books {
        grid-template-columns: 1fr;
    }
}


.bl-pagination {
    margin-top: 20px;
    text-align: center;
}
.bl-pagination a {
    padding: 6px 10px;
    border: 1px solid #ccc;
    margin: 0 3px;
    text-decoration: none;
    cursor: pointer;
}
.bl-pagination a:hover {
    background: #f2f2f2;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 15px;
}

.bl-card {
    border: 1px solid #ccc;
    padding: 10px;
    transition: 0.3s;
}

.bl-card:hover {
    transform: scale(1.03);
}

.bl-card img {
    width: 100%;
}


.bl-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bl-search,
.bl-year {
    padding: 6px;
}

/*new css added on 19/02/26*/
/* SEARCH FORM */
.bl-search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bl-search-form input,
.bl-search-form select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
    font-size: 14px;
}

.bl-search-form button {
    padding: 10px 20px;
    background: #1e73be;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.bl-search-form button:hover {
    background: #155a96;
}

/* BOOK GRID */
.bl-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* BOOK CARD */
.bl-book-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.bl-book-card:hover {
    transform: translateY(-5px);
}

.bl-book-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.bl-book-info {
    padding: 15px;
}

.bl-book-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.bl-book-info p {
    margin: 0 0 12px;
    color: #777;
    font-size: 13px;
}

/* DOWNLOAD BUTTON */
.bl-download-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: 0.3s;
}

.bl-download-btn:hover {
    background: #1f7a33;
}

/* PAGINATION */
.bl-pagination {
    margin-top: 30px;
    text-align: center;
}

.bl-page {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.bl-page:hover {
    background: #f2f2f2;
}

.bl-page.active {
    background: #1e73be;
    color: #fff;
    border-color: #1e73be;
}
