/* SlidersPack Lite – Blog Filter. Keeps the original's look; colours and sizes arrive as custom properties. */

.spl-bf { --bf-btn: #58BBEE; --bf-pager: #58BBEE; --bf-card: #EDEEF0; margin: 0 0 2em; }
.spl-bf *, .spl-bf *::before, .spl-bf *::after { box-sizing: border-box; }
.spl-bf .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Buttons (original "snip0047" style) */
.spl-bf .snip0047 { display: inline-block; margin: 5px 3px; padding: 8px 22px; border: 0; border-radius: 5px; background: var(--bf-btn); color: #fff; font-family: 'Raleway', Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.4em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter .2s, box-shadow .2s; }
.spl-bf .snip0047:hover, .spl-bf .snip0047:focus-visible { filter: brightness(1.08); color: #fff; }
.spl-bf .snip0047:focus-visible, .spl-bf button:focus-visible, .spl-bf input:focus-visible { outline: 2px solid var(--bf-btn); outline-offset: 2px; }

/* Filter buttons */
.spl-bf__filters--buttons { text-align: center; margin-bottom: 10px; }
.spl-bf__filters--buttons .spl-bf__term[aria-pressed="false"] { opacity: .72; }
.spl-bf__filters--buttons .spl-bf__term[aria-pressed="true"] { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); opacity: 1; }
.spl-bf__count { opacity: .8; font-weight: 400; }

/* Filter panel (many or nested terms) */
.spl-bf__filters--panel { position: relative; text-align: center; margin-bottom: 10px; }
.spl-bf__bar { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.spl-bf__toggle { text-transform: none !important; font-size: 14px !important; }
.spl-bf__current { font-weight: 700; }
.spl-bf__caret { display: inline-block; width: 0; height: 0; margin-left: 8px; vertical-align: middle; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .2s; }
.spl-bf__toggle[aria-expanded="true"] .spl-bf__caret { transform: rotate(180deg); }
.spl-bf__clear { padding: 6px 10px; border: 1px solid var(--bf-btn); border-radius: 5px; background: transparent; color: var(--bf-btn); font-size: 13px; cursor: pointer; }
.spl-bf__panel { position: absolute; left: 50%; z-index: 50; width: min(560px, 100%); margin-top: 6px; padding: 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; transform: translateX(-50%); }
.spl-bf__panel[hidden] { display: none; }
.spl-bf__find { width: 100%; padding: 8px 10px; border: 2px solid var(--bf-btn); border-radius: 6px; font-size: 15px; }
.spl-bf__letters { display: flex; flex-wrap: wrap; gap: 2px; margin: 10px 0; }
.spl-bf__letter { min-width: 26px; padding: 3px 5px; border: 0; border-radius: 4px; background: #f1f1f1; color: #333; font-size: 12px; font-weight: 600; cursor: pointer; }
.spl-bf__letter[aria-pressed="true"] { background: var(--bf-btn); color: #fff; }
.spl-bf__letter:disabled { opacity: .3; cursor: default; }
.spl-bf__tree-wrap { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid #eee; padding-top: 6px; }
.spl-bf__tree { list-style: none; margin: 0; padding: 0; }
.spl-bf__tree .spl-bf__tree { padding-left: 18px; }
[dir="rtl"] .spl-bf__tree .spl-bf__tree { padding-left: 0; padding-right: 18px; }
.spl-bf__node[hidden] { display: none; }
.spl-bf__node.has-children:not(.is-open) > .spl-bf__tree { display: none; }
.spl-bf__panel.is-narrowed .spl-bf__node > .spl-bf__tree { display: block; } /* While narrowing, show every matching branch. */
.spl-bf__row { display: flex; align-items: center; gap: 2px; }
.spl-bf__twisty, .spl-bf__twisty-space { flex: 0 0 22px; width: 22px; height: 26px; }
.spl-bf__twisty { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.spl-bf__twisty::before { content: ''; position: absolute; top: 9px; left: 8px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid #666; transition: transform .15s; }
[dir="rtl"] .spl-bf__twisty::before { transform: scaleX(-1); }
.spl-bf__twisty[aria-expanded="true"]::before, .spl-bf__panel.is-narrowed .spl-bf__twisty::before { transform: rotate(90deg); }
.spl-bf__panel .spl-bf__term { flex: 1; padding: 4px 8px; border: 0; border-radius: 4px; background: none; color: #222; font-size: 14px; text-align: inherit; cursor: pointer; }
.spl-bf__panel .spl-bf__term:hover { background: #f3f3f3; }
.spl-bf__panel .spl-bf__term[aria-pressed="true"] { background: var(--bf-btn); color: #fff; font-weight: 600; }
.spl-bf__node.is-context > .spl-bf__row .spl-bf__term:not([aria-pressed="true"]) { color: #888; }
.spl-bf__node.is-match > .spl-bf__row .spl-bf__term { font-weight: 600; }
.spl-bf__no-match { margin: 8px 0 0; color: #777; }

/* Post search */
.spl-bf__search { text-align: center; margin: 0 0 15px; }
.spl-bf__post-search { width: 100%; max-width: 350px; padding: 8px 12px; border: 2px solid var(--bf-btn); border-radius: 6px; color: var(--bf-btn); }
.spl-bf__post-search::placeholder { color: var(--bf-btn); opacity: .65; }

/* Grid: columns per screen width (original breakpoints 768 / 992 / 1200) */
.spl-bf__grid { display: grid; grid-template-columns: repeat(var(--bf-cols-xs, 1), minmax(0, 1fr)); transition: opacity .2s; }
@media (min-width: 768px) { .spl-bf__grid { grid-template-columns: repeat(var(--bf-cols-sm, 2), minmax(0, 1fr)); } }
@media (min-width: 992px) { .spl-bf__grid { grid-template-columns: repeat(var(--bf-cols-md, 3), minmax(0, 1fr)); } }
@media (min-width: 1200px) { .spl-bf__grid { grid-template-columns: repeat(var(--bf-cols-lg, 3), minmax(0, 1fr)); } }
.spl-bf--masonry .spl-bf__grid { grid-auto-rows: 4px; align-items: start; }
.spl-bf.is-loading .spl-bf__grid { opacity: .45; }
.spl-bf__item { padding: 5px; }
.spl-bf__item[hidden] { display: none; }
.spl-bf__empty, .spl-bf__no-more { text-align: center; color: #666; }

/* Cards */
.spl-bf__card { height: 100%; background: var(--bf-card); overflow: hidden; }
.spl-bf__head { padding: 12px 15px 0; }
.spl-bf__head:last-child { padding-bottom: 12px; }
.spl-bf__title { margin: 0 0 6px; color: var(--bf-title-color, #000); font-size: var(--bf-title-size, 25px); line-height: 1.25; word-wrap: break-word; }
.spl-bf__figure { margin: 10px 0 0; }
.spl-bf__head + .spl-bf__figure, .spl-bf__card > .spl-bf__figure:first-child { margin-top: 0; }
.spl-bf__figure img { display: block; width: 100%; height: auto; }
.spl-bf--fixed .spl-bf__figure { display: block; height: 250px; background: #ddd no-repeat center / cover; }
.spl-bf .blog_metaInfo { margin: 0 0 4px; color: #666; font-size: 13px; }
.spl-bf .blog_metaInfo > span { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; }
.spl-bf .blog_metaInfo a { color: inherit; }
.spl-bf__terms { padding: 10px 15px 0; }
.spl-bf__desc { margin: 0; padding: 10px 15px 0; color: var(--bf-desc-color, #606060); font-size: var(--bf-desc-size, 12px); line-height: 1.5; }
.spl-bf .bf_read_more_div_1 { padding: 10px 15px 15px; }
.spl-bf .bf-icon { display: inline-flex; }

/* Image hover ("Light overlay", original snip1550) */
.spl-bf .snip1550 { position: relative; overflow: hidden; }
.spl-bf .snip1550::before { content: ''; position: absolute; inset: 10px; z-index: 1; background: #fff; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.spl-bf .snip1550:hover::before { opacity: .5; }

/* Paging */
.spl-bf__more { text-align: center; padding: 25px 0 5px; }
.spl-bf__more-btn { background: var(--bf-pager) !important; font-size: 14px !important; padding: 10px 30px !important; }
.spl-bf__more-btn[hidden] { display: none; }
.spl-bf__pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-top: 20px; }
.spl-bf__page { display: inline-block; padding: 4px 12px; border: 1px solid var(--bf-pager); border-radius: 5px; color: var(--bf-pager); text-decoration: none; transition: background .3s, color .3s; }
.spl-bf__page:hover, .spl-bf__page:focus, .spl-bf__page.is-current { background: var(--bf-pager); color: #fff; }
.spl-bf__gap { padding: 4px 2px; color: #999; }

@media (prefers-reduced-motion: reduce) {
	.spl-bf * { transition: none !important; }
}
