/* Books Page Styles */

/* Header Section */
.books-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../css/images/books.jpg') center/cover no-repeat;
    padding: 150px 0 80px;
    position: relative;
    color: #fff;
    min-height: 80vh;
}

.books-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.books-header .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.books-header .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.books-header .breadcrumb-item a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.books-header .breadcrumb-item.active {
    color: #fff;
}

.books-header .breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
}

/* Government Agency Info Section */
.society-info {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
}

.govt-title {
    font-size: 1.5rem;
    color: #2c1810;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ministry-title {
    font-size: 1.3rem;
    color: #444;
    font-weight: 500;
}

.dept-title {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

.agency-title {
    font-size: 1.3rem;
    color: #444;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.isbn-title {
    font-size: 1.4rem;
    color: #2c1810;
    font-weight: 600;
}

/* Publisher Info Section */
.publisher-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.publisher-info .publisher-number {
    color: #2c1810;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publisher-info .publisher-name {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Books Table Section */
.books-section {
    background-color: #fff;
    padding: 3rem 0;
}

.book-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.3;
}

.book-table thead {
    background-color: #2c1810;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.book-table th {
    padding: 0.6rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #3d251b;
    white-space: nowrap;
    font-size: 0.85rem;
}

.book-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Column-specific widths */
.book-table .isbn-column {
    width: 100px;
    min-width: 100px;
}

.book-table .title-column {
    width: 22%;
    min-width: 180px;
}

.book-table .author-column {
    width: 18%;
    min-width: 130px;
}

.book-table .subject-column {
    width: 13%;
    min-width: 100px;
}

.book-table .publisher-column {
    width: 18%;
    min-width: 130px;
}

.book-table .price-column {
    width: 70px;
    min-width: 70px;
}

.book-table tbody tr:hover {
    background-color: #f8f9fa;
}

.book-table tbody tr:hover td {
    white-space: normal;
    max-width: none;
}

.book-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Table */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: #2c1810;
    padding: 0.75rem 1rem;
    margin: 0 3px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .books-header h1 {
        font-size: 3rem;
    }
    
    .book-table {
        font-size: 0.78rem;
    }
    
    .book-table th {
        font-size: 0.82rem;
    }
}

@media (max-width: 992px) {
    .books-header {
        padding: 120px 0 60px;
    }
    
    .books-header h1 {
        font-size: 2.5rem;
    }
    
    .govt-title {
        font-size: 1.8rem;
    }
    
    .ministry-title {
        font-size: 1.3rem;
    }
    
    .dept-title {
        font-size: 1.2rem;
    }
    
    .agency-title {
        font-size: 1.3rem;
    }
    
    .isbn-title {
        font-size: 1.6rem;
    }
    
    .book-table {
        font-size: 0.75rem;
    }
    
    .book-table th {
        font-size: 0.78rem;
        padding: 0.4rem 0.5rem;
    }
    
    .book-table td {
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .books-header h1 {
        font-size: 2rem;
    }
    
    .books-header .lead {
        font-size: 1.1rem;
    }
    
    .book-table {
        font-size: 0.7rem;
    }
    
    .book-table th {
        font-size: 0.73rem;
        padding: 0.35rem 0.4rem;
    }
    
    .book-table td {
        padding: 0.3rem 0.4rem;
    }
    
    .govt-title {
        font-size: 1.3rem;
    }
    
    .ministry-title,
    .agency-title {
        font-size: 1.2rem;
    }
    
    .dept-title {
        font-size: 1.1rem;
    }
    
    .isbn-title {
        font-size: 1.25rem;
    }
    
    .publisher-info .publisher-number {
        font-size: 1.2rem;
    }
    
    .publisher-info .publisher-name {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
    }
    
    .govt-title {
        font-size: 1.2rem;
    }
    
    .ministry-title,
    .agency-title {
        font-size: 1.1rem;
    }
    
    .dept-title {
        font-size: 1rem;
    }
    
    .isbn-title {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
    }
} 