.footer {
  background: linear-gradient(128deg, rgba(245, 250, 255, 1) 0%, rgba(233, 243, 254, 1) 50%, rgba(213, 229, 247, 1) 100%);
  color: #000;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden; 
  div#block-ucla-default-mainmenusocialmedia {
    padding: 32px 0px;
    .field__item {
      display: inline-block;
    }
    .menu-social a svg {
      background: transparent;
      color: #003B5C;
      font-size: 35px;
      width: 35px;
      height: 35px;
      border-radius: 0px;
      padding: 0px;
      margin-right: 20px;
      transition: all 0.3s ease;
    }
    .menu-social a:hover svg {
      color: #2774AE;
    }
    .link-list-link {
      align-items: inherit;
      display: unset;
      height: auto;
      padding: inherit;
      position: relative;
      font-size: inherit;
      font-weight: 400;
      background: transparent;
      color: #000;
      border-radius: inherit;
      transition: all 0.3sease;
      text-decoration: none;
    }
    
  }

}



.footer-grid div#block-footersecond .menu-level-0 {
  display: flex;
  justify-content: space-between;
  gap: 85px;
  grid-template-columns: 1fr 1fr 1fr;
  li {
    font-size: 16px;
    line-height: 1.2;
    a {
      &:after {
        content:'';
        position: absolute;
        width: 0px;
        height: 1px;
        background: #004C7A;
        transition: all 0.3s ease;
        left:0;
        bottom: 9px;
      }
      &:hover {
        &:after {
          position: absolute;
          width: 100%;
        }
      }
    }

  }
}

.footer-grid div#block-footersecond .menu-level-0 ul.menu.menu-level-1 {
  margin:0;
  li a {
    &:after {
      content:'';
      position: absolute;
      width: 0px;
      height: 1px;
      background: #004C7A;
      transition: all 0.3s ease;
      left:0;
      bottom: -2px;
    }
    &:hover {
      &:after {
        position: absolute;
        width: 100%;
      }
    }
  }
}


