/* =====================================================
   ROOT BRAND SYSTEM
===================================================== */
:root {
    /* ==================================================
       BRAND PALETTE (Academia Prime Press)
    ================================================== */
    --color-primary: #F59A1B;        /* Brand orange (shield) */
    --color-dark: #2B2B2B;           /* Logo text & cap */
    --color-muted: #6B6B6B;          /* Secondary text */
    --color-light: #F5F5F5;          /* Light backgrounds */
    --color-white: #FFFFFF;

    /* ==================================================
       TEXT COLORS
    ================================================== */
    --text-primary: #2B2B2B;
    --text-secondary: #6B6B6B;
    --text-inverse: #FFFFFF;
    --text-accent: #F59A1B;

    /* ==================================================
       FOOTER SYSTEM
    ================================================== */
    --footer-bg-gradient: linear-gradient(180deg, #2B2B2B, #1F1F1F);
    --footer-text: #FFFFFF;
    --footer-link-hover: #F59A1B;
    --footer-divider: rgba(255, 255, 255, 0.25);

    /* ==================================================
       UI ELEMENTS
    ================================================== */
    --border-color: #E5E5E5;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-default: 6px;

    /* ==================================================
       FONT SYSTEM
    ================================================== */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

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

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

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

/* =====================================================
   HEADER
===================================================== */
.top-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    height: 60px;
}

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

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

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

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

.main-nav .nav-link {
    color: var(--color-white);
    padding: 12px 22px;
    font-weight: 500;
    transition: background .3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
    font-weight: 900;
}

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

/* =====================================================
   HOME PAGE SECTION
===================================================== */
.home-section {
    background: var(--color-light);
    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(--color-primary);
    display: block;
    margin: 12px auto 0;
}

/* =====================================================
   BOOK GRID
===================================================== */
.book-card {
    background: var(--color-white);
    padding: 10px;
    transition: all .3s ease;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

/* =====================================================
   BOOK COVER
===================================================== */
.book-cover {
    background: var(--color-white);
    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(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.book-card:hover .book-title {
    color: var(--text-accent);
}

.book-author {
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

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

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

.no-cover {
    width: 300px;
    height: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    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: var(--color-white);
    border: 1px solid var(--border-color);
}

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

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

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

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

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

/* =====================================================
   RESULT INFO
===================================================== */
.result-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =====================================================
   LEFT SIDEBAR (REUSABLE)
===================================================== */
.filter-box {
    border: 1px solid var(--border-color);
    background: var(--color-white);
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
}

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

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

.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: var(--text-primary);
    font-weight: 600;
}

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

/* =====================================================
   AUTHORS PAGE
===================================================== */
.breadcrumb-simple {
    font-size: 14px;
    margin-bottom: 15px;
}

.breadcrumb-simple a {
    color: var(--text-accent);
}

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

.alphabet-bar a {
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.alphabet-bar a.active,
.alphabet-bar a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* 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: var(--text-accent);
}

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

/* =====================================================
   AUTHOR FILTER – LIST VIEW
===================================================== */
.result-bar {
    background: var(--color-light);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

/* Cover */
.book-list-cover {
    width: 120px;
    background: var(--color-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: var(--color-white);
}

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

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

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

.book-list-author a {
    color: var(--text-accent);
}

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

.book-info-link:hover {
    color: var(--text-accent);
    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(--text-accent);
    line-height: 1.4;
}

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

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

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

.no-cover {
    color: var(--color-white);
    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: var(--text-secondary);
}

.meta-col a {
    color: var(--text-accent);
    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) – ENHANCED
===================================================== */
.static-page-box {
    background: var(--color-white);
    padding: 32px 36px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-soft);
}

/* Page Title */
.static-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-accent);
    margin-bottom: 18px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 10px;
}

/* Title underline */
.static-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 3px;
    background: var(--color-primary);
}

/* Sub headings */
.static-page-box h4 {
    font-size: 16px;
    margin-top: 22px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Paragraphs */
.static-page-box p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: justify;
}

/* First paragraph emphasis */
/* .static-page-box p:first-of-type {
    font-size: 16px;
    color: var(--text-primary);
} */

/* Lists */
.static-page-box ul {
    padding-left: 22px;
    margin-top: 10px;
}

.static-page-box ul li {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .static-page-box {
        padding: 22px 20px;
    }

    .static-title {
        font-size: 24px;
    }

    .static-page-box p {
        font-size: 14px;
    }
}

/* ===============================
   CONTACT PAGE
================================ */
.page-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--text-accent);
    margin-bottom: 5px;
}

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

.contact-map iframe {
    border-radius: var(--radius-default);
}

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

.contact-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    padding: 20px;
    height: 100%;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-card a {
    color: var(--text-accent);
    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: var(--color-primary);
    border-color: var(--color-primary);
}

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

.result-count {
    line-height: 1.2;
}

.pagination {
    margin-bottom: 0;
}

/* =====================================================
   GAGAN BOOKS – FIXED HEADER (NEW DESIGN)
===================================================== */
.gb-header-fixed {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--color-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.gb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

/* LOGO */
.gb-logo img {
    height: 70px;
    width: auto;
}

/* NAVIGATION */
.gb-nav {
    display: flex;
    gap: 32px;
}

.gb-nav-link {
    position: relative;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    padding-bottom: 6px;
}

.gb-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text-accent);
    transition: width .25s ease;
}

.gb-nav-link:hover::after,
.gb-nav-link.active::after {
    width: 100%;
}

.gb-nav-link.active {
    color: var(--text-accent);
}

/* SEARCH */
.gb-search {
    display: flex;
    align-items: center;
}

.gb-search input {
    width: 260px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-right: none;
    outline: none;
}

.gb-search button {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 7px 18px;
    font-weight: 600;
    cursor: pointer;
}

.gb-search button:hover {
    background: var(--color-dark);
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 991px) {
    .gb-nav {
        display: none;
    }

    .gb-search input {
        width: 180px;
    }
}

/* =====================================================
   GAGAN BOOKS – DARK FOOTER (NEW DESIGN)
===================================================== */
.gb-footer {
    background: var(--footer-bg-gradient);
    padding: 45px 0;
    color: var(--footer-text);
}

.footer-logo-wrapper {
    background: var(--color-white);
    padding: 8px 14px;
    border-radius: var(--radius-default);
    display: inline-block;
}

/* LOGO */
.gb-footer-logo img {
    max-width: -webkit-fill-available;
    height: 120px;
    /* filter: brightness(0) invert(1);
    opacity: 0.9; */
}

/* TITLES */
.gb-footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    position: relative;
    color: var(--footer-text);
}

.gb-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 2px;
    background: var(--footer-divider);
}

/* LINKS */
.gb-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gb-footer-links li {
    margin-bottom: 8px;
}

.gb-footer-links a {
    font-size: 14px;
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
}

.gb-footer-links a:hover {
    color: var(--footer-link-hover);
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {
    .gb-footer {
        text-align: center;
    }

    .gb-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .gb-footer-logo {
        margin-bottom: 30px;
    }

    .gb-footer-links {
        margin-bottom: 25px;
    }
}