/* xLocums 1.7.9.15 blog and footer fixes. Scoped by body classes the plugin adds.
   No yellow. Navy #001233 and royal blue #4169E1 only.
   Off switches: xl_hide_author_bio_link_enabled,
   xl_blog_newsletter_slim_enabled, xl_blog_browse_cta_enabled,
   xl_footer_legal_fix_enabled. */

/* ---------- A: hide See Full Bio on single posts ---------- */
body.xl-hide-author-bio .aioseo-author-bio-compact .author-bio-link,
body.single-post.xl-hide-author-bio .author-bio-link{
  display:none !important;
}

/* ---------- B: slim newsletter bar on the blog index ---------- */
/* Hide the two Subscribe headings and the duplicate (right-hand) form
   as soon as the switch class is on. The left-hand form stays visible
   until JS moves it into the bar and adds xl-blog-nl-ready. */
body.xl-blog-nl-slim .elementor-element-bc2fd64,
body.xl-blog-nl-slim .elementor-element-77b126c,
body.xl-blog-nl-slim .elementor-element-375f4c9{
  display:none !important;
}
body.xl-blog-nl-slim.xl-blog-nl-ready .elementor-element-9b0543c{
  display:none !important;
}

#xl-blog-nl-bar{
  display:none;
  width:100%;
  max-width:1140px;
  margin:0 auto 48px;
  padding:28px 32px;
  box-sizing:border-box;
  background:#fff;
  border:1px solid #e6eaf2;
  border-radius:16px;
  box-shadow:0 8px 28px rgba(3,18,50,.08);
}
body.xl-blog-nl-slim.xl-blog-nl-ready #xl-blog-nl-bar{
  display:block;
}

#xl-blog-nl-bar .xl-blog-nl-bar__title{
  margin:0 0 6px;
  font-family:"Kumbh Sans","Plus Jakarta Sans",Helvetica,Arial,sans-serif;
  font-size:22px;
  line-height:1.3;
  font-weight:700;
  color:#001233;
  text-align:left;
}
#xl-blog-nl-bar .xl-blog-nl-bar__title .xl-blog-nl-bar__accent{
  color:#4169E1;
}
#xl-blog-nl-bar .xl-blog-nl-bar__sub{
  margin:0 0 16px;
  font-family:"Work Sans",Helvetica,Arial,sans-serif;
  font-size:15px;
  line-height:1.5;
  color:#5b6474;
}

#xl-blog-nl-bar .mc4wp-form,
#xl-blog-nl-bar .mc4wp-form-fields,
#xl-blog-nl-bar .xlocums-newsletter{
  margin:0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
}
#xl-blog-nl-bar .xlocums-newsletter{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}

#xl-blog-nl-bar .xlocums-newsletter input[type=email],
#xl-blog-nl-bar .mc4wp-form input[type=email]{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  height:48px !important;
  min-height:48px !important;
  max-height:48px !important;
  padding:0 16px !important;
  margin:0 !important;
  box-sizing:border-box;
  border:1px solid #cfd6e2 !important;
  border-radius:999px !important;
  background:#fff !important;
  font-family:"Work Sans",Helvetica,Arial,sans-serif;
  font-size:15px !important;
  line-height:48px !important;
  font-weight:400 !important;
  color:#1f2937 !important;
  box-shadow:none !important;
}
#xl-blog-nl-bar .xlocums-newsletter input[type=email]:focus,
#xl-blog-nl-bar .mc4wp-form input[type=email]:focus{
  outline:none;
  border-color:#4169E1 !important;
  box-shadow:0 0 0 4px rgba(65,105,225,.15) !important;
}

#xl-blog-nl-bar .xlocums-newsletter input[type=submit],
#xl-blog-nl-bar .mc4wp-form input[type=submit]{
  flex:0 0 auto;
  height:48px !important;
  min-height:48px !important;
  padding:0 22px !important;
  margin:0 !important;
  box-sizing:border-box;
  border:0 !important;
  border-radius:999px !important;
  background:#4169E1 !important;
  color:#fff !important;
  font-family:"Kumbh Sans","Plus Jakarta Sans",Helvetica,Arial,sans-serif;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:48px !important;
  cursor:pointer;
  box-shadow:none !important;
}
#xl-blog-nl-bar .xlocums-newsletter input[type=submit]:hover,
#xl-blog-nl-bar .mc4wp-form input[type=submit]:hover{
  background:#2f54d0 !important;
  color:#fff !important;
}

