/* =====================================================
   ROOT BRAND SYSTEM (VISHWA JYOTI PRESS)
===================================================== */
:root {
    --brand-blue: #2f3a76;
    --brand-blue-dark: #263066;
    --brand-red: #e53935;
    --brand-grey-nav: #e1e3ec;
    --brand-grey-light: #f5f6fa;
    --brand-grey-footer: #ededed;
    --brand-dark: #1f2937;
    --brand-white: #ffffff;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    font-family: var(--font-body);
    color: var(--brand-dark);
    background: var(--brand-white);
    font-size: 14px;
    line-height: 1.65;
}

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

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--brand-red);
}

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

.logo img {
    height: 65px;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

/* Add shadow on scroll */
.fixed-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* Prevent content hide behind header */
body {
    padding-top: 150px;
    /* adjust based on header height */
}

/* =====================================================
   SEARCH
===================================================== */
.search-box input {
    width: 260px;
    font-size: 13px;
    border-radius: 0;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
}

.btn-search {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

.btn-search:hover {
    background: #c62828;
}

/* =====================================================
   NAVIGATION (GREY BAR + RED UNDERLINE)
===================================================== */
.main-nav {
    background: var(--brand-grey-nav);
}

.main-nav .nav-link {
    color: var(--brand-blue);
    padding: 14px 28px;
    font-weight: 600;
    position: relative;
    background: none;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 20%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width .25s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 60%;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--brand-red);
}

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

/* =====================================================
   SECTION TITLE
===================================================== */
.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 40px;
    font-family: "Poppins";
}

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

/* =====================================================
   BOOK GRID
===================================================== */
.book-card {
    background: #fff;
    padding: 10px;
    height: 100%;
    box-shadow: none;
    transform: none;
}

.book-cover {
    height: 320px;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* =====================================================
   BOOK INFO
===================================================== */
.book-info {
    padding: 12px 6px;
}

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

.book-author {
    font-size: 13px;
    color: var(--brand-red);
    font-weight: 600;
}

/* =====================================================
   NO COVER
===================================================== */
.no-cover {
    background: var(--brand-blue);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

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

.filter-title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--brand-blue);
}

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

/* .filter-toggle,
.filter-link {
    width: 100%;
    background: #f3f4f6;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
} */
.filter-toggle,
.filter-link {
    width: 100%;
    background: #f3f4f6;
    border: none;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-toggle:hover {
    background: #e5e7eb;
}

.filter-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 10px;
}

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

.filter-list a:hover {
    color: var(--brand-red);
}

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

/* =====================================================
   AUTHORS PAGE
===================================================== */
.alphabet-bar a {
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--brand-blue);
}

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

/* =====================================================
   BOOK LIST VIEW
===================================================== */
.book-list-cover {
    background: var(--brand-blue);
}

.book-list-title {
    font-family: var(--font-heading);
    color: var(--brand-blue);
}

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

/* =====================================================
   BOOK DETAIL PAGE
===================================================== */
.book-page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--brand-blue);
}

.book-detail-cover {
    height: 320px;
    background: var(--brand-blue);
}

.meta-col span {
    color: #6b7280;
}

.meta-col a {
    color: var(--brand-blue);
}

.meta-col a:hover {
    color: var(--brand-red);
}

/* =====================================================
   STATIC PAGES
===================================================== */
.static-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--brand-blue);
}

/* =====================================================
   CONTACT PAGE
===================================================== */
.page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--brand-blue);
}

.title-divider {
    width: 60px;
    height: 2px;
    background: var(--brand-red);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: var(--brand-grey-footer);
    padding: 45px 0;
}

.footer h5 {
    font-family: var(--font-heading);
    color: var(--brand-blue);
}

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

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

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

/* =====================================================
   PAGINATION (UNCHANGED – DO NOT MODIFY)
===================================================== */
.pagination {
    flex-wrap: wrap;
    white-space: normal;
}

.pagination .page-item {
    margin: 2px;
}

.pagination svg {
    width: 16px;
    height: 16px;
}

.pagination {
    --bs-pagination-padding-y: 0.25rem;
    --bs-pagination-padding-x: 0.5rem;
    --bs-pagination-font-size: 0.85rem;
}

.pagination {
    font-size: 13px;
}

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

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

.pagination .page-link svg {
    width: 12px;
    height: 12px;
}

.pagination {
    margin-bottom: 0;
}


/* =====================================================
   SIMPLE HORIZONTAL FOOTER (FINAL)
===================================================== */

.simple-footer {
    background: #ffffff;
    border-top: 3px solid #2f3a76;
    padding: 18px 0;
}

/* main wrapper */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* left & right links */
.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-footer a {
    font-size: 14px;
    color: #2f3a76;
    font-weight: 500;
    text-decoration: none;
}

.simple-footer span {
    color: #2f3a76;
}

.simple-footer a:hover {
    color: #e53935;
}

/* logo center */
.footer-center img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* =====================================================
   MOBILE FOOTER
===================================================== */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }
}


/* =====================================================
   AUTHOR BOOK LIST (CARD VIEW – SAFE & SCOPED)
===================================================== */

.author-books-page .book-list-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    align-items: flex-start;
}

/* LEFT COVER */
.author-books-page .book-list-cover {
    width: 160px;
    min-width: 120px;
    height: 180px;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* NO COVER */
.author-books-page .no-cover.small {
    width: 100%;
    height: 100%;
    background: var(--brand-blue);
}

/* RIGHT CONTENT */
.author-books-page .book-list-info {
    flex: 1;
}

/* TITLE */
.author-books-page .book-list-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* AUTHOR */
.author-books-page .book-list-author {
    font-size: 14px;
    margin-bottom: 10px;
}

/* BOOK INFO LINK */
.author-books-page .book-info-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
}

.author-books-page .book-info-link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

/* RESULT BAR */
.author-books-page .result-bar {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {
    .author-books-page .book-list-item {
        flex-direction: column;
    }

    .author-books-page .book-list-cover {
        width: 100%;
        height: 220px;
    }
}