/* ════════════════════════════════════════
   GIỚI THIỆU TRƯỜNG — gioi-thieu.css
   v1.0.1
════════════════════════════════════════ */

/* ① Xóa dải trắng giữa hero và content (Flatsome default padding) */
.page-template-templates-template-gioi-thieu #content,
.page-template-templates-template-gioi-thieu .page-wrapper,
.page-template-templates-template-gioi-thieu .post-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}



/* ── Xóa padding của Flatsome #main khi chứa trang Giới Thiệu ── */
#main:has(.qt-gt-wrap) {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Outer wrap ── */
.qt-gt-wrap {
  background: #F0F4F8;
  padding: 0;
  margin: 0;
}

/* ── Layout ── */
.qt-gt-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 20px;
}


/* ── Content panel ── */
.qt-gt-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
  min-width: 0;
}
.qt-gt-content p { margin: 0 0 14px; }
.qt-gt-content p:last-child { margin-bottom: 0; }

/* Section title */
.qt-gt-section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0B132B;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid #D61C23;
  line-height: 1.3;
}

/* ────────────────────────────
   LỊCH SỬ HÌNH THÀNH — nội dung từ WP Editor
   Admin gõ: H3 = mốc lịch sử (năm + tiêu đề),
             Blockquote = số quyết định,
             H2 = tiêu đề phần cơ cấu,
             UL/LI = danh sách cơ cấu (có thể lồng),
             P = đoạn văn thường
──────────────────────────── */

/* ── Mốc timeline — H3 ── */
.qt-gt-content--lich-su-hinh-thanh h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0B132B;
  margin: 28px 0 10px;
  padding: 16px 20px 16px 56px;
  background: #F8FAFC;
  border-left: 4px solid #D61C23;
  border-radius: 8px;
  line-height: 1.4;
  position: relative;
}

/* Dot đỏ bên trái mỗi mốc */
.qt-gt-content--lich-su-hinh-thanh h3::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #D61C23;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #D61C23;
}

/* H3 đầu tiên không margin top */
.qt-gt-content--lich-su-hinh-thanh h3:first-of-type {
  margin-top: 4px;
}

/* Đường nối dọc giữa các mốc — sau mỗi H3 */
.qt-gt-content--lich-su-hinh-thanh h3::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 100%;
  width: 2px;
  height: 28px;
  background: #E5E7EB;
}

/* ── Số quyết định / ghi chú — Blockquote ── */
.qt-gt-content--lich-su-hinh-thanh blockquote {
  margin: 4px 0 12px;
  padding: 8px 16px;
  background: transparent;
  border-left: 3px solid #E5E7EB;
  color: #6B7280;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Đoạn văn thường ── */
.qt-gt-content--lich-su-hinh-thanh p {
  color: #4B5563;
  line-height: 1.75;
  margin: 0 0 10px;
}
.qt-gt-content--lich-su-hinh-thanh p:last-child { margin-bottom: 0; }

/* ── Cơ cấu tổ chức — H2 làm header box, UL liền sau làm body ── */
.qt-gt-content--lich-su-hinh-thanh h2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #0B132B;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 36px 0 0;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  border-left: 4px solid #D61C23;
}

/* UL ngay sau H2 = body của structure box */
.qt-gt-content--lich-su-hinh-thanh h2 + ul {
  background: #F8FAFC;
  border-left: 4px solid #D61C23;
  border-radius: 0 0 8px 0;
  padding: 18px 20px 18px 36px;
  margin: 0 0 20px;
}

/* List items cấp 1 */
.qt-gt-content--lich-su-hinh-thanh h2 + ul > li {
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.6;
}
.qt-gt-content--lich-su-hinh-thanh h2 + ul > li:last-child { margin-bottom: 0; }

/* List items cấp 2 (lồng nhau) */
.qt-gt-content--lich-su-hinh-thanh h2 + ul > li > ul {
  margin-top: 6px;
  padding-left: 16px;
}
.qt-gt-content--lich-su-hinh-thanh h2 + ul > li > ul > li {
  color: #4B5563;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.5;
}

