/* =====================================================
   SAYJOBCITY — COMPLETE FIXES & FINAL OVERRIDES v2.0
   Load order: style.css → improvements.css → fixes.css
   ===================================================== */

/* =====================================================
   HEADER — DESKTOP STRUCTURAL RULES
   ===================================================== */
.sjc-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Three-part flex: logo | nav(flex:1) | actions */
.header-inner {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  gap: 16px !important;
}
.site-logo      { flex: 0 0 auto !important; }
#main-nav       { flex: 1 !important; display: flex; justify-content: center; }
.header-actions { flex: 0 0 auto !important; display: flex; align-items: center; gap: 8px; }

/* Desktop search bar */
.header-search-wrap {
  display: flex !important;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-light);
  height: 36px;
}
.header-search-input {
  border: none; background: transparent;
  padding: 0 12px; font-size: 13px;
  color: var(--text-dark); outline: none; width: 160px;
}
.header-search-input::placeholder { color: var(--text-light); }
.header-search-btn {
  border: none; background: transparent;
  padding: 0 10px; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; height: 100%;
}
.header-search-btn:hover { color: var(--primary); }

/* Hamburger hidden on desktop */
.mobile-menu-btn { display: none; }

/* desktop-only helper */
.desktop-only-flex { display: flex !important; }

/* =====================================================
   HEADER — MOBILE (logo LEFT · hamburger RIGHT)
   ===================================================== */
@media (max-width: 768px) {

  #site-header { height: 60px !important; }

  /* Container: full width so space-between actually works */
  #site-header .container {
    width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Header inner: space-between = logo | hamburger */
  .header-inner {
    gap: 0 !important;
    justify-content: space-between !important;
  }

  /* Logo: takes available space, pushes hamburger to far right */
  .site-logo {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }
  .logo-icon    { width: 34px !important; height: 34px !important; }
  .logo-name    { font-size: 16px !important; }
  .logo-tagline { font-size: 9px !important; }

  /* Nav: completely hidden */
  #main-nav { display: none !important; }

  /* Header actions: only hamburger */
  .header-actions { gap: 0 !important; margin-left: auto !important; flex-shrink: 0 !important; }
  .desktop-only-flex { display: none !important; }

  /* Hamburger: right side */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: var(--bg-light) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }
}

/* =====================================================
   FIX: Newsletter big blue section — REMOVED
   ===================================================== */
#newsletter-section { display: none !important; }

/* =====================================================
   FIX: Hero illustration — desktop only
   ===================================================== */
@media (max-width: 1024px) {
  .hero-visual,
  .hero-calc-illustration,
  .float-card { display: none !important; }
  .hero-inner { grid-template-columns: 1fr !important; }
  .hero-content { max-width: 100% !important; }
}

/* =====================================================
   FIX: Breadcrumbs — completely removed
   ===================================================== */
.breadcrumb-wrap,
nav.breadcrumb-wrap {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =====================================================
   FOOTER — MOBILE LAYOUT
   Quick Links (left) | Categories (right) | Newsletter (bottom)
   ===================================================== */
@media (max-width: 768px) {
  .footer-main { padding: 32px 0 24px !important; }

  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
  }

  /* Brand: full width row 1 */
  .footer-brand {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    text-align: center !important;
  }
  .footer-brand .footer-logo   { justify-content: center !important; }
  .footer-brand .footer-desc   { max-width: 280px; margin: 0 auto 12px; }
  .footer-brand .footer-social { justify-content: center !important; }

  /* Quick Links: col 1 row 2 */
  .footer-grid > .footer-col:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  /* Categories: col 2 row 2 */
  .footer-grid > .footer-col:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  /* Newsletter: full width row 3 */
  .footer-newsletter {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
  }

  .footer-col h4  { font-size: 13px !important; margin-bottom: 10px !important; }
  .footer-links a { font-size: 12px !important; }
  .footer-links   { gap: 8px !important; }

  .footer-bottom-inner {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .footer-copyright,
  .footer-bottom-links a { font-size: 12px !important; }
}

/* =====================================================
   SINGLE TOOL PAGE — MOBILE RESPONSIVE
   Matches reference screenshot exactly
   ===================================================== */
@media (max-width: 768px) {
  .single-tool-page { padding: 8px 0 40px !important; }
  .single-tool-page .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow-x: hidden !important;
  }

  /* Stack layout — sidebar removed, using stf-section instead */
  .single-tool-layout {
    display: none !important;
  }
  .single-tool-main { order: 1; width: 100% !important; }
  .tool-sidebar     { display: none !important; }

  /* Tool title row */
  .tool-title-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    flex-wrap: nowrap !important;
  }
  .tool-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .fav-btn {
    font-size: 12px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 8px !important;
    background: #fff !important;
  }
  .tool-desc { font-size: 13.5px !important; line-height: 1.6 !important; }

  /* Calc box: full width single column */
  .calc-box { border-radius: 12px !important; margin-bottom: 20px !important; width: 100% !important; }
  .calc-box-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .calc-form-col {
    padding: 20px 14px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .calc-results-col {
    padding: 20px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .calc-section-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border-light) !important;
  }

  /* Form fields */
  .form-group { margin-bottom: 16px !important; }
  .form-label { font-size: 13px !important; font-weight: 600 !important; margin-bottom: 6px !important; display: block !important; }
  .form-input {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    display: block !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
  }
  .form-hint { display: block !important; font-size: 12px !important; color: var(--text-light) !important; margin-top: 4px !important; }

  /* Years/Months toggle */
  .toggle-group {
    display: flex !important;
    width: 100% !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
  }
  .toggle-btn {
    flex: 1 !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
  }
  .toggle-btn.active          { background: var(--primary) !important; color: #fff !important; }
  .toggle-btn:not(.active)    { background: var(--bg-white) !important; color: var(--text-muted) !important; }

  /* Buttons */
  .calc-actions { display: flex !important; flex-direction: column !important; gap: 10px !important; margin-top: 18px !important; }
  #calculateBtn, .btn-calc {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
  }
  #resetBtn, .btn-reset {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: #fff !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-muted) !important;
  }

  /* Results */
  .result-highlight { padding: 16px !important; border-radius: 10px !important; }
  .result-highlight-value { font-size: 24px !important; font-weight: 800 !important; }
  .result-item-label { font-size: 12.5px !important; }
  .result-item-value { font-size: 14px !important; font-weight: 700 !important; }
  .pb-chart-wrap { flex-direction: column !important; gap: 12px !important; }

  /* Tabs */
  .tabs-nav {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .tabs-nav::-webkit-scrollbar { display: none !important; }
  .tab-btn { white-space: nowrap !important; font-size: 13px !important; padding: 10px 14px !important; flex-shrink: 0 !important; }

  /* Table */
  #tab-amort > div { overflow-x: auto !important; }
  .amort-table th, .amort-table td { padding: 8px !important; font-size: 12px !important; }

  /* Sidebar boxes */
  .sidebar-box-header { padding: 12px 14px !important; }
  .sidebar-box-header h4 { font-size: 13px !important; }
  .sidebar-box-body { padding: 12px 14px !important; }
  .share-icons { justify-content: space-around !important; }
  .share-icon  { width: 42px !important; height: 42px !important; }
  .links-list a { font-size: 13px !important; }
  .formula-display-box { font-size: 14px !important; padding: 12px !important; }

  /* Content */
  .tool-content-section h2 { font-size: 18px !important; }
  .tool-content-section h3 { font-size: 15px !important; }
  .tool-content-section p  { font-size: 14px !important; line-height: 1.75 !important; }
}

/* =====================================================
   BLOG PAGE — 3-COLUMN LAYOUT MATCHING REFERENCE IMAGE
   ===================================================== */

.blog-page { padding: 28px 0 60px !important; }

