.aa-official-profiles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-item .footer-logo .aa-official-profiles li,
.header-top-area .right .social-info.aa-official-profiles li {
  margin: 0;
}

.header-top-area .right .social-info.aa-official-profiles,
.header-top .social-info.aa-official-profiles {
  display: flex;
  position: static;
  margin: 0;
  gap: 4px;
}

.header-top-area .right .social-info.aa-official-profiles li a,
.header-top .social-info.aa-official-profiles li a,
.footer-item .footer-logo .aa-official-profiles li a {
  display: grid;
  place-items: center;
  line-height: 1;
  text-align: center;
}

.header-top-area .right .social-info.aa-official-profiles li a,
.header-top .social-info.aa-official-profiles li a {
  width: 34px;
  height: 34px;
  border: 1px solid #27446a;
  border-radius: 50%;
  background: #142f53;
  color: #fff;
  font-size: 16px;
}

.header-top-area .right .social-info.aa-official-profiles li a:hover,
.header-top .social-info.aa-official-profiles li a:hover {
  border-color: #b71334;
  background: #b71334;
  color: #fff;
}

.aa-official-profiles a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.header-top-area .right .social-info.aa-official-profiles a:focus-visible,
.header-top .social-info.aa-official-profiles a:focus-visible {
  outline-color: #235ab5;
}

.aa-official-profiles a img {
  display: block;
  max-width: calc(100% - 5px);
  height: auto;
}

.header-top-area .right,
.header-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.header-top-area .right {
  justify-content: flex-end;
}

@media (max-width: 991px) {
  .header-top-area .right,
  .header-top-inner {
    flex-direction: column;
    justify-content: center;
    padding-bottom: 5px;
  }

  .header-top-area .right .social-info.aa-official-profiles,
  .header-top .social-info.aa-official-profiles {
    justify-content: center;
  }

  .header-top-area .right .social-info.aa-official-profiles li a,
  .header-top .social-info.aa-official-profiles li a {
    width: 32px;
    height: 32px;
  }
}

/* The ad templates use the same footer content without the main site's grid stylesheet. */
.aa-ad-page .footer-area {
  background: #061b3f;
  padding: 64px 0 26px;
  color: #c5d0e0;
  font-size: 15px;
}

.aa-ad-page .footer-area > .container {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
}

.aa-ad-page .footer-area .row {
  display: grid;
  gap: 26px;
}

.aa-ad-page .footer-area h3,
.aa-ad-page .footer-logo span,
.aa-ad-page .footer-company span {
  color: #fff;
  font-weight: 800;
}

.aa-ad-page .footer-area h3 {
  margin: 0 0 14px;
  font-size: 17px;
  text-transform: uppercase;
}

.aa-ad-page .footer-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aa-ad-page .footer-area a {
  color: inherit;
}

.aa-ad-page .footer-area a:hover {
  color: #fff;
}

.aa-ad-page .footer-logo > a.logo {
  display: inline-block;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.aa-ad-page .footer-logo > a.logo img {
  width: 150px;
  height: auto;
}

.aa-ad-page .footer-logo p {
  max-width: 42ch;
  margin: 10px 0 20px;
}

.aa-ad-page .footer-logo span {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.aa-ad-page .footer-logo .aa-official-profiles a {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
  color: #fff;
  font-size: 18px;
}

.aa-ad-page .footer-logo .aa-official-profiles a:hover {
  background: #b71334;
}

.aa-ad-page .footer-links a,
.aa-ad-page .footer-company li {
  display: block;
  padding-block: 5px;
  overflow-wrap: anywhere;
}

.aa-ad-page .copyright-area {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  text-align: center;
}

.aa-ad-page .copyright-area p {
  margin: 0;
}

@media (min-width: 576px) {
  .aa-ad-page .footer-area .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .aa-ad-page .footer-area .row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) repeat(2, minmax(0, 3fr));
  }
}
