#my-custom-footer {
  display: flex;
  flex-direction: row;
  padding: 60px 10%;
  background-color: var(--main-color);
  justify-content: space-between;
}

/* Logo link styling */
#footer-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#footer-logo-link:hover {
  transform: scale(1.02);
}

#footer-logo-link img {
  transition: opacity 0.3s ease;
}

#footer-logo-link:hover img {
  opacity: 0.9;
}

#footer-logo-link h5 {
  margin: 0;
  transition: color 0.3s ease;
}

#footer-logo-link:hover h5 {
  color: #000000 !important;
}

.footer-titles {
  color: #fff;
  font-family: 'GenSenRounded TW Titles';
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 25.5px */
  letter-spacing: -0.187px;
  margin: 0px;
  padding: 0px;
  padding-bottom: 21px;
}

.footer-links {
  color: #fff;
  font-family: 'GenSenRounded TW';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 22.5px */
  letter-spacing: -0.165px;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-links:hover {
  color: #000000 !important;
}

/* For title links (LINE即時諮詢, 部落格, 隱私權政策) */
a.footer-titles:hover {
  color: #000000 !important;
}

.last-link {
  margin-bottom: 30px;
}

.icon-row {
  margin: 0;
  margin-bottom: 21px;
}

/* Social media icons hover effect */
.icon-row a {
  transition: all 0.3s ease;
}

.icon-row a:hover svg path {
  stroke: #000000;
}

.icon-row a:hover svg path[fill="black"] {
  fill: #000000;
}

.email-box {
  margin: 0;
}
#footer-email-input {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  width: 160px;
  height: 36px;
  padding-left: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  text-overflow: ellipsis;
}
#footer-email-input:focus-visible,
#footer-email-input:focus {
  outline: none;
}

#footer-submit {
  border-radius: 86px;
  background: #2b78e4;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  width: 90px;
  height: 36px;
  border: none;
  color: white;
  cursor: pointer;
  text-wrap: nowrap;
  transition: all 0.3s ease;
}
#footer-submit:hover {
  background: #1E5FB8; /* 深藍色 */
  transform: scale(1.02);
}
#footer-submit:active {
  transform: scale(0.99);
}

/* Tablet */
@media (max-width: 1000px) {
  #my-custom-footer {
    padding: 40px 5%;
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  #my-custom-footer {
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
    align-items: flex-start;
  }

  /* Logo section - centered */
  #my-custom-footer > .column:first-child {
    width: 100%;
    align-items: center !important;
    text-align: center;
    margin-bottom: 20px;
  }

  #footer-logo-link img {
    max-width: 200px;
  }

  /* Other columns - left aligned, full width */
  #my-custom-footer > .column {
    width: 100%;
    align-items: flex-start;
  }

  /* Titles spacing */
  .footer-titles {
    font-size: 16px;
    padding-bottom: 16px;
  }

  /* Links spacing */
  .footer-links {
    font-size: 14px;
    padding: 3px 0;
  }

  /* Last link margin */
  .last-link {
    margin-bottom: 24px;
  }

  /* Social icons - centered in mobile */
  .icon-row {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 16px;
    gap: 24px;
  }

  .icon-row svg {
    width: 32px;
    height: auto;
  }

  /* Email box - stack vertically on very small screens */
  .email-box {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100%;
    margin-bottom: 0;
  }

  #footer-email-input {
    width: 100%;
    max-width: 280px;
    height: 42px;
    font-size: 15px;
  }

  #footer-submit {
    width: 100px;
    height: 42px;
    font-size: 16px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  #my-custom-footer {
    padding: 30px 16px;
    gap: 32px;
  }

  .footer-titles {
    font-size: 15px;
  }

  .footer-links {
    font-size: 13px;
  }
}