/* =========================================
   FOOTER STYLES
   ========================================= */

footer {
  background-color: var(--primary-color);
  /* Màu nền tím chủ đạo */
  color: #fff;
  padding: 60px 20px 20px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Container giới hạn chiều rộng nội dung */
footer .container {
  max-width: 1440px;
  margin: 0 auto;
}

/* --- MAIN LAYOUT (2 CỘT) --- */
.footer-main {
  display: flex;
  justify-content: space-around;
  /* Chia khoảng cách đều */
  align-items: flex-start;
  /* Căn hàng trên cùng */
  gap: 40px;
  margin-bottom: 40px;
}

/* Style chung để căn giữa nội dung bên trong từng cột */
.footer-col-left,
.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Căn giữa theo trục dọc (quan trọng) */
  text-align: center;
  /* Căn giữa văn bản */
}

/* --- CỘT 1: LOGO & GIỚI THIỆU --- */
.footer-col-left {
  flex: 1;
  /* Chiếm 50-60% không gian */
  max-width: 500px;
}

/* Hộp trắng chứa logo */
.logo-box-white {
  background-color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.logo-box-white img {
  height: 60px;
  /* Kích thước logo */
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 16px;
  /* Đã điều chỉnh lại cho vừa mắt (20px hơi to so với footer) */
  line-height: 1.6;
  opacity: 0.9;
  color: #b0c4d1;
  /* Màu xám xanh nhẹ cho dễ đọc trên nền tím */
}

/* --- CỘT 2: LIÊN KẾT (LINKS) --- */
.footer-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-col-right h3 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
  transform: translateY(-2px);
  /* Hiệu ứng bay nhẹ khi hover */
}

/* --- COPYRIGHT BAR --- */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Đường kẻ mờ */
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  opacity: 0.8;
  color: #b0c4d1;
}

/* =========================================
     RESPONSIVE MOBILE (< 768px)
     ========================================= */
@media (max-width: 768px) {

  .footer-main {
    flex-direction: column;
    /* Xếp chồng dọc */
    align-items: center;
    /* Căn giữa toàn bộ */
    gap: 40px;
  }

  .footer-col-left,
  .footer-col-right {
    width: 100%;
    max-width: 100%;
    /* Các thuộc tính align-items: center đã có ở trên nên tự động căn giữa */
  }

  /* Giảm kích thước logo chút xíu trên mobile cho cân đối */
  .logo-box-white img {
    height: 50px;
  }
}