#xl-blog-nl-bar .mc4wp-response{ margin:10px 0 0; }


/* Flatten the form-cards newsletter card if it is moved into the bar.
   Hide its wordmark, second heading, subline and "Create account" footer
   so only the slim bar heading, subline, email field and button remain. */
body.xl-fc-on #xl-blog-nl-bar .xl-fc,
body.xl-fc-on #xl-blog-nl-bar .xl-fc--news,
#xl-blog-nl-bar .xl-fc,
#xl-blog-nl-bar .xl-fc--news{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
#xl-blog-nl-bar .xl-fc__brand,
#xl-blog-nl-bar .xl-fc__title,
#xl-blog-nl-bar .xl-fc__sub,
#xl-blog-nl-bar .xl-fc__head,
#xl-blog-nl-bar .xl-fc__foot{
  display:none !important;
}

body.xl-fc-on #xl-blog-nl-bar .xlocums-newsletter,
body.xl-fc-on #xl-blog-nl-bar .mc4wp-form .xlocums-newsletter,
#xl-blog-nl-bar .xlocums-newsletter{
  display:flex !important;
  flex-wrap:nowrap;
  flex-direction:row;
  align-items:center;
  gap:10px;
  width:100%;
}

body.xl-fc-on #xl-blog-nl-bar .xlocums-newsletter input[type=email],
body.xl-fc-on #xl-blog-nl-bar .mc4wp-form input[type=email],
body.xl-fc-on #xl-blog-nl-bar .mc4wp-form.xl-fc-ready input[type=email],
body.xl-fc-on #xl-blog-nl-bar .xl-fc--news input[type=email]{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:48px !important;
  min-height:48px !important;
  max-height:48px !important;
  padding:0 16px !important;
  margin:0 !important;
  border-radius:999px !important;
}

body.xl-fc-on #xl-blog-nl-bar .xlocums-newsletter input[type=submit],
body.xl-fc-on #xl-blog-nl-bar .mc4wp-form input[type=submit],
body.xl-fc-on #xl-blog-nl-bar .mc4wp-form.xl-fc-ready input[type=submit],
body.xl-fc-on #xl-blog-nl-bar .xl-fc--news input[type=submit],
body.xl-fc-on #xl-blog-nl-bar .xl-fc--news .xlocums-newsletter input[type=submit]{
  flex:0 0 auto !important;
  display:inline-flex !important;
  width:auto !important;
  min-width:0 !important;
  height:48px !important;
  min-height:48px !important;
  margin:0 !important;
  padding:0 22px !important;
  border-radius:999px !important;
}

@media (max-width:767px){
  #xl-blog-nl-bar{
    margin:0 12px 36px;
    padding:22px 18px;
    border-radius:14px;
  }
  #xl-blog-nl-bar .xl-blog-nl-bar__title{ font-size:20px; }
  #xl-blog-nl-bar .xlocums-newsletter{
    flex-direction:column;
    align-items:stretch;
  }
  #xl-blog-nl-bar .xlocums-newsletter,
  body.xl-fc-on #xl-blog-nl-bar .xlocums-newsletter,
  body.xl-fc-on #xl-blog-nl-bar .mc4wp-form .xlocums-newsletter{
    flex-direction:column !important;
    flex-wrap:wrap;
    align-items:stretch;
  }
  #xl-blog-nl-bar .xlocums-newsletter input[type=submit],
  #xl-blog-nl-bar .mc4wp-form input[type=submit],
  body.xl-fc-on #xl-blog-nl-bar .xlocums-newsletter input[type=submit],
  body.xl-fc-on #xl-blog-nl-bar .mc4wp-form.xl-fc-ready input[type=submit]{
    width:100% !important;
    min-width:0 !important;
  }
}

