/* Footer Styling */
.main-footer {
  background: var(--primary-navy);
  color: var(--text-light);
  padding-top: 42px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 6px;
  letter-spacing: 0.3px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-social-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.footer-links a {
  color: var(--text-light);
  font-size: 13px;
  transition: var(--transition-fast);
  display: inline-block;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
  .main-footer {
    padding-top: 36px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
  }
  .footer-logo {
    height: 40px;
  }
}

/* Mobile: <= 768px (Bố cục 4 cột nằm ngang trên cùng 1 hàng) */
@media (max-width: 768px) {
  .main-footer {
    padding-top: 18px;
    padding-bottom: 85px; /* Tránh bị 2 nút nổi Zalo & Gọi điện che khuất cột Thông Tin Liên Hệ */
  }

  .main-footer .container {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* 1. Bố cục 4 cột nằm ngang */
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 20px 8px;
    margin-bottom: 10px;
  }

  .footer-col {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 2. Cân chỉnh kích thước Logo, Icon & Typography */
  .footer-logo {
    max-width: 85px;
    width: 100%;
    height: auto;
    max-height: 28px;
    margin-bottom: 6px;
    object-fit: contain;
  }

  .footer-col h3 {
    font-size: 10.5px;
    line-height: 1.3;
    margin-bottom: 6px;
    padding-bottom: 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-col h3::after {
    width: 20px;
    height: 1.5px;
  }

  .footer-col p {
    font-size: 9px;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .footer-social {
    gap: 5px;
    margin-top: 6px;
  }

  .footer-social-btn {
    width: 24px;
    height: 24px;
    font-size: 10.5px;
  }

  .footer-links {
    margin: 0;
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 4px;
    font-size: 9px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-links li i {
    font-size: 9.5px;
    margin-right: 3px !important;
  }

  .footer-links li strong {
    font-size: 9px;
    font-weight: 700;
  }

  .footer-links a {
    font-size: 9px;
    line-height: 1.35;
    padding: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    padding: 10px 0 0;
    font-size: 9.5px;
    line-height: 1.35;
  }
}
