/* ================================================================
   Blog content polish — targeted overrides for legacy DB-stored posts.
   Loaded after single.css via @push('styles') in blog/single.blade.php,
   so these rules win on specificity ties without !important where possible.

   Scoped to `.blg-wrapper-pst-cnt` (the blog article wrapper) so nothing
   here leaks into the header, sidebar, or unrelated pages.
   ================================================================ */

.blg-wrapper-pst-cnt {
  /* Guard: some legacy posts leave text-color unset in nested blocks,
     inheriting white on white. Force a readable default. */
  color: #37485c;
}
.blg-wrapper-pst-cnt p,
.blg-wrapper-pst-cnt li,
.blg-wrapper-pst-cnt td,
.blg-wrapper-pst-cnt th { color: inherit; }

/* --- 1. Pros / Cons — full rebuild.
       Migrated markup: .pros-box > two col divs > <table.prosandcons> per column,
       with <th><h6>Pros/Cons</h6></th> header row and <td><p class="pros|cons">…</p></td>
       body rows. Article CSS collapses .col-* to 100% width, so we lay out .pros-box
       itself as a two-column grid to keep Pros/Cons side-by-side on desktop.

       Reset any per-td background/rounding and any position:absolute badge; do the
       whole thing with padded <p> + `background` + inline pseudo-element instead
       (immune to table/overflow cropping). --- */