footer {
  .block-social-media-links.block.block-social-media-links-block ul.social-media-links--platforms.platforms.inline.horizontal a {
    color: #003B5C;
    transition: all 0.3s ease;
    &:hover {
      color: #2774AE;
    }
  }
  a.footer_item_parent.desktop-item {
    display: inline-block;
    padding: 0 0 10px;

}
  #block-footer-menu {
    a.footer_item_parent.desktop-item {
      display: inline-block;
      position: relative;
      color: #003b5d !important;
        &:after {
          content:'';
          position: absolute;
          width: 0px;
          height: 1px;
          background: #004C7A;
          transition: all 0.3s ease;
          left:0;
          bottom: -2px;
        }
        &:hover {
          &:after {
            position: absolute;
            width: 100%;
          }
        }
    }
  }
  ul.menu.menu-level-1 li a {
    font-size: 14px;
    padding: 0;
    margin: 0;
    color: #000;
    position: relative;
    display: inline-block;
  }
  ul.menu.menu-level-1 li a.parent-child-link {
    display: none;
  }
  .container.footer-container.footer-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
  }
  div#block-siteinformation-2 {
    color: #000;
    font-size: 18px;
  }
  .footer-grid div#block-footersecond .menu-level-0 > li:nth-child(2) {
    width: 100%;
    max-width: 210px;
  }
  .footer-grid div#block-footersecond .menu-level-0 > li:nth-child(3) {
    width: 125px;
  }
  ul.social-media-links--platforms.platforms.inline.horizontal {
    margin: 32px 0;
  }
}


  @media (max-width: 991.98px) {
    .footer {
      padding-top: 10px; } }
  .footer-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto; }
    @media (min-width: 576px) {
      .footer-container {
        max-width: 1206px; } }
    @media (min-width: 768px) {
      .footer-container {
        max-width: 1206px; } }
    @media (min-width: 992px) {
      .footer-container {
        max-width: 1206px; } }
    @media (min-width: 1200px) {
      .footer-container {
        max-width: 1206px; } }
    .footer-container img {
      width: 278px; }
  .footer-grid {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 688px 1fr;
    padding-top: 98px;
    padding-bottom: 40px;
    grid-gap: 100px;
    grid-gap: 50px; }
    @media (max-width: 991.98px) {
      .footer-grid {
        padding-top: 40px;
        padding-bottom: 40px; } }
    @media (min-width: 1200px) {
      .footer-grid .menu-level-0 {
        display: grid;
        grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 1199.98px) {
      .footer-grid {
        grid-template-columns: 1fr;
        padding-top: 40px; } }
  .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Merriweather Sans", sans-serif; }
    .navigation .footer-menu > li {
      margin: 0;
      margin-bottom: 15px;
      display: block; }
      .navigation .footer-menu > li a {
        text-decoration: none !important;
        background-image: linear-gradient(120deg, #50e3c2 0%, #50e3c2 100%);
        background-repeat: no-repeat;
        background-size: 200% 0.1em !important;
        background-color: transparent;
        background-position: 0 90%;
        transition: background-size 0.15s ease-in, background-position 0.15s ease-in, color 0.15s ease;
        color: #334375;
        font-size: 21px; }
        .navigation .footer-menu > li a:hover {
          background-image: linear-gradient(120deg, #50e3c2 0%, #50e3c2 100%);
          background-position: 0 100%;
          background-size: 200% 1.5em !important;
          color: #05133d; }
  .footer #block-footersecond {
    justify-content: end;
    text-align: right; }
    @media (max-width: 1199.98px) {
      .footer #block-footersecond {
        text-align: center;
        margin-bottom: 0; } }
  .footer .copyrights_menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
    padding-left: 0;
    margin-bottom: 0; }
    @media (max-width: 1199.98px) {
      .footer .copyrights_menu {
        padding-left: 0;
        width: 100%;
        justify-content: center; } }
  .footer .field--type-address p, .footer .field--type-telephone {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 13px; }
  .footer .address, .footer .field--type-telephone {
    margin-bottom: 0; }
    @media (max-width: 1199.98px) {
      .footer .address, .footer .field--type-telephone {
        font-size: 12px; } }
  @media (max-width: 1199.98px) {
    .footer .field--type-address p {
      font-size: 12px; } }
  @media (max-width: 1199.98px) {
    .footer div.menu-dropdown.menu-dropdown-0 {
      border-bottom: 1px solid #003b5d; } }

.footer-menu-grid .menu_link_content > .layout {
  display: none; }

@media (max-width: 991.98px) {
  .footer-menu-grid .menu_link_content {
    display: none; } }

@media (max-width: 1199.98px) {
  .footer-menu {
    column-count: 1; } }

.footer-menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0; }
  .footer-menu ul li {
    padding: 0; }
  .footer-menu ul li {
    margin: 0; }
    .footer-menu ul li a {
      font-size: 12px; }
    @media (min-width: 575px) {
      .footer-menu ul li a {
        font-size: calc(12px + 2 * (100vw - 575px) / 1025); } }
    @media (min-width: 1600px) {
      .footer-menu ul li a {
        font-size: 14px; } }
    .footer-menu ul li a.footer_item_parent {
      color: #000;
      font-weight: 600;
      text-transform: uppercase; }
      .footer-menu ul li a.footer_item_parent {
        font-size: 18px; }

.footer a {
  text-decoration: none; }

#block-sitebranding-footer {
  margin-bottom: 42px; }

@media (max-width: 991.98px) {
  #block-sitebranding-footer {
    display: none; } }

.footer .block-fixed-block-contentsite-information {
  font-weight: 500;
  line-height: 2; }

.footer .social-media-links--platforms.horizontal li {
  padding: 0 10px; }
  .footer .social-media-links--platforms.horizontal li:last-child {
    padding-right: 0; }

.menu_link_content .layout {
  padding: 0; }

.site_bottom {
  border-top: 1px solid rgba(0,0,0,.25);
  padding: 13px 0 17px; }

p.copyright_texts {
    color: #000;
}

footer [class^="fa-"],
footer [class*=" fa-"] {
  font-size: 35px; }

