/* =====================================================
   QUANG TRUNG — Trang chi tiết Ngành Đào Tạo
   nganh.css  v1.0.0
   ===================================================== */

/* ── HERO ── */
.qt-nganh-wrap {
  background: #F0F4F8;
  min-height: 100vh;
}

.qt-nganh-hero {
  color: #fff;
  padding: 10px 24px 12px;
}

.qt-nganh-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

/* Khi không có ảnh đại diện → 1 cột, lề trái */
.qt-nganh-hero--no-img {
  grid-template-columns: 1fr;
}

.qt-nganh-hero-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
  text-align: left;
  padding-left: 70px;
}

.qt-nganh-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 0 8px;
  padding-left: 70px;
}

.qt-nganh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFC700;
  color: #0B132B;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.qt-nganh-cta:hover {
  background: #e6b400;
  transform: translateY(-1px);
  color: #0B132B;
}

.qt-nganh-hero-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.1);
}

.qt-nganh-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── LAYOUT NỘI DUNG ── */
.qt-nganh-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.qt-nganh-main {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(11,19,43,.06);
  min-width: 0;
}

/* Prose — nội dung wysiwyg do admin nhập tự do */
.qt-nganh-prose {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #374151;
}

/* H2 = tiêu đề mục lớn (Giới thiệu / Chương trình / Cơ hội) */
.qt-nganh-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0B132B;
  margin: 36px 0 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid currentColor;
}

.qt-nganh-prose h2:first-child { margin-top: 0; }

.qt-nganh-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0B132B;
  margin: 24px 0 10px;
}

.qt-nganh-prose h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0B132B;
  margin: 20px 0 8px;
}

.qt-nganh-prose p { margin: 0 0 12px; }

.qt-nganh-prose ul,
.qt-nganh-prose ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.qt-nganh-prose li { margin-bottom: 6px; }

.qt-nganh-prose strong { color: #0B132B; }

/* ── SIDEBAR ── */
.qt-nganh-sidebar { position: sticky; top: 100px; }

.qt-nganh-sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(11,19,43,.08);
  margin-bottom: 24px;
}

.qt-nganh-sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0B132B;
  margin: 0 0 20px;
}

.qt-nganh-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem;
}

.qt-nganh-sidebar-row:last-of-type { border-bottom: none; }

.qt-nganh-sidebar-row span { color: #6b7280; }

.qt-nganh-sidebar-row strong { color: #0B132B; text-align: right; }

.qt-nganh-sidebar-cta {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 20px;
  transition: opacity 0.2s, transform 0.15s;
}

.qt-nganh-sidebar-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

.qt-nganh-sidebar-contact {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.qt-nganh-sidebar-contact p {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0 0 6px;
}

.qt-nganh-sidebar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0B132B;
  font-size: 1rem;
  text-decoration: none;
}

.qt-nganh-sidebar-contact a:hover { color: #D61C23; }

/* ── Các ngành khác ── */
.qt-nganh-other {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(11,19,43,.06);
}

.qt-nganh-other h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 14px;
}

.qt-nganh-other ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qt-nganh-other li { border-bottom: 1px solid #f0f0f0; }

.qt-nganh-other li:last-child { border-bottom: none; }

.qt-nganh-other a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0B132B;
  text-decoration: none;
  transition: color 0.2s;
}

.qt-nganh-other a:hover { color: #D61C23; }

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .qt-nganh-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .qt-nganh-hero-img {
    max-width: 440px;
  }

  .qt-nganh-hero-text h1 { font-size: 2rem; }

  .qt-nganh-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .qt-nganh-sidebar { position: static; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
  .qt-nganh-hero {
    padding: 36px 16px 44px;
  }

  .qt-nganh-hero-text h1 { font-size: 1.7rem; }

  .qt-nganh-hero-meta {
    flex-direction: column;
    gap: 16px;
  }

  .qt-nganh-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .qt-nganh-tabs::-webkit-scrollbar { display: none; }

  .qt-nganh-tab { padding: 10px 16px; font-size: 0.88rem; }

  .qt-nganh-content {
    padding: 28px 16px 48px;
  }

  .qt-nganh-section {
    padding: 24px 20px;
  }

  .qt-nganh-hero-img { display: none; }
}
