/* Footer background and typography */

footer {
  background-color: #001D8F;
  color: white;
  font-size: 14px;
  line-height: 1.7;
}

footer h6 {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 1rem;
}

/* Remove list styles from footer links */

footer ul {
  padding-left: 0;
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  font-size: 16px;
  line-height: 24px;
  color: #ffffffcc;
}

footer ul li:hover {
  color: #1677ff!important;
  cursor: pointer;
}

footer ul a {
  color: rgb(255, 255, 255)!important;
  opacity: 0.7;
}

/* Social icons */

footer .fab, footer .fas {
  color: white;
  transition: color 0.3s ease;
}

footer .fab:hover, footer .fas:hover {
  color: #66ccff;
  opacity: 0.7;
}

.wechat-video {
  max-height: 36px;
  margin-top: -8px;
}

.social-icon-wrapper {
  position: relative;
}

.qr-popup {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 12.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 100;
}

.qr-popup img {  
  height: auto;
  max-height: 100%!important;
  padding-right: 0!important;
}

/* Triangle arrow pointing up */
.qr-arrow {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

/* Show popup on hover */
.social-icon-wrapper:hover .qr-popup {
  display: block;
}

/* Bottom border section */

footer .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

footer a {
  color: #ffffffcc;
  text-decoration: none;
}

.copyright a {
  color: #ffffffcc;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  margin-right: 36px;
}

.copyright span {
  font-size: 16px;
  line-height: 24px;
}

footer a:hover {
  color: #1677ff!important;  
}

@media (max-width: 767.98px) {
  .copyright a,
  .copyright span {
    display: block;
    margin-bottom: 0.5rem;
    margin-right: 0px!important;
  }
}

/* Footer logos */

footer img {
  max-height: 24px;
  padding-right: 24px;
  vertical-align: middle;
}

.social-link {
  font-size: 2rem;
  margin-left: 1rem;
  margin-right: .5rem;
}

/* Responsive tweaks */

@media (max-width: 767.98px) {
  footer .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  footer .d-flex.justify-content-between > * {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  footer .text-white.ml-3 {
    margin-left: 0 !important;
    display: block;
    margin-top: 0.5rem;
  }
}


.police {
  padding-right: 5px!important;
}

.footer-records {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-records a {
    display: inline-flex;
    align-items: center;    
    text-decoration: none;
}


@media (max-width: 909.9px) {
    .brand-endorsement-row img:first-child {
        max-height: 29px !important;
    }
    .brand-endorsement-row img:last-child {
        max-height: 13px !important;
    }
}