/* ======================================================================
 Masterskills | Business Self-Study Library | Corporate Premium 2026
 Only two content sections: .bs-library-topics / .bs-library-catalog
 Does NOT alter header, hero, footer, or other pages.
 ====================================================================== */
.bs-library-topics,
.bs-library-catalog { background:transparent; padding:24px 0 30px; }
.bs-library-topics > .container,
.bs-library-catalog > .container { width:100%;max-width:100%;padding-inline:12px; }
.bs-library-section-heading { max-width:940px;margin:0 auto 34px;text-align:center; }
.bs-library-kicker { margin:0 0 13px;color:#b87b1a;font:800 12px/1.5 Tahoma,Arial,sans-serif;text-transform:uppercase;letter-spacing:.16em; }
.bs-library-title { margin:0;color:#103d61;font:800 clamp(25px,2.75vw,36px)/1.24 Tahoma,Arial,sans-serif;letter-spacing:-.025em;text-transform:none; }
.bs-library-section-intro { margin:15px auto 0;max-width:830px;color:#586f81;font:400 16px/1.72 Tahoma,Arial,sans-serif; }
.bs-library-topics-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;align-items:stretch; }
.bs-library-topic-card { display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:25px 19px 26px;background:#fff;border:1px solid #dbe6ee;border-radius:13px;box-shadow:0 8px 24px rgba(15,56,86,.045); }
.bs-library-topic-card > .bs-library-topic-icon.ms-icon-box { --ms-icon-size:65px;--ms-icon-svg-size:31px;--ms-icon-border-width:2px;--ms-icon-radius:13px;--ms-icon-shadow:3px 3px 0 rgba(7,59,99,.08);--ms-icon-spacing-bottom:19px;--ms-icon-background:#ffa925;--ms-icon-color:#092f4e;--ms-icon-border-color:#103d61;width:65px!important;max-width:65px!important;min-width:65px!important;height:65px!important;min-height:65px!important;margin:0 auto 20px!important; }
.bs-library-topic-card h3 { margin:0 0 11px;max-width:100%;color:#103d61;font:800 15px/1.42 Tahoma,Arial,sans-serif;text-transform:none; }
.bs-library-topic-card p { margin:0;color:#5d7283;font:400 14px/1.66 Tahoma,Arial,sans-serif; }
.bs-library-catalog-header { display:flex;justify-content:space-between;align-items:center;gap:30px;padding-bottom:27px;margin-bottom:25px;border-bottom:1px solid #e3ebf0; }
.bs-library-catalog-intro { max-width:820px; }
.bs-library-catalog-intro .bs-library-section-intro { margin:10px 0 0; }
.bs-library-pdf-label { display:inline-flex;flex:0 0 auto;align-items:center;gap:9px;padding:11px 15px;border:1px solid #e3d2ad;border-radius:8px;background:#fff8ea;color:#9c6614;font:800 11px/1.3 Tahoma,Arial,sans-serif;letter-spacing:.09em;white-space:nowrap; }
.bs-library-pdf-label svg { width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.bs-library-books-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:20px;width:100%;min-width:0;margin:0;padding:0;overflow:visible; }
.bs-library-book-card { min-width:0;display:flex;background:#fff;border:1px solid #dce6ed;border-radius:12px;overflow:hidden;box-shadow:0 8px 23px rgba(13,49,80,.055);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.bs-library-book-card:hover { transform:translateY(-4px);border-color:#d5b678;box-shadow:0 17px 35px rgba(13,49,80,.12); }
.bs-library-book-card:focus-within { outline:2px solid #c58a24;outline-offset:2px; }
.bs-library-book-link { display:flex;flex-direction:column;width:100%;min-width:0;color:#103d61;text-decoration:none; }
.bs-library-book-link:hover { text-decoration:none; }
.bs-library-book-link:focus-visible { outline:none; }
.bs-library-book-cover { min-height:286px;display:flex;align-items:center;justify-content:center;padding:24px 16px 16px;background:linear-gradient(180deg,#f6f9fb,#fff 90%); }
.bs-library-book-cover img { display:block;max-width:95%;width:auto;height:255px;max-height:255px;object-fit:contain;border:1px solid #e4e9ec;background:#fff;box-shadow:0 7px 17px rgba(9,45,73,.12);transition:transform .2s ease; }
.bs-library-book-card:hover .bs-library-book-cover img { transform:scale(1.025); }
.bs-library-book-info { flex:1 1 auto;display:flex;flex-direction:column;min-width:0;padding:14px 20px 19px; }
.bs-library-book-series { margin:0 0 10px;color:#b77b25;font:800 10px/1.5 Tahoma,Arial,sans-serif;letter-spacing:.065em; }
.bs-library-book-info h3 { margin:0 0 11px;color:#103d61;font:800 17px/1.42 Tahoma,Arial,sans-serif;overflow-wrap:break-word; }
.bs-library-book-description { margin:0 0 20px;color:#607586;font:400 13px/1.68 Tahoma,Arial,sans-serif; }
.bs-library-book-bottom { display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between;gap:11px;margin-top:auto;padding-top:15px;border-top:1px solid #e7edf1; }
.bs-library-book-category { display:inline-flex;max-width:100%;padding:5px 8px;background:#edf3f7;color:#4f697c;border-radius:5px;font:700 11px/1.35 Tahoma,Arial,sans-serif; }
.bs-library-book-action { display:inline-flex;gap:8px;align-items:center;margin-left:auto;color:#0c5b96;font:800 12px/1.4 Tahoma,Arial,sans-serif;white-space:nowrap; }
.bs-library-book-action > span { font-size:18px;line-height:1;transition:transform .2s ease; }
.bs-library-book-card:hover .bs-library-book-action > span { transform:translateX(3px); }
@media(max-width:1180px){
 .bs-library-topics-grid { gap:12px; }
 .bs-library-topic-card { padding:22px 15px 23px; }
 .bs-library-books-grid { gap:17px; }
 .bs-library-book-info { padding:13px 16px 17px; }
}
@media(max-width:930px){
 .bs-library-topics-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
 .bs-library-section-heading { margin-bottom:26px; }
 .bs-library-books-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
 .bs-library-topic-card { padding:23px 16px; }
}
@media(max-width:680px){
 .bs-library-topics,.bs-library-catalog { padding:13px 0 21px; }
 .bs-library-topics > .container,.bs-library-catalog > .container { padding-inline:4px; }
 .bs-library-title { font-size:clamp(23px,5.8vw,30px); }
 .bs-library-section-intro { font-size:14px;line-height:1.68; }
 .bs-library-catalog-header { align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:19px;padding-bottom:20px; }
 .bs-library-pdf-label { padding:8px 11px;font-size:10px; }
 .bs-library-book-info { padding:12px 12px 14px; }
 .bs-library-book-info h3 { font-size:15px; }
 .bs-library-book-cover { min-height:226px;padding:13px 9px 9px; }
 .bs-library-book-cover img { height:202px;max-height:202px; }
 .bs-library-book-description { font-size:12px; }
 .bs-library-book-bottom { gap:8px; }
}
@media(max-width:440px){
 .bs-library-topics-grid { grid-template-columns:1fr;gap:11px; }
 .bs-library-topic-card { padding:19px 17px 20px; }
 .bs-library-topic-card > .bs-library-topic-icon.ms-icon-box { --ms-icon-size:56px;--ms-icon-svg-size:27px;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;margin-bottom:13px!important; }
 .bs-library-topic-card p { font-size:13px; }
 .bs-library-books-grid { grid-template-columns:1fr;gap:12px; }
 .bs-library-book-link { flex-direction:row; }
 .bs-library-book-cover { align-self:stretch;min-height:0;flex:0 0 112px;padding:14px 10px; }
 .bs-library-book-cover img { width:auto;height:137px;max-width:100%;max-height:137px; }
 .bs-library-book-info { padding:15px 12px 13px; }
 .bs-library-book-series { font-size:9px;margin-bottom:7px; }
 .bs-library-book-info h3 { font-size:14px;margin-bottom:7px; }
 .bs-library-book-description { font-size:12.5px;line-height:1.55;margin-bottom:11px; }
 .bs-library-book-category { font-size:10px;padding:4px 7px; }
 .bs-library-book-action { font-size:11px; }
 .bs-library-book-bottom { padding-top:9px; }
}
@media(prefers-reduced-motion:reduce){ .bs-library-book-card,.bs-library-book-cover img,.bs-library-book-action > span {transition:none;} .bs-library-book-card:hover {transform:none;} }
