/* ============================================================
   BestSEOTools - Modern redesign overrides (bst-redesign.css)
   Lightweight design system layered on the existing theme.
   Loaded last so these rules win over theme.css / custom.css.
   ============================================================ */
:root{
  --bst-primary:#2563eb;
  --bst-primary-dark:#1d4ed8;
  --bst-accent:#059669;
  --bst-ink:#0f172a;
  --bst-muted:#64748b;
  --bst-line:#e2e8f0;
  --bst-bg:#f8fafc;
  --bst-radius:12px;
}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  color:var(--bst-ink);
  background:var(--bst-bg);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5,h6{font-weight:700;color:var(--bst-ink);letter-spacing:-.01em}
a{color:var(--bst-primary)}
a:hover,a:focus{color:var(--bst-primary-dark);text-decoration:none}
::selection{background:#bfdbfe}

/* ---------- Header / navbar ---------- */
.navbar-default{
  background:#fff;border:none;border-bottom:1px solid var(--bst-line);
  box-shadow:0 1px 3px rgba(15,23,42,.06);margin-bottom:0;border-radius:0;
}
.navbar-default .navbar-brand{font-weight:800;color:var(--bst-ink)!important;font-size:20px;letter-spacing:-.02em}
.navbar-default .navbar-nav>li>a{color:#334155;font-weight:500;padding-top:16px;padding-bottom:16px}
.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:var(--bst-primary)}
.navbar-default .navbar-toggle{border-color:var(--bst-line)}
.navbar-default .navbar-toggle:hover{background:#f1f5f9}

/* ---------- Homepage hero strip (header.php SEO H1) ---------- */
.bst-hero{
  background:linear-gradient(120deg,#1e3a8a 0%,#2563eb 55%,#0ea5e9 100%);
  color:#fff;text-align:center;padding:34px 16px 30px;margin:0 0 8px;
}
.bst-hero h1{color:#fff;font-size:30px;line-height:1.25;margin:0 0 8px;font-weight:800}
.bst-hero p{color:#dbeafe;font-size:16px;margin:0 auto;max-width:760px}
@media (max-width:767px){.bst-hero h1{font-size:22px}.bst-hero p{font-size:14px}}

/* ---------- Breadcrumb ---------- */
.bst-breadcrumb{font-size:13px;color:var(--bst-muted);margin:14px 0 4px}
.bst-breadcrumb a{color:var(--bst-muted)}
.bst-breadcrumb a:hover{color:var(--bst-primary)}
.bst-breadcrumb .bst-sep{margin:0 6px;color:#94a3b8}
.bst-breadcrumb .bst-current{color:var(--bst-ink);font-weight:600}

/* ---------- Tool cards ---------- */
.thumbnail{
  border:1px solid var(--bst-line);border-radius:var(--bst-radius);
  box-shadow:0 1px 2px rgba(15,23,42,.05);background:#fff;
  transition:transform .15s ease,box-shadow .15s ease;height:100%;
}
a.thumbnail:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(15,23,42,.12);text-decoration:none}
.thumbnail .caption{font-weight:600;color:var(--bst-ink);font-size:14px;line-height:1.4}
.new-tool-icon{border-radius:10px!important}

/* ---------- Section headings on homepage ---------- */
#seoTools h2{font-size:22px;margin:34px 0 18px;padding-bottom:8px;border-bottom:2px solid var(--bst-line)}
#seoTools h2:first-of-type{margin-top:18px}

/* ---------- Buttons & forms ---------- */
.btn-primary{background:var(--bst-primary);border-color:var(--bst-primary);border-radius:8px;font-weight:600}
.btn-primary:hover,.btn-primary:focus{background:var(--bst-primary-dark);border-color:var(--bst-primary-dark)}
.form-control{border-radius:8px;border-color:#cbd5e1;box-shadow:none}
.form-control:focus{border-color:var(--bst-primary);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.well{border-radius:var(--bst-radius);border-color:var(--bst-line);background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05)}

/* ---------- Ad slots (CLS-safe fixed heights) ---------- */
.bst-ad{
  width:100%;margin:18px auto;border:1.5px dashed #cbd5e1;border-radius:10px;
  background:#f1f5f9;display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:var(--bst-muted);text-align:center;padding:10px;
}
.bst-ad .bst-ad-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#94a3b8;margin-bottom:4px}
.bst-ad .bst-ad-name{font-size:12px;font-weight:600;color:#64748b}
.bst-ad-top{min-height:90px;max-width:970px}
.bst-ad-incontent{min-height:250px;max-width:970px}
.bst-ad-sidebar{min-height:250px;max-width:300px}
.bst-ad-footer{min-height:90px;max-width:970px}

/* ---------- Footer ---------- */
.footer{background:var(--bst-ink);color:#cbd5e1;margin-top:48px}
.footer .widget-title{color:#fff;font-size:16px;margin-bottom:14px}
.footer a{color:#cbd5e1}
.footer a:hover{color:#fff}
.footer-bottom{background:#020617;color:#94a3b8}

/* ---------- Tool page content ---------- */
.tool-content h2{font-size:21px;margin-top:28px}
.tool-content p{line-height:1.7;color:#1e293b}
.faq-item h3{font-size:16px;margin-top:20px}
.related-tools a{display:block;padding:6px 0}
img{max-width:100%;height:auto}

/* Hero strip: the header.php H1 container that directly follows the navbar (homepage only) */
body>nav.navbar+div.container{background:linear-gradient(120deg,#1e3a8a 0%,#2563eb 55%,#0ea5e9 100%);max-width:none!important;width:100%;padding:32px 15px 28px!important;margin:0 0 12px;text-align:center}
body>nav.navbar+div.container h1{color:#fff!important;font-size:30px!important;font-weight:800!important;margin:0!important;line-height:1.25!important}
@media (max-width:767px){body>nav.navbar+div.container h1{font-size:22px!important}}

/* Keep the header logo compact so it never overlaps the hero strip */
.navbar-brand img{max-height:44px;width:auto}
.navbar-brand{padding-top:6px;padding-bottom:6px}
