/* Extracted from archive-bix_doc.php (inline <style> moved to an enqueued stylesheet - rules unchanged). */
/* Exact Scribd Documents Hub Styles */
.bix-scribd-page {
    background: #ffffff;
    min-height: calc(100vh - 120px);
    padding: 36px 20px 72px;
    color: #111827;
}
body.darkTheme .bix-scribd-page {
    background: #1b1d20;
    color: #f1f5f9;
}
.bix-scribd-wrap {
    max-width: 1260px;
    margin: 0 auto;
}
.bix-scribd-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0 0 6px 0;
}
body.darkTheme .bix-scribd-hero-title {
    color: #ffffff;
}
.bix-scribd-hero-sub {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 24px 0;
}
body.darkTheme .bix-scribd-hero-sub {
    color: #9ca3af;
}
.bix-scribd-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}
body.darkTheme .bix-scribd-tabs-bar {
    border-bottom-color: #374151;
}
.bix-scribd-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
}
.bix-scribd-tab {
    display: inline-block;
    padding: 10px 2px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.bix-scribd-tab:hover {
    color: #111827;
}
.bix-scribd-tab.active {
    color: #111827;
    font-weight: 700;
    border-bottom-color: #111827;
}
body.darkTheme .bix-scribd-tab {
    color: #9ca3af;
}
body.darkTheme .bix-scribd-tab.active {
    color: #ffffff;
    border-bottom-color: #54d694;
}
.bix-scribd-search-inline {
    position: relative;
    width: 280px;
    max-width: 100%;
    margin-bottom: 8px;
}
.bix-scribd-search-inline input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 7px 34px 7px 12px;
    font-size: 13px;
    background: #ffffff;
    color: #111827;
}
body.darkTheme .bix-scribd-search-inline input {
    background: #25282c;
    border-color: #4b5563;
    color: #f3f4f6;
}
.bix-scribd-search-inline button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    padding: 0;
}

/* Carousel Shelf */
.bix-sc-shelf {
    margin-bottom: 42px;
    position: relative;
}
.bix-sc-shelf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.bix-sc-shelf-title {
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}
body.darkTheme .bix-sc-shelf-title {
    color: #ffffff;
}
.bix-sc-view-more {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.bix-sc-view-more:hover {
    text-decoration: underline;
    color: #00798c;
}
body.darkTheme .bix-sc-view-more {
    color: #e5e7eb;
}
.bix-sc-track-outer {
    position: relative;
}
.bix-sc-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 6px;
}
.bix-sc-track::-webkit-scrollbar {
    display: none;
}
.bix-sc-nav-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.bix-sc-nav-btn:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}
.bix-sc-nav-btn.prev { left: -16px; }
.bix-sc-nav-btn.next { right: -16px; }
@media (max-width: 640px) {
    .bix-sc-nav-btn { display: none; }
}

/* Authentic Scribd PDF Card (Compact Size) */
.bix-sc-card {
    flex: 0 0 168px;
    width: 168px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.bix-sc-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
body.darkTheme .bix-sc-card {
    background: #25282c;
    border-color: #3a3e44;
}
.bix-sc-cover-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px 6px;
    background: #ffffff;
    text-decoration: none;
}
body.darkTheme .bix-sc-cover-area {
    background: #25282c;
}
.bix-sc-page-sheet {
    position: relative;
    width: 100%;
    height: 168px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    box-shadow: 0 2px 0 #f3f4f6, 0 3px 0 #d1d5db, 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bix-sc-page-sheet canvas,
.bix-sc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bix-sc-pdf-badge {
    position: absolute;
    top: 8px;
    left: 6px;
    background: #23272f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 3px;
    z-index: 3;
    line-height: 1;
}
.bix-sc-placeholder {
    padding: 26px 10px 10px;
    text-align: left;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fafafa;
}
.bix-sc-placeholder-lines span {
    display: block;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 5px;
}
.bix-sc-placeholder-lines span:nth-child(2) { width: 82%; }
.bix-sc-placeholder-lines span:nth-child(4) { width: 65%; }
.bix-sc-placeholder-title {
    font-size: 10px;
    font-weight: 700;
    color: #4b5563;
    line-height: 1.25;
}
.bix-sc-body {
    padding: 6px 11px 11px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bix-sc-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}
.bix-sc-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.32;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 37px;
}
.bix-sc-title a {
    color: #111827;
    text-decoration: none;
}
.bix-sc-title a:hover {
    text-decoration: underline;
}
body.darkTheme .bix-sc-title a {
    color: #f3f4f6;
}
.bix-sc-author {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}
body.darkTheme .bix-sc-author {
    color: #9ca3af;
}
.bix-sc-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #374151;
    font-size: 12px;
}
body.darkTheme .bix-sc-footer {
    color: #d1d5db;
}
.bix-sc-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.bix-sc-bm-btn {
    background: none;
    border: none;
    padding: 2px;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease, transform 0.15s ease;
}
.bix-sc-bm-btn:hover,
.bix-sc-bm-btn.is-saved {
    color: #00798c;
    transform: scale(1.1);
}
body.darkTheme .bix-sc-bm-btn {
    color: #d1d5db;
}

/* Categories Tab Grid */
.bix-sc-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.bix-sc-cat-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
    background: #ffffff;
}
body.darkTheme .bix-sc-cat-box {
    background: #25282c;
    border-color: #3a3e44;
}
.bix-sc-cat-box h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 10px 0;
}
.bix-sc-cat-box h3 a {
    color: #111827;
    text-decoration: none;
}
.bix-sc-cat-box h3 a:hover {
    color: #00798c;
    text-decoration: underline;
}
body.darkTheme .bix-sc-cat-box h3 a {
    color: #ffffff;
}
.bix-sc-subcat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bix-sc-subcat-list li {
    margin-bottom: 6px;
    font-size: 13px;
}
.bix-sc-subcat-list a {
    color: #4b5563;
    text-decoration: none;
}
.bix-sc-subcat-list a:hover {
    color: #111827;
    text-decoration: underline;
}
body.darkTheme .bix-sc-subcat-list a {
    color: #9ca3af;
}
