/* ============================================================
   GIÁO DỤC BẬC CAO – MAIN STYLESHEET
   ============================================================ */

/* Font loaded via wp_enqueue_style in functions.php */

:root {
  --navy:    #10204a;
  --blue:    #2563eb;
  --cyan:    #06b6d4;
  --purple:  #7c3aed;
  --orange:  #f97316;
  --green:   #10b981;
  --red:     #ef4444;
  --text:    #172033;
  --muted:   #65708a;
  --soft:    #f4f7ff;
  --line:    #e7ecf7;
  --white:   #ffffff;
  --radius:  26px;
  --shadow:  0 24px 70px rgba(16,32,74,.12);
  --shadow-sm: 0 8px 30px rgba(16,32,74,.08);
}

/* Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #fff 36%, #f9fbff 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: #0f1d43;
  color: #dbe7ff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.topbar a { color: #a0b4d6; }
.topbar a:hover { color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(16,32,74,.10); }

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.04em;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(37,99,235,.28);
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* Nav container – takes all available space, centers items */
.nav-wrap > nav {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: block;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 13.5px;
  color: #27334f;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
  color: var(--blue);
  background: #eef4ff;
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), #fbba35);
  color: white !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(249,115,22,.28);
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(249,115,22,.36);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  border: 0;
  background: #eef3ff;
  color: var(--navy);
  width: 44px; height: 44px;
  border-radius: 14px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16,32,74,.6);
  backdrop-filter: blur(4px);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(320px, 85vw);
  background: white;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #f0f3fa;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 12px;
  color: var(--navy);
}
.mobile-menu-inner a {
  display: block;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.mobile-menu-inner a:hover { background: var(--soft); }
.mobile-menu-inner .header-cta {
  margin-top: 12px;
  justify-content: center;
  border-radius: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  line-height: 1;
}
.btn-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 18px 40px rgba(16,32,74,.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(16,32,74,.28); }

.btn-secondary {
  background: white;
  border: 1.5px solid var(--line);
  color: var(--navy);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  box-shadow: 0 16px 36px rgba(37,99,235,.25);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(37,99,235,.35); }

/* ============================================================
   SECTIONS
   ============================================================ */
section, .section { padding: 60px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.16;
  margin: 0 0 8px;
  color: var(--navy);
  letter-spacing: -.055em;
}
.section-head p { margin: 0; color: var(--muted); max-width: 650px; font-size: 16px; }
.link-more { font-weight: 900; color: var(--blue); white-space: nowrap; font-size: 14px; }
.link-more:hover { text-decoration: underline; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  color: var(--blue);
  border: 1px solid #dce7ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.18), rgba(37,99,235,0));
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  line-height: 1.18;
  margin: 0 0 20px;
  color: var(--navy);
  letter-spacing: -.06em;
}
.hero > .container > .hero-grid > div > p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}
.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #53617d;
  font-size: 14px;
  font-weight: 700;
}
.trust-row span { display: flex; gap: 7px; align-items: center; }

