.bsi-rl-card-thumb { aspect-ratio: 16/9; overflow: hidden;display: block }
.bsi-rl-card-hover{transition: all .25s ease; bottom: 0;}
.bsi-rl-card-hover:hover{bottom: 10px; box-shadow: 0 13px 26px 0 #0076D6F1;}
.bsi-rl-card-img { width: 100%; height: 100%; object-fit: cover; }
.bsi-rl-card-no-img { background: #eee; }
.bsi-rl-card-img--fallback { object-fit: contain; background: #111; padding: 1rem; }
.bsi-rl-banner { position: absolute; top: 8px; left: 8px; padding: 2px 8px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,0.7); color: #fff; }
.bsi-rl-pagination .bsi-rl-page-link { padding: 4px 10px; margin: 0 2px; border-radius: 4px; }
.bsi-rl-pagination .bsi-rl-page-link.active { font-weight: bold; }
.bsi-rl-pagination.bsi-rl-nav-disabled { pointer-events: none; opacity: 0.7; }
.bsi-rl-card-thumb:hover .bsi-rl-exclusive-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.bsi-rl-exclusive-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 9999px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #0076D6, #53CAFF); }
.bsi-rl-exclusive-subtitle { margin-top: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
#bsi-rl-results { position: relative; }
article.card.h-100.bsi-rl-card {max-width: 100%;}
.card-body {max-width: 100%;word-break: break-word;}
.bsi-rl-grid {display: flex;flex-wrap: wrap;margin-bottom: 0;padding: 0;}
.d-none{display:none}
.bsi-rl-active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #0d6efd; color: #fff; border-radius: 6px; font-size: 14px; }
.bsi-rl-active-chip .bsi-rl-active-chip-remove { cursor: pointer; opacity: 0.9; font-weight: bold; padding: 0 2px; line-height: 1; }
.bsi-rl-active-chip .bsi-rl-active-chip-remove:hover { opacity: 1; }

.bsi-dfx-composite-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}

.bsi-dfx-composite-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images don't stretch */
}

/* THE LEFT SHAPE (Image 1)
   Polygon points: Top-Left, Top-Mid(45%), Bottom-Left 
*/
.bsi-dfx-composite-layer-left img {
    z-index: 2;
    /* x y coordinates */
    /* clip-path: polygon(0% 0%, 45% 0%, 0% 100%) */;
}

/* THE RIGHT SHAPE (Image 3)
   Polygon points: Top-Right, Bottom-Right, Bottom-Mid(65%)
   (Note: The order of points matters for the shape to close correctly)
*/
.bsi-dfx-composite-layer-right img {
    z-index: 2;
    clip-path: polygon(100% -150%, 100% 100%, 40% 100%);
}

/* THE MIDDLE SHAPE (Image 2)
   No clip-path needed! It sits behind the others and fills the gaps.
*/
.bsi-dfx-composite-layer-middle img {
    z-index: 3;
    width: auto;
    height: 50%;
    padding: 10px;
    max-height: 50%;
    /* justify-self: center; */
    /* align-self: center; */
    margin: auto;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 999999999999px;
    aspect-ratio: 1 !important;
    opacity: 0.8;
}

.bsi-rl-filters-wrapper input[type='checkbox'].form-check-input:checked {
  background-color: #121212;
}
.bsi-rl-filters-wrapper input[type='checkbox'].form-check-input:checked:after {
  content: '\2713';
  color:white;
}
.bsi-rl-filters-wrapper input[type='checkbox'].form-check-input{
    text-align: center;
    align-content: center;
    width: 17px ;
    height: 17px;
    aspect-ratio: 1 !important;
    appearance: none;
    border-radius: 10%;
    box-shadow: none;
    font-size: 10px;
    line-height: 1;
    border: 1px solid #fff;

    padding: 0;
}
.bsi-rl-filters-wrapper .form-check{
    display: flex;
    gap: 12px;
}

.bsi-rl-filters-wrapper .form-check-label{
    font-size: clamp(12px, 0.8vw, 20px);
    color: white;
    font-weight: 500;
}

#content h6.filter-title{
    font-size: clamp(12px, 0.6vw, 20px);
    color: white;
    font-weight: 700;
    font-family: 'Inter';
    margin-bottom: 20px;
}

#bsi-rl-grid .card-body{
    margin-top: 20px;
}

.bsi-card-date{
    color: #33A9FF;
}

p.bsi-card-meta{
    font-size: clamp(14px, 0.8vw, 20px);
    color: rgba(255,255,255,0.6);
    margin-top: 18px;
    margin-bottom: 8px;
}

.card-text{
    color: white;
    margin-bottom: 10px;
    font-size: (16px, 1.8vh, 22px);
}

