/* Match the homepage copyright spacing on every full site page. */
.content-footer .policy-box { margin-top: 0; padding-top: 0; }

/* Extend the inner footer color across both sides without changing its height. */
.content-footer::before {
  left: 0;
  right: 0;
  width: 100%;
}

/* Draw above the inner background so the lines remain continuous. */
.content-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.21);
  border-bottom: 1px solid rgba(255, 255, 255, 0.21);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

/* Compact footer layout without increasing its horizontal footprint. */
footer.content-footer {
  position: relative;
  float: left;
  clear: both;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  padding-top: 0;
}
.content-footer::before { top: 0; }
.content-footer .footer-inner { padding-top: 28px; padding-bottom: 24px; }
.content-footer .footer-widgets-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0;
  margin-right: 0;
}
.content-footer .footer-widgets-row > .col-md-3 {
  flex: 0 0 140px;
  width: 140px;
  padding: 0;
}
.content-footer .footer-widgets-row > .col-md-4 {
  flex: 1;
  width: auto;
  padding: 0;
}
.content-footer .widget_media_image img {
  width: 120px;
  height: auto;
}
.content-footer .widget_media_image .footer-header:empty { display: none; }
.content-footer .footer-header { margin-top: 0; padding-top: 0; margin-bottom: 8px; }
.content-footer .footer-widget .textwidget { margin-top: 8px; }
.content-footer .footer-widget .textwidget ul li { margin-bottom: 8px; }
.content-footer .footer-copyright-row { margin: 18px 0 0; }
.content-footer .footer-copyright-row > .col-md-3 { display: none; }
.content-footer .footer-copyright-row > .col-md-9 { width: 100%; float: none; padding: 0 56px 0 0; }
.content-footer .footer-copyright-row .policy-box p { margin-bottom: 0; }
.content-footer .to-top { width: 40px; height: 40px; line-height: 40px; }
@media (max-width: 767px) {
  .content-footer .footer-inner { padding-top: 24px; padding-bottom: 20px; }
  .content-footer .footer-widgets-row { flex-wrap: wrap; gap: 20px; }
  .content-footer .footer-widgets-row > .col-md-3 { flex-basis: 100%; width: 100%; }
  .content-footer .footer-widgets-row > .col-md-4 { flex-basis: 100%; width: 100%; }
  .content-footer .widget_media_image img { width: 96px; }
}