/* Finder Card */
.finder-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.finder-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(37,99,235,.10);
  border-radius: 28px;
  pointer-events: none;
}
.finder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.finder-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.04em;
  line-height: 1.3;
}
.badge {
  background: #fff4e8;
  color: #e66b09;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge.green { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.badge.blue  { background: #eff6ff; color: var(--blue); border-color: #bfdbfe; }
.badge.red   { background: #fef2f2; color: var(--red); border-color: #fecaca; }

.form-grid { display: grid; gap: 12px; }
.form-field {
  background: #f8faff;
  border: 1px solid #e4ebfb;
  border-radius: 16px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color .2s;
}
.form-field:hover { border-color: var(--blue); }
.form-field label { display: block; font-size: 12px; color: #71809d; font-weight: 800; margin-bottom: 5px; }
.form-field select, .form-field input {
  width: 100%; background: none; border: 0;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: #1d2a49; cursor: pointer; outline: none;
}

.finder-submit {
  border: 0;
  width: 100%;
  margin-top: 4px;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(37,99,235,.28);
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
}
.finder-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(37,99,235,.38); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.hero-stat {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.hero-stat b { display: block; color: var(--navy); font-size: 22px; letter-spacing: -.03em; }
.hero-stat small { color: var(--muted); font-weight: 700; font-size: 12px; }

/* ============================================================
   PATH GRID (Lối đi sau phổ thông)
   ============================================================ */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.path-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.path-icon {
  width: 52px; height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef4ff, #f7edff);
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.path-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; letter-spacing: -.035em; }
.path-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.path-card .path-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
}
.path-card .path-link:hover { gap: 8px; }

/* ============================================================
   MAJORS SECTION (dark)
   ============================================================ */
.section-majors {
  background: var(--navy);
  color: white;
  border-radius: 42px;
  padding: 48px;
  overflow: hidden;
  position: relative;
}
.section-majors::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -130px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(6,182,212,.35), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.section-majors .section-head h2,
.section-majors .section-head p { color: white; }
.section-majors .section-head p { color: rgba(255,255,255,.7); }

.major-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}
.major-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: background .2s, transform .2s;
}
.major-card:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.major-card a { color: white; }
.major-card b { display: block; font-size: 16px; margin-bottom: 7px; }
.major-card span { display: block; color: rgba(255,255,255,.6); font-size: 13px; margin-bottom: 14px; }
.meter {
  height: 7px;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #a78bfa);
  border-radius: inherit;
  transition: width 1s ease;
}

/* ============================================================
   SCHOOL PANEL
   ============================================================ */
.school-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.filter-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.filter-box h3 { font-size: 22px; color: var(--navy); margin: 0 0 16px; letter-spacing: -.04em; }
.filter-box h4 { font-size: 13px; color: var(--muted); font-weight: 800; margin: 16px 0 10px; text-transform: uppercase; letter-spacing: .05em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  background: #f5f7ff;
  border: 1px solid #e2e9fa;
  border-radius: 999px;
  padding: 8px 13px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  color: #33405e;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover, .chip.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.school-list { display: grid; gap: 16px; }
.school-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.school-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.school-logo {
  width: 74px; height: 74px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e0edff, #f4e8ff);
  display: grid; place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}
.school-card h3 { margin: 0 0 5px; color: var(--navy); font-size: 17px; letter-spacing: -.03em; }
.school-card > div > p { margin: 0; color: var(--muted); font-size: 13px; }
.school-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.school-meta span {
  background: #f7f9ff;
  border: 1px solid #e7ecf7;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #53617d;
}
.school-view { color: var(--blue); font-weight: 900; font-size: 14px; white-space: nowrap; }
.school-view:hover { text-decoration: underline; }

/* ============================================================
   NEWS / TIMELINE
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.news-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px 14px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #eef4ff;
}
.news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-date {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.news-card h3 { font-size: 16px; line-height: 1.45; margin: 0 0 10px; color: var(--navy); }
.news-card p { font-size: 13px; color: var(--muted); margin: 0; }
.news-card .news-link { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 900; font-size: 13px; }

/* ============================================================
   SCHOLAR SECTION
   ============================================================ */
.scholar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.scholar-feature {
  background: linear-gradient(135deg, #fff7ed, #eef4ff);
  border: 1px solid #fde7cf;
  border-radius: 32px;
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.scholar-feature h2 {
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: -.05em;
}
.scholar-feature p { color: var(--muted); margin: 0 0 24px; }

.scholar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.small-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  transition: transform .2s;
}
.small-card:hover { transform: translateY(-3px); }
.small-card b { display: block; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.small-card span { display: block; color: var(--muted); font-size: 13px; }

/* ============================================================
   CAREER SECTION
   ============================================================ */
.career-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}
.career-main {
  min-height: 380px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(16,32,74,.88), rgba(37,99,235,.55)),
    url('../images/career-bg.jpg') center/cover;
  color: white;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.career-main h2 { font-size: 40px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.05em; }
.career-main p { margin: 0 0 22px; color: #e4ebff; }
.career-side { display: grid; gap: 14px; }
.career-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  transition: transform .2s, box-shadow .2s;
}
.career-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.career-item h3 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.career-item p { margin: 0; color: var(--muted); font-size: 13px; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 26px;
}
.faq-title {
  background: var(--navy);
  color: white;
  border-radius: 32px;
  padding: 34px;
}
.faq-title h2 { font-size: 36px; line-height: 1.12; margin: 0 0 12px; letter-spacing: -.05em; }
.faq-title p { color: rgba(255,255,255,.65); margin: 0; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
/* Accordion variant (archive / single pages) */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}
.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }
/* Open variant (front page — b/span structure) */
.faq-item > b {
  display: block;
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  padding: 18px 20px 6px;
}
.faq-item > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  padding: 0 20px 18px;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  border-radius: 38px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(37,99,235,.28);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.cta-final h2 { font-size: 36px; line-height: 1.14; margin: 0 0 10px; letter-spacing: -.05em; }
.cta-final p { margin: 0; color: rgba(255,255,255,.8); font-size: 16px; }
.cta-final-btn {
  background: white;
  color: var(--blue);
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.cta-final-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.15); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f1d43;
  color: #dbe7ff;
  margin-top: 60px;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}
.footer-brand .logo-mark { background: linear-gradient(135deg, rgba(37,99,235,.8), rgba(124,58,237,.8)); }
.footer-brand .site-logo { margin-bottom: 14px; color: white; }
.footer-brand p { color: #8aa0c4; font-size: 14px; line-height: 1.7; }

.footer-col h3 { color: white; margin: 0 0 14px; font-size: 16px; }
.footer-col a {
  display: block;
  color: #8aa0c4;
  font-size: 14px;
  margin-bottom: 9px;
  transition: color .15s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #6c82a8;
  font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #a0b4d6 !important;
  font-size: 16px;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--blue); color: white !important; }

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */
.archive-hero {
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  color: white;
  padding: 52px 0 36px;
  position: relative;
  overflow: hidden;
}
.archive-hero::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,.25), transparent 65%);
  border-radius: 50%;
}
.archive-hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 12px; letter-spacing: -.06em; color: white; }
.archive-hero p { color: rgba(255,255,255,.75); font-size: 17px; margin: 0; max-width: 600px; }
.archive-hero .container { position: relative; z-index: 1; }