.blg-wrapper-pst-cnt .pros-box,
.blg-wrapper-pst-cnt .cons-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.6em 0;
}
.blg-wrapper-pst-cnt .pros-box > *,
.blg-wrapper-pst-cnt .cons-box > * {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (max-width: 720px) {
  .blg-wrapper-pst-cnt .pros-box,
  .blg-wrapper-pst-cnt .cons-box { grid-template-columns: 1fr; }
}

.blg-wrapper-pst-cnt .prosandcons {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none !important;
}
.blg-wrapper-pst-cnt .prosandcons td,
.blg-wrapper-pst-cnt .prosandcons th {
  padding: 10px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f0f3f6 !important;
  background: #fff !important;
  border-radius: 0 !important;
  vertical-align: middle !important;
  text-align: left !important;
}
.blg-wrapper-pst-cnt .prosandcons tr:last-child td,
.blg-wrapper-pst-cnt .prosandcons tr:last-child th { border-bottom: none !important; }

/* Reset the p.pros / p.cons text — no more negative-margin badge that gets clipped. */
.blg-wrapper-pst-cnt p.pros,
.blg-wrapper-pst-cnt p.cons,
.blg-wrapper-pst-cnt .pros-box p,
.blg-wrapper-pst-cnt .cons-box p {
  color: #1c2b45 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0 0 0 24px !important;
  position: relative !important;
  font-weight: 500 !important;
}
.blg-wrapper-pst-cnt p.pros::before,
.blg-wrapper-pst-cnt p.cons::before {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-family: system-ui, sans-serif !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.blg-wrapper-pst-cnt p.pros::before { content: "✓" !important; background: #6ea836 !important; }
.blg-wrapper-pst-cnt p.cons::before { content: "✕" !important; background: #d64545 !important; }

/* --- 2. Rating design (ubuntu #clcoky6, developers #soft-7) --- */
/* Any inline-flex heading + capterra/rating text was rendering as raw text;
   give it a proper pill treatment consistent with the rest of the page. */
.blg-wrapper-pst-cnt .d-inline-flex.align-items-center h3 + p,
.blg-wrapper-pst-cnt .d-inline-flex.align-items-center h3 + p.m-0,
.blg-wrapper-pst-cnt .text-nowrap.m-0 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fff8dc;
  border: 1px solid #f0d97a;
  border-radius: 999px;
  font-weight: 600;
  color: #6a4b00;
  font-size: 14px;
  margin-left: 8px !important;
}
.blg-wrapper-pst-cnt .d-inline-flex.align-items-center h3 + p::before,
.blg-wrapper-pst-cnt .text-nowrap.m-0::before {
  content: "★";
  color: #f5b301;
  font-size: 15px;
  line-height: 1;
}
.blg-wrapper-pst-cnt .d-inline-flex.align-items-center h3 {
  font-size: 17px; margin: 0; color: #1c2b45; font-weight: 600;
}

/* --- 3. FAQ alignment + bullets inside FAQ card-body (attendance, workload) --- */
.blg-wrapper-pst-cnt .faq .card-body { padding: 14px 22px 18px; }
.blg-wrapper-pst-cnt .faq .card-body > *:first-child { margin-top: 0; }
.blg-wrapper-pst-cnt .faq .card-body ol,
.blg-wrapper-pst-cnt .faq .card-body ul {
  margin: 8px 0 8px 0;
  padding-left: 22px;
}
.blg-wrapper-pst-cnt .faq .card-body ol li,
.blg-wrapper-pst-cnt .faq .card-body ul li {
  margin-bottom: 6px;
  line-height: 1.6;
  padding-left: 4px;
}
.blg-wrapper-pst-cnt .faq .card-body ol { list-style: decimal; }
.blg-wrapper-pst-cnt .faq .card-body ul { list-style: disc; }
.blg-wrapper-pst-cnt .faq .card-body ol.m-0,
.blg-wrapper-pst-cnt .faq .card-body ul.m-0 { margin: 8px 0 8px 0 !important; }

/* --- 4. Bullet number size (work-life-balance) — some posts use styled
       counter badges but at inconsistent sizes. Cap them. --- */
.blg-wrapper-pst-cnt ol li::marker { font-size: 1em; font-weight: 500; color: #1c2b45; }
.blg-wrapper-pst-cnt ol li::before { max-width: 32px; max-height: 32px; }

/* --- 5. Enlarged symbol (time-cost) — remedy-symbol-holder images blowing
       up because the global article img rule (max-width:100%) fights their
       inline sizing. Force them small regardless. --- */
.blg-wrapper-pst-cnt .remedy-symbol-holder img,
.blg-wrapper-pst-cnt img.remedy-symbol,
.blg-wrapper-pst-cnt .symbol-holder img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  margin: 0 6px 0 0 !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* --- 6. Work-life-balance "content not seen" — likely white text on light bg
       from an inline style. Force minimum contrast on all article paragraphs. --- */
.blg-wrapper-pst-cnt p[style*="color: #fff"],
.blg-wrapper-pst-cnt p[style*="color:#fff"],
.blg-wrapper-pst-cnt p[style*="color: white"],
.blg-wrapper-pst-cnt span[style*="color: #fff"],
.blg-wrapper-pst-cnt span[style*="color:#fff"] {
  color: #1c2b45 !important;
}

/* --- 7. Guard against ordered-list numbers rendering huge from
       inherited h1/h2 sizing on `list-style-position: inside`. --- */
.blg-wrapper-pst-cnt ol { list-style-position: outside; }

/* --- 8. Navy-on-navy table headers.
       Legacy posts wrap header text in <p class="text-white"><b>…</b></p>,
       but the theme's inline `.new-blog-template .col-md-9 b { color: #0f2340 }`
       overrides Bootstrap's .text-white on the <b>, painting the text
       navy against a navy header background — making it invisible.

       Fix: any <b> / <strong> inside .text-white (or inside a table header
       row) inherits the parent color instead of the theme override. --- */
.blg-wrapper-pst-cnt .text-white b,
.blg-wrapper-pst-cnt .text-white strong,
.blg-wrapper-pst-cnt th b,
.blg-wrapper-pst-cnt th strong,
.blg-wrapper-pst-cnt thead b,
.blg-wrapper-pst-cnt thead strong {
  color: inherit !important;
}
/* Belt-and-braces: force .text-white to actually be white even when a
   more specific selector tried to override it. */
.blg-wrapper-pst-cnt .text-white,
.blg-wrapper-pst-cnt .text-white * { color: #fff !important; }

/* --- 9. `.parant / .inner-child` (developers listicle) — the `<div class="inner-child">`
       holds a lonely decorative FA icon under the heading + copy. Hide it entirely and
       give the feature card a soft-bordered look so each item reads as a distinct block. */
.blg-wrapper-pst-cnt .parant {
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 14px;
  box-shadow: 0 2px 8px rgba(15,35,64,.04);
}
.blg-wrapper-pst-cnt .parant > h4 {
  margin: 0 0 .4em !important;
  font-size: 1.1rem !important;
}
.blg-wrapper-pst-cnt .parant > p { margin-bottom: 0; }
.blg-wrapper-pst-cnt .parant .inner-child { display: none !important; }

/* --- 10. `.prosandcons` header row (PROS / CONS pill) — color-coded per column,
       left-aligned, sitting inside the same rounded table as the body rows.
       Pros-box's first .prosandcons is Pros (green tint), second is Cons (red tint). */
.blg-wrapper-pst-cnt .prosandcons th {
  padding: 12px 14px !important;
  border-bottom: 1px solid #e5eaf1 !important;
}
.blg-wrapper-pst-cnt .prosandcons th h6 {
  margin: 0 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}
.blg-wrapper-pst-cnt .prosandcons th h6::before {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  font-family: system-ui, sans-serif;
  line-height: 1;
}
.blg-wrapper-pst-cnt .pros-box > div:first-child .prosandcons th,
.blg-wrapper-pst-cnt .prosandcons:first-of-type th { background: #f4faec !important; color: #4a6a05 !important; }
.blg-wrapper-pst-cnt .pros-box > div:first-child .prosandcons th h6::before,
.blg-wrapper-pst-cnt .prosandcons:first-of-type th h6::before { content: "✓"; background: #6ea836; }
.blg-wrapper-pst-cnt .pros-box > div:last-child .prosandcons th,
.blg-wrapper-pst-cnt .prosandcons:last-of-type th { background: #fdf3f3 !important; color: #7a2020 !important; }
.blg-wrapper-pst-cnt .pros-box > div:last-child .prosandcons th h6::before,
.blg-wrapper-pst-cnt .prosandcons:last-of-type th h6::before { content: "✕"; background: #d64545; }

/* --- 11a. `.cta-btn-p` — inline mid-article CTA under each software profile
       ("Manage your time…" + "Start your free trial now!"). Ships as bare text
       + link; turn it into a clean callout card with a proper button. */
.blg-wrapper-pst-cnt .cta-btn-p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #f4faec;
  border: 1px solid #dbeaa9;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 1.6em 0;
  text-align: center;
}
.blg-wrapper-pst-cnt .cta-btn-p h3,
.blg-wrapper-pst-cnt .cta-btn-p h4,
.blg-wrapper-pst-cnt .cta-btn-p h5 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #0f2340 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  border: none !important;
}
.blg-wrapper-pst-cnt .cta-btn-p a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #81b504 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  transition: background .2s ease;
}
.blg-wrapper-pst-cnt .cta-btn-p a::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
  transition: transform .2s ease;
}
.blg-wrapper-pst-cnt .cta-btn-p a:hover {
  background: #679103 !important;
  color: #fff !important;
}
.blg-wrapper-pst-cnt .cta-btn-p a:hover::after { transform: translateX(3px); }

/* --- 12. `.features` block (developers "How to Choose" section) — bare
       <div><img><h4><p></div> per feature. The image blows up to full column width;
       constrain it to a small illustration and lay out the block as a card row. */
.blg-wrapper-pst-cnt .features > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 4px;
  align-items: start;
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 14px;
  box-shadow: 0 2px 8px rgba(15,35,64,.04);
}
.blg-wrapper-pst-cnt .features > div > img {
  grid-column: 1;
  grid-row: 1 / span 2;   /* image spans both rows so h4 + p stack in column 2 */
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  align-self: start;
}
.blg-wrapper-pst-cnt .features > div > h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 .4em !important;
  font-size: 1.1rem !important;
  align-self: start;
}
.blg-wrapper-pst-cnt .features > div > p {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  min-width: 0;
}
@media (max-width: 575px) {
  .blg-wrapper-pst-cnt .features > div { grid-template-columns: 72px 1fr; column-gap: 14px; padding: 14px 16px; }
  .blg-wrapper-pst-cnt .features > div > img { width: 72px !important; height: 72px !important; }
}
