/* === Footer — refined === */
.footer-wrapper {
  background-color: var(--surface-page);
  border-top: 1px solid var(--border-default);
  margin-top: 0;
}

.footer-wrapper > section.section {
  padding-top: 56px !important;
  padding-bottom: 32px !important;
}

.footer-wrapper > section.section > .section-content > .row {
  align-items: flex-start;
}

/* Column 1: logo + desc + social */
.footer-wrapper .ux-logo {
  margin: 0 0 16px;
}

.footer-wrapper .ux-logo .ux-logo-link {
  padding: 0 !important;
}

.footer-wrapper .ux-logo .ux-logo-image {
  height: 52px !important;
  width: auto !important;
}

.footer-wrapper .col-inner > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--second-text);
  margin: 0 0 18px;
  max-width: 320px;
}

/* Hide legacy material icons row */
.cms-footer-icons-1.hidden {
  display: none !important;
}

/* Modern social icons: filled rounded square, brand-on-hover */
.footer-wrapper .social-icons.follow-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.footer-wrapper .social-icons.follow-icons > a.icon.button {
  width: 38px !important;
  height: 38px !important;
  min-width: 0;
  line-height: 36px;
  border-radius: var(--radius-md) !important;
  background: var(--surface-card);
  border: 1px solid var(--border-default) !important;
  color: var(--second-text);
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.footer-wrapper .social-icons.follow-icons > a.icon.button:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue) !important;
  color: #fff;
  transform: translateY(-2px);
}

.footer-wrapper .social-icons.follow-icons > a.icon.button > i {
  font-size: 16px;
  color: inherit;
}

.footer-wrapper .social-icons.follow-icons > a.icon.button:hover > i {
  color: #fff;
}

/* Column titles */
.cms-footer-col h3 {
  position: relative;
  color: var(--primary-text);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  margin: 4px 0 20px;
  padding-bottom: 12px;
  letter-spacing: -0.1px;
}

.cms-footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-blue);
}

/* Link list */
.cms-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.cms-footer-col ul > li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  list-style: none;
}

.cms-footer-col ul > li a {
  text-decoration: none;
  color: var(--second-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cms-footer-col ul > li a:hover {
  color: var(--primary-blue);
  transform: translateX(2px);
}

/* Inline material icon next to links / contact items */
.cms-footer-col ul > li > .material-symbols-outlined {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue-soft);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  font-size: 16px;
  margin-top: 1px;
  font-variation-settings: "FILL" 1;
}

.cms-footer-col ul > li > span:not(.material-symbols-outlined) {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--second-text);
}

/* Hotline highlight (overrides legacy inline style) */
.cms-footer-col ul > li > span[style*="font-weight:700"],
.cms-footer-col ul > li > span[style*="font-size:18px"] {
  color: var(--primary-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  line-height: 1.4 !important;
}

/* Email link (Cloudflare-protected) */
.cms-footer-col ul > li a.__cf_email__,
.cms-footer-col ul > li > span > a {
  color: var(--primary-blue);
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}

.cms-footer-col ul > li a.__cf_email__:hover,
.cms-footer-col ul > li > span > a:hover {
  text-decoration: underline;
}

/* Chứng nhận column */
.cms-footer-icon-item-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cms-footer-icon-item-text-wrapper p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-text);
  margin: 0;
}

.cms-footer-icon-item-text-wrapper p::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  font-family: Lexend, sans-serif;
  color: var(--accent-warning);
  transform: translateY(-1px);
}

/* === Absolute footer (copyright + payment icons) === */
.absolute-footer {
  background-color: #0e2347;
  color: rgba(255, 255, 255, 0.7);
  padding: 18px 0;
  border-top: 0;
  font-size: 13px;
  line-height: 1.5;
}

.absolute-footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.absolute-footer .footer-primary,
.absolute-footer .footer-secondary {
  float: none !important;
  margin: 0 !important;
}

.absolute-footer .copyright-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-align: left;
}

.absolute-footer .copyright-footer > div:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.absolute-footer .copyright-footer > div:nth-child(2) {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-style: italic;
}

.absolute-footer .payment-icons {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.absolute-footer .payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  height: 22px;
}

.absolute-footer .payment-icon svg {
  height: 22px;
  width: auto;
  fill: #fff;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.absolute-footer .payment-icon:hover svg {
  opacity: 1;
}

@media screen and (max-width: 849px) {
  .footer-wrapper > section.section {
    padding-top: 40px !important;
    padding-bottom: 24px !important;
  }

  .footer-wrapper .col-inner > p {
    max-width: 100%;
  }

  .cms-footer-col h3 {
    margin-top: 16px;
  }
}

@media screen and (max-width: 549px) {
  .absolute-footer .container {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .absolute-footer .copyright-footer {
    text-align: left;
    width: 100%;
  }

  .footer-wrapper .social-icons.follow-icons > a.icon.button {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ============================================================
   FOOTER — MOBILE COMPRESSION
   ============================================================ */
@media (max-width: 768px) {
  .footer-wrapper { padding: 0 !important; }
  .absolute-footer { padding: 10px 12px !important; font-size: 11.5px !important; line-height: 1.5 !important; }
  #footer .footer-row { padding: 16px 12px !important; gap: 14px !important; }
  #footer .footer-row .col { padding: 4px 12px !important; margin-bottom: 8px !important; }
  #footer .footer-row h3, #footer .footer-row .widget-title { font-size: 14px !important; margin: 0 0 8px !important; }
  #footer .footer-row li, #footer .footer-row p, #footer .footer-row a { font-size: 12.5px !important; line-height: 1.55 !important; }
  #footer .footer-row .widget { margin-bottom: 10px !important; }
  #footer .footer-row img.footer-logo { max-width: 140px !important; }
  /* Social icons row tighter */
  #footer .social-icons a { width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 14px !important; margin: 2px 4px 2px 0 !important; }
}
