/* /books pages. Every rule is scoped to .b26 / .b26-* so the rest of the site is unaffected. */
:root {
    --b26-navy: #203154;
    --b26-blue: #0c559e;
    --b26-sky: #1394d0;
    --b26-yellow: #ffc107;
    --b26-text: #505050;
    --b26-gray: #f3f8f9;
    --b26-line: #e3e9ef;
}

/* Banner (same look as the existing /Books page) */
.b26-banner {
    background: var(--b26-navy) !important;
    padding: 48px 15px 44px;
}
.rs-breadcrumbs.b26-banner .breadcrumbs-text {
    position: static;
    transform: none;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}
.rs-breadcrumbs.b26-banner .page-title { margin-bottom: 12px; font-size: 42px; line-height: 1.2; }
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul { margin: 0; padding: 0; line-height: 1.8; }
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul li { font-size: 15px; }
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul li a { padding-right: 0; color: #fff; }
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul li a:hover { color: var(--b26-yellow); }
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul li a:before { display: none; }
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul li a:after {
    content: "/";
    position: static;
    display: inline;
    background: none;
    transform: none;
    width: auto;
    height: auto;
    margin: 0 10px;
    opacity: .6;
}
.rs-breadcrumbs.b26-banner .breadcrumbs-text ul li:last-child { color: var(--b26-yellow); }

.b26 { color: var(--b26-text); }
.b26-section { padding: 60px 0; }
.b26-gray { background: var(--b26-gray); }

.b26-eyebrow {
    display: inline-block;
    color: var(--b26-sky);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
    margin-bottom: 8px;
}
.b26-h2 { color: var(--b26-navy); font-size: 34px; line-height: 1.25; margin-bottom: 16px; }
.b26-h3 { color: var(--b26-navy); font-size: 26px; margin-bottom: 24px; }
.b26-h4 { color: var(--b26-navy); font-size: 18px; margin-bottom: 12px; }
.b26-h4 .fa { color: var(--b26-sky); margin-right: 6px; }
.b26-lead { font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.b26-subtitle { font-size: 18px; color: var(--b26-blue); font-weight: 500; margin-bottom: 14px; }
.b26-text { font-size: 16px; line-height: 1.75; margin-bottom: 14px; }

.b26-btn { margin: 0 10px 10px 0; background: var(--b26-sky); border: 2px solid var(--b26-sky); }
.b26-btn:hover { background: var(--b26-navy); border-color: var(--b26-navy); color: #fff; }
.b26-btn-outline { background: transparent; color: var(--b26-sky) !important; }
.b26-btn-outline:hover { color: #fff !important; }

.b26-back { display: inline-block; margin-bottom: 24px; color: var(--b26-blue); font-weight: 500; }
.b26-back:hover { color: var(--b26-sky); }

.b26-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px;
}
.b26-head .b26-h2 { margin: 0; }
.b26-more { color: var(--b26-sky); font-weight: 600; }

/* Chips (filter + jump links) */
.b26-filter, .b26-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.b26-jump { margin-top: 10px; }
.b26-chip {
    border: 1px solid var(--b26-line);
    background: #fff;
    color: var(--b26-navy);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    transition: all .2s;
}
.b26-chip:hover, .b26-chip.active { background: var(--b26-navy); border-color: var(--b26-navy); color: #fff; }

/* Tags */
.b26-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.b26-tag {
    display: inline-block;
    background: rgba(19, 148, 208, .1);
    color: var(--b26-blue);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.b26-tag-alt { background: rgba(255, 193, 7, .2); color: #7a5a00; }

/* Card grid */
.b26-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.b26-grid-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.b26-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(32, 49, 84, .08);
    transition: transform .25s, box-shadow .25s;
    color: inherit;
}
.b26-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(32, 49, 84, .16); color: inherit; }
.b26-card[hidden] { display: none; }
.b26-card-img {
    aspect-ratio: 300 / 415;
    background: #eef3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.b26-card-img img { width: 100%; height: 100%; object-fit: contain; }
.b26-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b26-card-title { font-size: 17px; line-height: 1.35; color: var(--b26-navy); margin: 0; }
.b26-card-link { margin-top: auto; color: var(--b26-sky); font-weight: 600; font-size: 14px; }
.b26-card:hover .b26-card-link { color: var(--b26-navy); }

/* Placeholder when a cover is not available yet */
.b26-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(160deg, var(--b26-navy), var(--b26-blue));
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
}
.b26-placeholder img { width: 56px !important; height: 56px !important; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.b26-placeholder-lg { aspect-ratio: 300 / 415; max-width: 360px; margin: 0 auto; border-radius: 8px; font-size: 22px; }

.b26-group + .b26-group { margin-top: 48px; }
.b26-group { scroll-margin-top: 90px; }

/* Video */
.b26-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(32, 49, 84, .2);
    aspect-ratio: 16 / 9;
}
.b26-video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.b26-video-center { max-width: 900px; margin: 0 auto; }

/* Item page */
.b26-cover { position: sticky; top: 100px; }
.b26-cover-main {
    display: block;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(32, 49, 84, .2);
    background: #fff;
}
.b26-cover-main img { width: 100%; height: auto; display: block; }
.b26-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.b26-thumb {
    width: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: .7;
    transition: all .2s;
}
.b26-thumb img { width: 100%; display: block; aspect-ratio: 300 / 415; object-fit: cover; }
.b26-thumb.active, .b26-thumb:hover { border-color: var(--b26-sky); opacity: 1; }

.b26-box {
    background: var(--b26-gray);
    border-radius: 8px;
    padding: 20px 22px;
    margin: 10px 0 20px;
    height: calc(100% - 30px);
}
.b26-list { list-style: none; padding: 0; margin: 0; }
.b26-list li { position: relative; padding: 5px 0 5px 22px; line-height: 1.5; }
.b26-list li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--b26-sky);
}
.b26-list-check { margin: 6px 0 18px; }
.b26-list-check li:before { content: "\f00c"; font-family: FontAwesome; background: none; color: var(--b26-sky); width: auto; height: auto; top: 5px; font-size: 13px; }
.b26-actions { margin-top: 10px; }

.b26-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--b26-line);
    margin-top: 20px;
    padding-top: 20px;
}
.b26-pager a { color: var(--b26-blue); font-weight: 600; display: flex; align-items: center; gap: 8px; max-width: 48%; }
.b26-pager a:hover { color: var(--b26-sky); }
.b26-pager-next { margin-left: auto; text-align: right; }

