/* =====================================================
   ROOT BRAND SYSTEM
===================================================== */
:root {
    --brand-orange: #7B2E5F;
    --brand-dark: #2E2E2E;
    --brand-grey: #1F1F1F;
    --brand-light-grey: #FFFFFF;
    --brand-white: #FFFFFF;

    /* FONT SYSTEM */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

/* =====================================================
   BASE RESET
===================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--brand-dark);
    background: var(--brand-white);
    line-height: 1.6;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--brand-orange);
    font-weight: 600;
}

a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: all .25s ease;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

/* =====================================================
   HEADER
===================================================== */
.top-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.logo img {
    height: 60px;
}

/* =====================================================
   SEARCH
===================================================== */
.search-box input {
    width: 260px;
    border-radius: 0;
    font-size: 14px;
}

.btn-search {
    background: var(--brand-orange);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 8px 18px;
    transition: all .3s ease;
}

.btn-search:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* =====================================================
   NAVIGATION
===================================================== */
.main-nav {
    background: var(--brand-orange);
}

.main-nav .nav-link {
    color: #fff;
    padding: 12px 22px;
    font-weight: 500;
    transition: background .3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: #ac688edb;
    color: #2F3A45;
    font-weight: 900;
}

.main-nav .nav-link:hover {
    text-decoration: none;
}

/* =====================================================
   HOME PAGE SECTION
===================================================== */
.home-section {
    background: var(--brand-light-grey);
    padding: 60px 0;
}

/* =====================================================
   SECTION TITLE (FEATURED BOOKS)
===================================================== */
.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 140px;
    height: 3px;
    background: var(--brand-orange);
    display: block;
    margin: 12px auto 0;
}

/* =====================================================
   BOOK GRID
===================================================== */
.book-card {
    background: #fff;
    padding: 10px;
    transition: all .3s ease;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   BOOK COVER
===================================================== */
.book-cover {
    height: 280px;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   BOOK INFO (FIXED TITLE ISSUE)
===================================================== */
.book-info {
    padding: 12px 8px;
}

.book-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.book-card:hover .book-title {
    color: var(--brand-orange);
}

.book-author {
    font-size: 13px;
    color: #555;
}

/* =====================================================
   BUTTONS (GLOBAL)
===================================================== */
.btn-brand {
    background: var(--brand-orange);
    color: #fff;
    border-radius: 0;
    padding: 8px 22px;
    font-size: 14px;
    transition: all .3s ease;
}

.btn-brand:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #a57e9499;
    padding: 20px 0;
}

.footer-logo {
    height: 70px;
}

.footer h5 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 6px;
}

.footer a {
    color: var(--brand-white);
    font-weight: 600;
}

.footer a:hover {
    color: var(--brand-orange);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    .search-box input {
        width: 180px;
    }

    .book-cover {
        height: 230px;
    }
}


