/* ============================================================
   Footer mới — module create-home (shared component, global)
   Port từ _design-reference/.../page-hero-shared.css
   ============================================================ */

/* ---- CSS vars — khai báo ở :root để footer có thể dùng trên mọi trang.
        mega-menu.css scope tất cả biến vào .hf-header/.hf-mobile,
        home-page.css chỉ load ở front_page — cả hai không kế thừa ra footer.
        Khai báo lại ở đây (giá trị giống hệt) để footer hoạt động global. ---- */
:root {
  --orange:   #EE6823;
  --blue:     #17479D;
  --blue-700: #0f3270;
  --maxw:     1360px;
  --gut:      32px;
  --shadow-md: 0 10px 30px rgba(20,33,61,.10);
}

/* ---- Scroll-to-top button (shared, mọi trang) ---- */
.hf-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .15s;
  border: none; cursor: pointer;
}
.hf-totop.show { opacity: 1; pointer-events: auto; transform: none; }
.hf-totop:hover { background: var(--orange); }

/* ---- Layout ---- */
.hf-footer { background: var(--blue-700); color: #c5d3ec; }
.hf-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 60px 32px 44px;
}
.hf-footer-top a,
.hf-footer-top button { color: #c5d3ec; }

/* ---- Brand column ----
   Iteration 1 module `footer`: bỏ dòng tên trường (.hf-foot-name), logo phóng to
   chiếm không gian cũ (logo 58px + dòng tên ~46px).
   Căn TRÁI (user chốt 2026-08-10, đổi so với bản căn giữa lúc đầu) → logo thẳng
   hàng với danh sách liên hệ và cụm icon mạng xã hội bên dưới. */
.hf-foot-brandmark { display: flex; justify-content: flex-start; margin-bottom: 14px; }
.hf-foot-logo { width: auto; height: 104px; max-width: 100%; object-fit: contain; }
.hf-foot-contact { margin: 18px 0; display: flex; flex-direction: column; gap: 11px; }
.hf-foot-contact li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; align-items: flex-start; }
.hf-foot-contact svg { color: var(--orange); flex-shrink: 0; margin-top: 1px; }
.hf-foot-contact span { color: #c5d3ec; }

/* ---- Social icons ---- */
.hf-foot-social { display: flex; gap: 10px; }
.hf-foot-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 4px;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background .15s;
}
.hf-foot-social a:hover { background: var(--orange); }

/* ---- Nav columns ---- */
.hf-footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.hf-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.hf-footer-col a,
.hf-footer-col button {
  font-size: 13.5px; color: #c5d3ec; font-weight: 600;
  text-align: left; transition: color .14s;
  text-wrap: balance; line-height: 1.4;
}
.hf-footer-col a:hover,
.hf-footer-col button:hover { color: #fff; }

/* ---- Campuses column ----
   Trải 2 cột (đúng chỗ cột "Sau Đại học" + "Đăng ký nhận tin" đã gỡ). Track lưới ở
   .hf-footer-top GIỮ NGUYÊN 6 cột để brand + 3 cột nav không đổi bề rộng.
   Item là <span> nên KHÔNG dính rule .hf-footer-col a → phải khai màu/đậm riêng. */
.hf-footer-campuses { grid-column: span 2; }
.hf-footer-campuses ul { gap: 14px; }
.hf-foot-campus { display: flex; flex-direction: column; gap: 4px; }
.hf-foot-campus-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.4; }
.hf-foot-campus-addr { font-size: 13.5px; color: #c5d3ec; line-height: 1.45; }

/* ---- Bottom bar ---- */
.hf-footer-bot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; flex-wrap: wrap; gap: 8px;
}
.hf-foot-legal { opacity: .6; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .hf-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hf-footer-top { grid-template-columns: 1fr; }
  /* BẮT BUỘC: lưới còn 1 track mà item vẫn `span 2` sẽ đẻ implicit column →
     footer tràn ngang, kéo theo thanh cuộn ngang cho CẢ TRANG. */
  .hf-footer-campuses { grid-column: auto; }
  .hf-footer-bot { flex-direction: column; text-align: center; }
}