/* Gallery */
.b26-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.b26-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(32, 49, 84, .08);
    transition: transform .25s;
}
.b26-gallery-item:hover { transform: scale(1.03); }
.b26-gallery-item img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 300 / 415; display: block; }

/* Tablet */
@media (max-width: 991px) {
    .b26-section { padding: 44px 0; }
    .b26-h2 { font-size: 28px; }
    .b26-cover { position: static; }
    .b26 .col-lg-7.wow { padding: 15px !important; }
}

/* Mobile */
@media (max-width: 575px) {
    .b26-banner { padding: 30px 15px 26px; }
    .rs-breadcrumbs.b26-banner .page-title { font-size: 28px; }
    .rs-breadcrumbs.b26-banner .breadcrumbs-text ul li { font-size: 13px; }
    .b26-section { padding: 34px 0; }
    .b26-h2 { font-size: 24px; }
    .b26-h3 { font-size: 21px; margin-bottom: 18px; }
    .b26-lead { font-size: 16px; }
    .b26-grid, .b26-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .b26-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .b26-card-body { padding: 10px 10px 12px; gap: 6px; }
    .b26-card-title { font-size: 14px; }
    .b26-card-link { font-size: 13px; }
    .b26-tag { font-size: 11px; padding: 2px 6px; }
    .b26-placeholder { font-size: 14px; padding: 10px; }
    .b26-placeholder img { width: 40px !important; height: 40px !important; }
    .b26-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -15px; padding-left: 15px; padding-right: 15px; -webkit-overflow-scrolling: touch; }
    .b26-chip { white-space: nowrap; }
    .b26-btn { display: block; text-align: center; margin-right: 0; }
    .b26-cover-main { max-width: 260px; }
    .b26-pager a { font-size: 14px; }
}
