/* --- LOCK FOOTER FONT SIZE ABSOLUTE UNIVERSAL --- */
footer, .footer-inner, .footer-links, .footer-link,
.footer-extra, .footer-social, .footer-copyright,
.footer-meta, .footer-info, .footer-note, .footer-legal,
.text-muted, .text-center, .text-small,
footer *, .footer-inner * {
  font-family: 'Segoe UI', 'Noto Sans Thai', 'Noto Sans', sans-serif !important;
  font-size: 16px !important;           /* <-- กำหนดค่าคงที่ ไม่ผันแปร */
  line-height: 1.85 !important;
  letter-spacing: 0.01em !important;
  box-sizing: border-box;
}

/* Social icon: bigger only for the icon itself */
.footer-social {
  font-size: 21px !important;
}

/* Responsive: ปรับขนาดลงเล็กน้อยบนจอเล็ก */
@media (max-width: 600px) {
  footer, .footer-inner, .footer-links, .footer-link,
  .footer-extra, .footer-social, .footer-copyright,
  .footer-meta, .footer-info, .footer-note, .footer-legal,
  .text-muted, .text-center, .text-small,
  footer *, .footer-inner * {
    font-size: 12px !important;
  }
  .footer-social { font-size: 14px !important; }
}
@media (max-width: 450px) {
  footer, .footer-inner, .footer-links, .footer-link,
  .footer-extra, .footer-social, .footer-copyright,
  .footer-meta, .footer-info, .footer-note, .footer-legal,
  .text-muted, .text-center, .text-small,
  footer *, .footer-inner * {
    font-size: 12px !important;
  }
  .footer-social { font-size: 14px !important; }
}

/* Utility */
.text-center { text-align: center !important; }
.text-small { font-size: 14px !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Layout & Flexibility (เหมือนเดิม) */
footer {
  --footer-bg: #fff;
  --footer-border: #E6ECF7;
  --footer-shadow: 0 0 5px #e6ecf7;
  --footer-radius: 24px;
  --footer-link: #13b47f;
  --footer-link-hover: #0eb0d5;
  --footer-social-bg: #f4faf7;
  --footer-social-hover: #e0f6ef;
  --footer-muted: #8ea1b8;

  background: var(--footer-bg);
  border-top: 1.5px solid var(--footer-border);
  border-bottom: 1.5px solid var(--footer-border);
  margin-top: 3.2rem;
  margin-bottom: 0px;
  box-shadow: var(--footer-shadow);
  width: 100vw;
  min-width: 100vw !important;
  max-width: 100vw !important;
  left: 0;
  right: 0;
  position: relative;
  z-index: 100;
  overflow: visible;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
footer, .footer-inner {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.1rem 1.6rem 5.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  border-radius: var(--footer-radius);
  background: inherit;
  width: 100%;
}
.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
  width: 100%;
}
.footer-link {
  color: var(--footer-link);
  text-decoration: none;
  padding: 0.44em 1.18em;
  border-radius: 25px;
  transition: background 0.12s, color 0.12s, box-shadow 0.13s;
  font-weight: 700;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  box-shadow: none;
}
.footer-link:hover,
.footer-link:focus-visible {
  background: #ecfdf7;
  color: var(--footer-link-hover);
  outline: none;
  box-shadow: 0 2px 8px rgba(19,180,127,0.11);
}
.footer-extra {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  margin-top: 0em;
  font-weight: 600;
  flex-wrap: wrap;
}
.footer-extra span {
  color: var(--footer-muted);
  font-weight: 600;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--footer-social-bg);
  border-radius: 25px;
  width: 2.6em;
  height: 2.6em;
  color: var(--footer-link);
  transition: background 0.12s, color 0.12s, box-shadow 0.13s;
  text-decoration: none;
  border: none;
  font-weight: 700;
  outline: none;
  margin-left: 0.25em;
  box-shadow: none;
}
.footer-social:hover,
.footer-social:focus-visible {
  background: var(--footer-social-hover);
  color: var(--footer-link-hover);
  outline: none;
  box-shadow: 0 2px 12px rgba(19,180,127,0.13);
}
.footer-copyright,
.footer-meta,
.footer-info,
.footer-note,
.footer-legal,
.text-muted {
  color: var(--footer-muted);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0em;
  margin-top: 0em;
  width: 100%;
}

/* Sticky Footer (option) */
.footer-sticky {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-bottom: 0 !important;
  z-index: 1100;
  box-shadow: 0 -2px 14px #e6ecf7;
  background: var(--footer-bg);
}

/* Ensure layout flexibility, no cutoff */
footer, .footer-inner, .footer-links, .footer-extra, .footer-social {
  overflow: visible !important;
  position: relative;
  max-width: none !important;
  min-width: 0 !important;
}
footer, .footer-inner {
  flex-shrink: 0 !important;
  flex-grow: 1 !important;
  min-height: unset !important;
}