/* Blog listing. Builds on services.css (sv-*); prefix: bg- */
.bg-hero { padding-bottom: 4.5rem; }
.bg-hero-in { position: relative; z-index: 1; padding-block: 2.2rem 0; }
.bg-hero h1 { max-width: 52rem; color: #fff; font-size: clamp(2.3rem, 1.4rem + 3vw, 3.8rem); line-height: 1.08; font-weight: 500; letter-spacing: -.015em; margin-bottom: 1.2rem; }
.bg-hero h1 em { font-style: italic; background: linear-gradient(135deg, #f1d595, #c9964a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .12em; }
.bg-search { position: relative; display: flex; align-items: center; max-width: 36rem; margin: 0 0 2rem; }
.bg-search .icon { position: absolute; left: 1.2rem; color: var(--muted); pointer-events: none; }
.bg-search input { width: 100%; padding: 1.05rem 1.4rem 1.05rem 3.2rem; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 0; border-radius: 999px; box-shadow: 0 20px 44px rgba(5, 8, 40, .4); }
.bg-search input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(227, 189, 120, .45), 0 20px 44px rgba(5, 8, 40, .4); }
.bg-hero .sv-trust { margin: 0; }

.bg-list { padding-block: 4rem 6rem; }
.bg-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin-bottom: 2.6rem; background: #fff; border: 1px solid #e3e8f5; border-radius: 26px; box-shadow: 0 24px 60px rgba(40, 56, 143, .13); overflow: hidden; transition: transform .35s var(--ease, ease), box-shadow .35s; }
.bg-feature[hidden] { display: none; }
.bg-feature:hover { transform: translateY(-5px); box-shadow: 0 34px 70px rgba(40, 56, 143, .22); }
.bg-feature-art { position: relative; display: grid; place-items: center; min-height: 260px; background: radial-gradient(circle at 30% 25%, rgba(110, 140, 230, .55), transparent 60%), linear-gradient(150deg, #0d1245, #1b2670 55%, #28388f); overflow: hidden; }
.bg-feature-art::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(227, 189, 120, .35); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02); }
.bg-feature-art span { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; font-size: 3rem; color: #f1d595; background: rgba(255, 255, 255, .1); border: 1px solid rgba(227, 189, 120, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.bg-feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .7rem; padding: 2.4rem 2.6rem; }
.bg-pill { padding: .3rem .8rem; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-soft)); }
.bg-feature-body small { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.bg-feature-body h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.2; margin: 0; }
.bg-feature:hover h2 { color: var(--purple); }
.bg-feature .sv-more { margin-top: .6rem; border: 0; padding: 0; }
.bg-feature:hover .sv-more span { background: var(--purple); color: #fff; transform: translateX(4px); }
.bg-meta { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

.bg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.bg-chips button { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); cursor: pointer; background: #fff; border: 1px solid #d9e2f5; border-radius: 999px; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.bg-chips button[hidden] { display: none; }
.bg-chips button b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; font-size: .72rem; background: #eff3fc; color: var(--purple); }
.bg-chips button:hover { border-color: var(--purple); color: var(--purple); }
.bg-chips button.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--purple), var(--purple-soft)); box-shadow: 0 8px 20px rgba(40, 56, 143, .3); }
.bg-chips button.active b { background: rgba(255, 255, 255, .22); color: #fff; }
.bg-chips .bg-more { color: var(--gold); border-style: dashed; background: transparent; }
.bg-list .sv-count { margin: 1.4rem 0 1.8rem; }

.bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.bg-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e8f5; border-radius: 20px; box-shadow: 0 8px 24px rgba(40, 56, 143, .07); overflow: hidden; transition: transform .35s var(--ease, ease), box-shadow .35s, border-color .35s; }
.bg-card::after { content: ''; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #e3bd78, #b8893e); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.bg-card:hover { transform: translateY(-7px); border-color: #c3d0ee; box-shadow: 0 28px 56px rgba(40, 56, 143, .2); }
.bg-card:hover::after { transform: scaleX(1); }
.bg-cover { position: relative; height: 110px; padding: 1rem; background: radial-gradient(circle at 85% 20%, rgba(110, 140, 230, .5), transparent 60%), linear-gradient(150deg, #0d1245, #1b2670 60%, #28388f); overflow: hidden; }
.bg-cover::before { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(227, 189, 120, .3); box-shadow: 0 0 0 26px rgba(255, 255, 255, .03); }
.bg-cat { position: relative; z-index: 1; display: inline-block; padding: .3rem .75rem; border-radius: 999px; font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: rgba(255, 255, 255, .92); }
.bg-cico { position: absolute; right: 1.2rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.4rem; color: #f1d595; background: rgba(255, 255, 255, .1); border: 1px solid rgba(227, 189, 120, .45); transition: transform .35s; }
.bg-card:hover .bg-cico { transform: rotate(-8deg) scale(1.1); }
.bg-body { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: 1.3rem 1.4rem 1.2rem; }
.bg-card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bg-card:hover h3 { color: var(--purple); }
.bg-card .sv-more { margin-top: auto; padding-top: .8rem; font-size: .84rem; }
.bg-card:hover .sv-more span { background: var(--purple); color: #fff; transform: translateX(4px); }
.bg-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 2.4rem; }
.bg-pager:empty { display: none; }
.bg-pages { display: flex; align-items: center; gap: .3rem; }
.bg-pager button { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .6rem; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; background: #fff; border: 1px solid #d9e2f5; border-radius: 10px; transition: background .2s, color .2s, border-color .2s; }
.bg-pager button:hover:not(:disabled):not(.on) { border-color: var(--purple); color: var(--purple); }
.bg-pager button.on { color: #fff; background: var(--purple); border-color: var(--purple); }
.bg-pager button:disabled { opacity: .4; cursor: default; }
.bg-pager .bg-pn { display: inline-flex; gap: .4rem; padding: 0 .9rem; }
.bg-pager i { font-style: normal; color: var(--muted); padding: 0 .15rem; }
.bg-pager small { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .8rem; }

@media (max-width: 1100px) { .bg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .bg-feature { grid-template-columns: minmax(0, 1fr); } .bg-feature-art { min-height: 170px; } .bg-feature-body { padding: 1.6rem 1.4rem; } }
@media (max-width: 640px) {
    .bg-pn span { display: none; }
    .bg-pager button { min-width: 34px; height: 34px; }
    .bg-hero { padding-bottom: 3rem; }
    .bg-list { padding-block: 2.5rem 4rem; }
    .bg-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .bg-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; } .bg-chips button { flex: none; white-space: nowrap; }
}
.bg-card h3, .bg-meta { flex: none; }
