#footer .BorderLine {
  position: absolute;
  inset: 0;
  top: -72px;
  left: 20px;
  width: calc(100% - 20px * 2);
  height: 1px;
  background-color: var(--container-border-color);
  z-index: 5;
}

#footer .HideOnDesktopView {
  display: none;
}

#footer img {
  max-width: 100%;
  height: auto;
  display: block;
}

#footer a {
  text-decoration: none;
  color: inherit;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
  margin: 0;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 700;
}

#footer p {
  font-family: 'DM Sans', sans-serif !important;
  margin: 0;
}

#footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .container {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

#footer.site-footer {
  background-color: var(--footer-bg-color);
  padding-top: 72px;
  padding-bottom: 48px;
  margin-top: auto;
}
#footer .footer-main {
  display: flex;
  justify-content: flex-start;
  gap: 120px;
  padding-bottom: 72px;
}
#footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
#footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}
#footer .footer-contact a {
  color: var(--text-gray);
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500;
  font-size: 16px;
}
#footer .mailUnderline {
  border-bottom: 1px solid var(--text-gray);
}

#footer .footer-links {
  display: flex;
  gap: 80px;
}
#footer .footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-default);
  margin-bottom: 20px;
}
#footer .footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#footer .footer-col a {
  color: var(--text-gray);
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500;
  font-size: 16px;
}
#footer .footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #7d8288;
}
#footer .footer-legal {
  display: flex;
  gap: 24px;
}
#footer .footer-legal a {
  color: var(--text-gray);
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500;
}

@media (max-width: 992px) {
  #footer .BorderLine {
    width: calc(100% - 40px * 2);
    left: 40px;
  }

  #footer .HideOnMobile {
    display: none;
  }
  #footer .HideOnDesktopView {
    display: block;
  }

  #footer .footer-main {
    flex-direction: column;
    justify-content: flex-start;
    gap: 64px;
  }
  #footer .footer-links {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  #footer .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 768px) {
  #footer #footer > .container {
    padding-left: 36px;
    padding-right: 36px;
  }
  #footer .footer-bottom {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }
  #footer .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
  #footer .HideOnExtraSmallMobile {
    display: none;
  }
  #footer .fit-on-mobile {
    width: 200px;
  }
}
