/* =====================================================================
   assets/css/blog-content.css  (loaded only on blog post pages)
   ---------------------------------------------------------------------
   1. Blog content typography: readable text, sane heading sizes, lists
   2. WordPress editor support: the classes the block editor writes
      (alignment, font sizes, colours, images, quotes, tables ...) so what
      the editor shows is what the live post shows
   3. In-content CTA ([helixta_cta] shortcode from WordPress)
   4. Sticky "Book A Free Demo!" sidebar (pinned by blog-details.js)

   Everything is scoped to .hx-blog-content (the post body) or the blog
   sidebar, so the rest of the site is not affected.
   The long ".blog-details__wrapper .blog-details .hx-blog-content" prefix
   is on purpose: it outranks the older generic blog rules in style.css.
   ===================================================================== */

.hx-blog-content {
  --hx-text: #d3d6db;          /* body text on #040a10 = ~13:1 contrast */
  --hx-heading: #ffffff;
  --hx-muted: #aeb3ba;
  --hx-accent: #ff7a45;        /* links / list markers: readable orange */
  --hx-border: rgba(255, 255, 255, 0.14);
  --hx-surface: #11181f;

  /* WordPress default font-size presets (same values the editor uses) */
  --wp--preset--font-size--small: 13px;
  --wp--preset--font-size--medium: 20px;
  --wp--preset--font-size--large: 36px;
  --wp--preset--font-size--x-large: 42px;

  color: var(--hx-text);
  font-family: "Urbanist", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

/* ---------- 1. Text ---------- */
.blog-details__wrapper .blog-details .hx-blog-content p {
  color: var(--hx-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  margin: 0 0 1.25em;
}
.blog-details__wrapper .blog-details .hx-blog-content strong,
.blog-details__wrapper .blog-details .hx-blog-content b {
  color: #ffffff;
  font-weight: 700;
}
.blog-details__wrapper .blog-details .hx-blog-content a:not(.hx-cta__btn):not(.wp-block-button__link) {
  color: var(--hx-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-details__wrapper .blog-details .hx-blog-content a:not(.hx-cta__btn):not(.wp-block-button__link):hover {
  color: #ffffff;
}

/* Headings: consistent, readable sizes. Kept on :where() so the editor's
   own font-size choices (classes / inline sizes below) always win. */
.blog-details__wrapper .blog-details .hx-blog-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--hx-heading);
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.6em 0 0.6em;
}
.blog-details__wrapper .blog-details .hx-blog-content :where(h1) { font-size: 34px; }
.blog-details__wrapper .blog-details .hx-blog-content :where(h2) { font-size: 30px; }
.blog-details__wrapper .blog-details .hx-blog-content :where(h3) { font-size: 24px; }
.blog-details__wrapper .blog-details .hx-blog-content :where(h4) { font-size: 20px; }
.blog-details__wrapper .blog-details .hx-blog-content :where(h5) { font-size: 18px; }
.blog-details__wrapper .blog-details .hx-blog-content :where(h6) { font-size: 16px; }
.blog-details__wrapper .blog-details .hx-blog-content > :where(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
@media (max-width: 767.98px) {
  .hx-blog-content { font-size: 16px; }
  .blog-details__wrapper .blog-details .hx-blog-content p { font-size: 16px; }
  .blog-details__wrapper .blog-details .hx-blog-content :where(h1) { font-size: 28px; }
  .blog-details__wrapper .blog-details .hx-blog-content :where(h2) { font-size: 25px; }
  .blog-details__wrapper .blog-details .hx-blog-content :where(h3) { font-size: 21px; }
  .blog-details__wrapper .blog-details .hx-blog-content :where(h4) { font-size: 18px; }
}
/* (these rules also replace the old 40px / 30px editor-heading sizes in style.css) */

/* ---------- Lists (bullets and numbers) ----------
   style.css removes list markers site-wide (li { list-style: none }),
   which is why editor bullets / numbers did not show. Bring them back
   inside the post body only. */
.blog-details__wrapper .blog-details .hx-blog-content ul,
.blog-details__wrapper .blog-details .hx-blog-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.6em;
}
.blog-details__wrapper .blog-details .hx-blog-content ul { list-style: disc outside; }
.blog-details__wrapper .blog-details .hx-blog-content ol { list-style: decimal outside; }
.blog-details__wrapper .blog-details .hx-blog-content ul ul { list-style-type: circle; }
.blog-details__wrapper .blog-details .hx-blog-content ul ul ul { list-style-type: square; }
.blog-details__wrapper .blog-details .hx-blog-content ol ol { list-style-type: lower-alpha; }
.blog-details__wrapper .blog-details .hx-blog-content ol ol ol { list-style-type: lower-roman; }
.blog-details__wrapper .blog-details .hx-blog-content ol[type="a"] { list-style-type: lower-alpha; }
.blog-details__wrapper .blog-details .hx-blog-content ol[type="A"] { list-style-type: upper-alpha; }
.blog-details__wrapper .blog-details .hx-blog-content ol[type="i"] { list-style-type: lower-roman; }
.blog-details__wrapper .blog-details .hx-blog-content ol[type="I"] { list-style-type: upper-roman; }
.blog-details__wrapper .blog-details .hx-blog-content li {
  list-style: inherit;
  display: list-item;
  color: var(--hx-text);
  font-size: inherit;
  line-height: 1.7;
  margin: 0 0 0.45em;
  padding: 0;
}
.blog-details__wrapper .blog-details .hx-blog-content li::marker {
  color: var(--hx-accent);
  font-weight: 700;
}
.blog-details__wrapper .blog-details .hx-blog-content li > ul,
.blog-details__wrapper .blog-details .hx-blog-content li > ol { margin: 0.45em 0 0.2em; }
.blog-details__wrapper .blog-details .hx-blog-content li > p { margin-bottom: 0.4em; }
/* style.css draws its own dots for ul.wp-block-list: use the real markers */
.blog-details__wrapper .blog-details .hx-blog-content ul.wp-block-list li::before { content: none; display: none; }

/* ---------- 2. WordPress editor classes ---------- */

/* Text alignment (block editor classes + classic editor alignment) */
.blog-details__wrapper .blog-details .hx-blog-content .has-text-align-left { text-align: left; }
.blog-details__wrapper .blog-details .hx-blog-content .has-text-align-center { text-align: center; }
.blog-details__wrapper .blog-details .hx-blog-content .has-text-align-right { text-align: right; }
.blog-details__wrapper .blog-details .hx-blog-content .has-text-align-justify { text-align: justify; }
.blog-details__wrapper .blog-details .hx-blog-content .aligncenter { text-align: center; }

/* Font sizes picked in the editor (presets). Inline sizes ("Custom")
   already win because they are written on the element itself. */
.hx-blog-content .has-small-font-size { font-size: var(--wp--preset--font-size--small) !important; }
.hx-blog-content .has-medium-font-size { font-size: var(--wp--preset--font-size--medium) !important; }
.hx-blog-content .has-large-font-size { font-size: var(--wp--preset--font-size--large) !important; line-height: 1.3; }
.hx-blog-content .has-x-large-font-size { font-size: var(--wp--preset--font-size--x-large) !important; line-height: 1.25; }
/* older WordPress preset names */
.hx-blog-content .has-normal-font-size,
.hx-blog-content .has-regular-font-size { font-size: 16px !important; }
.hx-blog-content .has-huge-font-size { font-size: 42px !important; line-height: 1.25; }
@media (max-width: 767.98px) {
  .hx-blog-content .has-large-font-size { font-size: 28px !important; }
  .hx-blog-content .has-x-large-font-size,
  .hx-blog-content .has-huge-font-size { font-size: 32px !important; }
}

/* Colours picked in the editor (WordPress default palette) */
.hx-blog-content .has-black-color { color: #000000 !important; }
.hx-blog-content .has-cyan-bluish-gray-color { color: #abb8c3 !important; }
.hx-blog-content .has-white-color { color: #ffffff !important; }
.hx-blog-content .has-pale-pink-color { color: #f78da7 !important; }
.hx-blog-content .has-vivid-red-color { color: #cf2e2e !important; }
.hx-blog-content .has-luminous-vivid-orange-color { color: #ff6900 !important; }
.hx-blog-content .has-luminous-vivid-amber-color { color: #fcb900 !important; }
.hx-blog-content .has-light-green-cyan-color { color: #7bdcb5 !important; }
.hx-blog-content .has-vivid-green-cyan-color { color: #00d084 !important; }
.hx-blog-content .has-pale-cyan-blue-color { color: #8ed1fc !important; }
.hx-blog-content .has-vivid-cyan-blue-color { color: #0693e3 !important; }
.hx-blog-content .has-vivid-purple-color { color: #9b51e0 !important; }
.hx-blog-content .has-black-background-color { background-color: #000000 !important; }
.hx-blog-content .has-cyan-bluish-gray-background-color { background-color: #abb8c3 !important; }
.hx-blog-content .has-white-background-color { background-color: #ffffff !important; }
.hx-blog-content .has-pale-pink-background-color { background-color: #f78da7 !important; }
.hx-blog-content .has-vivid-red-background-color { background-color: #cf2e2e !important; }
.hx-blog-content .has-luminous-vivid-orange-background-color { background-color: #ff6900 !important; }
.hx-blog-content .has-luminous-vivid-amber-background-color { background-color: #fcb900 !important; }
.hx-blog-content .has-light-green-cyan-background-color { background-color: #7bdcb5 !important; }
.hx-blog-content .has-vivid-green-cyan-background-color { background-color: #00d084 !important; }
.hx-blog-content .has-pale-cyan-blue-background-color { background-color: #8ed1fc !important; }
.hx-blog-content .has-vivid-cyan-blue-background-color { background-color: #0693e3 !important; }
.hx-blog-content .has-vivid-purple-background-color { background-color: #9b51e0 !important; }
.hx-blog-content .has-background { padding: 1.1em 1.4em; border-radius: 12px; }
/* inside a coloured box, text and bold text follow the box's text colour */
.blog-details__wrapper .blog-details .hx-blog-content .has-text-color strong,
.blog-details__wrapper .blog-details .hx-blog-content .has-background strong { color: inherit; }
/* light box colour without a chosen text colour: use dark text so it stays readable */
.blog-details__wrapper .blog-details .hx-blog-content :is(.has-white-background-color, .has-cyan-bluish-gray-background-color, .has-pale-pink-background-color, .has-luminous-vivid-amber-background-color, .has-light-green-cyan-background-color, .has-pale-cyan-blue-background-color):not(.has-text-color) { color: #111111; }

/* Contrast guard: text pasted from Google Docs / Word often carries
   color:#000000 (black). On this dark page that is unreadable, so black
   text that is not inside a coloured box falls back to the normal text
   colour. (Docs adds "background-color:transparent", which is no box.) */
.hx-blog-content .has-black-color:not(.has-background),
.hx-blog-content :not(.has-background) > :is(
  [style*="color:#000000"], [style*="color: #000000"],
  [style*="color:#000;"], [style*="color: #000;"], [style$="color:#000"], [style$="color: #000"],
  [style*="color:rgb(0,0,0)"], [style*="color: rgb(0, 0, 0)"],
  [style*="color:black"], [style*="color: black"]
):not([style*="background-color:#"]):not([style*="background-color: #"]):not([style*="background-color:rgb"]):not([style*="background-color: rgb"]):not(.has-background) {
  color: inherit !important;
}
/* Google Docs paste: white highlight behind light text */
.hx-blog-content span[style*="background-color: #ffffff"],
.hx-blog-content span[style*="background-color:#ffffff"],
.hx-blog-content span[style*="background-color: rgb(255, 255, 255)"],
.hx-blog-content span[style*="background-color: transparent"] {
  background-color: transparent !important;
}

/* Images / media */
.hx-blog-content img { max-width: 100%; height: auto; }
.hx-blog-content figure { margin: 0 0 1.5em; }
.hx-blog-content .wp-block-image img { border-radius: 14px; }
.hx-blog-content .wp-block-image.aligncenter,
.hx-blog-content .wp-block-image .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.hx-blog-content .wp-block-image .aligncenter > img,
.hx-blog-content img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.hx-blog-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.hx-blog-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.hx-blog-content .alignwide,
.hx-blog-content .alignfull { width: 100%; }
.hx-blog-content figcaption,
.hx-blog-content .wp-element-caption {
  color: var(--hx-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 0.6em;
  text-align: center;
}
.hx-blog-content::after { content: ""; display: block; clear: both; }
@media (max-width: 575.98px) {
  .hx-blog-content .alignleft,
  .hx-blog-content .alignright { float: none; margin: 0 0 1em; }
}
.hx-blog-content .wp-block-embed__wrapper { position: relative; }
.hx-blog-content .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.hx-blog-content .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 14px; }
.hx-blog-content iframe { max-width: 100%; }

/* Quotes */
.blog-details__wrapper .blog-details .hx-blog-content blockquote,
.blog-details__wrapper .blog-details .hx-blog-content .wp-block-quote,
.blog-details__wrapper .blog-details .hx-blog-content .wp-block-pullquote {
  margin: 1.6em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--primary-color, #dc4d1b);
  background: var(--hx-surface);
  border-radius: 0 12px 12px 0;
  color: #ffffff;
}
.blog-details__wrapper .blog-details .hx-blog-content blockquote p { color: #ffffff; font-size: 18px; margin-bottom: 0.5em; }
.blog-details__wrapper .blog-details .hx-blog-content blockquote cite { color: var(--hx-muted); font-size: 14px; font-style: normal; }

/* Separator, code, tables, buttons, columns */
.hx-blog-content hr,
.hx-blog-content .wp-block-separator { border: 0; border-top: 1px solid var(--hx-border); margin: 2em 0; opacity: 1; }
.hx-blog-content code { background: var(--hx-surface); color: #ffd2bf; padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
.hx-blog-content pre { background: var(--hx-surface); color: var(--hx-text); padding: 1em 1.2em; border-radius: 12px; overflow-x: auto; }
.hx-blog-content pre code { background: none; padding: 0; color: inherit; }

.hx-blog-content .wp-block-table { margin: 0 0 1.5em; overflow-x: auto; }
.hx-blog-content .wp-block-table table,
.hx-blog-content > table { width: 100%; border-collapse: collapse; color: #ffffff; background: #212529; }
.hx-blog-content .wp-block-table td,
.hx-blog-content .wp-block-table th,
.hx-blog-content > table td,
.hx-blog-content > table th { border: 1px solid #495057; padding: 0.75rem; vertical-align: top; color: #ffffff; font-size: 16px; line-height: 1.55; }
.hx-blog-content .wp-block-table th,
.hx-blog-content .wp-block-table thead td { background: #333a40; font-weight: 700; }

.hx-blog-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.5em; }
.hx-blog-content .wp-block-buttons.is-content-justification-center { justify-content: center; }
.hx-blog-content .wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.hx-blog-content .wp-block-button__link {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 14px;
  background: linear-gradient(273deg, #dc4d1b 0%, #ce5c33 52%, #b7390d 100%);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
.hx-blog-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 1.5em; }
.hx-blog-content .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781.98px) {
  .hx-blog-content .wp-block-columns { flex-direction: column; }
}

/* ---------- 3. In-content CTA ([helixta_cta]) ---------- */
.hx-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 2em 0;
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid rgba(220, 77, 27, 0.45);
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 77, 27, 0.22), transparent 55%),
    linear-gradient(135deg, #171f26 0%, #0f171d 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-family: "Urbanist", sans-serif;
  text-align: left;
  clear: both;
}
.hx-cta__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(273deg, #dc4d1b 0%, #ce5c33 52%, #b7390d 100%);
}
.hx-cta__body { flex: 1 1 auto; min-width: 0; display: block; }
.hx-cta__title {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}
.hx-cta__text {
  display: block;
  color: #c9cdd2;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
.blog-details__wrapper .blog-details .hx-blog-content .hx-cta a.hx-cta__btn,
.hx-cta a.hx-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 14px;
  background: linear-gradient(273deg, #dc4d1b 0%, #ce5c33 52%, #b7390d 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hx-cta a.hx-cta__btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220, 77, 27, 0.35);
}
.hx-cta a.hx-cta__btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.hx-cta a.hx-cta__btn svg { transition: transform 0.2s ease; }
.hx-cta a.hx-cta__btn:hover svg { transform: translateX(3px); }
@media (max-width: 991.98px) and (min-width: 768px) {
  .hx-cta { flex-wrap: wrap; }
  .hx-cta__body { flex-basis: calc(100% - 80px); }
  .hx-cta a.hx-cta__btn { margin-left: 80px; }
}
@media (max-width: 767.98px) {
  .hx-cta { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .hx-cta__icon { width: 50px; height: 50px; border-radius: 14px; }
  .hx-cta__title { font-size: 20px; }
  .hx-cta a.hx-cta__btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-cta a.hx-cta__btn,
  .hx-cta a.hx-cta__btn svg { transition: none; }
}

/* ---------- 4. Sticky sidebar form ---------- */
/* blog-details.js pins the form with GSAP (the page uses ScrollSmoother,
   where CSS position:sticky cannot work). */
.hx-sticky-form { z-index: 5; }
.blog-details.section.overflow-hidden { overflow: clip !important; }

/* ---------- 5. FAQs ([helixta_faq]) ----------
   Uses the site's FAQ accordion (.faq-3__accordion, same as the home page);
   these rules only stop the blog text styles above from changing it. */
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq {
  margin: 2.2em 0 1em;
  clear: both;
}
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .hx-faq__title {
  margin: 0 0 0.4em;
}
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-header {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 130%;
  color: #c1c1c1;
}
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-button {
  text-align: left;
  justify-content: space-between;
}
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-body p,
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-body li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
}
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-body p { margin: 0 0 0.8em; }
.blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-body > :last-child { margin-bottom: 0; }
@media (max-width: 767.98px) {
  .blog-details__wrapper .blog-details .hx-blog-content .hx-faq .accordion-header { font-size: 18px; }
}
