/* =========================================================
   SerpBulls — mobile polish & fixes (added 11 Nov 2026)
   Loaded on every page after the theme CSS.
   ========================================================= */

/* Snowflakes removed site-wide */
.snowflake { display: none !important; }

/* Never allow sideways scrolling */
html, body { max-width: 100%; overflow-x: hidden; }

/* Mobile-only CTA inside the menu is hidden on desktop */
.sb-menu-cta { display: none; }

@media (max-width: 991.98px) {

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
  }
  img, video, iframe, embed, object { max-width: 100%; }
  .container, .container-fluid { padding-left: 20px; padding-right: 20px; }

  /* ---------- Header ---------- */
  #header #header-wrap {
    background: rgba(18, 18, 22, 0.94) !important;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  #logo img { height: 58px !important; width: auto !important; }
  #primary-menu-trigger { color: #fff !important; }
  #primary-menu-trigger .svg-trigger path { stroke: #fff !important; }

  /* ---------- Mobile menu ---------- */
  .primary-menu .menu-container {
    padding: 10px 2px 22px !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .primary-menu .menu-item { border: 0 !important; }
  .primary-menu .menu-item > .menu-link,
  .primary-menu .serpbulls-menu-style > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    padding: 15px 6px !important;
    margin: 0 !important;
    font-family: Poppins, sans-serif;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    line-height: 1.3 !important;
    color: #fff !important;
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: color 0.2s ease;
  }
  .primary-menu .menu-item > .menu-link div { padding: 0 !important; }
  .primary-menu .menu-item > .menu-link:active,
  .primary-menu .serpbulls-menu-style > a:active { color: #ffae1b !important; }
  /* hide the theme's own arrow icons so only ours show */
  .primary-menu .menu-item > .menu-link i,
  .primary-menu .serpbulls-menu-style > a i { display: none !important; }

  /* Dropdown groups (SerpBulls Products / AI Search Packages) */
  .primary-menu .top-links,
  .primary-menu .top-links-container {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    float: none !important;
    position: static !important;
  }
  .primary-menu .serpbulls-menu-style {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .primary-menu .serpbulls-menu-style > a::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin: -4px 4px 0 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin 0.25s ease;
    opacity: 0.8;
  }
  .primary-menu .serpbulls-menu-style.sb-open > a { color: #ffae1b !important; }
  .primary-menu .serpbulls-menu-style.sb-open > a::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }
  .primary-menu .serpbulls-menu-style .top-links-sub-menu {
    display: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 8px 0 10px !important;
    padding: 6px 0 !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    z-index: auto !important;
  }
  .primary-menu .serpbulls-menu-style.sb-open > .top-links-sub-menu {
    display: block !important;
    animation: sbFade 0.22s ease;
  }
  .primary-menu .top-links-sub-menu .top-links-item {
    min-width: 0 !important;
    width: 100% !important;
    border: 0 !important;
    background: none !important;
  }
  .primary-menu .top-links-sub-menu .top-links-item > a {
    display: block !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.35 !important;
    color: rgba(255, 255, 255, 0.86) !important;
    background: none !important;
    border: 0 !important;
    white-space: normal !important;
  }
  .primary-menu .top-links-sub-menu .top-links-item + .top-links-item > a {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .primary-menu .top-links-sub-menu .top-links-item > a:active { color: #ffae1b !important; }

  /* Call-to-action at the bottom of the menu */
  .primary-menu .sb-menu-cta { display: block; list-style: none; padding: 20px 2px 4px; }
  .primary-menu .sb-menu-cta a {
    display: block;
    text-align: center;
    padding: 15px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #1a1a1a !important;
    background: linear-gradient(135deg, #ffc24a 0%, #fe9603 100%);
    box-shadow: 0 10px 26px rgba(254, 150, 3, 0.35);
  }

  @keyframes sbFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

  /* ---------- Typography ---------- */
  h1, .h1 { line-height: 1.16 !important; letter-spacing: -0.01em; }
  h2, .h2 { line-height: 1.22 !important; letter-spacing: -0.005em; }
  h1, .h1 { font-size: clamp(28px, 8.4vw, 40px) !important; }
  h2, .h2 { font-size: clamp(24px, 6.6vw, 32px) !important; }
  h3, .h3 { font-size: clamp(19px, 5.2vw, 24px) !important; line-height: 1.3 !important; }
  p, li { line-height: 1.7; }

  /* ---------- Buttons ---------- */
  .button:not(.sb-keep) {
    border-radius: 12px !important;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .button.button-large, .button.button-xlarge { font-size: 16px !important; }

  /* ---------- Cards & pricing ---------- */
  .pricing-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 40px rgba(17, 17, 26, 0.09) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
  }
  .feature-box.fbox-border, .feature-box.fbox-bg, .card {
    border-radius: 18px !important;
  }

  /* ---------- Testimonials slider arrows (were sticking off-screen) ---------- */
  .listing-carousel-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
  }
  .listing-carousel-button-next { right: 6px !important; left: auto !important; }
  .listing-carousel-button-prev { left: 6px !important; right: auto !important; }

  /* ---------- Cookie banner: compact floating card ---------- */
  #gdpr_banner.zoho-msgbanr {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35) !important;
  }
  #gdpr_banner.zoho-msgbanr * { font-size: 13px !important; line-height: 1.45 !important; }
  #gdpr_banner.zoho-msgbanr button,
  #gdpr_banner.zoho-msgbanr a[role="button"] { padding: 8px 14px !important; border-radius: 10px !important; }

  /* ---------- Footer ---------- */
  #footer .widget { margin-bottom: 26px; }
  #copyrights { text-align: center; }
}


/* Fix: neutralise old hover colours and make the opened lists tappable */
@media (max-width: 991.98px) {
  .primary-menu .serpbulls-menu-style,
  .primary-menu .serpbulls-menu-style:hover,
  .primary-menu .top-links-sub-menu .top-links-item:hover { background: none !important; background-color: transparent !important; }
  .primary-menu .serpbulls-menu-style.sb-open > .top-links-sub-menu { pointer-events: auto !important; }
}

/* Fix: centre the testimonial arrow icons inside the round buttons */
@media (max-width: 991.98px) {
  .listing-carousel-button { display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; }
  .listing-carousel-button i { margin: 0 !important; font-size: 20px !important; line-height: 1 !important; }
}
/* =========================================================
   Round 2 — premium mobile upgrades (11 Nov 2026)
   ========================================================= */
@media (max-width: 991.98px) {

  /* #5 Compact top: hide the WhatsApp/social top bar on phones (WhatsApp is in the menu + sticky bar), slimmer lights strip */
  #top-bar { display: none !important; }
  .banner { padding: 0 !important; min-height: 46px !important; }

  /* #1 Core Strengths: tidy 2x2 stat tiles (no broken words) */
  .card-seo-about > .p-5 { padding: 26px 18px !important; }
  .card-seo-about .row.text-center { margin-left: -6px !important; margin-right: -6px !important; }
  .card-seo-about .row.text-center > div[class*="col-md-6"] {
    padding-left: 6px !important; padding-right: 6px !important; margin-bottom: 12px !important;
  }
  .card-seo-about .row.text-center > div > .card {
    height: 100%; padding: 16px 12px !important; text-align: left;
    border: 1px solid rgba(0,0,0,.05) !important; border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(17,17,26,.06) !important;
  }
  .card-seo-about .row.text-center > div > .card > div:first-child { display: flex; align-items: center; gap: 8px; }
  .card-seo-about .row.text-center > div > .card h3 { font-size: 21px !important; line-height: 1.1 !important; margin: 0 !important; }
  .card-seo-about .row.text-center > div > .card h5 {
    font-size: 13.5px !important; line-height: 1.3 !important; margin: 10px 0 4px !important;
    word-break: normal !important; overflow-wrap: normal !important; hyphens: none !important;
  }
  .card-seo-about .row.text-center > div > .card p { font-size: 12.5px !important; line-height: 1.5 !important; margin: 0 !important; color: #6b6b76; }

  /* #2 Pricing cards: badge, quick buy, collapsible features */
  .pricing-box { position: relative; }
  .pricing-box.sb-popular { border: 2px solid #fe9603 !important; box-shadow: 0 18px 46px rgba(254,150,3,.20) !important; }
  .pricing-box .sb-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: #1a1a1a; background: linear-gradient(135deg,#ffc24a,#fe9603); box-shadow: 0 6px 16px rgba(254,150,3,.35);
  }
  .pricing-box .sb-quick-buy {
    display: block; margin: 4px 24px 8px; padding: 13px 16px; border-radius: 12px; text-align: center;
    font-weight: 600; font-size: 15px; color: #1a1a1a !important; text-decoration: none !important;
    background: linear-gradient(135deg,#ffc24a,#fe9603); box-shadow: 0 10px 24px rgba(254,150,3,.30);
  }
  .pricing-box ul.sb-collapsed li.sb-extra { display: none !important; }
  .pricing-box .sb-more {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 48px); margin: 4px 24px 14px;
    padding: 11px 14px; border-radius: 12px; border: 1px dashed rgba(0,0,0,.18); background: #fafafa;
    font: 600 14px/1.2 Poppins, sans-serif; color: #333; cursor: pointer;
  }
  .pricing-box .sb-more::after {
    content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); margin-top: -3px; transition: transform .2s;
  }
  .pricing-box .sb-more.open::after { transform: rotate(-135deg); margin-top: 3px; }

  /* #3 Sticky bottom action bar */
  .sb-sticky {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9990;
    display: flex; gap: 8px; padding: 8px;
    background: rgba(18,18,22,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08); border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35);
    transform: translateY(140%); opacity: 0; transition: transform .35s ease, opacity .35s ease;
  }
  .sb-sticky.show { transform: none; opacity: 1; }
  body.primary-menu-open .sb-sticky { transform: translateY(140%); opacity: 0; }
  .sb-sticky a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 10px; border-radius: 12px; font: 600 14px/1 Poppins, sans-serif; text-decoration: none !important;
  }
  .sb-sticky .sb-s-wa { color: #fff !important; background: #1fa855; }
  .sb-sticky .sb-s-pk { color: #1a1a1a !important; background: linear-gradient(135deg,#ffc24a,#fe9603); }
  .sb-sticky svg { width: 18px; height: 18px; fill: currentColor; }
  body.sb-has-sticky #footer, body.sb-has-sticky #copyrights { padding-bottom: 84px !important; }
  body.sb-has-sticky #zsiq_float { bottom: 86px !important; }
  body.sb-has-sticky #gotoTop { bottom: 150px !important; }

  /* #4 Calm chat: hide the "Welcome to SerpBulls" greeting bubble on phones, keep the icon */
  #zs-fl-tip, .zsiq-float-tooltip { display: none !important; }

  /* #7 Blog posts: comfortable reading */
  .single-post .entry-title h2, .single-post .entry-title h1 {
    font-size: clamp(24px, 6.6vw, 30px) !important; line-height: 1.25 !important;
    text-transform: none !important; letter-spacing: -0.01em !important; font-weight: 700 !important; color: #16161d;
  }
  .single-post .sb-readtime { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 18px; padding: 5px 12px;
    border-radius: 999px; background: #fff4e5; color: #b8650a; font: 600 12.5px/1 Poppins, sans-serif; }
  .single-post .entry-image { float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 0 22px !important; }
  .single-post .entry-image img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(17,17,26,.10); }
  .single-post .entry-content p, .single-post .entry-content li { font-size: 16.5px !important; line-height: 1.8 !important; color: #33333d; }
  .single-post .entry-content h2, .single-post .entry-content h3, .single-post .entry-content h4 {
    text-transform: none !important; margin-top: 30px !important; margin-bottom: 12px !important; line-height: 1.3 !important;
  }
  .single-post .entry-content h3 { font-size: 21px !important; }
  .single-post .entry-content h4 { font-size: 18px !important; }
  .single-post .entry-content blockquote { border-left: 4px solid #fe9603; background: #fffaf2; padding: 14px 16px; border-radius: 0 12px 12px 0; }

  /* #8 Polish: smaller badges, consistent section spacing, cleaner footer, fade-ins */
  .badge.rounded-pill { font-size: 11.5px !important; padding: 6px 12px !important; letter-spacing: .04em; }
  .section { padding-top: 56px !important; padding-bottom: 56px !important; }
  .content-wrap { padding-top: 48px !important; padding-bottom: 48px !important; }
  #footer .footer-widgets-wrap { padding-top: 48px !important; padding-bottom: 24px !important; }
  #footer .widget { text-align: left; }
  #footer .widget ul li { padding: 6px 0; }
  #copyrights { font-size: 13px; padding-top: 22px !important; }
  .sb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .sb-reveal.sb-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-reveal, .sb-reveal.sb-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sb-sticky { transition: none !important; }
}
/* =========================================================
   Desktop header — keep logo, menu and "Get Started" on one line (11 Nov 2026)
   ========================================================= */
@media (min-width: 992px) {
  #header .header-row { flex-wrap: nowrap !important; }
  #header .header-misc { flex-shrink: 0; }
  #header .header-misc .button {
    display: inline-flex !important; align-items: center; justify-content: center;
    margin: 0 0 0 16px !important; padding: 11px 24px !important;
    border: 0 !important; border-radius: 999px !important;
    background: linear-gradient(135deg, #f96114 0%, #ffae1b 100%) !important;
    color: #fff !important; font-size: 15px !important; font-weight: 600 !important;
    line-height: 1.2 !important; letter-spacing: .01em !important; text-transform: none !important;
    white-space: nowrap; box-shadow: 0 8px 22px rgba(249, 97, 20, .35);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  #header .header-misc .button:hover {
    transform: translateY(-1px); box-shadow: 0 12px 28px rgba(249, 97, 20, .45);
  }
}
/* A little more room for the header on wide screens */
@media (min-width: 1200px) {
  #header .container { max-width: 1320px !important; }
}
/* Slightly tighter menu spacing on laptop widths */
@media (min-width: 992px) and (max-width: 1499.98px) {
  #header .primary-menu .menu-container > .menu-item > .menu-link {
    padding-left: 11px !important; padding-right: 11px !important; font-size: 14px !important;
  }
  #header .primary-menu .serpbulls-menu-style > a {
    font-size: 14px !important; padding-left: 14px !important; padding-right: 14px !important;
  }
}
/* Narrow desktops: header button hidden (the hero has its own Get Started button) */
@media (min-width: 992px) and (max-width: 1299.98px) {
  #header .header-misc .button { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #header .primary-menu .menu-container > .menu-item > .menu-link {
    padding-left: 7px !important; padding-right: 7px !important; font-size: 13px !important;
  }
  #header .primary-menu .serpbulls-menu-style > a {
    font-size: 13px !important; padding-left: 9px !important; padding-right: 9px !important;
  }
}
/* Main orange call-to-action buttons: same rounded gradient style everywhere */
a.button[style*="#ffae1b"]:not(.sb-keep) {
  border: 0 !important; border-radius: 999px !important;
  background: linear-gradient(135deg, #f96114 0%, #ffae1b 100%) !important;
  color: #fff !important; text-transform: none !important; font-weight: 600 !important;
  box-shadow: 0 10px 26px rgba(249, 97, 20, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.button[style*="#ffae1b"]:not(.sb-keep):hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(249, 97, 20, .45); }
/* Sticky bar: Telegram button (replaces View Packages) */
@media (max-width: 991.98px) {
  .sb-sticky .sb-s-tg { color: #fff !important; background: #229ED9; }
}