/* ==========================================
   FOOTER STYLES (MATCHING FIGMA DESIGN)
   ========================================== */

#footer .absolute-footer {
  display: none;
}

#footer {
  background-color: #0f391c;
  color: #faf9f6;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#footer a {
  color: #faf9f6;
  transition: color 0.2s ease-in-out;
  font-size: 16px;
}

#footer a:hover {
  color: #ffcd38;
}

@media (min-width: 850px) {

  #footer .footer-main-row>.col,
  #footer .row:not(.row-copyright)>.col {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Col 1: Logo & Social (~23%) */
  #footer .footer-main-row>.col:nth-child(1),
  #footer .footer-col-brand {
    flex: 0 0 23% !important;
    max-width: 23% !important;
  }

  /* Col 2: Thông tin (~31%) */
  #footer .footer-main-row>.col:nth-child(2),
  #footer .footer-col-info {
    flex: 0 0 31% !important;
    max-width: 31% !important;
  }

  /* Col 3: Chính sách (~23%) */
  #footer .footer-main-row>.col:nth-child(3),
  #footer .footer-col-policy {
    flex: 0 0 23% !important;
    max-width: 23% !important;
  }

  /* Col 4: Đăng ký nhận tin (~23%) */
  #footer .footer-main-row>.col:nth-child(4),
  #footer .footer-col-newsletter {
    flex: 0 0 23% !important;
    max-width: 23% !important;
  }
}

/* ─── Column Headings ─── */
#footer .footer-col-heading,
#footer .footer-col-heading p,
#footer .footer-col-heading h4 a {
  color: #ffcd38 !important;
  font-size: 13px !important;
  margin-bottom: 10px !important;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ─── Brand & Logo ─── */
#footer .logo-footer {
  max-width: 202px;
  height: auto;
  display: block;
  margin-bottom: 0;
}

#footer .footer-social {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

#footer .footer-social img,
#footer .footer-social .img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#footer .footer-social img:hover,
#footer .footer-social .img:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ─── Company Info & Featured Boxes ─── */
#footer .footer-company-info p {
  color: #faf9f6;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 0;
}

#footer .footer-info-item,
#footer .featured-box {
  margin-bottom: 12px;
}

#footer .footer-info-item .icon-box-img,
#footer .featured-box .icon-box-img {
  width: 20px !important;
  margin-right: 12px !important;
}

#footer .icon-box-img img,
#footer .icon-box-img svg {
  padding-top: 0;
}

#footer .footer-info-item p,
#footer .featured-box p {
  color: #faf9f6 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  margin-bottom: 0 !important;
}

/* ─── Policy Menu ─── */
#footer .ux-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .ux-menu-link {
  margin-bottom: 16px;
}

#footer .ux-menu-link:last-child {
  margin-bottom: 0;
}

#footer .ux-menu-link__link {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #faf9f6 !important;
}

#footer .ux-menu-link__link:hover {
  color: #ffcd38 !important;
}

/* ─── Newsletter Registration Form ─── */
#footer .footer-subscribe-form {
  margin-top: 10px;
  width: 100%;
}

#footer .footer-subscribe-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #faf9f6;
  padding-bottom: 8px;
  padding-top: 8px;
  position: relative;
}

#footer .footer-subscribe-input-wrap input[type="email"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #faf9f6 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1;
  outline: none !important;
  height: auto !important;
}

#footer .footer-subscribe-input-wrap input[type="email"]::placeholder {
  color: rgba(250, 249, 246, 0.628) !important;
  font-size: 16px;
}

#footer .footer-subscribe-input-wrap button {
  background: transparent !important;
  border: none !important;
  padding: 0 0 0 10px !important;
  margin: 0 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  min-height: unset !important;
  height: auto !important;
}

#footer .footer-subscribe-input-wrap button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

#footer .footer-subscribe-input-wrap button:hover svg {
  transform: translateX(3px);
}

/* ─── Bottom Copyright Row ─── */

#footer .row-copyright p,
#footer .row-copyright a {
  color: rgba(250, 249, 246, 0.6) !important;
  font-size: 16px !important;
  line-height: 24px !important;
}

#footer .row-copyright a:hover {
  color: #ffcd38 !important;
}

#footer .copyright-links {
  display: flex;
  gap: 48px;
  justify-content: flex-end;
}

@media (max-width: 849px) {
  #footer .copyright-links {
    justify-content: flex-start;
    margin-top: 10px;
    gap: 24px;
  }
}