/* STYLES FOR BOOKS PAGE (books-style.css)
  ======================================================
  - Contains all custom styles from your file.
  - Contains styles for the hero header and breadcrumbs.
*/

/* Hero Header (from inline style and dynamic CSS) */
.sabbi-page-header {
    background-image: url(https://collegeinfogeek.com/wp-content/uploads/2018/11/Essential-Books.jpg);
    background-color: #333; /* Fallback */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.sabbi-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.sabbi-page-header .page-title {
    color: #ffffff;
    font-family: Montserrat, sans-serif;
    line-height: 40px;
    font-weight: 700;
    font-size: 28px;
    margin: 0;
}

/* Breadcrumbs (from dynamic CSS) */
.auth-breadcrumb-wrap {
    background-color: #EDF2F6;
    font-family: "Open Sans", sans-serif;
}
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.breadcrumb {
    padding-top: 8px;
    padding-right: 15px;
    padding-bottom: 8px;
    padding-left: 15px;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}
.sabbi-breadcrumb {
    color: #000000;
}
.sabbi-breadcrumb li {
    display: inline-block;
}
.sabbi-breadcrumb li a {
    color: #000000;
    text-decoration: none;
}
.sabbi-breadcrumb li a:hover {
    color: #DB3243;
}
.sabbi-breadcrumb > li > span.separator {
    color: #000;
    margin: 0 8px;
}

/* Page Content Styles */
:root {
    --primary: #DB3243;
}

body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    /* NEW: This pushes all content down to prevent overlap
      with a sticky/fixed header. Adjust 80px if your header
      has a different height.
    */
    padding-top: 80px; 
}

/* Book List Styles */
.book-list-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.book-item {
    display: flex;
    flex-direction: row;
    background: white;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.book-image {
    flex: 0 0 300px;
    min-height: 300px;
    background: #f5f5f5;
    width: 300px; /* Explicit width for flex basis */
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* UPDATED: Was 'cover', now 'contain' to show full height */
}

.book-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-field {
    margin-bottom: 15px;
}

.book-label {
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.book-value {
    color: #333;
}

.book-value.title {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
}

.no-books-found {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-books-found span {
    color: #D30015;
    font-size: 1.2em;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* UPDATED: Added margin back for mobile view */
    .book-list-container {
        margin: 1rem; /* Was 0 */
        padding: 0; /* Was 1rem 0 */
    }

    .book-item {
        flex-direction: column !important;
        /* UPDATED: Added radius and shadow back for mobile */
        border-radius: 8px; /* Was 0 */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Was none */
        margin-bottom: 1.5rem; /* Was 1rem */
        border-top: none; /* Was 1px solid #eee */
        border-bottom: none; /* Was 1px solid #eee */
    }

    .book-image {
        width: 100% !important;
        min-height: 250px !important;
        max-height: 350px; /* Prevent huge images */
    }
    .book-content {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .book-image {
        min-height: 200px !important;
    }
    .book-content {
        padding: 15px !important;
    }
}