/* Header row */
.blog-header-row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 28px !important;
  flex-wrap: wrap !important;
}
.blog-page-header h1 {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: var(--text-dark) !important;
  margin-bottom: 8px !important;
}
.blog-page-header p {
  font-size: 15px !important;
  color: var(--text-muted) !important;
  max-width: 560px !important;
}
.blog-search-form {
  display: flex !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: var(--bg-white) !important;
  flex-shrink: 0 !important;
  height: 44px !important;
}
.blog-search-form input {
  padding: 0 14px !important;
  border: none !important;
  font-size: 14px !important;
  width: 220px !important;
  background: transparent !important;
  outline: none !important;
  height: 100% !important;
  color: var(--text-dark) !important;
}
.blog-search-form button {
  padding: 0 20px !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  height: 100% !important;
}

/* 3-column grid */
.blog-layout {
  display: grid !important;
  grid-template-columns: 230px 1fr 270px !important;
  gap: 28px !important;
  align-items: start !important;
}

/* Left sidebar */
.blog-sidebar-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  position: sticky !important;
  top: calc(var(--header-height) + 16px) !important;
  min-width: 0 !important;
}
.bs-box {
  background: var(--bg-white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  min-width: 0 !important;
  word-break: break-word !important;
  height: auto !important;
  max-height: none !important;
}
.bs-box-header {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--border) !important;
}
.bs-box-header h4 { font-size: 15px !important; font-weight: 700 !important; color: var(--text-dark) !important; margin: 0 !important; }
.bs-cat-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  margin: 2px 6px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}
.bs-cat-item:hover  { background: var(--primary-light) !important; }
.bs-cat-item.active { background: var(--primary-light) !important; }
.bs-cat-item.active .bs-cat-name { color: var(--primary) !important; font-weight: 600 !important; }
.bs-cat-icon { width: 28px !important; height: 28px !important; border-radius: 6px !important; background: var(--bg-section) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 13px !important; flex-shrink: 0 !important; }
.bs-cat-name  { flex: 1 !important; font-size: 14px !important; color: var(--text-dark) !important; }
.bs-cat-count { font-size: 13px !important; color: var(--text-muted) !important; }
.blog-nl-form { padding: 16px !important; display: flex !important; flex-direction: column !important; gap: 10px !important; }
.blog-nl-form p { font-size: 13px !important; color: var(--text-muted) !important; line-height: 1.5 !important; margin: 0 !important; }
.blog-nl-form input { width: 100% !important; padding: 10px 12px !important; border: 1.5px solid var(--border) !important; border-radius: 8px !important; font-size: 13px !important; background: var(--bg-light) !important; color: var(--text-dark) !important; outline: none !important; box-sizing: border-box !important; }
.blog-nl-form .btn { width: 100% !important; justify-content: center !important; padding: 12px !important; font-size: 14px !important; font-weight: 700 !important; }

