/* Shared Lightning footer: widget areas 1=Services, 2=Company, 3=Logo.
 * CSS ordering is visual only; keyboard/reading order remains 1, 2, 3.
 * Do not use positive tabindex to compensate for this difference.
 */
footer.site-footer {
  background-color: #142C43;
  color: #FFFFFF;
}

footer.site-footer .site-footer-content {
  padding-top: 48px;
  padding-bottom: 32px;
}

footer.site-footer .site-footer-content > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-right: 0;
  margin-left: 0;
}

footer.site-footer .site-footer-content > .row > .col-lg-4.col-md-6 {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  overflow-wrap: anywhere;
}

footer.site-footer .site-footer-content > .row > :nth-child(1) { order: 2; }
footer.site-footer .site-footer-content > .row > :nth-child(2) { order: 3; }
footer.site-footer .site-footer-content > .row > :nth-child(3) { order: 1; }

footer.site-footer .site-footer-content > .row > :nth-child(-n+2) :is(.widget-title, .widgettitle) {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #FFFFFF;
}

footer.site-footer .site-footer-content > .row > :nth-child(-n+2) :is(.widget-title, .widgettitle)::after {
  content: "";
  display: block;
  position: static;
  width: 28px;
  height: 2px;
  margin: 10px 0 0;
  border: 0;
  background: #55B9EF;
  box-shadow: none;
  transform: none;
}

footer.site-footer .site-footer-content ul.menu a {
  display: block;
  padding: 10px 12px;
  color: #FFFFFF;
  white-space: normal;
  overflow-wrap: anywhere;
}

footer.site-footer .site-footer-content ul.menu a:hover,
footer.site-footer .site-footer-content ul.menu a:focus-visible {
  color: #55B9EF;
  background-color: #24435F;
}

footer.site-footer a:focus-visible {
  outline: 2px solid #55B9EF;
  outline-offset: 2px;
}

/* Only the image widget in the third footer area; other images are untouched. */
footer.site-footer .site-footer-content > .row > :nth-child(3) .widget_media_image img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

footer.site-footer .site-footer-copyright {
  padding-top: 20px;
  padding-bottom: 20px;
  color: #FFFFFF;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  footer.site-footer .site-footer-content > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    align-items: start;
  }

  footer.site-footer .site-footer-content > .row > :nth-child(3) .widget_media_image img {
    width: 220px;
  }
}

@media (max-width: 575.98px) {
  footer.site-footer .site-footer-content {
    padding-top: 32px;
    padding-bottom: 24px;
  }
}
