/* ============================================================
   Trang Phòng Tổ chức – Hành chính — module tchc-page.
   PORT từ _design-reference/HUFLIT Website 26062026 (static)/assets/css/tchc-page.css
   + các block dùng chung copy NGUYÊN giá trị từ unit-page.css / faculty-detail.css.

   ⛔ MỌI selector PHẢI nằm dưới `.hf-tchc`.
   Class như .hf-shell / .hf-section / .hf-eyebrow / .hf-head dùng chung với
   mega-menu + footer (load TRƯỚC file này) — khai ở dạng TRẦN sẽ đè style toàn
   site và làm mega/footer co lại CHỈ trên trang này. Gate fidelity crop .hf-page
   nên KHÔNG bao giờ bắt được lỗi đó → spec có guard assertSharedChromeIntact().

   .hf-shell KHÔNG khai ở đây — đã có global trong mega-menu.css (--maxw 1360).
   Enqueue conditional: chỉ bài `unit` slug to-chuc-hanh-chinh(-en).
   ============================================================ */

:root {
  --blue: #17479D;
  --orange: #EE6823;
  --blue-700: #0f3270;
  --blue-50: #eef3fb;
  --blue-100: #dde7f6;
  --orange-50: #fdf0e7;
  --ink: #14213d;
  --ink-soft: #4a5a76;
  --muted: #7a879c;
  --line: #e4eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-sm: 3px;
  --shadow-sm: 0 1px 3px rgba(20,33,61,.05);
  --shadow-md: 0 4px 14px rgba(20,33,61,.07);
  --shadow-lg: 0 10px 28px rgba(20,33,61,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
}

.hf-tchc { font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* ---- Resets có phạm vi ---- */
.hf-tchc a:not(.hf-btn) { text-decoration: none; }
.hf-tchc h1, .hf-tchc h2, .hf-tchc h3, .hf-tchc h4 {
  margin: 0; line-height: 1.16; letter-spacing: -.01em; font-weight: 700;
}
.hf-tchc p { margin: 0; }
.hf-tchc ul { margin: 0; padding: 0; list-style: none; }

/* ============ Hero + breadcrumb (copy nguyên từ unit-page.css) ============ */
.hf-tchc .hf-phero { background: var(--blue-700); color: #fff; padding: 46px 0 56px; }
.hf-tchc .hf-phero a:not(.hf-btn) { color: inherit; }
.hf-tchc .hf-phero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; margin: 14px 0 14px; }
.hf-tchc .hf-phero p { font-size: 17px; color: #dbe5f5; max-width: 620px; }
.hf-tchc .hf-phero .hf-crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: 10px; flex-wrap: wrap; }
.hf-tchc .hf-phero .hf-crumb svg { opacity: .5; }
.hf-tchc .hf-phero .hf-crumb a:hover { color: #fff; }
.hf-tchc .hf-phero .hf-crumb span[aria-current] { color: #fff; }
.hf-tchc .hf-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 4px; background: rgba(255,255,255,.18); color: #fff; }

/* ============ Section / heading dùng chung ============ */
.hf-tchc .hf-section { padding: 68px 0; }
.hf-tchc .hf-section.soft { background: var(--bg-soft); }
.hf-tchc .hf-head { max-width: 640px; margin-bottom: 34px; }
.hf-tchc .hf-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 14px; }
.hf-tchc .hf-head p { font-size: 17px; color: var(--ink-soft); }
.hf-tchc .hf-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
/* Phải đứng SAU .hf-tchc .hf-head (cùng specificity — thứ tự quyết định). */
.hf-tchc .hf-head-row .hf-head { margin-bottom: 0; }
.hf-tchc .hf-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
}
.hf-tchc .hf-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }

.hf-tchc .hf-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 4px; font-weight: 800; font-size: 15px;
  transition: transform .16s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.hf-tchc .hf-btn:hover { transform: translateY(-2px); }
.hf-tchc .hf-btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(238,104,35,.32); }
.hf-tchc .hf-btn-orange:hover { box-shadow: 0 12px 26px rgba(238,104,35,.42); }
.hf-tchc .hf-btn-white { background: #fff; color: var(--blue); }

.hf-tchc .hf-link-arrow {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--blue);
  font-size: 15px; transition: gap .18s var(--ease);
}
.hf-tchc .hf-link-arrow:hover { gap: 12px; }