.qt-gt-content--lich-su-hinh-thanh strong { color: #0B132B; }

/* ────────────────────────────
   MỤC TIÊU — nội dung từ WP Editor
   Admin gõ: Heading 3 = tiêu đề, Paragraph = nội dung, Blockquote = trích dẫn
   CSS tự đánh số tròn đỏ 1 / 2 / 3... vào mỗi H3
──────────────────────────── */

/* Khởi tạo counter */
.qt-gt-content--muc-tieu {
  counter-reset: qt-obj;
}

/* Mỗi H3 = 1 mục tiêu — tự nhận số thứ tự */
.qt-gt-content--muc-tieu h3 {
  counter-increment: qt-obj;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0B132B;
  margin: 24px 0 10px;
  padding: 18px 24px;
  background: #F8FAFC;
  border-left: 4px solid #D61C23;
  border-radius: 8px;
  line-height: 1.4;
}

/* H3 đầu tiên không cần margin top */
.qt-gt-content--muc-tieu h3:first-of-type {
  margin-top: 4px;
}

/* Số tròn đỏ tự động */
.qt-gt-content--muc-tieu h3::before {
  content: counter(qt-obj);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #D61C23;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Đoạn văn nội dung */
.qt-gt-content--muc-tieu p {
  color: #4B5563;
  line-height: 1.75;
  margin: 0 0 10px;
}
.qt-gt-content--muc-tieu p:last-child { margin-bottom: 0; }

/* Trích dẫn nổi bật */
.qt-gt-content--muc-tieu blockquote {
  margin: 4px 0 14px;
  padding: 12px 18px;
  background: rgba(214,28,35,0.05);
  border-left: 3px solid #D61C23;
  border-radius: 4px;
  font-style: italic;
  color: #374151;
  font-size: 0.93rem;
  line-height: 1.75;
}

/* ────────────────────────────
   SỨ MỆNH – TẦM NHÌN — nội dung từ WP Editor
   Admin gõ: H2 = tiêu đề sứ mệnh (navy box),
             P ngay sau H2 = nội dung sứ mệnh,
             H3 = tiêu đề phần (ngành / tầm nhìn),
             UL/LI ngay sau H3 = danh sách ngành 2 cột,
             H4 = năm tầm nhìn (2027, 2030...),
             P ngay sau H4 = nội dung tầm nhìn năm đó
──────────────────────────── */

/* ── H2: Tiêu đề sứ mệnh — header của navy box ── */
.qt-gt-content--su-menh-tam-nhin h2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFC700;
  background: linear-gradient(135deg, #0B132B 0%, #1D2D50 100%);
  padding: 20px 32px 10px;
  margin: 0;
  border-radius: 12px 12px 0 0;
}

/* ── P ngay sau H2 — body của navy box ── */
.qt-gt-content--su-menh-tam-nhin h2 + p {
  background: linear-gradient(135deg, #0B132B 0%, #1D2D50 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.85;
  padding: 4px 32px 28px;
  margin: 0 0 32px;
  border-radius: 0 0 12px 12px;
}

/* ── H3: Label phần (ngành đào tạo, tầm nhìn) ── */
.qt-gt-content--su-menh-tam-nhin h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0B132B;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
}

/* ── UL ngay sau H3 — lưới 2 cột danh sách ngành ── */
.qt-gt-content--su-menh-tam-nhin h3 + ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.qt-gt-content--su-menh-tam-nhin h3 + ul li {
  padding: 9px 0;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.4;
}
.qt-gt-content--su-menh-tam-nhin h3 + ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #D61C23;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Vision grid wrapper — admin paste 1 lần trong Code view ── */
/* Dùng explicit placement: mỗi H4/P được gán grid-column + grid-row cố định
   → không phụ thuộc vào auto-flow, đảm bảo 2 cột đúng chuẩn              */
.qt-vision-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 0;
  margin-top: 4px;
}

/* Card trái — H4 đầu tiên + P đầu tiên */
.qt-vision-grid > h4:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.qt-vision-grid > p:nth-of-type(1)  { grid-column: 1; grid-row: 2; }

/* Card phải — H4 thứ hai + P thứ hai */
.qt-vision-grid > h4:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.qt-vision-grid > p:nth-of-type(2)  { grid-column: 2; grid-row: 2; }

/* ── H4: Năm tầm nhìn — header của vision card ── */
.qt-vision-grid > h4 {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #D61C23 !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 22px 26px 12px !important;
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-top: 4px solid #D61C23 !important;
  border-radius: 10px 10px 0 0 !important;
}

/* ── P: Nội dung tầm nhìn — body của vision card ── */
.qt-vision-grid > p {
  color: #374151 !important;
  font-size: 0.93rem !important;
  line-height: 1.72 !important;
  margin: 0 !important;
  padding: 8px 26px 24px !important;
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
}

/* ── P thông thường trong trang sứ mệnh ── */
.qt-gt-content--su-menh-tam-nhin p {
  color: #4B5563;
  line-height: 1.75;
  margin: 0 0 12px;
}
.qt-gt-content--su-menh-tam-nhin p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .qt-gt-content--su-menh-tam-nhin h3 + ul {
    grid-template-columns: 1fr;
  }
  .qt-gt-content--su-menh-tam-nhin h2,
  .qt-gt-content--su-menh-tam-nhin h2 + p {
    padding-left: 20px;
    padding-right: 20px;
  }
  .qt-vision-grid {
    grid-template-columns: 1fr !important;
  }
  .qt-vision-grid > h4:nth-of-type(1),
  .qt-vision-grid > h4:nth-of-type(2) { grid-column: 1; }
  .qt-vision-grid > p:nth-of-type(1),
  .qt-vision-grid > p:nth-of-type(2)  { grid-column: 1; }
  .qt-vision-grid > h4:nth-of-type(1) { grid-row: 1; }
  .qt-vision-grid > p:nth-of-type(1)  { grid-row: 2; }
  .qt-vision-grid > h4:nth-of-type(2) { grid-row: 3; margin-top: 16px !important; }
  .qt-vision-grid > p:nth-of-type(2)  { grid-row: 4; }
}