#content  h4.card-title{
    font-family: 'Inter';
    font-weight: 600;
    font-size: 32px;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

#content  h4.card-title a{
    color: white;
}

#content h4.card-title:hover a{
    color: #0076D6;
}
#bsi-rl-related h3.bsi-rl-related__heading{
    color: white;
    font-family: 'Antonio';
}

/* Topic filter: full hierarchy with expand/collapse */
.bsi-rl-topic-node {
    margin-bottom: 4px;
}
.form-check {
    min-height: 1.5em;
}
.bsi-rl-topic-toggle {
    cursor: pointer;
    min-width: 1.5em;
    font-size: 1.1em;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
    background: transparent;
    border: 0;
    color: white;
    padding: 0;
}
.bsi-rl-topic-children {
    margin-top: 2px;
    padding-left: clamp(25px, 2vw, 32px);
}
.bsi-rl-topic-children .bsi-rl-topic-node {
    margin-left: 0;
}

/* Search bar: full width, gradient, Search button */
.bsi-rl-search-bar {
    width: 100%;
    border: 2px solid white;
}
.bsi-rl-search-bar__inner {
    display: flex;
    align-items: stretch;
    background: linear-gradient(to right, #0076D6, #53CAFF);
    overflow: hidden;
}
input.bsi-rl-search-bar__input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    color: #fff;
    padding: 16px 20px;    
    font-size: 1rem;
    border: 0;
}
.bsi-rl-search-bar__input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}
.bsi-rl-search-bar__input:focus {
    outline: none;
    box-shadow: none;
}
.bsi-rl-search-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border: 0;
    border-left: 1px solid #fff;
    background-color: #fff;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}
.bsi-rl-search-btn:hover {
    background-color: #000;
    color: #fff;
}
/* Alternate: black button, invert on hover */
.bsi-rl-search-bar--button-alt .bsi-rl-search-btn {
    background: #000;
    color: #fff;
}
.bsi-rl-search-bar--button-alt .bsi-rl-search-btn:hover {
    background: #fff;
    color: #000;
}

/* Standalone bar: content type pills (desktop-only) */
.bsi-rl-search-bar__pills {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    padding: 0 8px;
    margin-right: 15px;
    margin-left: 15px;
}
.bsi-rl-standalone-pill {
    margin: 0;
    cursor: pointer;
    display: flex;
}
.bsi-rl-standalone-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.bsi-rl-standalone-pill span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    color: #000;
    font-size: 0.9rem;
    white-space: nowrap;
    background: transparent;
}
.bsi-rl-standalone-pill input:checked + span {
    border-color: #fff;
    color: #fff;
    background: transparent;
}
.bsi-rl-standalone-pill:hover span {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

@media screen and (max-width: 676px){
    input.bsi-rl-search-bar__input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    color: #fff;
    padding: 10px 20px;    
    font-size: 1rem;
}

.bsi-rl-search-btn{
border: 0;
background-color: transparent;
}
}

/* No resources found message */
.bsi-rl-no-results {
    padding: 2rem 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.bsi-rl-no-results__message {
    font-size: clamp(16px, 1.2vw, 22px);
    color: white;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.bsi-rl-no-results__hint {
    font-size: clamp(14px, 0.9vw, 18px);
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Horizontal scroll list below search bar (popular categories, topics, content types) */
.bsi-rl-popular-list-wrapper {
    position: relative;
    margin-bottom: 1rem;
    margin-top: 1rem;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
    overflow: hidden;
}
.bsi-rl-popular-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding: 0.25rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.bsi-rl-popular-list::-webkit-scrollbar {
    display: none;
}
.bsi-rl-popular-list.is-dragging {
    cursor: grabbing;
    user-select: none;
}
.bsi-rl-popular-list__item {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.4em 0.9em;
    font-size: clamp(13px, 0.85vw, 16px);
    font-weight: 500;
    color: #fff;
    border: 1px solid #fff;
    background: transparent;
    text-decoration: none;
    border-radius: 0px;
    white-space: nowrap;
    transition: 0.2s ease;
}


/* Optional variant: black text/border for popular list boxes */
.bsi-rl-popular-list-wrapper--black .bsi-rl-popular-list__item {
    color: #000;
    border-color: #000;
    background: transparent;
}

.bsi-rl-popular-list__item:hover {
    opacity: 0.9;
    color: #fff;
    background: #0076D6;
    border-radius: 60px;
}
.bsi-rl-popular-list__item.is-active {
    background: rgba(0, 118, 214, 0.35);
    border-color: #53CAFF;
}

/* Related post row (same card grid as results) */
.bsi-rl-related__heading {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}