.footer {
  /* background: rgba(9, 105, 145, 0.9); */
  /* background: hsl(197, 88%, 30%); */
  background: rgba(9, 105, 145, 0.9);;
  /* background: rgb(10, 86, 122); */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 20px 24px 20px;
  color: #fff;
  text-align: center;
}

.back-to-top-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px auto;
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 40px;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  text-decoration: none;
}

.back-to-top-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.back-to-top-button:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.back-to-top {
  display: inline-block;
  transform: rotate(45deg);
  width: 16px;
  height: 16px;
  border: solid #fff;
  border-width: 3px 0 0 3px;
  cursor: pointer;
  vertical-align: middle;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  max-width: 190px;
  width: 100%;
  height: auto;
  margin: 12px 0;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-icon-link:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.social-icon-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-links-container {
  display: grid;
  grid-template-columns: auto auto;
  gap: 80px;
  row-gap: 8px;
  max-width: 600px;
  margin: 8px auto 0 auto;
  width: fit-content;
  align-items: start;
  justify-content: center;
}

.footer-section:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.footer-section:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  /* margin-top: 97px; */
}

.footer-section:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 5;
}

.footer-section:nth-child(4) {
  grid-column: 1;
  grid-row: 4;
}

.footer-section:nth-child(5) {
  grid-column: 2;
  grid-row: 1 / 5;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2px;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: block;
  width: fit-content;
  text-align: left;
}

.footer-section-title:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-section-title:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: block;
  width: fit-content;
  text-align: left;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-link:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

.disclaimer {
  font-size: 12px;
  margin: 0 auto;
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent) 1;
  padding-top: 20px;
  margin-top: 4px;
  width: 90%;
}

.footer-bottom {
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent) 1;
  padding-top: 20px;
  margin-top: 4px;
  text-align: center;
  width: 90%;
  margin: 4px auto 0 auto;
}

.footer-text {
  font-size: 16px;
}

.footer-text p,
.footer-text a {
  font-size: 16px;
  color: #fff;
  margin: 0;
  text-decoration: none;
}

.footer-text a {
  padding: 4px 10px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-text a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-text a:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 580px) {
  .footer-links-container {
    gap: 16px;
    row-gap: 8px;
  }

  .footer-logo {
    max-width: 160px;
  }
}

@media (max-width: 360px) {
  .footer-links-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-section:nth-child(1),
  .footer-section:nth-child(2),
  .footer-section:nth-child(3),
  .footer-section:nth-child(4),
  .footer-section:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }
}