@media (max-width: 1199.98px) {
  footer .menu-level-1 {
    padding-left: 30px; } }

footer .menu-level-1 .menu-item {
  margin: 0; }
  @media (min-width: 992px) {
    footer .menu-level-1 .menu-item {
      padding: 6px 0 !important; } }
  @media (max-width: 1199.98px) {
    footer .menu-level-1 .menu-item {
      padding: 10px; } }
  @media (max-width: 1199.98px) {
    footer .menu-level-1 .menu-item:not(:last-child) {
      border-bottom: 1px solid #003b5d; } }
  footer .menu-level-1 .menu-item a {
    font-size: 12px; }
  @media (min-width: 575px) {
    footer .menu-level-1 .menu-item a {
      font-size: calc(12px + 2 * (100vw - 575px) / 1025); } }
  @media (min-width: 1600px) {
    footer .menu-level-1 .menu-item a {
      font-size: 14px; } }

.site_bottom .copyright_texts,
.site_bottom .footer_copyrights {
  display: inline-block;
  margin-bottom: 0;
  font-size: 12px; }
  @media (max-width: 1199.98px) {
    .site_bottom .copyright_texts,
    .site_bottom .footer_copyrights {
      width: 100%;
      display: block;
      text-align: center;
      margin-left: 0; } }

.site_bottom .copyrights_menu li a {
  font-size: 12px;
  color: #000; 
  position: relative;
  &:after {
    content:'';
    position: absolute;
    width: 0px;
    height: 1px;
    background: #000;
    transition: all 0.3s;
    left:0;
    bottom: -2px;
  }
  &:hover {
    &:after {
      position: absolute;
      width: 100%;
    }
  }
}

.site_bottom .copyrights_menu li:not(:last-child) {
  border-right: 1px solid #000;
  padding-right: 20px;
  line-height: 0.8em; }

.site_bottom .footer_copyrights {
  margin-left: 50px; }
  @media (max-width: 1199.98px) {
    .site_bottom .footer_copyrights {
      margin-left: 0; } }

.parent-child-link {
  font-size: 12px;
  margin-left: 30px;
  border-bottom: 1px solid #003b5d;
  padding-bottom: 10px;
  padding-top: 10px;
  padding-left: 10px;
  display: none; }
  @media (min-width: 992px) {
    .parent-child-link {
      padding-left: 0; } }

@media (min-width: 1200px) {
  .footer .menu_link_content {
    display: block !important; } }

.footer_item_parent {
  color: #003B5C;
  font-weight: 700;
  position: relative;
  font-size: 16px;
  text-transform: uppercase; 
}
  @media (min-width: 1200px) {
    .footer_item_parent {
      margin-bottom: 3px; } }
  @media (max-width: 1199.98px) {
    .footer_item_parent {
      border-bottom: 1px solid #003b5d;
      padding: 10px 15px;
      margin-bottom: 5px; }
      .footer_item_parent {
        font-size: 16px; }
      .footer_item_parent:after {
        content: "\f113";
        font-family: "icons" !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        display: inline-block;
        vertical-align: middle;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translate(0, -50%);
        display: block;
        font-size: 18px; }
      .footer_item_parent.footer-item-active:after {
        content: "\f116";
        font-family: "icons" !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        display: inline-block;
        vertical-align: middle;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale; }
      .footer_item_parent.footer-item-active + .parent-child-link {
        display: block; } }


@media all and (max-width:1199px) {
  footer {
    .menu-level-1 .menu-item:not(:last-child) {
      border-bottom: none;
   }
    .container.footer-container.footer-grid {
        display: flex;
        grid-template-columns: 500px 1fr;
        flex-wrap: wrap;
    }
    div#block-footerfirst {
      width: 100%;
      order: 2;
      text-align: center;
   }
   #block-footersecond {
    order:1;
    width: 100%;
  }
  .footer-grid div#block-footersecond .menu-level-0 {
    display: block;
  }
   a.footer_item_parent.desktop-item {
    display: none;
   }
   .footer-grid div#block-footersecond .menu-level-0 > li:nth-child(1), .footer-grid div#block-footersecond .menu-level-0 > li:nth-child(2), .footer-grid div#block-footersecond .menu-level-0 > li:nth-child(3) {
    width: 100%;
    max-width: 100%;
    }
    .footer_item_parent.footer-item-active + .parent-child-link {
      display: none;
    }
    .menu-level-1 {
      padding-left: 30px;
      padding-bottom: 10px;
    }
  }
}
@media all and (max-width:550px) {
  .copyrights_menu {
    display: block;
  }
  ul.copyrights_menu {
    padding: 10px 0 0;
  }
  .site_bottom .copyrights_menu li:not(:last-child) {
    border-right: none;
    padding-right: 0;
    line-height: 1.2;
  }
  .footer .copyrights_menu {
    display: block;
  }
}

