#footer {
  padding-top: clamp(20px, 5vw, 50px);
  padding-bottom: clamp(20px, 5vw, 50px);
  background: linear-gradient(0deg, #05577a 0%, #0a2450 49%, #0d013a 99%);
}

.footer_col a {
  color: var(--white);
  text-decoration: none;
}

.footer_col:last-child a:hover {
  text-decoration: underline;
}

.contact_link.footer_link {
  color: var(--white);
  text-decoration: none;
}

.contact_link.footer_link:hover {
  text-decoration: underline;
}

.footer_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer_middle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.marketing_by a:hover {
    opacity: 0.8;
}

@media (min-width: 768px) {
  .footer_middle .footer_col:last-child {
    text-align: right;
  }
  .social_links_container,
  .contact_link.footer_link {
    justify-content: flex-end;
  }
}

.footer_col {
  color: var(--white);
}

.footer_col:nth-child(2) {
  margin:0 auto;
  width:max-content;
}



@media (min-width: 768px) {
  .footer_col.two_cols {
    ul li {
      width: max-content;
    }
  }
}

@media (min-width: 1300px) {
  .footer_col.two_cols {
    ul {
      display: block;
      columns: 2;
    }
  }
}

.footer_col .foot_title,
.footer_col .foot_title a {
  color: var(--lime);
  margin: 0 0 var(--gap-s);
  font-weight: 700;
  font-size: 23px;
  text-decoration: none;
}

.footer_col .foot_title a:hover {
  text-decoration: underline;
}

.footer_col p {
  margin: 0;
}

.footer_menu {
  padding-left: 0;
  display: flex;
  flex-flow: column;
}

.footer_menu li {
  list-style: none;
  padding: 0;
}

.footer_menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.5rem;
}

.footer_menu li a:hover {
  border-bottom: 1px solid var(--white);
}

.marketing_by {
  display: flex;
  align-items: center;
  gap: 5px;
}

.marketing_by a {
  height: 21px;
}

.logo--footer {
  display: block;
  aspect-ratio: 486 / 120;
  width: 100%;
  max-width: 280px;
  padding-bottom: clamp(20px, 5vw, 50px);
  margin: 0 auto;
}

.logo--footer:hover {
  opacity: 0.8;
}

.contact_details *:not(:first-child) {
  margin-top: 0.75em;
}

.end_of_page {
  color: var(--white);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1200px) {
  .end_of_page {
    flex-flow: column;
    align-items: center;
      gap:20px;
  }
  .end_of_page p {
    margin: 0;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .footer_top {
    flex-flow: column;
    gap: 40px;
  }
  .logo--footer {
    max-width:270px;
    margin-bottom:2rem;
  }
  #footer .footer_middle .footer_col:first-child,
  #footer .footer_middle {
    display: flex;
    flex-flow: column;
    width: 100%;
    align-items: center;
    text-align: center;
    flex-basis: 100%;
    gap: var(--gap-s);
  }
  .social_links_container {
    padding-bottom: var(--gap-l);
    justify-content: center;
  }

  .contact_link.footer_link {
    justify-content: center;
  }
  .end_of_page {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 15px;
  }
}
