footer {
  background-color: #1a1a1a;
  color: #f1f1f1;
  font-family: "GothamBook", sans-serif;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  column-gap: 3rem;
  align-items: start;
}

.footer-logo img {
  width: 170px;
}

.footer-two-text-wyn {
  font-size: 14px;
  line-height: 1.8;
  color: #f1f1f1;
}

.footer-contact img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
}
.text-footer {
  display: flex;
}
.text-footer a {
  text-decoration: none;
  color: white;
  /* ปกติเป็นสีขาว */
  transition: all 0.4s ease;
  position: relative;
}

/* ตอน hover: ให้เป็นสีรุ้ง */
.text-footer:hover a {
  background-image: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  background-size: 300%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 3s linear infinite;
  transform: translateX(3px);
}

@keyframes rainbowText {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@media (max-width: 1024px) {
  .footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr 1.2fr;
    column-gap: 3rem;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1.2fr;
    column-gap: 3rem;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .footer-logo {
    padding: 2rem 0;
  }

  .footer-logo img {
    width: 200px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1rem;
    row-gap: 1rem;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0 auto;
  }

  .footer-contact img {
    margin-right: 6px;
  }
}

/* @media (max-width: 480px) {
  .footer-logo img {
    width: 120px;
  }
  .footer-two-text-wyn {
    font-size: 12px;
  }
  .footer-contact img {
    width: 18px;
    margin-right: 5px;
  }
  .footer-address,
  .footer-contact {
    font-size: 15px;
  }
}
@media (max-width: 375px) {
  .footer-logo img {
    width: 100px;
  }
  .footer-contact img {
    width: 18px;
    margin-right: 5px;
  }
  .footer-address,
  .footer-contact {
    font-size: 12px;
  }
} */