/* ────────────────────────────
   SƠ ĐỒ BỘ MÁY TỔ CHỨC
──────────────────────────── */
.qt-gt-orgchart { text-align: center; }
.qt-gt-orgchart img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.qt-gt-orgchart-placeholder {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 60px 24px;
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.7;
}
.qt-gt-orgchart-placeholder .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}
.qt-gt-orgchart-placeholder code {
  background: #E5E7EB;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #374151;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .qt-gt-layout { padding: 0 20px; }
  .qt-gt-wrap { padding: 36px 0 52px; }
  .qt-gt-content { padding: 32px 32px; }
  .qt-gt-hero h1 { font-size: 1.7rem; }
  .qt-gt-vision-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .qt-gt-layout { padding: 0 16px; }
  .qt-gt-wrap { padding: 20px 0 40px; }
  .qt-gt-content { padding: 24px 20px; }
  .qt-gt-hero { padding: 28px 0 22px; }
  .qt-gt-hero h1 { font-size: 1.4rem; }
  .qt-gt-section-title { font-size: 1.3rem; }
  .qt-gt-programs { grid-template-columns: 1fr; }
  .qt-gt-vision-cards { grid-template-columns: 1fr; }
  .qt-gt-objective { flex-direction: column; gap: 12px; }
  .qt-gt-mission-box { padding: 24px 20px; }
  .qt-gt-timeline { padding-left: 36px; }
  .qt-gt-milestone-dot { left: -30px; width: 22px; height: 22px; }
  .qt-gt-timeline::before { left: 10px; }
}