/* ---------- D: footer legal links, site-wide ---------- */
/* The compact legal row is a sibling of the 100 percent Elementor
   column inside a flex container, so it was squeezed into a leftover
   narrow box on the left. Span the full container, center the links
   on one or two lines, and keep the copyright centered below.
   Leave the bottom-right corner clear for live chat and back-to-top. */
body.xl-footer-legal-fix #colophon .elementor-element-c1005e0 > .elementor-container{
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  align-items:stretch;
  width:100%;
  max-width:1140px;
  box-sizing:border-box;
}
body.xl-footer-legal-fix #colophon .elementor-element-c1005e0 > .elementor-container > .elementor-column{
  display:none !important;
}
body.xl-footer-legal-fix #colophon .xl-footer-compact-legal{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  max-width:100%;
  flex:0 0 auto;
  gap:8px;
  box-sizing:border-box;
}
body.xl-footer-legal-fix #colophon .xl-footer-compact-legal-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:baseline;
  width:100%;
  flex:0 1 auto;
  min-width:0;
  gap:6px 0;
}
body.xl-footer-legal-fix #colophon .xl-footer-compact-legal-links a{
  white-space:nowrap;
}
body.xl-footer-legal-fix #colophon .xl-footer-compact-legal-links a:not(:last-child)::after{
  content:"·";
  display:inline-block;
  margin:0 10px;
  color:#99A0AD;
  opacity:.75;
  pointer-events:none;
  font-weight:400;
}
body.xl-footer-legal-fix #colophon .xl-footer-compact-legal .hfe-copyright-wrapper,
body.xl-footer-legal-fix #colophon .xl-footer-compact-legal .hfe-copyright-wrapper span{
  flex:0 0 auto;
  width:100%;
  margin:0 !important;
  text-align:center !important;
  white-space:normal;
}

@media (max-width:767px){
  body.xl-footer-legal-fix #colophon .elementor-element-c1005e0{
    padding:8px 20px 32px 20px !important;
  }
  body.xl-footer-legal-fix #colophon .xl-footer-compact-legal-links a{
    white-space:normal;
  }
  body.xl-footer-legal-fix #colophon .xl-footer-compact-legal-links a:not(:last-child)::after{
    margin:0 8px;
  }
}

/* Center the wording inside each footer badge. Gated by
   xl_footer_badge_text_center_enabled (body class
   xl-footer-badge-text-center), default off. Leave the badge pair
   in its original position. Badge size, colors and border stay the same.
   The label is centered on the first line. The wordmark and star sit
   together, centered, on the second line so the star is not stuck on
   the right edge. Leave the bottom-right corner clear for live chat
   and back-to-top. */
body.xl-footer-badge-text-center #colophon .xl-footer-compact-badges .xl-plate__badge,
body.xl-footer-compact.xl-footer-badge-text-center .xl-footer-compact-badges .xl-plate__badge{
  display:flex !important;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  column-gap:6px;
  row-gap:2px;
}
body.xl-footer-badge-text-center #colophon .xl-footer-compact-badges .xl-plate__text,
body.xl-footer-compact.xl-footer-badge-text-center .xl-footer-compact-badges .xl-plate__text{
  display:contents;
}
body.xl-footer-badge-text-center #colophon .xl-footer-compact-badges .xl-plate__label,
body.xl-footer-compact.xl-footer-badge-text-center .xl-footer-compact-badges .xl-plate__label{
  flex:0 0 100%;
  order:1;
  text-align:center;
  width:100%;
}
body.xl-footer-badge-text-center #colophon .xl-footer-compact-badges .xl-plate__mark,
body.xl-footer-compact.xl-footer-badge-text-center .xl-footer-compact-badges .xl-plate__mark{
  flex:0 0 auto;
  order:2;
  text-align:center;
}
body.xl-footer-badge-text-center #colophon .xl-footer-compact-badges .xl-plate__accent,
body.xl-footer-compact.xl-footer-badge-text-center .xl-footer-compact-badges .xl-plate__accent{
  flex:0 0 auto;
  order:3;
  margin:0;
}