.no-cover {
    width: 300px;
    height: 300px;

    background: var(--brand-orange);
    color: #fff;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}


/* =====================================================
   FILTER SIDEBAR
===================================================== */
.filter-box {
    background: #fff;
    border: 1px solid #eee;
    /* padding: 15px; */
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    margin-bottom: 6px;
}

.filter-list a {
    font-size: 14px;
    color: var(--brand-dark);
}

.filter-list a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

/* =====================================================
   RESULT INFO
===================================================== */
.result-count {
    font-size: 14px;
    color: #666;
}

/* =====================================================
   LEFT SIDEBAR (REUSABLE)
===================================================== */
.filter-box {
    border: 1px solid #ddd;
    background: #fff;
}

.filter-section {
    border-bottom: 1px solid #e5e5e5;
}

.filter-toggle,
.filter-link {
    width: 100%;
    background: linear-gradient(#f7f7f7, #eaeaea);
    border: none;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-toggle:hover,
.filter-link:hover {
    background: #e0e0e0;
    color: var(--brand-orange);
}

.arrow {
    font-size: 16px;
}

/* Scrollable subject list */
.filter-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 10px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 6px;
}

.filter-list a {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.filter-list a:hover {
    color: var(--brand-orange);
    text-decoration: none;
}


/* =====================================================
   AUTHORS PAGE
===================================================== */

.breadcrumb-simple {
    font-size: 14px;
    margin-bottom: 15px;
}

.breadcrumb-simple a {
    color: var(--brand-orange);
}

/* Alphabet bar */
.alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.alphabet-bar a {
    border: 1px solid #ddd;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--brand-dark);
}

.alphabet-bar a.active,
.alphabet-bar a:hover {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

/* Author list */
.author-list {
    list-style: disc;
    margin-left: 18px;
    margin-top: 15px;
}

.author-list li {
    margin-bottom: 6px;
    font-size: 14px;
}

.author-list a {
    color: #1a5fb4;
}

.author-list a:hover {
    text-decoration: none;
}

/* =====================================================
   AUTHOR FILTER – LIST VIEW
===================================================== */

.result-bar {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 13px;
    color: #555;
}

/* Book row */
.book-list-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* Cover */
.book-list-cover {
    width: 150px;
    height: 180px;
    background: var(--brand-dark);
    flex-shrink: 0;
    overflow: hidden;
}

.book-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No image placeholder */
.no-cover.small {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
    color: #fff;
}

/* Info */
.book-list-info {
    flex: 1;
}

.book-list-title {
    font-size: 16px;
    font-family: var(--font-heading);
    color: #000;
    margin-bottom: 6px;
}

.book-list-author {
    font-size: 14px;
    margin-bottom: 6px;
}

.book-list-author a {
    color: var(--brand-orange);
}

.book-info-link {
    font-size: 14px;
    color: var(--brand-dark);
}

.book-info-link:hover {
    color: var(--brand-orange);
    text-decoration: none;
}
/* =====================================================
   BOOK DETAIL – FINAL ALIGNMENT FIX
===================================================== */
/* =====================================================
   BOOK DETAIL PAGE – FINAL UI
===================================================== */

/* Title */
.book-page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--brand-orange);
    line-height: 1.4;
}

/* Wrapper */
.book-detail-wrapper {
    margin-top: 10px;
}

/* Cover */
.book-detail-cover {
    width: 100%;
    height: 320px;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-cover {
    color: #fff;
    font-size: 13px;
}

/* Meta grid */
.book-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Meta column */
.meta-col p {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.meta-col span {
    font-weight: 600;
    color: #777;
}

.meta-col a {
    color: var(--brand-orange);
    text-decoration: none;
}

.meta-col a:hover {
    text-decoration: underline;
}

/* Description */
.book-description {
    margin-top: 20px;
}

.book-description strong {
    font-size: 14px;
}

.book-description p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .book-meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .book-detail-cover {
        height: 200px;
        margin-bottom: 15px;
    }
}


/* =====================================================
   STATIC PAGES (ABOUT / TERMS)
===================================================== */

.static-page-box {
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e5e5;
}

.static-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--brand-orange);
    margin-bottom: 15px;
}

.static-page-box h4 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.static-page-box p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.static-page-box ul {
    padding-left: 18px;
}

.static-page-box ul li {
    font-size: 14px;
    margin-bottom: 6px;
}


/* ===============================
   CONTACT PAGE
================================ */

.page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--brand-orange);
    margin-bottom: 5px;
}

.title-divider {
    width: 60px;
    height: 2px;
    background: var(--brand-orange);
    margin: 0 auto;
}

.contact-map iframe {
    border-radius: 4px;
}

.contact-info-row {
    margin-top: 20px;
}

.contact-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    height: 100%;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.contact-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.contact-card a {
    color: var(--brand-orange);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}


/* Prevent pagination overflow */
.pagination {
    flex-wrap: wrap;
    white-space: normal;
}

/* Small spacing so links don't stick */
.pagination .page-item {
    margin: 2px;
}

/* Prevent arrows from stretching */
.pagination svg {
    width: 16px;
    height: 16px;
}
/* Compact pagination UI */
.pagination {
    --bs-pagination-padding-y: 0.25rem;
    --bs-pagination-padding-x: 0.5rem;
    --bs-pagination-font-size: 0.85rem;
}

/* Reduce box size */
.pagination {
    font-size: 13px;
}

.pagination .page-link {
    padding: 4px 6px;
    min-width: 30px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background-color: #a55f87;   /* match Mahima orange */
    border-color: #a55f87;
}


/* Reduce arrow size */
.pagination .page-link svg {
    width: 12px;
    height: 12px;
}
.result-count {
    line-height: 1.2;
}

.pagination {
    margin-bottom: 0;
}