.archive-filter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.archive-filter .filter-label { font-weight: 800; color: var(--navy); font-size: 14px; flex-shrink: 0; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CPT Cards shared */
.cpt-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.cpt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cpt-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, #eef4ff, #f7edff);
  display: grid; place-items: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.cpt-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cpt-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cpt-card-body h3 { margin: 0 0 8px; color: var(--navy); font-size: 17px; line-height: 1.35; letter-spacing: -.025em; }
.cpt-card-body p { margin: 0 0 14px; color: var(--muted); font-size: 13px; flex: 1; }
.cpt-card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cpt-card-meta span {
  background: #f5f7ff;
  border: 1px solid #e2e9fa;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #3d4f72;
}
.cpt-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cpt-card-footer .read-more { color: var(--blue); font-weight: 900; font-size: 14px; }

/* ============================================================
   SINGLE PAGES
   ============================================================ */
.single-hero {
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  color: white;
  padding: 48px 0 36px;
}
.single-hero .breadcrumb { margin-bottom: 20px; }
.single-hero h1 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 16px; letter-spacing: -.055em; color: white; line-height: 1.12; }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 44px 0;
}
.single-content { min-width: 0; }
.single-sidebar { display: flex; flex-direction: column; gap: 20px; }

.content-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.content-box h2 { font-size: 22px; color: var(--navy); margin: 0 0 16px; letter-spacing: -.04em; }
.content-box h3 { font-size: 18px; color: var(--navy); margin: 0 0 12px; }

.sidebar-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 { font-size: 16px; color: var(--navy); margin: 0 0 14px; font-weight: 800; }

/* Info list in single pages */
.info-list { display: grid; gap: 10px; }
.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-label { font-weight: 800; color: var(--navy); font-size: 14px; min-width: 160px; flex-shrink: 0; }
.info-value { color: var(--muted); font-size: 14px; }

/* Tags / Taxonomy pills */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: #f5f7ff;
  border: 1px solid #e2e9fa;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #33405e;
  transition: all .15s;
}
.tag:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* Related items */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: rgba(255,255,255,.35); }

.breadcrumb-light {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  padding: 18px 0;
}
.breadcrumb-light a { color: var(--blue); }
.breadcrumb-light .sep { color: #c8d2e6; }

/* ============================================================
   SEARCH & 404
   ============================================================ */
.search-section, .error404-section {
  padding: 80px 0;
  text-align: center;
}
.search-section h1, .error404-section h1 {
  font-size: clamp(30px, 5vw, 54px);
  color: var(--navy);
  letter-spacing: -.06em;
  margin-bottom: 16px;
}
.search-form-wrap {
  max-width: 560px;
  margin: 32px auto;
  display: flex;
  gap: 12px;
}
.search-form-wrap input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s;
}
.search-form-wrap input:focus { border-color: var(--blue); }
.search-form-wrap button {
  padding: 16px 24px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  color: white;
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 5vw, 50px); margin: 0 0 12px; letter-spacing: -.06em; color: white; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; font-size: 17px; }

.page-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 60px;
}
.page-content-wrap h2 { color: var(--navy); font-size: 24px; margin-top: 36px; letter-spacing: -.04em; }
.page-content-wrap h3 { color: var(--navy); font-size: 19px; margin-top: 28px; }
.page-content-wrap p { color: var(--muted); line-height: 1.8; }

/* Contact form */
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 700; font-size: 14px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  background: white;
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-100 { width: 100%; }

