/*
Theme Name:   BestPushAd
Theme URI:    https://bestpushad.network/
Description:  Lightweight theme for bestpushad.network. Works with the PushAd Plugin (networks, filter, top-rated cards, comparison table).
Author:       Anas Khan
Version: 1.4.7
Requires at least: 5.8
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  bestpushad
*/

:root {
  --bpn-primary: #2d55e6;
  --bpn-primary-dark: #1e42b3;
  --bpn-ink: #111827;
  --bpn-text: #374151;
  --bpn-muted: #6b7280;
  --bpn-line: #e5e7eb;
  --bpn-soft: #f4f6ff;
  --bpn-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--bpn-text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--bpn-primary); }
h1, h2, h3, h4 { color: var(--bpn-ink); line-height: 1.2; margin: 0 0 .5em; }
[hidden] { display: none !important; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 10px 14px; }
.bpn-i { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.bpn-container { width: 100%; max-width: var(--bpn-w); margin: 0 auto; padding: 0 20px; }
.bpn-narrow { max-width: 820px; }
.bpn-center { text-align: center; }

/* Make the plugin follow the theme brand */
.pushad-wrap { --pushad-primary: var(--bpn-primary); --pushad-primary-light: #4a6cf0; }

/* ---------- Buttons ---------- */
.bpn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 0; cursor: pointer;
  border-radius: 12px; font-size: 16px; font-weight: 500; text-decoration: none; transition: background .15s, transform .15s;
}
.bpn-btn-primary { background: var(--bpn-primary); color: #fff; }
.bpn-btn-primary:hover { background: var(--bpn-primary-dark); color: #fff; }
.bpn-btn-white { background: #fff; color: var(--bpn-ink); border-radius: 30px; }
.bpn-btn-white:hover { background: #eef1ff; color: var(--bpn-ink); }
.bpn-btn-dark { background: #000; color: #fff; border-radius: 4px; }
.bpn-btn-dark:hover { background: #222; color: #fff; }

/* ---------- Header ---------- */
.bpn-header { background: #fff; border-bottom: 1px solid var(--bpn-line); position: relative; z-index: 100; }
.bpn-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.bpn-logo { display: block; line-height: 0; }
.bpn-logo-img { display: block; }
.bpn-wordmark { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; line-height: 1; }
.bpn-wm { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.bpn-wm b { color: #1b2a8c; }
.bpn-wm i { color: var(--bpn-primary); font-style: normal; }
.bpn-wm-light b { color: #fff; }
.bpn-wm-light i { color: #8fa6ff; }
.bpn-wordmark small { font-size: 11px; font-weight: 500; color: var(--bpn-muted); }
.bpn-nav-wrap { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: space-between; }
.bpn-nav { flex: 1; }
.bpn-menu { display: flex; justify-content: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.bpn-menu li { position: relative; }
.bpn-menu a { color: var(--bpn-ink); font-size: 17px; font-weight: 500; text-decoration: none; padding: 8px 0; display: block; }
.bpn-menu a:hover, .bpn-menu .current-menu-item > a, .bpn-menu .current_page_item > a { color: var(--bpn-primary); }
.bpn-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: -12px; min-width: 200px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--bpn-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.bpn-menu li:hover > .sub-menu, .bpn-menu li:focus-within > .sub-menu { display: block; }
.bpn-menu .sub-menu a { padding: 8px 12px; font-size: 15px; }
.bpn-burger { display: none; background: none; border: 0; padding: 6px; color: var(--bpn-ink); cursor: pointer; }
.bpn-header-cta { font-size: 17px; padding: 15px 26px; white-space: nowrap; }

/* ---------- Hero ---------- */
.bpn-hero { background: #5a1fe0 center / cover no-repeat; padding: 96px 0 100px; }
.bpn-hero-title { color: #fff; text-align: center; font-size: clamp(36px, 6.2vw, 75px); font-weight: 700; letter-spacing: -1px; margin: 0 0 22px; }
.bpn-hero-sub { color: #fff; text-align: center; font-size: clamp(18px, 2.4vw, 28px); margin: 0 0 38px; }
.bpn-hero-card { background: #fff; border-radius: 8px; padding: 24px; max-width: var(--bpn-w); margin: 0 auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.bpn-hero-card .pushad-filter-form { margin: 0; }
.bpn-hero-card .search-container { max-width: none; }
.bpn-hero-card input[type="search"] { border: 1px solid var(--bpn-primary); border-radius: 50px; padding: 14px 24px; font-size: 17px; }
.bpn-hero-card .pushad-filter-form h3 { font-size: 20px; font-weight: 500; margin: 18px 0 14px; }
.bpn-hero-card .industry-checkboxes { gap: 10px 12px; }
.bpn-hero-card .industry-checkboxes label { background: #f3f3f5; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); padding: 9px 16px; font-weight: 600; font-size: 15px; border-radius: 99px; }
.bpn-hero-card .industry-checkboxes label:has(input:checked) { background: #e6ebff; box-shadow: inset 0 0 0 2px var(--bpn-primary); }
.bpn-hero-card .industry-checkboxes input { position: absolute; opacity: 0; pointer-events: none; }
.bpn-hero-card .industry-checkboxes label { position: relative; }
.bpn-hero-card .industry-checkboxes label:has(input:focus-visible) { outline: 2px solid var(--bpn-primary); outline-offset: 2px; }
.bpn-hero-card .find-network-btn { display: block; margin: 22px auto 0; border-radius: 50px; padding: 14px 30px; background: var(--bpn-primary); }
.bpn-hero-card .find-network-btn:hover { background: var(--bpn-primary-dark); }
.industry-checkboxes label:has(input[value="adult"]) i { color: #333; }
.industry-checkboxes label:has(input[value="crypto"]) i { color: #5b8c00; }
.industry-checkboxes label:has(input[value="dating"]) i { color: #e11d2e; }
.industry-checkboxes label:has(input[value="e-commerce"]) i { color: #1d2fe0; }
.industry-checkboxes label:has(input[value="gambling"]) i { color: #666; }
.industry-checkboxes label:has(input[value="gaming"]) i { color: #8b3a14; }
.industry-checkboxes label:has(input[value="nutra"]) i { color: #5b1a8f; }
.industry-checkboxes label:has(input[value="sweepstakes"]) i { color: #777; }

/* ---------- Sections ---------- */
.bpn-section { padding: 70px 0; }
.bpn-section-soft { background: var(--bpn-soft); }
.bpn-h2 { text-align: center; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin: 0 0 36px; }
.bpn-h2-light { color: #fff; }

/* Steps */
.bpn-steps { background: radial-gradient(circle at left center, #5e50ff 28%, #1e35d8 69%); color: #fff; }
.bpn-tablist { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.bpn-tablist button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit; font-size: 20px; font-weight: 500;
  padding: 18px 40px; border-radius: 14px; background: #fff; color: #111; transition: background .15s;
}
.bpn-steps .bpn-tablist button[aria-selected="true"] { background: linear-gradient(180deg, #7a8cf5, #4a5ff0); color: #fff; }
.bpn-tablist button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bpn-step-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 60px; align-items: center; }
.bpn-step-img img { display: block; margin: 0 auto; max-height: 440px; width: auto; }
.bpn-step-text h3 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 18px; }
.bpn-step-lead { font-size: 20px; font-weight: 500; margin: 0 0 22px; }
.bpn-step-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.bpn-step-tip { font-size: 18px; margin: 0 0 28px; }

/* Ad formats */
.bpn-tabs-pill .bpn-tablist button { background: #f6f6f8; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); color: var(--bpn-ink); padding: 16px 34px; font-size: 18px; border-radius: 20px; }
.bpn-tabs-pill .bpn-tablist button[aria-selected="true"] { background: #000; color: #fff; }
.bpn-fmt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.bpn-fmt-grid h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 26px; }
.bpn-check-list { list-style: none; margin: 0 0 30px; padding: 0; }
.bpn-check-list li { display: flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.8vw, 22px); margin-bottom: 22px; color: var(--bpn-ink); }
.bpn-check-list .bpn-i { color: var(--bpn-primary); }
.bpn-fmt-img img { display: block; margin: 0 auto; max-height: 340px; width: auto; }

/* Blog cards */
.bpn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bpn-card { background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(20, 30, 80, .08); overflow: hidden; display: flex; flex-direction: column; }
.bpn-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bpn-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bpn-card-cat { color: var(--bpn-primary); font-size: 15px; text-decoration: none; margin-bottom: 10px; display: inline-block; }
.bpn-card-title { font-size: 21px; font-weight: 500; margin: 0 0 10px; }
.bpn-card-title a { color: var(--bpn-ink); text-decoration: none; }
.bpn-card-title a:hover { color: var(--bpn-primary); }
.bpn-card-meta { color: var(--bpn-primary); font-size: 14px; margin: 0 0 12px; }
.bpn-card-ex { color: #555; font-size: 16px; margin: 0; }
.navigation.pagination { margin-top: 36px; }
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.navigation.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--bpn-line); border-radius: 8px; text-decoration: none; color: var(--bpn-ink); }
.navigation.pagination .current { background: var(--bpn-primary); border-color: var(--bpn-primary); color: #fff; }

/* Prose (SEO text, posts, pages) */
.bpn-prose { font-size: 17px; line-height: 1.75; }
.bpn-prose h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.bpn-prose h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.bpn-prose h2:first-child, .bpn-prose h3:first-child { margin-top: 0; }
.bpn-prose p, .bpn-prose ul, .bpn-prose ol { margin: 0 0 1.1em; }
.bpn-prose ul, .bpn-prose ol { padding-left: 1.4em; }
.bpn-prose img { border-radius: 10px; }
.bpn-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.bpn-prose th, .bpn-prose td { border: 1px solid var(--bpn-line); padding: 10px 12px; text-align: left; }
.bpn-prose blockquote { border-left: 4px solid var(--bpn-primary); margin: 1.5em 0; padding: .2em 1.2em; color: var(--bpn-muted); }
.bpn-seo .bpn-prose { max-width: 900px; }

/* FAQ */
.bpn-faq { background: var(--bpn-soft); }
.bpn-faq-in { max-width: 900px; }
.bpn-accordion { display: flex; flex-direction: column; gap: 12px; }
.bpn-acc-item { background: #fff; border: 1px solid var(--bpn-line); border-radius: 10px; }
.bpn-acc-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--bpn-ink); list-style: none; }
.bpn-acc-item summary::-webkit-details-marker { display: none; }
.bpn-acc-item[open] summary .bpn-i { transform: rotate(180deg); }
.bpn-acc-item summary .bpn-i { transition: transform .2s; color: var(--bpn-primary); }
.bpn-acc-body { padding: 0 22px 20px; font-size: 16px; }

/* CTA */
.bpn-cta { background: radial-gradient(circle at left center, #245fe4 45%, #1e42b3 80%); color: #fff; text-align: center; }
.bpn-cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.bpn-cta p { max-width: 640px; margin: 0 auto 28px; font-size: 18px; }

/* ---------- Footer ---------- */
.bpn-footer { background: #0f172a; color: #cbd5e1; }
.bpn-footer-in { display: flex; justify-content: space-between; gap: 40px; padding-top: 54px; padding-bottom: 40px; flex-wrap: wrap; }
.bpn-footer-brand p { margin: 8px 0 0; font-size: 15px; max-width: 320px; }
.bpn-footer-menu { display: flex; flex-wrap: wrap; gap: 14px 28px; list-style: none; margin: 0; padding: 0; }
.bpn-footer-menu a { color: #fff; text-decoration: none; font-size: 15px; }
.bpn-footer-menu a:hover { text-decoration: underline; }
.bpn-copy { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 14px; }
.bpn-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 44px; height: 44px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--bpn-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.bpn-top:hover { background: var(--bpn-primary-dark); }

/* Elementor pages: full width, no theme chrome */
.bpn-elementor { padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .bpn-grid { grid-template-columns: repeat(2, 1fr); }
  .bpn-step-grid, .bpn-fmt-grid { grid-template-columns: 1fr; gap: 30px; }
  .bpn-step-img img, .bpn-fmt-img img { max-height: 280px; }
  .bpn-fmt-img { order: -1; }
}
@media (max-width: 900px) {
  .bpn-burger { display: block; }
  .bpn-nav-wrap {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    gap: 16px; padding: 18px 20px 24px; border-bottom: 1px solid var(--bpn-line); box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
  }
  .bpn-nav-wrap.is-open { display: flex; }
  .bpn-menu { flex-direction: column; gap: 4px; align-items: stretch; }
  .bpn-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .bpn-header-cta { text-align: center; }
}
@media (max-width: 640px) {
  .bpn-grid { grid-template-columns: 1fr; }
  .bpn-section { padding: 52px 0; }
  .bpn-hero { padding: 64px 0 60px; }
  .bpn-hero-card { padding: 16px; }
  .bpn-tablist button { padding: 14px 22px; font-size: 16px; }
  .bpn-step-list, .bpn-step-tip { font-size: 16px; }
}

/* ================= Layouts ================= */
.bpn-crumbs-wrap { padding-top: 22px; }
.bpn-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--bpn-muted); }
.bpn-crumbs li + li::before { content: "/"; margin: 0 9px; color: #c3c8d2; }
.bpn-crumbs a { color: var(--bpn-muted); text-decoration: none; }
.bpn-crumbs a:hover { color: var(--bpn-primary); text-decoration: underline; }
.bpn-crumbs [aria-current] span { color: var(--bpn-ink); }

.bpn-layout { display: grid; gap: 32px; padding-bottom: 64px; align-items: start; }
.bpn-layout--right { grid-template-columns: minmax(0, 1fr) 340px; }
.bpn-layout--left { grid-template-columns: 340px minmax(0, 1fr); }
.bpn-layout--left .bpn-sidebar { order: -1; }
.bpn-layout--full, .bpn-layout--narrow { grid-template-columns: minmax(0, 1fr); }
.bpn-layout--narrow .bpn-content { max-width: 820px; width: 100%; margin: 0 auto; }
.bpn-content { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* Pages with a sidebar get a soft background so the white cards stand out */
body.bpn-has-sidebar .bpn-main:not(.bpn-elementor) { background: #f1f4f9; }
body.bpn-has-sidebar .bpn-related { background: #fff; }
.bpn-panel { background: #fff; border-radius: 12px; padding: 36px 40px; }
body:not(.bpn-has-sidebar) .bpn-panel { padding-left: 0; padding-right: 0; padding-top: 8px; }
body:not(.bpn-has-sidebar) .bpn-comments-wrap { border-top: 1px solid var(--bpn-line); border-radius: 0; padding-top: 32px; }

/* Article */
.bpn-article-head { margin-bottom: 22px; }
.bpn-chip { display: inline-block; background: #e9eeff; color: var(--bpn-primary); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 30px; text-decoration: none; margin-bottom: 14px; }
.bpn-chip:hover { background: var(--bpn-primary); color: #fff; }
.bpn-article-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.5px; margin: 0 0 16px; }
.bpn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--bpn-muted); }
.bpn-meta-avatar { border-radius: 50%; }
.bpn-meta span:first-of-type { color: var(--bpn-ink); font-weight: 500; }
.bpn-article-hero { margin: 0 0 28px; }
.bpn-article-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
.bpn-entry { font-size: 18px; }
.bpn-entry > *:last-child { margin-bottom: 0; }
.bpn-entry h2, .bpn-entry h3 { scroll-margin-top: 90px; }
.bpn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.bpn-tags a { font-size: 13px; padding: 4px 12px; border-radius: 30px; background: #f1f4f9; color: var(--bpn-text); text-decoration: none; }
.bpn-tags a:hover { background: var(--bpn-primary); color: #fff; }
.bpn-pages { margin-top: 20px; }

/* Table of contents */
.bpn-toc { background: #f6f8fc; border: 1px solid var(--bpn-line); border-radius: 10px; padding: 4px 22px; margin: 0 0 28px; font-size: 16px; }
.bpn-toc summary { cursor: pointer; font-weight: 700; color: var(--bpn-ink); padding: 14px 0; }
.bpn-toc ol { margin: 0 0 14px; padding-left: 20px; }
.bpn-toc li { margin: 6px 0; }
.bpn-toc ol ol { margin: 6px 0 0; list-style: lower-alpha; }
.bpn-toc a { text-decoration: none; }
.bpn-toc a:hover { text-decoration: underline; }

/* Share + author + post nav */
.bpn-share { display: flex; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--bpn-line); }
.bpn-share > span { font-weight: 500; color: var(--bpn-ink); margin-right: 4px; }
.bpn-share a, .bpn-share button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f4f9; color: var(--bpn-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-size: 15px; }
.bpn-share a:hover, .bpn-share button:hover { background: var(--bpn-primary); color: #fff; }
.bpn-share button.is-done { background: #16a34a; color: #fff; }
.bpn-author { display: flex; gap: 18px; align-items: flex-start; background: #f6f8fc; border-radius: 12px; padding: 22px; margin-top: 28px; }
.bpn-author-img { border-radius: 50%; flex-shrink: 0; }
.bpn-author-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bpn-muted); }
.bpn-author strong { color: var(--bpn-ink); font-size: 18px; }
.bpn-author p { margin: 6px 0 8px; font-size: 15px; }
.bpn-author a { font-size: 14px; font-weight: 500; text-decoration: none; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-navigation a { display: block; border: 1px solid var(--bpn-line); border-radius: 10px; padding: 14px 18px; text-decoration: none; color: var(--bpn-ink); font-weight: 500; line-height: 1.4; }
.post-navigation a:hover { border-color: var(--bpn-primary); }
.post-navigation a span { display: block; font-size: 12px; text-transform: uppercase; color: var(--bpn-muted); margin-bottom: 4px; font-weight: 400; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.bpn-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.bpn-progress span { display: block; height: 100%; width: 0; background: var(--bpn-primary); }

/* Comments */
.bpn-comments-title, .comment-reply-title { font-size: 22px; margin: 0 0 18px; }
.bpn-comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.bpn-comment-list .children { list-style: none; padding-left: 28px; }
.bpn-comment-list .comment-body { border-bottom: 1px solid var(--bpn-line); padding: 16px 0; font-size: 16px; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: 13px; margin-bottom: 6px; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--bpn-line); border-radius: 8px; font: inherit; }
.comment-form p { margin: 0 0 14px; }

/* Archive */
.bpn-archive-head { padding-bottom: 8px; }
.bpn-archive-title { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 10px; }
.bpn-layout--right .bpn-grid, .bpn-layout--left .bpn-grid { grid-template-columns: repeat(2, 1fr); }
.bpn-layout--full .bpn-grid { grid-template-columns: repeat(3, 1fr); }
.bpn-layout--narrow .bpn-grid { grid-template-columns: 1fr; }
.bpn-layout--narrow .bpn-card { flex-direction: row; }
.bpn-layout--narrow .bpn-card-img { flex: 0 0 38%; }
.bpn-layout--narrow .bpn-card-img img { height: 100%; aspect-ratio: auto; }

/* ================= Sidebar ================= */
.bpn-sidebar-inner { display: flex; flex-direction: column; gap: 22px; }
body.bpn-sticky .bpn-sidebar { align-self: start; position: sticky; top: 24px; }
.bpn-widget { background: #fff; border-radius: 12px; padding: 24px; font-size: 15px; }
.bpn-widget-title, .bpn-widget h2, .bpn-widget h3 { font-size: 18px; font-weight: 700; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid var(--bpn-primary); line-height: 1.2; }
.bpn-widget ul { list-style: none; margin: 0; padding: 0; }
.bpn-widget li { margin: 0; }
.bpn-widget img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.bpn-widget a { text-decoration: none; }
.bpn-widget a:hover { text-decoration: underline; }
.bpn-widget_media_image, .widget_media_image { padding: 12px; }
.bpn-search { display: flex; gap: 8px; }
.bpn-search input[type="search"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--bpn-line); border-radius: 8px; font: inherit; background: #fff; }
.bpn-search input[type="search"]:focus { outline: 2px solid var(--bpn-primary); outline-offset: 0; border-color: transparent; }
.bpn-search button { padding: 0 18px; border: 0; border-radius: 8px; background: var(--bpn-primary); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.bpn-search button:hover { background: var(--bpn-primary-dark); }
.bpn-widget-search { padding: 18px; }
.bpn-plist { display: flex !important; flex-direction: column; gap: 16px; }
.bpn-plist li { display: flex; gap: 12px; align-items: flex-start; }
.bpn-plist-img { flex: 0 0 72px; }
.bpn-plist-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.bpn-plist-title { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--bpn-ink); }
.bpn-plist-title:hover { color: var(--bpn-primary); }
.bpn-plist-date { display: block; font-size: 12px; color: var(--bpn-muted); margin-top: 3px; }
.bpn-catlist li, .widget_categories li, .widget_archive li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--bpn-line); color: var(--bpn-muted); }
.bpn-catlist li:last-child, .widget_categories li:last-child { border-bottom: 0; }
.widget_recent_entries li { padding: 8px 0; border-bottom: 1px dashed var(--bpn-line); }
.bpn-widget-cta { background: radial-gradient(circle at left center, #245fe4 45%, #1e42b3 80%); color: #fff; }
.bpn-widget-cta .bpn-widget-title { color: #fff; border-color: #fff; }
.bpn-widget-cta p { margin: 0 0 16px; }
.bpn-widget-cta .bpn-btn { background: #fff; color: var(--bpn-ink); width: 100%; border-radius: 30px; }

/* ================= Footer (3 columns) ================= */
.bpn-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 48px; padding-top: 56px; padding-bottom: 44px; }
.bpn-footer-col h3 { color: #fff; font-size: 17px; margin: 0 0 16px; }
.bpn-footer-brand p { margin: 14px 0 18px; font-size: 15px; max-width: 360px; }
.bpn-footer-logo { max-height: 52px; width: auto; display: block; }
.bpn-footer-menu { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bpn-footer-menu a { color: #cbd5e1; text-decoration: none; font-size: 15px; }
.bpn-footer-menu a:hover { color: #fff; text-decoration: underline; }
.bpn-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bpn-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.bpn-social a:hover { background: var(--bpn-primary); }
.bpn-footer a:focus-visible { outline: 2px solid #8fa6ff; outline-offset: 2px; }

/* ================= Responsive ================= */
@media (max-width: 992px) {
  .bpn-layout--right, .bpn-layout--left { grid-template-columns: minmax(0, 1fr); }
  .bpn-layout--left .bpn-sidebar { order: 0; }
  body.bpn-sticky .bpn-sidebar { position: static; }
  .bpn-layout--full .bpn-grid { grid-template-columns: repeat(2, 1fr); }
  .bpn-footer-in { grid-template-columns: 1fr 1fr; }
  .bpn-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bpn-panel { padding: 24px 20px; }
  .bpn-layout { padding-bottom: 40px; gap: 22px; }
  .bpn-layout--right .bpn-grid, .bpn-layout--left .bpn-grid, .bpn-layout--full .bpn-grid { grid-template-columns: 1fr; }
  .bpn-layout--narrow .bpn-card { flex-direction: column; }
  .bpn-layout--narrow .bpn-card-img { flex-basis: auto; }
  .bpn-layout--narrow .bpn-card-img img { aspect-ratio: 16 / 9; height: auto; }
  .bpn-entry { font-size: 17px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: 1; }
  .bpn-author { flex-direction: column; }
  .bpn-footer-in { grid-template-columns: 1fr; gap: 32px; }
}
@media print { .bpn-header, .bpn-footer, .bpn-sidebar, .bpn-share, .bpn-top, .bpn-progress { display: none !important; } }

/* ================= Compact buttons (v1.2) ================= */
.bpn-btn { padding: 10px 20px; font-size: 15px; font-weight: 600; line-height: 1.3; border-radius: 10px; }
.bpn-btn-white { border-radius: 10px; }
.bpn-header-in { min-height: 72px; }
.bpn-header-cta { padding: 10px 20px; font-size: 15px; }
.bpn-menu { gap: 28px; }
.bpn-menu a { font-size: 16px; }
.bpn-tablist { gap: 10px; margin-bottom: 30px; }
.bpn-tablist button { padding: 11px 24px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.bpn-tabs-pill .bpn-tablist button { padding: 10px 22px; font-size: 14px; border-radius: 30px; }
.bpn-hero-card .find-network-btn { padding: 10px 28px; font-size: 15px; border-radius: 10px; }
.bpn-widget-cta .bpn-btn { border-radius: 10px; }
.bpn-search button { padding: 0 16px; font-size: 14px; border-radius: 8px; }
@media (max-width: 640px) { .bpn-tablist button { padding: 10px 16px; font-size: 14px; } }

/* ---------- v1.3: banners, partner CTA ---------- */
.bpn-ad-band { padding: 22px 0 0; }
.bpn-ad-band .pushad-ad { margin: 0 auto; }
.bpn-sidebar .pushad-ad { margin-bottom: 20px; }
.bpn-sidebar .pushad-ad-side_sticky { position: sticky; top: 20px; }
.bpn-partner-link { font-weight: 600; }
.bpn-hero-card .pushad-cat-n { display: none; }
.bpn-hero-card .pushad-cat-clear { align-self: center; }

/* ================= v1.4 ================= */
.bpn-btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.bpn-h2-left { text-align: left; margin-bottom: 12px; }

/* Ad formats – three cards */
.bpn-fmt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bpn-fmt-card { position: relative; background: #fff; border: 1px solid var(--bpn-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.bpn-fmt-card.is-hot { border: 2px solid var(--bpn-primary); box-shadow: 0 14px 34px rgba(45, 85, 230, .15); }
.bpn-fmt-pop { position: absolute; top: -12px; right: 20px; background: var(--bpn-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.bpn-fmt-art { height: 130px; display: flex; align-items: center; justify-content: center; background: #f4f6ff; border-radius: 14px; margin-bottom: 18px; }
.bpn-fmt-art img { max-height: 110px; width: auto; }
.bpn-fmt-card h3 { font-size: 21px; margin: 0 0 12px; color: var(--bpn-ink); }
.bpn-fmt-list { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.bpn-fmt-list li { position: relative; padding: 5px 0 5px 24px; font-size: 15.5px; color: var(--bpn-ink); }
.bpn-fmt-list li::before { content: "\2713"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.bpn-fmt-card .bpn-btn { align-self: flex-start; }

/* Latest posts – cards */
.bpn-card-v2 { border-radius: 18px; box-shadow: 0 10px 30px rgba(27, 42, 106, .08); }
.bpn-card-media { position: relative; }
.bpn-card-v2 .bpn-card-img img, .bpn-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bpn-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8edff, #d7e0ff); padding: 20px; }
.bpn-ph img { width: auto !important; max-width: 70%; max-height: 70%; aspect-ratio: auto !important; object-fit: contain !important; }
.bpn-ph strong { color: var(--bpn-primary); font-size: 22px; }
.bpn-card-pill { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--bpn-primary); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 99px; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.bpn-card-v2 .bpn-card-body { padding: 18px 20px 18px; }
.bpn-card-v2 .bpn-card-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.bpn-card-v2 .bpn-card-ex { font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.bpn-card-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--bpn-line); padding-top: 12px; font-size: 12.5px; color: var(--bpn-muted); }
.bpn-av { width: 26px; height: 26px; border-radius: 50%; background: var(--bpn-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11px; flex: none; }
.bpn-card-more { margin-left: auto; color: var(--bpn-primary); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Home article – contents list + key box */
.bpn-seo-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; max-width: 1100px; }
.bpn-seo-grid.no-toc, .bpn-seo-grid:has(.no-toc) { grid-template-columns: minmax(0, 900px); }
.bpn-seo .bpn-prose { max-width: none; }
.bpn-toc-side { position: sticky; top: 24px; align-self: start; border-left: 3px solid var(--bpn-line); padding-left: 18px; font-size: 14px; max-height: calc(100vh - 48px); overflow: auto; }
.bpn-toc-side b { display: block; color: var(--bpn-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.bpn-toc-side a { display: block; padding: 5px 0; color: var(--bpn-text); text-decoration: none; line-height: 1.35; }
.bpn-toc-side a:hover { color: var(--bpn-primary); }
.bpn-toc-side a.on { color: var(--bpn-primary); font-weight: 700; }
.bpn-seo-body h2 { scroll-margin-top: 20px; }
.bpn-key { background: #eef2ff; border-left: 4px solid var(--bpn-primary); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 1.4em; color: #1e2a78; }
.bpn-key b { display: block; margin-bottom: 4px; }

/* FAQ – heading left, accordion right */
.bpn-faq-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1100px; }
.bpn-faq-side { position: sticky; top: 24px; }
.bpn-faq-side p { color: var(--bpn-muted); margin: 0; }
.bpn-faq-ask { margin-top: 24px; background: linear-gradient(135deg, #4a14c9, #2d55e6); border-radius: 18px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bpn-faq-ask b { font-size: 17px; }
.bpn-faq-ask .bpn-btn { margin-top: 12px; }
.bpn-acc-item { border-radius: 14px; }
.bpn-acc-item[open] { border-color: var(--bpn-primary); box-shadow: 0 8px 24px rgba(45, 85, 230, .1); }
.bpn-acc-item summary { font-size: 17px; font-weight: 600; }

/* Compare section: clean white */
#compare.bpn-section { background: #fff; }

@media (max-width: 960px) {
  .bpn-fmt-cards { grid-template-columns: 1fr; }
  .bpn-seo-grid, .bpn-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .bpn-toc-side { position: static; max-height: none; }
  .bpn-faq-side { position: static; }
}

.bpn-tg{margin:12px 0 0;font-size:14px}.bpn-tg a{color:#fff;text-decoration:none;font-weight:600;display:inline-flex;gap:8px;align-items:center}.bpn-tg a:hover{text-decoration:underline}

/* Footer logo from header */
.bpn-footer-logo.is-plate{background:#fff;padding:8px 14px;border-radius:12px;max-height:60px;box-sizing:content-box}

/* Home article: designed, collapsed by default (full text always in the page for search engines) */
.bpn-seo-body{position:relative;font-size:17px;line-height:1.78;color:#3b4259;counter-reset:seo}
.bpn-seo-body>p:first-of-type,.bpn-seo-body>.bpn-key+p{font-size:19px;line-height:1.7;color:#1f2937;background:linear-gradient(135deg,#f4f6ff,#fff);border:1px solid #e3e7f7;border-left:4px solid var(--bpn-primary,#2d55e6);border-radius:14px;padding:20px 24px;margin:0 0 28px}
.bpn-seo-body hr{border:0;height:0;margin:10px 0}
.bpn-seo-body h2{counter-increment:seo;display:flex;align-items:center;gap:14px;font-size:clamp(22px,2.4vw,28px);line-height:1.25;color:#0f172a;margin:42px 0 16px}
.bpn-seo-body h2:before{content:counter(seo);flex:none;width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#5a1fe0,#2d55e6);color:#fff;font-size:16px;font-weight:700;display:grid;place-items:center}
.bpn-seo-body p{margin:0 0 16px}
.bpn-seo-body a{color:var(--bpn-primary,#2d55e6);text-decoration:none;border-bottom:1.5px solid rgba(45,85,230,.3);transition:.15s}.bpn-seo-body a:hover{border-color:currentColor}
.bpn-seo-body strong{color:#0f172a}
.bpn-seo-body ul,.bpn-seo-body ol{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px;counter-reset:li}
.bpn-seo-body li{position:relative;background:#f8faff;border:1px solid #e8ecf8;border-radius:12px;padding:13px 16px 13px 52px;margin:0}
.bpn-seo-body li p{margin:0}
.bpn-seo-body ul>li:before{content:"";position:absolute;left:18px;top:19px;width:9px;height:9px;border-radius:50%;background:var(--bpn-primary,#2d55e6);box-shadow:0 0 0 4px rgba(45,85,230,.14)}
.bpn-seo-body ol>li{counter-increment:li}
.bpn-seo-body ol>li:before{content:counter(li);position:absolute;left:14px;top:12px;width:26px;height:26px;border-radius:8px;background:#e9edff;color:#3b3be0;font-weight:700;font-size:13px;display:grid;place-items:center}
.bpn-seo-body p>strong:only-child{display:inline-block;background:#eef1ff;color:#3b3be0;border-radius:999px;padding:3px 14px;font-size:14px;margin-top:6px}
.bpn-seo-body p.is-pros>strong{background:#e3f6ec;color:#12803f}.bpn-seo-body p.is-cons>strong{background:#fdeaea;color:#b42318}
.bpn-seo-body ul.is-pros>li:before{background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.15)}.bpn-seo-body ul.is-cons>li:before{background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.13)}
.bpn-seo-body ul.is-pros>li{background:#f4fbf6;border-color:#dcf1e3}.bpn-seo-body ul.is-cons>li{background:#fff6f6;border-color:#f6dede}
.bpn-seo-body.is-clamp{max-height:760px;overflow:hidden}
.bpn-seo-more{display:none}.bpn-seo-body.is-clamp .bpn-seo-more{display:flex;position:absolute;left:0;right:0;bottom:0;height:200px;align-items:flex-end;justify-content:center;padding-bottom:6px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 78%)}
.bpn-seo-more button{border:1px solid #cdd5f5;background:#fff;color:#2d3fd0;font:700 14px inherit;padding:10px 22px;border-radius:999px;cursor:pointer;box-shadow:0 6px 18px rgba(31,41,100,.12)}.bpn-seo-more button:hover{background:#f4f6ff}
.bpn-seo-less{display:none;margin:18px auto 0;border:1px solid #cdd5f5;background:#fff;color:#2d3fd0;font:700 14px inherit;padding:9px 20px;border-radius:999px;cursor:pointer}.bpn-seo-body.is-open .bpn-seo-less{display:block}
@media(max-width:700px){.bpn-seo-body{font-size:16px}.bpn-seo-body li{padding-left:46px}.bpn-seo-body.is-clamp{max-height:620px}}