/* Featured post */
.featured-label { display: block !important; font-size: 13px !important; font-weight: 700 !important; color: var(--primary) !important; margin-bottom: 12px !important; }
.featured-post {
  display: grid !important;
  grid-template-columns: 200px 1fr !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1.5px solid var(--border) !important;
  background: var(--bg-white) !important;
  box-shadow: var(--shadow-sm) !important;
  margin-bottom: 32px !important;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.featured-post:hover { border-color: var(--primary) !important; box-shadow: var(--shadow-md) !important; }
.featured-post-img { min-height: 200px !important; border-radius: 0 !important; overflow: hidden !important; background: var(--bg-section) !important; }
.featured-post-img img { width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; }
.featured-post-img.no-image { display:flex !important; align-items:center !important; justify-content:center !important; font-size:48px !important; }
.featured-post-content { padding: 22px 20px !important; display: flex !important; flex-direction: column !important; justify-content: center !important; }
.featured-post-cat { display: inline-block !important; font-size: 11px !important; font-weight: 700 !important; padding: 3px 10px !important; border-radius: 20px !important; margin-bottom: 10px !important; }
.featured-post-title { font-size: 20px !important; font-weight: 700 !important; line-height: 1.35 !important; color: var(--text-dark) !important; margin-bottom: 10px !important; }
.featured-post-excerpt { font-size: 13.5px !important; color: var(--text-muted) !important; line-height: 1.65 !important; margin-bottom: 14px !important; }
.post-meta { display: flex !important; align-items: center !important; gap: 12px !important; flex-wrap: wrap !important; }
.post-meta-item { font-size: 12.5px !important; color: var(--text-muted) !important; display: flex !important; align-items: center !important; gap: 4px !important; }
.read-more-link { font-size: 13px !important; font-weight: 600 !important; color: var(--primary) !important; margin-left: auto !important; text-decoration: none !important; }

/* Latest posts */
.latest-posts-title { font-size: 18px !important; font-weight: 700 !important; color: var(--text-dark) !important; margin-bottom: 0 !important; padding-bottom: 14px !important; border-bottom: 2px solid var(--border) !important; }
.post-card {
  display: grid !important;
  grid-template-columns: 130px 1fr !important;
  gap: 16px !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid var(--border-light) !important;
  text-decoration: none !important;
  align-items: flex-start !important;
  cursor: pointer !important;
  transition: none !important;
}
.post-card:last-child { border-bottom: none !important; }
.post-card:hover .post-card-title { color: var(--primary) !important; }
.post-card-img { height: 90px !important; border-radius: 8px !important; overflow: hidden !important; background: var(--bg-section) !important; }
.post-card-img img { width:100% !important; height:100% !important; object-fit:cover !important; }
.post-card-img.no-image { display:flex !important; align-items:center !important; justify-content:center !important; font-size:26px !important; }
.post-card-cat { display: inline-block !important; font-size: 11px !important; font-weight: 700 !important; padding: 2px 10px !important; border-radius: 20px !important; margin-bottom: 7px !important; }
.post-card-title { font-size: 15px !important; font-weight: 700 !important; color: var(--text-dark) !important; line-height: 1.4 !important; margin-bottom: 6px !important; transition: color 0.15s !important; }
.post-card-excerpt { font-size: 13px !important; color: var(--text-muted) !important; line-height: 1.55 !important; margin-bottom: 8px !important; }

/* Right sidebar */
.blog-sidebar-right { display: flex !important; flex-direction: column !important; gap: 20px !important; position: static !important; top: auto !important; max-height: none !important; overflow: visible !important; overflow-y: visible !important; min-width: 0 !important; height: auto !important; }
.pp-list { padding: 4px 14px 16px !important; }
.popular-post-item { display: flex !important; gap: 10px !important; padding: 14px 0 !important; border-bottom: 1px solid var(--border-light) !important; text-decoration: none !important; align-items: flex-start !important; min-width: 0 !important; }
.popular-post-item:last-child { border-bottom: none !important; padding-bottom: 4px !important; }
.pp-img { width: 68px !important; height: 60px !important; border-radius: 6px !important; overflow: hidden !important; background: var(--bg-section) !important; flex-shrink: 0 !important; }
.pp-img img { width:100% !important; height:100% !important; object-fit:cover !important; }
.pp-img.no-image { display:flex !important; align-items:center !important; justify-content:center !important; font-size:20px !important; }
.pp-text { flex: 1 !important; min-width: 0 !important; overflow: hidden !important; }
.pp-title { font-size: 13px !important; font-weight: 600 !important; color: var(--text-dark) !important; line-height: 1.45 !important; margin-bottom: 6px !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; word-break: break-word !important; }
.pp-date  { font-size: 11.5px !important; color: var(--text-muted) !important; }
.tags-cloud { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; padding: 12px 14px !important; }
.tag-pill { padding: 4px 10px !important; background: var(--bg-section) !important; border: 1.5px solid var(--border) !important; border-radius: 20px !important; font-size: 12px !important; font-weight: 500 !important; color: var(--text-muted) !important; text-decoration: none !important; cursor: pointer !important; transition: all 0.15s !important; white-space: nowrap !important; }
.tag-pill:hover { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.view-all-tags { display: flex !important; align-items: center !important; gap: 4px !important; padding: 6px 14px 14px !important; font-size: 13px !important; font-weight: 600 !important; color: var(--primary) !important; text-decoration: none !important; }

/* Badge color variants */
.badge-finance      { background: #f5e8df !important; color: #b0531f !important; }
.badge-construction { background: #FFF7ED !important; color: #C2410C !important; }
.badge-health       { background: #FFF1F2 !important; color: #BE123C !important; }
.badge-math         { background: #F5F3FF !important; color: #6D28D9 !important; }

/* Pagination */
.pagination { display: flex !important; align-items: center !important; gap: 6px !important; }
.page-num { width: 36px !important; height: 36px !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600 !important; color: var(--text-dark) !important; background: var(--bg-white) !important; border: 1.5px solid var(--border) !important; text-decoration: none !important; cursor: pointer !important; transition: all 0.15s !important; }
.page-num.active, .page-num:hover { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.page-num.dots { border: none !important; background: transparent !important; cursor: default !important; }

/* Blog responsive breakpoints */
@media (max-width: 1100px) { .blog-layout { grid-template-columns: 210px 1fr 250px !important; gap: 20px !important; } }
@media (max-width: 900px)  { .blog-layout { grid-template-columns: 210px 1fr !important; gap: 20px !important; } .blog-sidebar-right { display: none !important; } }

/* ── TABLET / MOBILE: stacked layout ── */
@media (max-width: 700px) {

  /* Layout: single column — left sidebar, main, then right sidebar */
  .blog-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .blog-sidebar-left  { position: static !important; width: 100% !important; order: 1 !important; }
  .blog-main          { order: 2 !important; }
  .blog-sidebar-right {
    display: flex !important;
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    width: 100% !important;
    order: 3 !important;
    margin-top: 28px !important;
  }

  /* Header */
  .blog-header-row { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .blog-page-header h1 { font-size: 22px !important; }

  /* Search bar — full width, pill style */
  .blog-search-form {
    width: 100% !important;
    height: 46px !important;
    border-radius: 10px !important;
  }
  .blog-search-form input {
    width: 100% !important;
    flex: 1 !important;
    font-size: 15px !important; /* prevents iOS zoom */
    padding: 0 12px !important;
  }
  .blog-search-form button {
    padding: 0 16px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Categories: horizontal pill scroll (like all-calculators) */
  .bs-box-header { padding: 10px 12px !important; }
  .blog-sidebar-left .bs-box > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 8px 8px !important;
    gap: 0 !important;
  }
  .blog-sidebar-left .bs-box > div:last-child::-webkit-scrollbar { display: none !important; }
  .bs-cat-item {
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-light) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 60px !important;
    text-align: center !important;
  }
  .bs-cat-item:last-child { border-right: none !important; }
  .bs-cat-icon { font-size: 16px !important; width: 24px !important; height: 24px !important; background: none !important; }
  .bs-cat-name  { font-size: 11px !important; color: var(--text-dark) !important; }
  .bs-cat-count { display: none !important; }

  /* Post cards */
  .latest-posts-title { font-size: 17px !important; margin-top: 20px !important; }
  .post-card { grid-template-columns: 88px 1fr !important; gap: 12px !important; padding: 14px 0 !important; }
  .post-card-img { height: 68px !important; }
  .post-card-title { font-size: 14px !important; }
  .post-card-excerpt { font-size: 12px !important; }

  /* Right sidebar (popular posts + tags) shown below posts */
  .blog-sidebar-right .bs-box { width: 100% !important; }
  .pp-list { padding: 4px 12px 12px !important; }
  .popular-post-item { padding: 10px 0 !important; }
  .tags-cloud { padding: 10px 12px !important; }
}

/* ── SMALL MOBILE ── */
@media (max-width: 400px) {
  .blog-page-header h1 { font-size: 19px !important; }
  .bs-cat-item { min-width: 52px !important; padding: 7px 9px !important; }
  .bs-cat-name { font-size: 10px !important; }
  .post-card { grid-template-columns: 76px 1fr !important; }
  .post-card-img { height: 60px !important; }
}

/* =====================================================
   CATEGORIES GRID — Mobile 3 columns
   ===================================================== */
@media (max-width: 768px) {
  #popular-categories { padding: 32px 0 !important; }
  .categories-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .category-card { padding: 14px 8px !important; }
  .cat-icon { width: 38px !important; height: 38px !important; font-size: 18px !important; margin-bottom: 8px !important; }
  .cat-name { font-size: 12px !important; }
  .cat-desc { display: none !important; }
  .cat-count { font-size: 11px !important; }
}

/* =====================================================
   POPULAR CALCULATORS — Mobile 2 columns
   ===================================================== */
@media (max-width: 768px) {
  #popular-calculators { padding: 32px 0 !important; }
}
@media (min-width: 480px) and (max-width: 768px) {
  .calculators-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}
@media (max-width: 479px) {
  .calculators-grid { grid-template-columns: 1fr !important; }
}

/* =====================================================
   RECENTLY ADDED — Mobile 2 columns
   ===================================================== */
@media (max-width: 768px) {
  #recently-added { padding: 32px 0 !important; }
  .recent-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .recent-calc-card { padding: 12px !important; }
  .recent-icon { width: 34px !important; height: 34px !important; font-size: 16px !important; }
  .recent-name { font-size: 12px !important; }
  .recent-time { font-size: 10px !important; }
}

/* =====================================================
   TRUST FEATURES — Mobile 2x2
   ===================================================== */
@media (max-width: 768px) {
  #trust-features { padding: 28px 0 !important; }
  .features-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .feature-icon  { width: 44px !important; height: 44px !important; font-size: 20px !important; }
  .feature-title { font-size: 13px !important; }
  .feature-desc  { font-size: 12px !important; }
}

/* =====================================================
   HERO — Mobile trust badges 2x2
   ===================================================== */
@media (max-width: 768px) {
  #hero { padding: 28px 0 24px !important; }
  .hero-title { font-size: 28px !important; line-height: 1.2 !important; letter-spacing: -0.3px !important; }
  .hero-desc  { font-size: 14px !important; margin-bottom: 18px !important; }
  .hero-search-form { max-width: 100% !important; margin-bottom: 16px !important; }
  .hero-search-form input  { padding: 12px 14px !important; font-size: 14px !important; }
  .hero-search-form button { padding: 12px 16px !important; font-size: 14px !important; }
  .hero-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .hero-badge {
    background: var(--bg-section) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
  }
}

/* =====================================================
   ALL CALCULATORS — Mobile
   ===================================================== */
@media (max-width: 768px) {
  .calcs-layout { grid-template-columns: 1fr !important; }
  .calcs-sidebar { position: static !important; }
  .calcs-cat-list { display: flex !important; flex-direction: row !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .calcs-cat-item { flex-shrink: 0 !important; border-bottom: none !important; border-right: 1px solid var(--border-light) !important; white-space: nowrap !important; }
  .cci-count { display: none !important; }
  .calcs-grid-3 { grid-template-columns: 1fr !important; }
  .calcs-search-bar { flex-wrap: wrap !important; gap: 12px !important; }
  .calcs-search-left { width: 100% !important; }
  .calcs-search-divider { display: none !important; }
  .calcs-search-right { width: 100% !important; justify-content: space-between !important; }
}
@media (min-width: 480px) and (max-width: 768px) {
  .calcs-grid-3 { grid-template-columns: 1fr 1fr !important; }
}

/* =====================================================
   MOBILE MENU DRAWER — Polish
   ===================================================== */
.mobile-menu-drawer { padding: 16px 18px !important; }
.mobile-nav-item > a { padding: 11px 12px !important; font-size: 15px !important; }
.mobile-submenu a    { padding: 8px 12px !important; font-size: 13.5px !important; display: flex !important; align-items: center !important; gap: 10px !important; }
.mobile-social a     { width: 34px !important; height: 34px !important; border-radius: 8px !important; }

/* Mobile submenu icon — matches desktop .dd-icon */
.mob-dd-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
}

/* Arrow rotation when submenu is open */
.mobile-nav-item > a.mobile-submenu-toggle svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.mobile-nav-item > a.mobile-submenu-toggle.open svg {
  transform: rotate(180deg);
}

/* =====================================================
   DARK MODE REFINEMENTS
   ===================================================== */
body.dark-mode .bs-box        { background: var(--bg-white) !important; }
body.dark-mode .tag-pill      { background: var(--bg-light) !important; border-color: var(--border) !important; }
body.dark-mode .form-input    { background: var(--bg-light) !important; }
body.dark-mode .toggle-btn:not(.active) { background: var(--bg-light) !important; }

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.skip-link:focus {
  position: fixed !important;
  top: 8px !important; left: 8px !important;
  z-index: 99999 !important;
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .float-card, .category-card, .calc-card, .tool-card,
  .recent-calc-card, .featured-post { animation: none !important; transition: none !important; }
}

/* =====================================================
   ALL CALCULATORS PAGE — BREADCRUMB
   (uses .calcs-breadcrumb to avoid the global hide above)
   ===================================================== */
.calcs-breadcrumb {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 8px 0 0;
}
.calcs-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.calcs-breadcrumb a:hover { color: var(--primary); }
.calcs-bc-sep { color: var(--border); font-size: 12px; }
.calcs-bc-current { color: var(--text-dark); font-weight: 500; }

/* =============================================================
   ALL CALCULATORS v3 — MOBILE OVERFLOW FIX
   ============================================================= */

/* Make sure container doesn't cause overflow on mobile */
@media (max-width: 768px) {
  .page-all-calcs .container {
    overflow-x: hidden;
  }

  /* Old search bar — fully hidden (replaced by separate rows) */
  .calcs-search-bar {
    display: none !important;
  }

  /* Ensure the category pills container doesn't bleed */
  .calcs-cat-list {
    max-width: 100%;
  }
}

/* =====================================================
   SIDEBAR TOOL — COMPLETE FIX (FINAL OVERRIDE)
   Share icons, layout, desktop + mobile
   ===================================================== */

/* Sidebar flex column */
/* Sidebar removed from single-tool page */
.tool-sidebar {
  display: none !important;
}

/* Each sb-card full width */
.tool-sidebar .sb-card {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* Card structure */
.sb-card {
  background: var(--bg-white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
}
.sb-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  border-bottom: 1.5px solid var(--border) !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
.sb-card-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.sb-icon-share   { background: #f5e8df !important; color: #c8602a !important; }
.sb-icon-formula { background: #F5F3FF !important; color: #7C3AED !important; }
.sb-icon-links   { background: #ECFDF5 !important; color: #059669 !important; }
.sb-icon-related { background: #FFF7ED !important; color: #EA580C !important; }

.sb-card-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
.sb-card-sub {
  font-size: 11.5px !important;
  color: var(--text-muted) !important;
  margin: 2px 0 0 !important;
}
.sb-card-body {
  padding: 16px !important;
  display: block !important;
}
.sb-card-body--links { padding: 8px 0 !important; }

/* ── SHARE ICONS ROW ── */
.sb-share-icons-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 4px 0 6px !important;
  flex-wrap: nowrap !important;
}

/* Circular icon buttons */
.sb-sico {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}
.sb-sico:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}
.sb-sico svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* Brand colors */
.sb-sico-fb   { background: #1877F2 !important; color: #fff !important; }
.sb-sico-tw   { background: #1DA1F2 !important; color: #fff !important; }
.sb-sico-li   { background: #0A66C2 !important; color: #fff !important; }
.sb-sico-wa   { background: #25D366 !important; color: #fff !important; }
.sb-sico-copy {
  background: var(--bg-light, #F8FAFC) !important;
  color: var(--text-muted, #64748B) !important;
  border: 1.5px solid var(--border, #E2E8F0) !important;
  box-shadow: none !important;
}
.sb-sico-copy:hover {
  background: #f5e8df !important;
  color: var(--primary, #c8602a) !important;
  border-color: var(--primary, #c8602a) !important;
}

/* ── FORMULA BOX ── */
.sb-formula-intro {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
  display: block !important;
}
.sb-formula-box {
  background: linear-gradient(135deg, #F5F3FF, #EDE9FE) !important;
  border: 1.5px solid #DDD6FE !important;
  border-radius: 10px !important;
  padding: 14px 12px !important;
  text-align: center !important;
  margin-bottom: 12px !important;
  display: block !important;
}
.sb-formula-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #7C3AED !important;
  margin-bottom: 6px !important;
  display: block !important;
}
.sb-formula-text {
  font-size: 14px !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: #4C1D95 !important;
  font-family: 'Georgia', serif !important;
  line-height: 1.5 !important;
  display: block !important;
}
.sb-formula-vars {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}
.sb-formula-var {
  display: flex !important;
  align-items: flex-start !important;
  gap: 7px !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
  line-height: 1.4 !important;
}
.sb-var-dot {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  background: #7C3AED !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  margin-top: 4px !important;
  display: block !important;
}

/* ── LINK ITEMS (Useful Links + Related Calculators) ── */
.sb-link-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-body, #374151) !important;
  text-decoration: none !important;
  transition: all .15s !important;
  border-bottom: 1px solid var(--border-light, #F1F5F9) !important;
}
.sb-link-item:last-child { border-bottom: none !important; }
.sb-link-item:hover {
  background: var(--primary-light, #f5e8df) !important;
  color: var(--primary, #c8602a) !important;
  padding-left: 20px !important;
}
.sb-link-dot {
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  background: var(--primary, #c8602a) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.sb-link-icon {
  font-size: 14px !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  text-align: center !important;
  display: block !important;
}
.sb-link-arrow {
  margin-left: auto !important;
  color: var(--text-muted) !important;
  opacity: 0 !important;
  transition: opacity .15s, transform .15s !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.sb-link-item:hover .sb-link-arrow {
  opacity: 1 !important;
  transform: translateX(2px) !important;
}

/* ── DESKTOP STICKY SIDEBAR ── */
@media (min-width: 1025px) {
  .single-tool-layout {
    align-items: start !important;
  }
  .tool-sidebar {
    position: sticky !important;
    top: calc(var(--header-height, 64px) + 16px) !important;
    align-self: start !important;
    overflow: visible !important;
    max-height: none !important;
  }
  .sb-sico {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* ── TABLET / MOBILE ── */
@media (max-width: 1024px) {
  .tool-sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 12px !important;
  }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .sb-sico { width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; }
  .sb-sico svg { width: 16px !important; height: 16px !important; }
  .sb-share-icons-row { gap: 8px !important; }
}

/* ── RELATED TOOLS SECTION MOBILE FIX ── */
.related-tools-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
@media (max-width: 640px) {
  .related-tools-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .related-tool-card { padding: 12px 14px !important; }
  .related-tool-name { white-space: normal !important; font-size: 13px !important; }
  .related-tool-desc { white-space: normal !important; }
  .related-tool-arrow { opacity: 1 !important; }
}

/* ── DARK MODE ── */
body.dark-mode .sb-card { background: #1F2937 !important; border-color: #374151 !important; }
body.dark-mode .sb-card-head { background: linear-gradient(135deg,#1f2937,#111827) !important; }
body.dark-mode .sb-sico-copy { background: #374151 !important; border-color: #4B5563 !important; color: #9CA3AF !important; }
body.dark-mode .sb-formula-box { background: linear-gradient(135deg,#2D1B69,#1E1B4B) !important; border-color: #4C1D95 !important; }
body.dark-mode .sb-formula-text { color: #C4B5FD !important; }

/* ── SHOW MORE BUTTON ── */
.show-more-wrap {
  text-align: center;
  margin-top: 28px;
  padding-bottom: 8px;
}
.show-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 32px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.2s !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  letter-spacing: 0.01em !important;
}
.show-more-btn:hover:not(:disabled) {
  opacity: 0.88 !important;
  transform: translateY(-2px) !important;
}
.show-more-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* =====================================================
   SINGLE BLOG POST — Content Section + Sidebar Fix
   ===================================================== */

/* ── Content wrapper: clean card around article body ── */
.single-post-content-section {
  background: var(--bg-white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-xl) !important;
  padding: 28px 32px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05) !important;
}

/* Typography inside the content section */
.single-post-content-section .post-article-body h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin: 28px 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--primary) !important;
}
.single-post-content-section .post-article-body h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin: 22px 0 10px !important;
}
.single-post-content-section .post-article-body p {
  font-size: 15.5px !important;
  line-height: 1.85 !important;
  color: var(--text-body) !important;
  margin-bottom: 16px !important;
}
.single-post-content-section .post-article-body ul,
.single-post-content-section .post-article-body ol {
  padding-left: 26px !important;
  margin-bottom: 16px !important;
}
.single-post-content-section .post-article-body li {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--text-body) !important;
  margin-bottom: 7px !important;
}
.single-post-content-section .post-article-body a {
  color: var(--primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.single-post-content-section .post-article-body blockquote {
  border-left: 4px solid var(--primary) !important;
  background: var(--bg-section) !important;
  padding: 14px 18px !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  margin: 20px 0 !important;
  font-style: italic !important;
  color: var(--text-muted) !important;
}
.single-post-content-section .post-article-body img {
  max-width: 100% !important;
  border-radius: var(--radius-lg) !important;
  margin: 12px 0 !important;
}
.single-post-content-section .post-article-body table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  font-size: 14px !important;
}
.single-post-content-section .post-article-body th {
  background: var(--bg-section) !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  border: 1px solid var(--border) !important;
  text-align: left !important;
}
.single-post-content-section .post-article-body td {
  padding: 9px 14px !important;
  border: 1px solid var(--border) !important;
  vertical-align: top !important;
}
.single-post-content-section .post-article-body tr:nth-child(even) td {
  background: var(--bg-section) !important;
}

/* ================================================================
   SINGLE BLOG POST — LAYOUT & FULL MOBILE RESPONSIVE
   .single-post-sidebar has NO blog-sidebar-right class so it is
   completely decoupled from the blog-page display:none rules.
================================================================ */

/* ── Desktop layout ── */
.single-post-layout {
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  gap: 28px !important;
  align-items: start !important;
}

/* ── Sidebar: sticky on desktop ── */
.single-post-sidebar {
  position: sticky !important;
  top: calc(var(--header-height, 70px) + 20px) !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

/* ── Featured image spacing ── */
.post-feat-img {
  margin-top: 20px !important;
  margin-bottom: 28px !important;
}

/* ── TABLET (≤ 1024px): sidebar below article, 2-col grid ── */
@media (max-width: 1024px) {
  .single-post-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .single-post-sidebar {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-self: auto !important;
    top: auto !important;
  }
  .single-post-sidebar .bs-box {
    margin-bottom: 0 !important;
  }
  .single-post-content-section {
    padding: 22px 20px !important;
  }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  .single-post-page {
    padding: 14px 0 40px !important;
  }
  .single-post-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .single-post-sidebar {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    top: auto !important;
    align-self: auto !important;
  }
  .single-post-content-section {
    padding: 18px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }
  .post-feat-img {
    height: 200px !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
    margin-bottom: 18px !important;
  }
  .post-article-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }
  .post-article-meta.post-meta {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .post-meta-item {
    font-size: 12px !important;
  }
  .single-post-content-section .post-article-body h2 {
    font-size: 17px !important;
    margin: 20px 0 10px !important;
  }
  .single-post-content-section .post-article-body h3 {
    font-size: 15px !important;
    margin: 16px 0 8px !important;
  }
  .single-post-content-section .post-article-body p {
    font-size: 14.5px !important;
    line-height: 1.8 !important;
    margin-bottom: 14px !important;
  }
  .single-post-content-section .post-article-body li {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  .single-post-content-section .post-article-body blockquote {
    padding: 12px 14px !important;
    margin: 14px 0 !important;
    font-size: 14px !important;
  }
  .single-post-content-section .post-article-body table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .single-post-content-section .post-article-body pre {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
  }
  .single-post-content-section .post-article-body img {
    max-width: 100% !important;
    height: auto !important;
  }
  .single-post-content-section .post-article-body iframe,
  .single-post-content-section .post-article-body video {
    max-width: 100% !important;
  }
  .single-post-author-bio {
    padding: 16px !important;
    gap: 12px !important;
    margin-top: 20px !important;
    border-radius: 10px !important;
  }
  .tags-cloud {
    gap: 6px !important;
    padding: 10px 0 !important;
  }
  .tag-pill {
    font-size: 11.5px !important;
    padding: 4px 9px !important;
  }
}

/* ── SMALL PHONE (≤ 480px) ── */
@media (max-width: 480px) {
  .single-post-content-section {
    padding: 14px 12px !important;
  }
  .post-article-title {
    font-size: 18px !important;
  }
  .post-feat-img {
    height: 170px !important;
  }
  .single-post-author-bio {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px !important;
  }
  .single-post-content-section .post-article-body th,
  .single-post-content-section .post-article-body td {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }
}


/* ================================================================
   FEEDBACK & COMMENTS SECTION — Single Tool Page
================================================================ */
.sjc-feedback-comment-wrapper {
    margin-top: 32px;
}

/* ── Feedback Box ── */
.sjc-feedback-box {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.sjc-feedback-left {
    flex: 0 0 auto;
    width: 50%;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 26px 28px;
    border-right: 1px solid #f0f0f0;
    box-sizing: border-box;
}
.sjc-feedback-right {
    flex: 1 1 auto;
    min-width: 0;
}
.sjc-feedback-thumb-img { flex-shrink: 0; }
.sjc-feedback-text { flex: 1; min-width: 0; }
.sjc-feedback-text h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px;
}
.sjc-feedback-text p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
}

/* Always-visible helpful count line */
.sjc-helpful-summary {
    font-size: 14px;
    color: #374151;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
}
.sjc-helpful-summary strong { color: #111827; margin-right: 4px; }

/* Thumb buttons row — like screenshot */
.sjc-thumb-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sjc-thumb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: all .2s;
    line-height: 1;
}
.sjc-thumb-btn:hover:not(:disabled) { border-color: #c8602a; color: #c8602a; background: #f5e8df; }
.sjc-thumb-count { font-size: 13px; font-weight: 700; }

/* Voted state — thumbs up gets orange fill */
.sjc-thumb-up.sjc-thumb-voted {
    background: #c8602a;
    border-color: #c8602a;
    color: #fff;
}
/* Voted state — thumbs down stays neutral grey */
.sjc-thumb-down.sjc-thumb-voted-no {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #6b7280;
}
.sjc-thumb-btn:disabled { cursor: default; }

/* Right: star rating + text feedback */
.sjc-feedback-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 28px;
}
.sjc-feedback-right label { font-size: 12px; font-weight: 600; color: #374151; }
.sjc-feedback-right textarea {
    width: 100%;
    flex: 1;
    min-height: 80px;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s;
}
.sjc-feedback-right textarea:focus { border-color: #c8602a; box-shadow: 0 0 0 3px rgba(200,96,42,.1); }
.sjc-submit-feedback {
    width: 100%;
    background: #c8602a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}
.sjc-submit-feedback:hover { background: #b0531f; }

/* ── Star Rating ── */
.sjc-star-rating-wrap { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; margin-top: 16px; }
/* Divider line between thumbs and star rating inside left partition */
.sjc-feedback-text .sjc-star-rating-wrap { border-top: 1px solid #f0f0f0; padding-top: 16px; }
/* Right partition: textarea fills remaining height, thank you state centers */
.sjc-fb-input-wrap { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.sjc-feedback-right { justify-content: center; }

.sjc-star-label { font-size: 12px; font-weight: 600; color: #374151; }
.sjc-stars { display: flex; gap: 2px; align-items: center; }
.sjc-star-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    line-height: 1;
    transition: transform .12s;
}
.sjc-star-btn:hover { transform: scale(1.2); }
.sjc-star-btn svg { display: block; }
.sjc-star-hint {
    font-size: 13px;
    font-weight: 700;
    color: #F59E0B;
    min-height: 20px;
    transition: color .2s;
}
.sjc-star-hint--selected { color: #16a34a; }

/* Average rating display */
.sjc-avg-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}
.sjc-avg-rating strong { font-size: 16px; font-weight: 800; color: #111827; }
.sjc-avg-stars-mini { display: flex; gap: 1px; align-items: center; }

/* ── Comments Section ── */
.sjc-comments-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 26px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sjc-comments-heading {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}

/* Input row */
.sjc-comment-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sjc-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sjc-avatar-letter {
    width: 38px; height: 38px; border-radius: 50%; background: #c8602a;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.sjc-comment-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
}
.sjc-comment-input:focus { border-color: #c8602a; box-shadow: 0 0 0 3px rgba(200,96,42,.1); }
.sjc-post-comment-btn {
    background: #c8602a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.sjc-post-comment-btn:hover { background: #b0531f; }

/* Comment item */
.sjc-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.sjc-comment-item:last-child { border-bottom: none; }
.sjc-comment-body { flex: 1; min-width: 0; }
.sjc-comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.sjc-comment-meta strong { font-size: 13px; font-weight: 600; color: #111827; }
.sjc-comment-date { font-size: 11px; color: #9ca3af; }
.sjc-comment-body p { font-size: 13px; color: #374151; margin: 0; line-height: 1.55; }

/* Actions */
.sjc-comment-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-top: 2px; }
.sjc-reply-btn {
    background: none; border: none;
    font-size: 12px; font-weight: 600; color: #c8602a;
    cursor: pointer; padding: 0;
}
.sjc-reply-btn:hover { color: #b0531f; text-decoration: underline; }
.sjc-like-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none;
    font-size: 12px; font-weight: 500; color: #6b7280;
    cursor: pointer; padding: 0;
    transition: color .2s;
}
.sjc-like-btn:hover, .sjc-like-btn.sjc-liked { color: #c8602a; }
.sjc-comment-pending {
    font-size: 13px; color: #16a34a;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 8px; padding: 9px 13px; margin-bottom: 10px;
}

/* View all */
.sjc-view-all-wrap { text-align: center; padding-top: 14px; }
.sjc-view-all-comments { font-size: 13px; font-weight: 600; color: #c8602a; text-decoration: none; }
.sjc-view-all-comments:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .sjc-feedback-box { flex-wrap: wrap; }
    .sjc-feedback-left { width: 100%; max-width: 100%; border-right: none; border-bottom: 1px solid #f0f0f0; padding: 20px; }
    .sjc-feedback-right { width: 100%; flex: 1 1 100%; padding: 20px; }
    .sjc-feedback-thankyou { min-height: 120px; padding: 24px 0; }

    .sjc-comments-wrapper { padding: 18px; }
    .sjc-post-comment-btn { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
    .sjc-feedback-left { gap: 12px; padding: 18px 16px; }
    .sjc-feedback-right { padding: 18px 16px; }
    .sjc-comment-input-row { flex-wrap: wrap; }
    .sjc-post-comment-btn { width: 100%; }
    .sjc-feedback-thankyou { min-height: 110px; }
    .sjc-fb-thanks-text strong { font-size: 15px; }
}

/* Guest comment fields */
.sjc-comment-guest-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.sjc-guest-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
}
.sjc-guest-input:focus { border-color: #c8602a; box-shadow: 0 0 0 3px rgba(200,96,42,.1); }
@media (max-width: 480px) {
    .sjc-comment-guest-fields { flex-direction: column; }
}

/* ── About the Tool heading ── */
.tool-content-heading {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* ── SHOW MORE BUTTON ── */
.show-more-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0 16px;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--color-primary, #c8602a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(200,96,42,.18);
}

.btn-show-more:hover:not(:disabled) {
    background: var(--color-primary-dark, #b0531f);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200,96,42,.28);
}

.btn-show-more:active:not(:disabled) {
    transform: translateY(0);
}

.btn-show-more:disabled,
.btn-show-more.loading {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-show-more.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sjc-spin 0.7s linear infinite;
    margin-left: 4px;
}

.show-more-count {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
}

@keyframes sjc-spin {
    to { transform: rotate(360deg); }
}

/* ── ALL CALCULATORS PAGE — SUBHEADING ── */
.page-all-calcs-header h1 {
  margin-bottom: 8px !important;
}
.page-all-calcs-header p {
  font-size: 15px !important;
  color: var(--text-muted) !important;
  max-width: 560px !important;
  margin-bottom: 0 !important;
}


/* ============================================================
   ABOUT US SECTION
   — alternates with bg-white (same as #popular-categories)
   — left: content, right: image/placeholder
   ============================================================ */
.about-us-section {
    padding: 50px 0;
    background: var(--bg-white);
}
.about-us-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Eyebrow label — same pill style as cat-count */
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.about-us-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 14px;
}
.about-us-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* Stats row — same visual weight as trust-features */
.about-stats {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.about-stat { display: flex; flex-direction: column; gap: 3px; }
.about-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.about-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Image side */
.about-img-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Placeholder when no image set — matches hero-visual illustration style */
.about-img-placeholder {
    aspect-ratio: 4/3;
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.about-img-icon { font-size: 80px; line-height: 1; }
.about-img-bubbles { position: absolute; inset: 0; pointer-events: none; }
.aib {
    position: absolute;
    background: var(--bg-white);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
    animation: aib-float 3s ease-in-out infinite;
}
.aib-1 { top: 12%; left: 8%;  animation-delay: 0s;   }
.aib-2 { top: 10%; right: 10%; animation-delay: 0.8s; }
.aib-3 { bottom: 14%; left: 10%; animation-delay: 1.6s; }
.aib-4 { bottom: 12%; right: 8%; animation-delay: 0.4s; }
@keyframes aib-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .about-us-inner { grid-template-columns: 1fr; gap: 32px; }
    .about-us-image { order: -1; }
    .about-stats { gap: 18px; }
    .about-us-title { font-size: 22px; }
}


/* ============================================================
   HOW TO USE SECTION
   — bg-section (same as #popular-calculators & #recently-added)
   ============================================================ */
.how-to-use-section {
    padding: 50px 0;
    background: var(--bg-section);
}
.section-header-center {
    text-align: center;
    margin-bottom: 36px;
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Step cards — same base as .calc-card */
.htu-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}

/* Arrow connector between cards */
.htu-steps::before,
.htu-steps::after {
    content: '→';
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    font-size: 22px;
    color: var(--border);
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
}
.htu-steps::before { left: calc(33.33% - 12px); }
.htu-steps::after  { left: calc(66.66% - 12px); }

.htu-step {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    transition: var(--transition);
    position: relative;
}
.htu-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Step number — large faded like a watermark */
.htu-step-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 36px;
    font-weight: 900;
    color: var(--border-light);
    line-height: 1;
    user-select: none;
}

/* Icon pill — same as .cat-icon sizing */
.htu-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.htu-icon-blue   { background: var(--primary-light); }
.htu-icon-green  { background: #ECFDF5; }
.htu-icon-orange { background: #FFF7ED; }

.htu-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.htu-step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .htu-steps { grid-template-columns: 1fr; }
    .htu-steps::before,
    .htu-steps::after { display: none; }
}


/* ============================================================
   FEATURES SECTION
   — bg-white (alternating with bg-section)
   — 3-col grid, same card style as calc-card
   ============================================================ */
.features-section {
    padding: 50px 0;
    background: var(--bg-white);
}
/* Override trust-features .features-grid which is 4-col */
.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}
.features-section .feature-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: var(--transition);
}
.features-section .feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
/* Icon — matches .cat-icon sizing */
.features-section .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 0 14px;
}
.feat-icon-blue   { background: var(--primary-light); }
.feat-icon-green  { background: #ECFDF5; }
.feat-icon-orange { background: #FFF7ED; }
.feat-icon-purple { background: #F5F3FF; }
.feat-icon-teal   { background: #F0FDFA; }
.feat-icon-pink   { background: #FDF4FF; }

.features-section .feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.features-section .feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .features-section .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .features-section .features-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   FAQs SECTION
   — bg-section (alternating)
   — accordion cards same border/radius as calc-card
   ============================================================ */
.faqs-section {
    padding: 50px 0;
    background: var(--bg-section);
}
.faqs-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.open {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    line-height: 1.5;
    font-family: inherit;
    transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
    width: 24px;
    text-align: center;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}
.faq-item.open .faq-answer {
    max-height: 260px;
    padding: 0 20px 18px;
}
.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}


/* ============================================================
   CTA SECTION
   — solid primary blue — same .btn-primary color family
   ============================================================ */
.cta-section {
    padding: 56px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
/* Subtle dot pattern — matches hero section feel */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.cta-inner {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
.cta-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 18px;
    display: block;
    animation: aib-float 3s ease-in-out infinite;
}
.cta-title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
}
.cta-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Primary CTA — white bg, blue text — inverse of .btn-primary */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.cta-btn-primary {
    background: #fff;
    color: var(--primary);
}
.cta-btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.cta-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
}
@media (max-width: 480px) {
    .cta-title { font-size: 22px; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

/* ---- Dark mode support for new sections ---- */
body.dark-mode .about-us-section,
body.dark-mode .features-section { background: var(--bg-white); }
body.dark-mode .how-to-use-section,
body.dark-mode .faqs-section { background: var(--bg-section); }
body.dark-mode .htu-step,
body.dark-mode .features-section .feature-card,
body.dark-mode .faq-item { background: #1F2937; border-color: var(--border); }
body.dark-mode .about-img-placeholder { background: #1F2937; }
body.dark-mode .aib { background: #111827; border-color: var(--border); }


/* ============================================================
   ABOUT US — ORBIT WHEEL REDESIGN
   ============================================================ */

/* Reset old about-us styles that conflict */
.about-us-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: center !important;
}

/* Feature list items on left */
.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}
.about-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.about-feat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1.5px solid var(--border);
}
.about-feat-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.4;
}
.about-feat-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Orbit Scene (right column) ── */
.about-us-orbit {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}
.about-us-content {
    order: 1;
}
.orbit-scene {
    position: relative;
    width: 340px;
    height: 340px;
    flex-shrink: 0;
}

/* Hub */
.orbit-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 10;
    box-shadow: 0 8px 28px rgba(200,96,42,0.35);
}
.orbit-hub-icon  { font-size: 26px; line-height: 1; }
.orbit-hub-label { font-size: 11px; font-weight: 700; color: #fff; line-height: 1.2; text-align: center; }
.orbit-hub-sub   { font-size: 9px;  color: rgba(255,255,255,0.75); text-align: center; }

/* Rings */
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px dashed var(--border);
}
.orbit-ring-inner {
    width: 200px; height: 200px;
    margin: -100px 0 0 -100px;
    animation: orbit-spin-cw 14s linear infinite;
}
.orbit-ring-outer {
    width: 320px; height: 320px;
    margin: -160px 0 0 -160px;
    animation: orbit-spin-ccw 22s linear infinite;
}

@keyframes orbit-spin-cw  { to { transform: rotate(360deg);  } }
@keyframes orbit-spin-ccw { to { transform: rotate(-360deg); } }

/* Each orbit item sits on the ring circumference */
.orbit-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Counter-rotate icon so it stays upright */
.orbit-ring-inner .oi-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: orbit-spin-ccw 14s linear infinite; /* counter to parent */
    flex-shrink: 0;
}
.orbit-ring-outer .oi-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: orbit-spin-cw 22s linear infinite; /* counter to parent */
    flex-shrink: 0;
}

/* Inner ring: 6 items evenly at r=100 */
.orbit-ring-inner .oi-1 { top: calc(50% - 100px); left: 50%; transform: translate(-50%,-50%); }
.orbit-ring-inner .oi-2 { top: calc(50% - 50px); left: calc(50% + 86px); transform: translate(-50%,-50%); }
.orbit-ring-inner .oi-3 { top: calc(50% + 50px); left: calc(50% + 86px); transform: translate(-50%,-50%); }
.orbit-ring-inner .oi-4 { top: calc(50% + 100px); left: 50%; transform: translate(-50%,-50%); }
.orbit-ring-inner .oi-5 { top: calc(50% + 50px); left: calc(50% - 86px); transform: translate(-50%,-50%); }
.orbit-ring-inner .oi-6 { top: calc(50% - 50px); left: calc(50% - 86px); transform: translate(-50%,-50%); }

/* Outer ring: 8 items evenly at r=160 */
.orbit-ring-outer .oo-1 { top: calc(50% - 160px); left: 50%;             transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-2 { top: calc(50% - 113px); left: calc(50% + 113px); transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-3 { top: 50%;               left: calc(50% + 160px); transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-4 { top: calc(50% + 113px); left: calc(50% + 113px); transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-5 { top: calc(50% + 160px); left: 50%;             transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-6 { top: calc(50% + 113px); left: calc(50% - 113px); transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-7 { top: 50%;               left: calc(50% - 160px); transform: translate(-50%,-50%); }
.orbit-ring-outer .oo-8 { top: calc(50% - 113px); left: calc(50% - 113px); transform: translate(-50%,-50%); }

@media (max-width: 900px) {
    .about-us-inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    /* Show orbit below content on mobile */
    .about-us-orbit {
        display: flex !important;
        justify-content: center;
        order: 2; /* comes after content */
    }
    .orbit-scene {
        width: 280px !important;
        height: 280px !important;
    }
    .orbit-hub {
        width: 82px !important;
        height: 82px !important;
    }
    .orbit-hub-icon  { font-size: 22px !important; }
    .orbit-hub-label { font-size: 10px !important; }
    .orbit-hub-sub   { font-size: 8px  !important; }
    .orbit-ring-inner {
        width: 164px !important;
        height: 164px !important;
        margin: -82px 0 0 -82px !important;
    }
    .orbit-ring-outer {
        width: 264px !important;
        height: 264px !important;
        margin: -132px 0 0 -132px !important;
    }
    /* Inner ring 6 items at r=82 */
    .orbit-ring-inner .oi-1 { top: calc(50% - 82px);  left: 50%;               }
    .orbit-ring-inner .oi-2 { top: calc(50% - 41px);  left: calc(50% + 71px);  }
    .orbit-ring-inner .oi-3 { top: calc(50% + 41px);  left: calc(50% + 71px);  }
    .orbit-ring-inner .oi-4 { top: calc(50% + 82px);  left: 50%;               }
    .orbit-ring-inner .oi-5 { top: calc(50% + 41px);  left: calc(50% - 71px);  }
    .orbit-ring-inner .oi-6 { top: calc(50% - 41px);  left: calc(50% - 71px);  }
    /* Outer ring 8 items at r=132 */
    .orbit-ring-outer .oo-1 { top: calc(50% - 132px); left: 50%;                }
    .orbit-ring-outer .oo-2 { top: calc(50% - 93px);  left: calc(50% + 93px);  }
    .orbit-ring-outer .oo-3 { top: 50%;               left: calc(50% + 132px); }
    .orbit-ring-outer .oo-4 { top: calc(50% + 93px);  left: calc(50% + 93px);  }
    .orbit-ring-outer .oo-5 { top: calc(50% + 132px); left: 50%;                }
    .orbit-ring-outer .oo-6 { top: calc(50% + 93px);  left: calc(50% - 93px);  }
    .orbit-ring-outer .oo-7 { top: 50%;               left: calc(50% - 132px); }
    .orbit-ring-outer .oo-8 { top: calc(50% - 93px);  left: calc(50% - 93px);  }
    .orbit-ring-inner .oi-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
    }
    .orbit-ring-outer .oi-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
}


/* ============================================================
   WHY CHOOSE US — NEW UNIQUE WCU CARDS
   ============================================================ */
.wcu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 4px;
}
.wcu-card {
    position: relative;
    border-radius: 16px;
    padding: 28px 22px 22px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1.5px solid transparent;
}
.wcu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

/* Colour variants — light bg + coloured top-left corner accent */
.wcu-card--blue   { background: #f5e8df; border-color: #f0c9a8; }
.wcu-card--green  { background: #ECFDF5; border-color: #A7F3D0; }
.wcu-card--orange { background: #FFF7ED; border-color: #FED7AA; }
.wcu-card--purple { background: #F5F3FF; border-color: #DDD6FE; }
.wcu-card--teal   { background: #F0FDFA; border-color: #99F6E4; }
.wcu-card--pink   { background: #FDF4FF; border-color: #F0ABFC; }

/* Large faded number watermark top-right */
.wcu-card-number {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.12;
    user-select: none;
    color: #000;
}

.wcu-card-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}
.wcu-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.wcu-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Bottom tag pill */
.wcu-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.wcu-card--blue   .wcu-card-tag { background: #f0c9a8; color: #7d3a16; }
.wcu-card--green  .wcu-card-tag { background: #A7F3D0; color: #065F46; }
.wcu-card--orange .wcu-card-tag { background: #FED7AA; color: #92400E; }
.wcu-card--purple .wcu-card-tag { background: #DDD6FE; color: #4C1D95; }
.wcu-card--teal   .wcu-card-tag { background: #99F6E4; color: #134E4A; }
.wcu-card--pink   .wcu-card-tag { background: #F0ABFC; color: #701A75; }

@media (max-width: 900px) {
    .wcu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .wcu-grid { grid-template-columns: 1fr; }
}

/* dark mode */
body.dark-mode .wcu-card--blue   { background: #3d1a0a; border-color: #7d3a16; }
body.dark-mode .wcu-card--green  { background: #064e3b; border-color: #065f46; }
body.dark-mode .wcu-card--orange { background: #431407; border-color: #92400e; }
body.dark-mode .wcu-card--purple { background: #2e1065; border-color: #4c1d95; }
body.dark-mode .wcu-card--teal   { background: #042f2e; border-color: #134e4a; }
body.dark-mode .wcu-card--pink   { background: #4a044e; border-color: #701a75; }
body.dark-mode .wcu-card-number  { color: #fff; }


/* ============================================================
   CTA — UNIQUE REDESIGN with floating badges
   ============================================================ */

/* Remove old emoji */
.cta-emoji { display: none !important; }

.cta-inner {
    position: relative !important;
    padding: 16px 0 !important;
    max-width: 680px !important;
}

/* Floating stat badges */
.cta-badge {
    position: absolute;
    top: 0;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.30);
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(6px);
    animation: aib-float 4s ease-in-out infinite;
}
.cta-badge-left  { left: -100px; animation-delay: 0s;   }
.cta-badge-right { right: -100px; animation-delay: 1.5s; }
.cta-badge-num {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.cta-badge-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Central icon ring */
.cta-icon-ring {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 18px;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: aib-float 3s ease-in-out infinite;
}

.cta-body { position: relative; z-index: 2; }

/* Trust row below buttons */
.cta-trust-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

@media (max-width: 860px) {
    .cta-badge { display: none; }
}
@media (max-width: 480px) {
    .cta-trust-row { gap: 10px; font-size: 12px; }
}

/* =====================================================
   ALL CALCULATORS — SIDEBAR: NO SCROLLBAR
   Prevent any vertical scrollbar on the category sidebar
   ===================================================== */
.calcs-sidebar {
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
}

/* =====================================================
   ALL CALCULATORS — TOOL CARD: SLIDER OVERLAP FIX
   Prevent BMI calculator plugin's range slider from
   appearing inside or overlapping the tool-card on
   the All Calculators listing page (/all-calculators/)
   ===================================================== */

/* Hide any range inputs inside tool listing cards */
.page-all-calcs .tool-card input[type="range"],
.page-all-calcs .tool-card input[type="range"] + *,
#toolsGrid input[type="range"],
#toolsGrid input[type="range"] + * {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  clip: rect(0,0,0,0) !important;
}

/* Ensure tool cards clip internal content cleanly */
.page-all-calcs .tool-card,
#toolsGrid .tool-card {
  overflow: hidden !important;
  position: relative !important;
}

/* ── Feedback Thank You State ── */
.sjc-feedback-thankyou {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 140px;
    padding: 20px 0;
    text-align: center;
}
.sjc-fb-thanks-icon { line-height: 0; }
.sjc-fb-thanks-icon svg { display: block; }
.sjc-fb-thanks-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.sjc-fb-thanks-text strong {
    font-size: 17px;
    font-weight: 700;
    color: #065F46;
    line-height: 1.2;
}
.sjc-fb-thanks-text span {
    font-size: 13px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.5;
}


/* ============================================================
   STICKY SIDEBAR — ROOT FIX (v19 + )
   Problem:  html { overflow-x: hidden } aur body { overflow-x: hidden }
             CSS position:sticky ke ancestors mein overflow koi bhi
             value (hidden/scroll/auto) ho to sticky kaam nahi karta.
   Solution: overflow-x: clip — horizontal scroll band karta hai
             lekin sticky positioning ko NAHI tordta.
   ============================================================ */

/* Failsafe: agar koi jagah overflow reset na ho to yahan se override */
@media (min-width: 1025px) {
  .single-tool-page,
  .single-tool-layout,
  .single-tool-main,
  .container {
    overflow: visible !important;
    overflow-x: visible !important;
  }
  .tool-sidebar {
    position: sticky !important;
    top: calc(var(--header-height, 64px) + 16px) !important;
    align-self: start !important;
    overflow: visible !important;
    max-height: none !important;
  }
}


/* ============================================================
   SINGLE POST — OVERFLOW & MOBILE WIDTH FIX (v9)
   
   Root cause: Content images with HTML width/height attributes,
   long words/URLs, and missing height:auto cause the page to
   be wider than the viewport on mobile — content clips off screen.
   ============================================================ */

/* ── Force ALL content images to be responsive ── */
.post-article-body img,
.single-post-content-section img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ── Force featured image to never overflow ── */
.post-feat-img {
  overflow: hidden !important;
  max-width: 100% !important;
}
.post-feat-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ── Prevent long words/URLs from breaking layout ── */
.post-article-title,
.post-article-body,
.single-post-content-section {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* ── Article and content section: never wider than container ── */
.post-article,
.single-post-content-section,
.single-post-layout {
  max-width: 100% !important;
  min-width: 0 !important;
}

/* ── Pre/code: scroll, never expand page ── */
.post-article-body pre,
.post-article-body code {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  white-space: pre !important;
  word-break: normal !important;
  word-wrap: normal !important;
}

/* ── Tables: scroll horizontally, never expand page ── */
.post-article-body table {
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
}

/* ── Iframes/embeds: constrained ── */
.post-article-body iframe,
.post-article-body embed,
.post-article-body video,
.post-article-body object {
  max-width: 100% !important;
}

/* ── Global single page overflow guard ── */
/* overflow-x: clip — horizontal scroll rokta hai lekin position:sticky nahi torta.
   overflow-x: hidden scroll container bana deta tha jis se sticky kaam nahi karta tha. */
.single-post-page {
  max-width: 100vw !important;
  overflow-x: clip !important;
}

@media (max-width: 768px) {
  /* Container tight on mobile */
  .single-post-page .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Tighten content card */
  .single-post-content-section {
    padding: 16px 14px !important;
  }

  /* Title responsive font */
  .post-article-title {
    font-size: 19px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  /* Force images inside body to be fully responsive */
  .post-article-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  /* H2 headings inside body */
  .post-article-body h2,
  .single-post-content-section .post-article-body h2 {
    font-size: 16px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Body text */
  .post-article-body p,
  .single-post-content-section .post-article-body p {
    font-size: 14px !important;
    line-height: 1.75 !important;
    word-break: break-word !important;
  }
}