/* Status badges */
.status { border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 900; }
.status-open   { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.status-closed { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.status-soon   { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, #eef4ff, #f7edff);
  border: 1px solid #dce7ff;
  border-radius: 20px;
  padding: 22px;
  margin: 20px 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 54px; margin-bottom: 16px; }
.empty-state h3 { color: var(--navy); margin-bottom: 8px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  transition: all .15s;
}
.pagination .current, .pagination a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .primary-nav, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid, .school-panel, .scholar-wrap, .career-grid, .faq-wrap, .cta-final,
  .single-layout { grid-template-columns: 1fr; }
  .path-grid, .major-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-box { position: static; }
  .school-card { grid-template-columns: 60px 1fr; }
  .school-card .school-view { grid-column: 2; }
  .school-logo { width: 60px; height: 60px; }
  .section-majors { border-radius: 28px; padding: 32px; }
  .hero { padding-top: 48px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .nav-wrap { height: 60px; }
  .site-logo { font-size: 17px; }
  .logo-mark { width: 36px; height: 36px; font-size: 17px; }
  .container { width: calc(100% - 24px); }
  .path-grid, .major-grid, .news-grid, .scholar-grid, .archive-grid,
  .related-grid, .hero-stats { grid-template-columns: 1fr; }
  .section-majors, .cta-final { padding: 24px; border-radius: 24px; }
  .section-head { display: block; }
  .career-main h2, .faq-title h2, .cta-final h2, .scholar-feature h2 { font-size: 28px; }
  .hero h1 { font-size: 36px; letter-spacing: -.05em; }
  .school-card { align-items: start; }
  .archive-hero { padding: 36px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-final { grid-template-columns: 1fr; }
  .cta-final-btn { text-align: center; }
  section, .section { padding: 44px 0; }
  .single-layout { padding: 28px 0; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .btn-primary, .btn-secondary { padding: 12px 16px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
}

/* ============================================================
   WORDPRESS CONTENT STYLES
   ============================================================ */
.wp-content h2 { font-size: 22px; color: var(--navy); margin: 28px 0 12px; }
.wp-content h3 { font-size: 18px; color: var(--navy); margin: 22px 0 10px; }
.wp-content p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.wp-content ul, .wp-content ol { padding-left: 22px; color: var(--muted); line-height: 1.8; }
.wp-content li { margin-bottom: 8px; }
.wp-content strong { color: var(--navy); }
.wp-content a { color: var(--blue); font-weight: 600; }
.wp-content a:hover { text-decoration: underline; }
.wp-content img { border-radius: 16px; margin: 20px 0; }
.wp-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  background: #eef4ff;
  border-radius: 0 16px 16px 0;
  color: var(--navy);
  font-style: italic;
}

/* Admin notice for demo data */

/* ============================================================
   MISSING / SUPPLEMENTAL CLASSES
   (added by audit pass – keeps all templates styled)
   ============================================================ */

/* ── Utility spacing ── */
.py-10  { padding-top: 40px; padding-bottom: 40px; }
.py-12  { padding-top: 48px; padding-bottom: 48px; }
.mt-8   { margin-top:  32px; }
.mb-8   { margin-bottom: 32px; }
.site-main { min-height: 50vh; }

/* ── page-hero BEM helpers ── */
.page-hero--simple { background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%); }
.page-hero--nganh  { background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 60%, #312e81 100%); }
.page-hero__title  {
  font-size: clamp(28px, 5vw, 50px);
  color: white;
  margin: 0 0 10px;
  letter-spacing: -.06em;
  line-height: 1.1;
}
.page-hero__desc   { color: rgba(255,255,255,.78); max-width: 680px; font-size: 17px; margin: 0 0 16px; }

/* ── Button BEM aliases (.btn .btn--*) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 14px; font-weight: 900; font-size: 15px;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s;
  line-height: 1; padding: 13px 20px; font-family: inherit;
  text-decoration: none;
}
.btn--primary   { background: var(--navy); color: white; box-shadow: 0 16px 36px rgba(16,32,74,.18); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(16,32,74,.28); color: white; }
.btn--secondary { background: white; border: 1.5px solid var(--line); color: var(--navy); }
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn--outline   { background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: white; }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--outline-white { background: transparent; border: 2px solid white; color: white; }
.btn--outline-white:hover { background: white; color: var(--navy); }
.btn--blue { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; box-shadow: 0 14px 32px rgba(37,99,235,.25); }
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(37,99,235,.35); }
.btn--sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn--lg { padding: 17px 28px; font-size: 17px; border-radius: 18px; }

/* ── Search form inline ── */
.search-form-inline {
  display: flex; gap: 10px; max-width: 640px; width: 100%;
}
.search-form-inline__input {
  flex: 1; padding: 14px 18px; border: 1.5px solid var(--line);
  border-radius: 14px; font-family: inherit; font-size: 15px; font-weight: 500;
  outline: none; transition: border-color .2s; background: white; color: var(--text);
}
.search-form-inline__input:focus { border-color: var(--blue); }
.search-form-inline__btn {
  padding: 14px 22px; border: 0; border-radius: 14px; background: var(--blue);
  color: white; font-weight: 900; font-size: 15px; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.search-form-inline__btn:hover { background: #1d4ed8; }
.search-form-inline--404 { margin: 20px 0; }

/* ── 404 page ── */
.error-404-wrap { padding: 60px 0 80px; }
.error-404 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.error-404__graphic { display: flex; justify-content: center; }
.error-404__code {
  display: block; font-size: 80px; font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 12px; letter-spacing: -.06em;
}
.error-404__title { font-size: clamp(28px, 4vw, 42px); color: var(--navy); margin: 0 0 14px; letter-spacing: -.05em; }
.error-404__desc  { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.error-404__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 640px) {
  .error-404 { grid-template-columns: 1fr; }
  .error-404__graphic { display: none; }
}

/* ── empty-state BEM ── */
.empty-state__icon    { font-size: 54px; margin-bottom: 16px; display: block; }
.empty-state__title   { color: var(--navy); font-size: 24px; margin: 0 0 10px; letter-spacing: -.04em; }
.empty-state__desc    { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 480px; margin: 0 auto 24px; }
.empty-state__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Post grid (blog archive / search) ── */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.post-card { background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card__thumb { display: block; height: 200px; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card__thumb:hover img { transform: scale(1.04); }
.post-card__thumb--placeholder svg { width: 100%; height: 200px; }
.post-card__body { padding: 20px; }
.post-card__cat { display: inline-block; background: #eef4ff; color: var(--blue); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.post-card__title { font-size: 17px; color: var(--navy); margin: 0 0 10px; line-height: 1.35; letter-spacing: -.025em; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.post-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.post-card__date { display: flex; align-items: center; gap: 5px; }
.post-card__read-more { color: var(--blue); font-weight: 800; font-size: 13px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ── search bar row ── */
.search-bar-row { margin-bottom: 28px; }

/* ── Content grid (index with sidebar) ── */
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.content-grid__main { min-width: 0; }
.content-grid__sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } .content-grid__sidebar { position: static; } }

/* ── Single blog article ── */
.single-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.single-article { min-width: 0; }
.single-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.single-article__title { font-size: clamp(26px, 4vw, 44px); color: var(--navy); margin: 0 0 16px; letter-spacing: -.055em; line-height: 1.1; }
.single-article__meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  color: var(--muted); font-size: 14px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.single-article__meta span { display: flex; align-items: center; gap: 5px; }
.single-article__featured-img { margin: 0 0 28px; border-radius: 22px; overflow: hidden; }
.single-article__featured-img img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.single-article__content { /* inherits .wp-content */ }
.single-article__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .single-grid { grid-template-columns: 1fr; } }

/* ── Related posts ── */
.related-posts { margin-top: 36px; }
.related-posts__title { font-size: 22px; color: var(--navy); letter-spacing: -.04em; margin: 0 0 18px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-post-card { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s; display: block; }
.related-post-card:hover { transform: translateY(-4px); }
.related-post-card__thumb { height: 130px; overflow: hidden; }
.related-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-card__body { padding: 14px; }
.related-post-card__date { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.related-post-card__body h4 { margin: 0; font-size: 14px; color: var(--navy); line-height: 1.4; letter-spacing: -.02em; }
@media (max-width: 640px) { .related-posts__grid { grid-template-columns: 1fr 1fr; } }

/* ── Tag badges ── */
.tag-badge {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: #f5f7ff; border: 1px solid #e2e9fa; color: #33405e;
}
.tag-badge:hover { background: var(--blue); color: white; border-color: var(--blue); }
.tag-badge--sm  { font-size: 11px; padding: 3px 8px; }
.tag-badge--blue { background: #eff6ff; color: var(--blue); border-color: #bfdbfe; }
.tag-badge--gray { background: #f5f7ff; color: var(--muted); border-color: #e2e9fa; }

/* ── Sidebar widgets (single post sidebar) ── */
.sidebar-widget { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.sidebar-widget__title { font-size: 16px; color: var(--navy); margin: 0 0 14px; font-weight: 800; }
.sidebar-quick-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sidebar-quick-links li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 700; color: var(--navy);
  transition: background .15s;
}
.sidebar-quick-links li a:hover { background: var(--soft); color: var(--blue); }
.sidebar-cta-box {
  background: linear-gradient(135deg, #eef4ff, #f7edff);
  border: 1px solid #dce7ff; border-radius: 22px; padding: 24px; text-align: center;
}
.sidebar-cta-box__icon { font-size: 36px; margin-bottom: 10px; }
.sidebar-cta-box h4 { color: var(--navy); font-size: 18px; margin: 0 0 8px; letter-spacing: -.03em; }
.sidebar-cta-box p  { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }

/* ── Filter bar (archive-nganh-hoc etc.) ── */
.filter-bar { background: white; border-bottom: 1px solid var(--line); box-shadow: 0 4px 20px rgba(16,32,74,.06); }
.sticky-filter { position: sticky; top: 78px; z-index: 50; }
.filter-bar__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; }
.filter-bar__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-bar__selects { display: flex; gap: 10px; }
.filter-select { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 13px; font-weight: 700; background: white; color: var(--navy); outline: none; cursor: pointer; }
.filter-select:focus { border-color: var(--blue); }
.chip--active { background: var(--blue); color: white; border-color: var(--blue); }

/* ── Single Ngành học hero ── */
.single-nganh-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2e70 60%, #1e3a8a 100%);
  color: white;
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}
.single-nganh-hero::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(99,102,241,.2), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.single-nganh-hero::after {
  content: "";
  position: absolute;
  left: 30%; bottom: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,.15), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.single-nganh-hero .container { position: relative; z-index: 1; }
.single-nganh-hero__inner { margin-top: 20px; }
.single-nganh-hero__label { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.single-nganh-hero__title {
  font-size: clamp(30px, 5vw, 56px);
  color: white;
  margin: 0 0 28px;
  letter-spacing: -.06em;
  line-height: 1.08;
  max-width: 800px;
}
.single-nganh-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.nganh-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 16px 20px;
}
.nganh-stat__icon { display: block; font-size: 20px; margin-bottom: 6px; }
.nganh-stat__label { display: block; font-size: 11px; color: rgba(255,255,255,.6); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.nganh-stat strong { color: white; font-size: 15px; font-weight: 900; line-height: 1.3; display: block; }

/* Career paths strip */
.nganh-hero-paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  margin-top: 4px;
}
.nganh-hero-paths__label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  margin-right: 4px;
}
.nganh-hero-paths__tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: background .2s;
}
.nganh-hero-paths__tag:hover { background: rgba(255,255,255,.26); color: white; }
.nganh-hero-paths__cta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 7px 16px;
  background: white;
  color: var(--navy);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s;
}
.nganh-hero-paths__cta:hover { opacity: .88; color: var(--navy); }

@media (max-width: 700px) {
  .single-nganh-hero__stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .single-nganh-hero { padding: 32px 0 32px; }
  .single-nganh-hero__title { font-size: 28px; }
  .nganh-hero-paths__cta { margin-left: 0; }
}

/* ── Page content (page.php) ── */
.page-content { max-width: 800px; margin: 0 auto; }
.demo-import-notice { padding: 16px 20px; border-radius: 8px; }

/* ============================================================
   NGÀNH HỌC ARCHIVE
   ============================================================ */
.nganh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nganh-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.nganh-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c8d8ff; }

.nganh-card__head { padding: 22px 22px 16px; }
.nganh-card__group {
  display: inline-block;
  background: #eef4ff;
  color: var(--blue);
  border: 1px solid #dce7ff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.nganh-card__title { font-size: 18px; color: var(--navy); margin: 0 0 6px; letter-spacing: -.035em; line-height: 1.3; }
.nganh-card__title a { color: inherit; }
.nganh-card__title a:hover { color: var(--blue); }
.nganh-card__code { font-size: 12px; color: var(--muted); font-weight: 600; }

.nganh-card__body { padding: 14px 22px 18px; flex: 1; border-top: 1px solid var(--line); }
.nganh-card__co-hoi { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0 0 14px; }

.nganh-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.nganh-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}
.nganh-card__meta-item svg { flex-shrink: 0; }
.nganh-card__meta-item--salary { color: var(--green); background: #ecfdf5; border-color: #a7f3d0; }

.nganh-card__footer {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.nganh-card__link { font-size: 14px; font-weight: 900; color: var(--blue); }
.nganh-card__link:hover { text-decoration: underline; }

@media (max-width: 980px) { .nganh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .nganh-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TUYỂN SINH ARCHIVE
   ============================================================ */
.page-hero--tuyen-sinh {
  background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 60%, #1e40af 100%);
}

.ts-filter-bar {
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(16,32,74,.06);
  position: sticky;
  top: 72px;
  z-index: 40;
}
.ts-filter-bar__form { padding: 0; }
.ts-filter-bar__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
}
.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #fecaca;
  background: #fef2f2;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.filter-reset:hover { background: var(--red); color: white; border-color: var(--red); }

/* Timeline list */
.ts-timeline { display: grid; gap: 20px; }

.ts-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ts-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ts-card--open   { border-left: 4px solid var(--green); }
.ts-card--closed { border-left: 4px solid var(--line); opacity: .82; }

.ts-card__status-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 9px;
}
.ts-card--open   .ts-card__status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.ts-card--closed .ts-card__status-dot { background: var(--muted); }

.ts-card__content { flex: 1; min-width: 0; }

.ts-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 4px;
}

.ts-card__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }

.ts-card__title { font-size: 20px; color: var(--navy); margin: 0; letter-spacing: -.035em; line-height: 1.35; }
.ts-card__title a { color: inherit; }
.ts-card__title a:hover { color: var(--blue); text-decoration: underline; }

.ts-card__deadline { text-align: right; flex-shrink: 0; }
.ts-card__deadline-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.ts-card__deadline strong { color: var(--orange); font-size: 14px; font-weight: 900; display: block; white-space: nowrap; }

.ts-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin: 12px 0 0;
}
.ts-card__meta span { display: flex; align-items: center; gap: 4px; }
.ts-card__meta strong { color: var(--navy); }

.ts-card__excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
}

.ts-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Tag badge green (if missing) */
.tag-badge--green { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }

@media (max-width: 768px) {
  .ts-card { padding: 18px 20px; }
  .ts-card__top { flex-direction: column; gap: 10px; }
  .ts-card__deadline { text-align: left; }
  .ts-card__title { font-size: 17px; }
  .ts-filter-bar__selects { gap: 8px; }
  .filter-select { font-size: 12px; padding: 7px 11px; }
}
@media (max-width: 480px) {
  .ts-card { flex-direction: column; gap: 8px; }
  .ts-card__status-dot { display: none; }
  .ts-filter-bar { position: static; }
}

/* ============================================================
   HỌC BỔNG ARCHIVE  (hb-card, hb-grid)
   ============================================================ */
.page-hero--hoc-bong {
  background: linear-gradient(135deg, #312e81 0%, #1e3a8a 60%, #0f2460 100%);
}

.hb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hb-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hb-card--expired { opacity: .78; }

.hb-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}
.status-badge--open   { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.status-badge--closed { background: #f5f7ff; color: var(--muted); border: 1px solid var(--line); }

.hb-card__title { font-size: 17px; color: var(--navy); margin: 0 0 10px; line-height: 1.35; letter-spacing: -.03em; }
.hb-card__title a { color: inherit; }
.hb-card__title a:hover { color: var(--blue); }

.hb-card__donor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}

.hb-card__meta { display: grid; gap: 8px; margin-bottom: 12px; }

.hb-card__value { display: flex; align-items: baseline; gap: 8px; }
.hb-card__value-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.hb-card__value-num { font-size: 17px; font-weight: 900; color: var(--navy); }

.hb-card__deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.hb-card__deadline--warn { color: var(--orange); }

.hb-card__target { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; flex: 1; }

.hb-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hb-card__link:hover { text-decoration: underline; }

@media (max-width: 980px) { .hb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .hb-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SINGLE PAGES – SHARED
   ============================================================ */
.single-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* Info list (sidebar key-value) */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list li > span { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.info-list li > strong { color: var(--navy); font-weight: 800; text-align: right; }
.info-list--sm li { font-size: 13px; padding: 8px 0; }

/* Notice box */
.notice-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.65;
}
.notice-box svg { flex-shrink: 0; margin-top: 2px; }
.notice-box--warn { background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; }
.notice-box--warn svg { color: #d97706; }
.notice-box--info  { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e40af; }

/* File download box */
.file-download-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0f6ff;
  border: 1.5px solid #d0e4ff;
  border-radius: 18px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.file-download-box svg { flex-shrink: 0; color: var(--blue); }
.file-download-box > span { flex: 1; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-badge--purple { background: #f5f3ff; color: var(--purple); border-color: #ddd6fe; }

/* Status dot */
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.status-dot--open   { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.status-dot--closed { background: var(--muted); }

/* Sidebar CTA variants */
.sidebar-cta-box--ts      { background: linear-gradient(135deg, #eef4ff, #f0e8ff); border: 1.5px solid #dce7ff; }
.sidebar-cta-box--hb      { background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 1.5px solid #fed7aa; }
.sidebar-cta-box--nganh   { background: linear-gradient(135deg, #ecfdf5, #eef4ff); border: 1.5px solid #a7f3d0; }
.sidebar-cta-box--expired { background: #f5f7ff; border: 1.5px solid var(--line); }
.sidebar-cta-box--expired h4 { color: var(--muted); }

/* ============================================================
   SINGLE: TUYỂN SINH
   ============================================================ */
.single-ts-hero {
  background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 60%, #1e40af 100%);
  color: white;
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}
.single-ts-hero::after {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,.22), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.single-ts-hero .container { position: relative; z-index: 1; }
.single-ts-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.single-ts-hero__title {
  font-size: clamp(22px, 4vw, 42px);
  color: white;
  margin: 0 0 20px;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.single-ts-hero__deadline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}
.single-ts-hero__deadline strong { color: white; font-weight: 900; }
.single-ts-hero__deadline--open {
  background: rgba(16,185,129,.18);
  border-color: rgba(16,185,129,.4);
}
.single-ts-hero__deadline--open strong { color: #a7f3d0; }

/* Info card (full-width table) */
.info-card {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-card__title {
  font-size: 15px;
  color: var(--navy);
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  background: var(--soft);
}
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table tr:last-child { border-bottom: 0; }
.info-table th {
  padding: 13px 22px;
  text-align: left;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  width: 210px;
  background: #fafbff;
  vertical-align: top;
}
.info-table td { padding: 13px 22px; color: var(--muted); line-height: 1.65; }
.info-table td strong { color: var(--orange); font-weight: 900; }

@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr,
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table tr { padding: 10px 0; }
  .info-table th { padding: 4px 16px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: none; white-space: normal; }
  .info-table td { padding: 0 16px 10px; color: var(--navy); font-size: 15px; font-weight: 600; }
}

/* ============================================================
   SINGLE: HỌC BỔNG
   ============================================================ */
.single-hb-hero {
  background: linear-gradient(135deg, #3b0764 0%, #4c1d95 50%, #1e3a8a 100%);
  color: white;
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}
.single-hb-hero::after {
  content: "";
  position: absolute;
  left: -80px; bottom: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(249,115,22,.22), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.single-hb-hero--expired { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); }
.single-hb-hero .container { position: relative; z-index: 1; }
.single-hb-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.single-hb-hero__title {
  font-size: clamp(22px, 4vw, 40px);
  color: white;
  margin: 0 0 10px;
  letter-spacing: -.055em;
  line-height: 1.14;
}
.single-hb-hero__donor { color: rgba(255,255,255,.75); font-size: 15px; margin: 0 0 20px; }
.single-hb-hero__donor strong { color: white; }
.single-hb-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-hero-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 130px;
}
.hb-hero-stat--warn { background: rgba(249,115,22,.2); border-color: rgba(249,115,22,.4); }
.hb-hero-stat__icon  { display: block; font-size: 18px; margin-bottom: 5px; }
.hb-hero-stat__label { display: block; font-size: 11px; color: rgba(255,255,255,.65); font-weight: 700; margin-bottom: 3px; }
.hb-hero-stat > strong { color: white; font-size: 15px; font-weight: 900; }

/* HB content sections */
.hb-section {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.hb-section--highlight { background: linear-gradient(135deg, #fff7ed, #fef3c7); border-color: #fed7aa; }
.hb-section__title { font-size: 18px; color: var(--navy); margin: 0 0 16px; letter-spacing: -.04em; font-weight: 800; }

/* Related HB cards */
.related-hb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.related-hb-card {
  display: block;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.related-hb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--blue); }
.related-hb-card--expired { opacity: .72; }
.related-hb-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.related-hb-card__top > strong { color: var(--navy); font-size: 14px; line-height: 1.35; }
.related-hb-card__value { display: block; color: var(--navy); font-weight: 900; font-size: 15px; margin-bottom: 4px; }
.related-hb-card__date  { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 640px) { .related-hb-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   SINGLE: NGÀNH HỌC
   ============================================================ */
.nganh-section {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.nganh-section--highlight { background: linear-gradient(135deg, #ecfdf5, #eef4ff); border-color: #a7f3d0; }
.nganh-section__title { font-size: 18px; color: var(--navy); margin: 0 0 16px; letter-spacing: -.04em; font-weight: 800; }

/* Related nganh */
.related-nganh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.related-nganh-card {
  display: block;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: border-color .2s, transform .2s;
}
.related-nganh-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.related-nganh-card > strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 4px; line-height: 1.35; }
.related-nganh-card > span  { color: var(--muted); font-size: 13px; }

/* Responsive single grid */
@media (max-width: 980px) {
  .single-grid { grid-template-columns: 1fr; }
  .related-nganh-grid { grid-template-columns: repeat(3, 1fr); }
  .related-hb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .single-ts-hero, .single-hb-hero { padding: 32px 0 28px; }
  .single-ts-hero__title, .single-hb-hero__title { font-size: 22px; }
  .hb-hero-stat { min-width: 0; flex: 1 1 120px; }
  .related-nganh-grid { grid-template-columns: 1fr 1fr; }
  .related-hb-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE: HỎI ĐÁP
   ============================================================ */
.single-hd-hero {
  background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 55%, #2563eb 100%);
  color: white;
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}
.single-hd-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(96,165,250,.25), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.single-hd-hero .container { position: relative; z-index: 1; }
.single-hd-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.single-hd-hero__question {
  font-size: clamp(22px, 4vw, 40px);
  color: white;
  margin: 0 0 16px;
  letter-spacing: -.05em;
  line-height: 1.15;
}
.single-hd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}
.single-hd-hero__meta span { display: flex; align-items: center; gap: 5px; }

/* Quick answer highlight box */
.hd-answer-quick {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fde68a;
  border-radius: 22px;
  padding: 22px 24px;
}
.hd-answer-quick__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.hd-answer-quick__content { flex: 1; min-width: 0; }
.hd-answer-quick__content strong {
  display: block;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.hd-answer-quick__content p {
  margin: 0;
  color: #78350f;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

/* Content sections */
.hd-section {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.hd-section--light { background: #f8faff; border-color: #dce7ff; }
.hd-section__title {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -.04em;
  font-weight: 800;
}
.hd-section__content { /* inherits .wp-content */ }

/* Related inline blocks */
.hd-related {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
}
.hd-related h3 { font-size: 16px; color: var(--navy); margin: 0 0 12px; font-weight: 800; }

/* Related questions list */
.related-questions {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.related-questions__title {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -.04em;
  font-weight: 800;
}
.related-questions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.related-questions__list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  transition: background .15s, color .15s;
}
.related-questions__list li a:hover { background: var(--soft); color: var(--blue); }
.rq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .single-hd-hero { padding: 32px 0 28px; }
  .single-hd-hero__question { font-size: 22px; }
  .hd-answer-quick { flex-direction: column; gap: 10px; }
}

/* ============================================================
   HỎI ĐÁP ARCHIVE
   ============================================================ */
.page-hero--hoi-dap {
  background: linear-gradient(135deg, #0f2460 0%, #1e3a8a 55%, #2563eb 100%);
}

/* Search form inside hero */
.hd-search-form {
  display: flex;
  gap: 0;
  max-width: 620px;
  width: 100%;
  margin: 20px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.hd-search-form__input {
  flex: 1;
  padding: 16px 20px;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  color: var(--text);
  background: white;
  min-width: 0;
}
.hd-search-form__input::placeholder { color: #9ca3af; }
.hd-search-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  font-size: 15px;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.hd-search-form__btn:hover { background: #1d4ed8; }

/* Q&A list */
.hd-list {
  display: grid;
  gap: 14px;
}

.hd-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hd-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8d8ff;
}

.hd-item__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}

.hd-item__content { flex: 1; min-width: 0; }

.hd-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hd-item__question {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -.03em;
  line-height: 1.35;
  font-weight: 800;
}
.hd-item__question a { color: inherit; }
.hd-item__question a:hover { color: var(--blue); }

.hd-item__answer {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.hd-item__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue);
  transition: gap .2s;
}
.hd-item__link:hover { gap: 8px; text-decoration: underline; }

@media (max-width: 640px) {
  .hd-search-form { border-radius: 14px; }
  .hd-search-form__btn { padding: 14px 16px; font-size: 14px; }
  .hd-item { flex-direction: column; gap: 12px; padding: 18px 20px; }
  .hd-item__icon { width: 36px; height: 36px; font-size: 17px; border-radius: 12px; }
  .hd-item__question { font-size: 16px; }
}
