/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Feb 15 2026 | 15:26:28 */
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

document.addEventListener("DOMContentLoaded", function () {

  const paragraphs = document.querySelectorAll(
    "#post-zx-id .elementor-post__excerpt p"
  );

  const fields = [
    "Title:",
    "Author:",
    "Illustrator:",
    "Genre:",
    "Target Reader:"
  ];

  paragraphs.forEach(p => {
    let text = p.innerHTML;

    fields.forEach(field => {
      const regex = new RegExp(field + "\\s*", "g");
      text = text.replace(
        regex,
        `<br><strong>${field}</strong> `
      );
    });

    // Remove first extra break
    text = text.replace(/^<br>/, "");

    p.innerHTML = text;
  });

});