footer div#block-siteinformation-2,
footer .field--type-address,
footer .field--type-telephone,
footer p.copyright_texts {
  color: #000; /* 16–20:1; already your intent, make sure it wins the cascade */
}
#block-footer-menu a.footer_item_parent.desktop-item {
  color: #000 !important; /* your rule already has !important; this is fine (AA) */
}




/* Footer links: consistent high-contrast color on all states */
footer .menu-level-1 a,
footer .menu-level-1 a:visited,
footer .menu-level-0 > li > a.footer_item_parent,
footer .menu-level-0 > li > a.footer_item_parent:visited,
footer .parent-child-link,
.site_bottom .copyrights_menu li a {
  color: #003B5C; /* ~11:1 on the light gradient */
}

/* Hover/focus: keep the same dark color; add subtle bg for affordance */
footer .menu-level-1 a:hover,
footer .menu-level-1 a:focus,
footer .menu-level-0 > li > a.footer_item_parent:hover,
footer .menu-level-0 > li > a.footer_item_parent:focus,
footer .parent-child-link:hover,
footer .parent-child-link:focus,
.site_bottom .copyrights_menu li a:hover,
.site_bottom .copyrights_menu li a:focus {
  color: #003B5C;
  outline: 2px solid transparent;      /* reserve space */
  outline-offset: 2px;
  text-decoration: none;                /* you’re using ::after underline */
}

/* Social icons: ensure 3:1 non-text contrast at rest and hover */
.footer .menu-social a svg {
  color: #003B5C;  /* strong contrast on gradient */
}
.footer .menu-social a:hover svg,
footer .block-social-media-links.block.block-social-media-links-block
  ul.social-media-links--platforms.platforms.inline.horizontal a:hover {
  color: #1e5e8e;  /* still >3:1 on the lightest background */
}

/* Kill any lingering white-on-light hovers that may be bundled earlier */
footer a:hover { color: #003B5C !important; }

/* Decorative underlines: fine as-is, but ensure they’re not the only affordance */
.footer-grid div#block-footersecond .menu-level-0 li a::after,
.footer-grid div#block-footersecond .menu-level-0 ul.menu.menu-level-1 li a::after,
.site_bottom .copyrights_menu li a::after {
  background: #004C7A; /* keeps strong contrast for non-text visuals (1.4.11) */
}








/* Footer menu: force high-contrast colors in ALL states */
#block-footer .menu a,
#block-footer .menu a:visited,
#block-footer .menu a:hover,
#block-footer .menu a:focus {
  color: #003B5C !important; /* ~11:1 vs your light gradient */
}

/* Fix the exact failing case */
#block-footer .menu a.is-active,
#block-footer .menu a[aria-current="page"] {
  color: #003B5C !important;   /* override any white active styles */
  background-image: none;      /* in case a highlight bg is being applied */
}

/* The duplicate “parent-child” link too */
#block-footer .menu a.parent-child-link {
  color: #003B5C !important;
}

/* Keep hover/focus visible without hurting contrast */
#block-footer .menu a:focus {
  text-decoration: underline;        /* or keep your ::after underline */
  text-underline-offset: 2px;
  background-color: transparent;     /* avoid any low-contrast fills */
  outline: 2px solid transparent;    /* space for focus ring if you add one */
  outline-offset: 2px;
}