/* ============ Chức năng – Nhiệm vụ (copy nguyên từ unit-page.css) ============ */
.hf-tchc .hf-fitlist { display: grid; gap: 10px; margin-top: 6px; }
.hf-tchc .hf-fitlist li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.hf-tchc .hf-fit-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: #d8f0e0; color: #1f8a5b; flex-shrink: 0; margin-top: 1px; }

/* ============ Thanh tab điều hướng trong trang ============ */
/* Dính ngay DƯỚI header (top = chiều cao header), z-index THẤP HƠN header (100)
   để không tranh chỗ. Header cao cố định 134px = 38px utility + 96px nav ở MỌI
   breakpoint (mega-menu.css: .hf-utility height 38, .hf-nav-in height 96 — media
   query 1080/600 chỉ ẩn link, không đổi chiều cao). Sửa header thì sửa cả số này. */
.hf-tchc .hf-tchc-tabbar {
  position: sticky; top: 134px; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hf-tchc .hf-tchc-tabs {
  display: flex; gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hf-tchc .hf-tchc-tab {
  flex: 0 0 auto; white-space: nowrap;
  padding: 11px 22px; border-radius: 4px;
  font-weight: 800; font-size: 14.5px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.hf-tchc .hf-tchc-tab:hover { color: var(--blue); background: var(--blue-50); }
.hf-tchc .hf-tchc-tab.on { background: var(--blue); color: #fff; }

/* Trừ chiều cao header (134) + thanh tab (~65) để tiêu đề khối không chui xuống
   dưới header khi bấm tab. */
.hf-tchc .hf-tchc-anchor { scroll-margin-top: 200px; }

/* ============ Khối 1 — Giới thiệu ============ */
/* Design dùng inline style ở 3 chỗ này; impl chuyển thành class, GIỮ NGUYÊN số đo. */
.hf-tchc .hf-tchc-h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0 16px; }
.hf-tchc .hf-tchc-intro-body { font-size: 17px; color: var(--ink-soft); }
.hf-tchc .hf-tchc-intro-cta { margin-top: 26px; }
.hf-tchc .hf-tchc-policy-goal { margin-top: 22px; }
.hf-tchc .hf-tchc-units-h2 { font-size: clamp(24px, 3vw, 32px); }

/* ============ Tiêu đề khối con ============ */
.hf-tchc .hf-tchc-sub { margin-bottom: 20px; }
.hf-tchc .hf-tchc-sub-flush { margin-bottom: 0; }
.hf-tchc .hf-tchc-sub h3 { font-size: 21px; margin-bottom: 7px; }
.hf-tchc .hf-tchc-sub p { font-size: 15px; color: var(--ink-soft); max-width: 720px; }
.hf-tchc .hf-tchc-grp { margin-top: 40px; }
.hf-tchc .hf-tchc-grp:first-child { margin-top: 0; }

/* ============ Khung trắng dùng chung ============ */
.hf-tchc .hf-tchc-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.hf-tchc .hf-tchc-panel > h4 { font-size: 17px; margin-bottom: 6px; }
.hf-tchc .hf-tchc-panel > p.hf-tchc-lead { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }

.hf-tchc .hf-tchc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hf-tchc .hf-tchc-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ Thẻ tin tức / thông báo ============ */
/* Thẻ là thẻ <a> nên tiêu đề bên trong ăn màu link mặc định của theme (xanh).
   Design để tiêu đề màu chữ đậm — file design có `a { color: inherit }` toàn cục,
   theme thì không. Đặt màu thẳng trên thẻ, KHÔNG khai `a { color: inherit }` phạm vi
   rộng: rule đó có specificity cao hơn `.hf-tchc .hf-link-arrow` và sẽ nuốt màu xanh
   của mọi link "Xem thêm". */
.hf-tchc .hf-tchc-ncard,
.hf-tchc .hf-tchc-job { color: var(--ink); }

.hf-tchc .hf-tchc-news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hf-tchc .hf-tchc-ncard {
  display: flex; flex-direction: column; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 20px 22px;
  transition: transform .16s var(--ease), box-shadow .2s, border-color .2s;
}

/* ---- Ảnh đại diện của thẻ tin ----
   Khung tỉ lệ 16:9 CỐ ĐỊNH và luôn có mặt, kể cả bài thiếu ảnh (`is-empty` → nền
   thương hiệu). Phần lớn bài hiện chưa có ảnh (tra 2026-09-04: tin tức 3/8, đào tạo
   0/8) nên nếu bỏ khung khi thiếu, các thẻ trong cùng hàng sẽ cao thấp so le. */
.hf-tchc .hf-tchc-ncard-media {
  margin: -20px -20px 3px;                 /* tràn hết padding của thẻ */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}
.hf-tchc .hf-tchc-ncard-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hf-tchc .hf-tchc-ncard-media.is-empty {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  position: relative;
}
/* Dấu nhận biết nhẹ cho ô thiếu ảnh — đủ để không bị nhìn như lỗi tải ảnh. */
.hf-tchc .hf-tchc-ncard-media.is-empty::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(23, 71, 157, .10) 0, rgba(23, 71, 157, 0) 62%);
}
.hf-tchc .hf-tchc-ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.hf-tchc .hf-tchc-date { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--orange); }
.hf-tchc .hf-tchc-ncard h3 { font-size: 16px; line-height: 1.32; }
.hf-tchc .hf-tchc-ncard p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ Dòng tài liệu ============ */
.hf-tchc .hf-tchc-docs { display: grid; gap: 10px; }
.hf-tchc .hf-tchc-doc {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .15s, border-color .15s;
}
.hf-tchc a.hf-tchc-doc:hover { background: #fff; border-color: var(--blue-100); }
.hf-tchc .hf-tchc-doc-ic {
  flex-shrink: 0; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 4px;
  background: #fdeaea; color: #c0392b;
}
.hf-tchc .hf-tchc-doc-b { min-width: 0; }
.hf-tchc .hf-tchc-doc-b strong { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.hf-tchc .hf-tchc-doc-b p { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.hf-tchc .hf-tchc-badge {
  margin-left: auto; flex-shrink: 0; align-self: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 3px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.hf-tchc .hf-tchc-more { margin-top: 16px; }

/* ============ Dải kêu gọi ============ */
.hf-tchc .hf-tchc-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: var(--blue); color: #fff;
  border-radius: var(--radius-lg); padding: 30px 34px;
  margin-top: 40px;
}
.hf-tchc .hf-tchc-band h3 { font-size: 21px; margin-bottom: 6px; }
.hf-tchc .hf-tchc-band p { font-size: 15px; color: #dbe5f5; }

/* ============ Chính sách nhân sự ============ */
.hf-tchc .hf-tchc-policy p + p { margin-top: 14px; }
.hf-tchc .hf-tchc-policy p { font-size: 15.5px; color: var(--ink-soft); }
.hf-tchc .hf-tchc-plab {
  display: block; font-size: 12.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

/* ============ Thông tin tuyển dụng (3 ô) ============ */
.hf-tchc .hf-tchc-inline-item {
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hf-tchc .hf-tchc-inline-item strong {
  display: block; font-size: 12.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.hf-tchc .hf-tchc-inline-item p { font-size: 15px; color: var(--ink); font-weight: 600; }

/* ============ Vị trí tuyển dụng ============ */
.hf-tchc .hf-tchc-jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hf-tchc .hf-tchc-job {
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 20px 22px;
  transition: box-shadow .2s, transform .16s var(--ease);
}
.hf-tchc .hf-tchc-job:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hf-tchc .hf-tchc-job h3 { font-size: 16.5px; margin: 7px 0 8px; }
.hf-tchc .hf-tchc-job p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ Liên hệ ============ */
.hf-tchc .hf-tchc-cline {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.hf-tchc .hf-tchc-cline:last-of-type { border-bottom: 0; }
.hf-tchc .hf-tchc-cline svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.hf-tchc .hf-tchc-cline span { font-size: 15px; font-weight: 600; color: var(--ink); }
.hf-tchc .hf-tchc-mails { display: grid; gap: 9px; margin-top: 16px; }
.hf-tchc .hf-tchc-mail { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.hf-tchc .hf-tchc-mail b {
  flex-shrink: 0; min-width: 108px;
  font-size: 12.5px; font-weight: 800;
  padding: 5px 11px; border-radius: 3px;
  background: var(--blue-50); color: var(--blue); text-align: center;
}
.hf-tchc .hf-tchc-mail a { font-size: 14.5px; font-weight: 700; color: var(--ink-soft); }
.hf-tchc .hf-tchc-mail a:hover { color: var(--blue); }

/* ============ Đầu mối hỗ trợ ============ */
.hf-tchc .hf-tchc-desk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hf-tchc .hf-tchc-desk-item {
  padding: 16px 18px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hf-tchc .hf-tchc-desk-item strong { display: block; font-size: 15px; margin-bottom: 5px; color: var(--blue); }
.hf-tchc .hf-tchc-desk-item p { font-size: 14px; color: var(--ink-soft); }
.hf-tchc .hf-tchc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hf-tchc .hf-tchc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 4px;
  background: #fff; border: 1px solid var(--blue-100);
  font-weight: 800; font-size: 14px; color: var(--blue);
  transition: background .15s, color .15s, border-color .15s;
}
.hf-tchc .hf-tchc-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============ Các đơn vị khác (dải ngang cuối trang) ============ */
.hf-tchc .hf-tchc-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hf-tchc .hf-tchc-unit {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; width: 100%; text-align: left;
  padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 14.5px; color: var(--ink-soft);
  transition: color .15s, border-color .15s, box-shadow .2s;
}
.hf-tchc .hf-tchc-unit:hover { color: var(--blue); border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.hf-tchc .hf-tchc-unit svg { color: var(--orange); flex-shrink: 0; }

/* ============ Reveal animation ============ */
.hf-tchc .hf-reveal {
  opacity: 0; transform: translateY(40px); filter: blur(4px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  will-change: opacity, transform, filter;
}
.hf-tchc .hf-reveal.in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .hf-tchc .hf-reveal, .hf-tchc .hf-reveal * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hf-tchc .hf-tchc-news { grid-template-columns: repeat(2, 1fr); }
  .hf-tchc .hf-tchc-units { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hf-tchc .hf-section { padding: 52px 0; }
  .hf-tchc .hf-tchc-2,
  .hf-tchc .hf-tchc-3,
  .hf-tchc .hf-tchc-jobs,
  .hf-tchc .hf-tchc-desk { grid-template-columns: 1fr; }
  .hf-tchc .hf-tchc-band { padding: 26px 24px; }
}
@media (max-width: 720px) {
  .hf-tchc .hf-phero { padding: 34px 0 40px; }
}
@media (max-width: 640px) {
  .hf-tchc .hf-tchc-news { grid-template-columns: 1fr; }
  .hf-tchc .hf-tchc-units { grid-template-columns: 1fr; }
  .hf-tchc .hf-tchc-panel { padding: 22px 20px; }
  .hf-tchc .hf-tchc-mail b { min-width: 0; }
}
