/* ── HERO ── */
.bi-hero {
    display: block;
    margin: 0;
    padding: 50px 0;
}

.bi-hero-bg-text {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 300;
    color: rgba(27, 42, 74, .03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    letter-spacing: -.02em;
}

.bi-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    position: relative;
}

.bi-hero-inner {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    margin: 1%;
}

.bi-hero-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #b8902a;
    margin-bottom: 10px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    opacity: 0;
    transform: translateY(16px);
}

.bi-hero-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: #b8902a;
}

.bi-hero-h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 500;
    color: #6b1a1a;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -.01em;
    opacity: 0;
    transform: translateY(24px);
}

.bi-hero-h1 em {
    font-style: italic;
    color: #6b1a1a;
}

.bi-hero-sub {
    font-size: 1rem;
    color: #000;
    line-height: 1.8;
    max-width: 600px;
    font-weight: 300;
    text-align: justify;
    opacity: 0;
    transform: translateY(16px);
}

.bi-hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
}

.bi-hero-frame {
    width: 100%;
    border: 1.5px solid #C8BFB0;
    background: #FAF8F4;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.bi-hero-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid #DDD6CA;
    pointer-events: none;
    z-index: 1;
}

.bi-hero-frame-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: #6b1a1a;
    border-style: solid;
    z-index: 2;
}

.bi-hero-frame-corner.tl {
    top: 6px;
    left: 6px;
    border-width: 1.5px 0 0 1.5px;
}

.bi-hero-frame-corner.tr {
    top: 6px;
    right: 6px;
    border-width: 1.5px 1.5px 0 0;
}

.bi-hero-frame-corner.bl {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 1.5px 1.5px;
}

.bi-hero-frame-corner.br {
    bottom: 6px;
    right: 6px;
    border-width: 0 1.5px 1.5px 0;
}

.bi-hero-frame img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

@media (max-width: 900px) {
    .bi-hero-inner {
        grid-template-columns: 1fr;
    }

}

/* ── BOOK COLLECTION ── */
.book-collection-section {
    padding: 40px 0 70px;
}

.book-collection-shell {
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

.book-collection-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.inner-head {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: #6b1a1a;
    margin: 0;
}

.inner-head em {
    font-style: italic;
}

.book-collection-heading-group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.book-collection-heading-group .inner-head-sindhi {
    opacity: 0.9;
}

.book-collection-heading-group .inner-head-sindhi em {
    font-style: normal;
}

/* Search & Filter Bar */
.bsf-bar-wrap {
    display: flex;
}

.bsf-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bsf-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #DDD6CA;
    background: #FAF8F4;
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 280px;
}

.bsf-search-box i {
    color: #b8902a;
    font-size: 14px;
}

.bsf-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: .9rem;
    color: #2b2b2b;
    width: 100%;
    font-family: inherit;
}

.bsf-sort select {
    border: 1px solid #DDD6CA;
    background: #FAF8F4;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .9rem;
    color: #6a6a6a;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.bsf-view-btns {
    display: flex;
    border: 1px solid #DDD6CA;
    border-radius: 6px;
    overflow: hidden;
}

.bsf-view-btn {
    background: #FAF8F4;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #7A7468;
    transition: background .2s, color .2s;
}

.bsf-view-btn+.bsf-view-btn {
    border-left: 1px solid #DDD6CA;
}

.bsf-view-btn.active,
.bsf-view-btn:hover {
    background: #6b1a1a;
    color: #fff;
}

.bsf-reset-btn {
    border: 1px solid #DDD6CA;
    background: #FAF8F4;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: .85rem;
    color: #6b1a1a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.bsf-reset-btn:hover {
    background: #6b1a1a;
    color: #fff;
}

/* Grid */
.book-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.book-collection-grid.list-view {
    grid-template-columns: 1fr 1fr;
    display: grid;
    margin: 1% !important;
    gap: 15px;
}

.book-collection-grid.list-view .bhCard {
    flex-direction: row;
    padding: 12px 12px;
}

@media (max-width: 992px) {
    .book-collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bsf-sort select {
        width: 100%;
    }

    .bsf-sort,
    .bsf-search-box {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .book-collection-grid,
    .book-collection-grid.list-view {
        grid-template-columns: 1fr;
    }

    .bhCard,
    .book-collection-grid.list-view .bhCard {
        flex-direction: column;
    }

    .bsf-search-box {
        min-width: 0;
        flex: 1;
    }

    .bsf-bar {
        width: 100%;
    }
}