/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 04 2026 | 09:37:29 */
/* ── DESIGN TOKENS ── */
:root {
  --c-primary: #107C51;
  --c-primary-d: #0A5235;
  --c-accent: #E3A813;
  --c-accent-d: #BD8A0E;
  --c-red: #C0392B;
  --c-green: #1A7A4A;
  --c-bg: #F2F7F4;
  --c-surface: #FFFFFF;
  --c-border: rgba(16, 124, 81, .12);
  --c-text: #1C2B24;
  --c-muted: #5C6B64;
  --c-white: #FFFFFF;
  --radius: 12px;
  --radius-l: 20px;
  --shadow: 0 2px 16px rgba(16, 124, 81, .08);
  --shadow-h: 0 8px 32px rgba(16, 124, 81, .14);
  --nav-h: 64px;

  --font-body: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-display: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

#hh-portal {
  font-family: var(--font-body);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}


#hh-portal p {
  font-family: 'Roboto', var(--font-body);
  font-size: .92rem;
  line-height: 1.75;
}

#hh-portal *,
#hh-portal *::before,
#hh-portal *::after {
  box-sizing: border-box;
}

/* Unicode/emoji icons: force emoji rendering + stable colors */
#hh-portal :where(.hh-ql-icon, .hh-sc-icon, .hh-detail-icon, .hh-kpi-icon, .hh-policy-icon) {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-variant-emoji: emoji;
  line-height: 1;
}

/* ── TOPBAR ── */
#hh-portal .hh-topbar {
  background: var(--c-primary-d);
  color: rgba(255, 255, 255, .75);
  font-size: .75rem;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 16px;
}

#hh-portal .hh-topbar a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

#hh-portal .hh-topbar a:hover {
  color: #fff;
}

#hh-portal .hh-topbar-left,
#hh-portal .hh-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── NAVBAR ── */
#hh-portal .hh-navbar {
  background: var(--c-surface);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 0;
  box-shadow: 0 2px 12px rgba(27, 79, 140, .08);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

#hh-portal .hh-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-text);
  flex-shrink: 0;
  cursor: pointer;
}

#hh-portal .hh-nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

#hh-portal .hh-nav-brand-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .03em;
}

#hh-portal .hh-nav-brand-sub {
  font-size: .7rem;
  font-weight: 400;
  color: var(--c-muted);
}

#hh-portal .hh-nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

#hh-portal .hh-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 32px;
  flex: 1;
  list-style: none;
}

#hh-portal .hh-nav-links li {
  position: relative;
}

#hh-portal .hh-nav-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none !important;
  border-radius: 8px;
  transition: all .18s;
  white-space: nowrap;
  cursor: pointer;
}

#hh-portal .hh-nav-links a:hover,
#hh-portal .hh-nav-links a.hh-active {
  background: rgba(27, 79, 140, .07);
  color: var(--c-primary);
}

/* Dropdown */
#hh-portal .hh-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-h);
  border: 1px solid var(--c-border);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  z-index: 300;
}

#hh-portal .hh-nav-links li:hover .hh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#hh-portal .hh-dropdown a {
  border-radius: 8px;
  padding: 9px 12px;
  display: block;
  font-size: .82rem;
  color: var(--c-text);
}

#hh-portal .hh-dropdown a:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}

#hh-portal .hh-nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nút hamburger (ẩn trên desktop, hiện trên mobile/tablet) */
#hh-portal .hh-nav-toggle {
  margin-left: auto;
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(27, 79, 140, .18);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

#hh-portal .hh-nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--c-primary);
  transform: translateX(-50%);
  transition: transform .18s, opacity .18s, top .18s;
}

/* Trạng thái hamburger */
#hh-portal .hh-nav-toggle span:nth-child(1) {
  top: 11px;
}

#hh-portal .hh-nav-toggle span:nth-child(2) {
  top: 16px;
}

#hh-portal .hh-nav-toggle span:nth-child(3) {
  top: 21px;
}

/* Khi mở menu: biến thành dấu X */
#hh-portal.hh-nav-open .hh-nav-toggle span:nth-child(1) {
  top: 16px;
  transform: translateX(-50%) rotate(45deg);
}

#hh-portal.hh-nav-open .hh-nav-toggle span:nth-child(2) {
  opacity: 0;
}

#hh-portal.hh-nav-open .hh-nav-toggle span:nth-child(3) {
  top: 16px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ── BUTTONS ── */
#hh-portal .hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
  transition: all .2s;
}

#hh-portal .hh-btn-primary {
  background: var(--c-primary);
  color: #fff !important;
}

#hh-portal .hh-btn-primary:hover {
  background: var(--c-primary-d);
}

#hh-portal .hh-btn-accent {
  background: var(--c-accent);
  color: #fff !important;
}

#hh-portal .hh-btn-accent:hover {
  background: var(--c-accent-d);
}

#hh-portal .hh-btn-outline {
  background: none;
  color: var(--c-primary) !important;
  border: 1.5px solid var(--c-primary);
}

#hh-portal .hh-btn-outline:hover {
  background: var(--c-primary);
  color: #fff !important;
}

#hh-portal .hh-btn-ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, .35);
}

#hh-portal .hh-btn-ghost:hover {
  background: rgba(255, 255, 255, .25);
}

#hh-portal .hh-btn-lg {
  padding: 13px 26px;
  font-size: .9rem;
  border-radius: 11px;
}

#hh-portal .hh-btn-full {
  width: 100%;
  justify-content: center;
}


/* ── PAGE SYSTEM ── */
#hh-portal .hh-page {
  display: none;
}

#hh-portal .hh-page.hh-active {
  display: block;
  animation: hhFadeUp .35s ease both;
}

@keyframes hhFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── PAGE HERO ── */
#hh-portal .hh-page-hero {
  background: linear-gradient(135deg, var(--c-primary-d), var(--c-primary));
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}

#hh-portal .hh-page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#hh-portal .hh-page-hero h1 {
  font-family: var(--font-display) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  border: none !important;
}

#hh-portal .hh-page-hero p {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
}

#hh-portal .hh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 12px;
}

#hh-portal .hh-breadcrumb span {
  color: rgba(255, 255, 255, .9);
}

#hh-portal .hh-breadcrumb a {
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
  text-decoration: none;
}

#hh-portal .hh-breadcrumb a:hover {
  color: #fff;
}

/* ── HERO HOME ── */
#hh-portal .hh-hero {
  background: linear-gradient(135deg, var(--c-primary-d) 0%, var(--c-primary) 60%, #2563a0 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 32px 70px;
}

#hh-portal .hh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(232, 160, 32, .25) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, .06) 0%, transparent 40%);
}

#hh-portal .hh-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 60px);
}

#hh-portal .hh-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

#hh-portal .hh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 160, 32, .2);
  border: 1px solid rgba(232, 160, 32, .4);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}

#hh-portal .hh-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.25 !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  border: none !important;
}

#hh-portal .hh-hero-title em {
  color: var(--c-accent);
  font-style: normal;
}

#hh-portal .hh-hero-desc {
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
}

#hh-portal .hh-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#hh-portal .hh-hero-card {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-l);
  padding: 28px;
}

#hh-portal .hh-hero-card-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#hh-portal .hh-quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* WordPress có thể tự chèn <p>/<br> trong block HTML; neutralize để không vỡ layout */
#hh-portal .hh-quick-links > p {
  margin: 0;
}

#hh-portal .hh-quick-links > p:empty,
#hh-portal .hh-quick-links > br {
  display: none !important;
}

#hh-portal .hh-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none !important;
  color: #fff !important;
  transition: background .2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  width: 100%;
  text-align: left;
}

#hh-portal .hh-quick-link:hover {
  background: rgba(255, 255, 255, .2);
}

#hh-portal .hh-ql-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

#hh-portal .hh-ql-text {
  font-size: .84rem;
  font-weight: 500;
}

#hh-portal .hh-ql-sub {
  font-size: .72rem;
  color: rgba(255, 255, 255, .6);
}

/* ── STATS ── */
#hh-portal .hh-stats-strip {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

#hh-portal .hh-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

#hh-portal .hh-stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--c-border);
}

#hh-portal .hh-stat-item:last-child {
  border-right: none;
}

#hh-portal .hh-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
}

#hh-portal .hh-stat-lbl {
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── SECTION COMMONS ── */
#hh-portal .hh-section {
  padding: 56px 32px;
}

#hh-portal .hh-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#hh-portal .hh-section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 6px;
}

#hh-portal .hh-section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 !important;
}

#hh-portal .hh-section-subtitle {
  color: var(--c-muted);
  font-size: .9rem;
  margin-top: 6px;
}

#hh-portal .hh-section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

/* ── TUYỂN SINH BANNER ── */
#hh-portal .hh-ts-banner {
  background: linear-gradient(120deg, var(--c-accent-d), var(--c-accent));
  border-radius: var(--radius-l);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

#hh-portal .hh-ts-banner h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px !important;
}

#hh-portal .hh-ts-banner p {
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
}

#hh-portal .hh-countdown {
  display: flex;
  gap: 12px;
}

#hh-portal .hh-cd-unit {
  text-align: center;
  background: rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 56px;
}

#hh-portal .hh-cd-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

#hh-portal .hh-cd-lbl {
  font-size: .65rem;
  color: rgba(255, 255, 255, .75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── SCHOOL CARDS ── */
#hh-portal .hh-school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* WordPress có thể tự chèn <p>/<br> trong block HTML; neutralize để không vỡ grid */
#hh-portal .hh-school-grid>p {
  margin: 0;
}

#hh-portal .hh-school-grid>p:not(:has(.hh-school-card)),
#hh-portal .hh-school-grid>p:empty,
#hh-portal .hh-school-grid>br {
  display: none;
}

#hh-portal .hh-school-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1.5px solid var(--c-border);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
}

#hh-portal a.hh-school-card {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}

#hh-portal a.hh-school-card:hover,
#hh-portal a.hh-school-card:focus,
#hh-portal a.hh-school-card:active {
  color: inherit !important;
  text-decoration: none !important;
}

#hh-portal .hh-school-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
  border-color: rgba(27, 79, 140, .2);
}

#hh-portal .hh-sc-top {
  padding: 22px 22px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#hh-portal .hh-sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

#hh-portal .hh-sc-mn {
  background: rgba(41, 128, 185, .12);
}

#hh-portal .hh-sc-th {
  background: rgba(26, 122, 74, .12);
}

#hh-portal .hh-sc-thcs {
  background: rgba(192, 57, 43, .10);
}

#hh-portal .hh-sc-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 4px;
}

#hh-portal .hh-sc-level {
  font-size: .75rem;
  color: var(--c-muted);
}

#hh-portal .hh-sc-footer {
  padding: 12px 22px;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--c-muted);
}

#hh-portal .hh-tag {
  padding: 3px 9px;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 600;
}

#hh-portal .hh-tag-cl {
  background: rgba(27, 79, 140, .08);
  color: var(--c-primary);
}

#hh-portal .hh-tag-ncl {
  background: rgba(232, 160, 32, .15);
  color: var(--c-accent-d);
}

/* ── NEWS ── */
#hh-portal .hh-news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

#hh-portal .hh-news-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s;
}

#hh-portal .hh-news-card:hover {
  box-shadow: var(--shadow-h);
}

#hh-portal .hh-news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--c-primary), #3a7bd5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

#hh-portal .hh-news-img-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#hh-portal .hh-news-body {
  padding: 18px 20px;
}

#hh-portal .hh-news-date {
  font-size: .72rem;
  color: var(--c-muted);
  margin-bottom: 6px;
}

#hh-portal .hh-news-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-text);
  line-height: 1.45;
  margin-bottom: 8px !important;
}

#hh-portal .hh-news-excerpt {
  font-size: .82rem;
  color: var(--c-muted);
  line-height: 1.6;
}

#hh-portal .hh-news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#hh-portal .hh-news-item {
  background: var(--c-surface);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow .2s;
  display: flex;
  gap: 12px;
}

#hh-portal .hh-news-item:hover {
  box-shadow: var(--shadow);
}

#hh-portal .hh-news-item-date {
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#hh-portal .hh-news-item-day {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

#hh-portal .hh-news-item-month {
  font-size: .6rem;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  text-transform: uppercase;
}

#hh-portal .hh-news-item-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.45;
}

#hh-portal .hh-news-item-cat {
  font-size: .7rem;
  color: var(--c-muted);
  margin-top: 4px;
}

/* Wrapper cho shortcode grid tin tức (Content Views / pt_view) */
#hh-portal .hh-news-grid-shortcode {
  background: #F4F6FA;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: 16px;
}

/* ── FILTER BAR ── */
#hh-portal .hh-filter-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(27, 79, 140, .06);
}

#hh-portal .hh-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

#hh-portal .hh-filter-inner::-webkit-scrollbar {
  display: none;
}

#hh-portal .hh-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-muted);
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  transition: all .18s;
  font-family: var(--font-body);
  position: relative;
  top: 1px;
}

#hh-portal .hh-filter-pill:hover {
  color: var(--c-primary);
}

#hh-portal .hh-filter-pill.hh-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  font-weight: 600;
}

#hh-portal .hh-filter-badge {
  background: var(--c-bg);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .7rem;
}

#hh-portal .hh-filter-pill.hh-active .hh-filter-badge {
  background: rgba(27, 79, 140, .1);
  color: var(--c-primary);
}

#hh-portal .hh-search-wrap {
  margin-left: auto;
  padding: 8px 0;
  flex-shrink: 0;
}

#hh-portal .hh-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 7px 14px;
  transition: border-color .18s;
}

#hh-portal .hh-search-box:focus-within {
  border-color: var(--c-primary);
  background: #fff;
}

#hh-portal .hh-search-box input {
  border: none !important;
  background: none !important;
  font-family: var(--font-body) !important;
  font-size: .83rem !important;
  color: var(--c-text) !important;
  outline: none !important;
  width: 180px;
  box-shadow: none !important;
}

/* ── INFO CARDS / TABLES ── */
#hh-portal .hh-info-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  padding: 24px;
}

#hh-portal .hh-info-card-title {
  font-weight: 700;
  color: var(--c-primary);
  font-size: .9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#hh-portal .hh-deadline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
}

#hh-portal .hh-deadline-item:last-child {
  border-bottom: none;
}

#hh-portal .hh-deadline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

#hh-portal .hh-deadline-date {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-primary);
}

#hh-portal .hh-deadline-label {
  font-size: .82rem;
  color: var(--c-text);
}

#hh-portal .hh-table {
  width: 100%;
  border-collapse: collapse;
}

#hh-portal .hh-table th {
  background: var(--c-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}

#hh-portal .hh-table td {
  padding: 11px 14px;
  font-size: .83rem;
  border-bottom: 1px solid var(--c-border);
}

#hh-portal .hh-table tr:last-child td {
  border-bottom: none;
}

#hh-portal .hh-table tr:nth-child(even) td {
  background: var(--c-bg);
}

#hh-portal .hh-admission-quota-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  overflow: hidden;
  margin-bottom: 20px;
}

#hh-portal .hh-ts-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 28px;
  align-items: start;
}

#hh-portal .hh-ts-grid>div {
  min-width: 0;
}

#hh-portal .hh-admission-quota-title {
  background: #107C51;
  padding: 18px 24px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

#hh-portal .hh-admission-quota-controls {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#hh-portal .hh-admission-filter-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: 6px;
}

#hh-portal .hh-admission-filter-group .hh-form-control {
  background: #fff !important;
  font-size: .82rem !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

#hh-portal .hh-admission-filter-note {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: var(--c-muted);
}

#hh-portal .hh-admission-table-wrap {
  width: 100%;
  overflow-x: auto;
}

#hh-portal .hh-admission-empty {
  font-size: .84rem;
  color: var(--c-muted);
  padding: 16px 20px 20px;
}

#hh-portal .hh-admission-detail-card {
  border-top: 1px solid var(--c-border);
  overflow: hidden;
}

#hh-portal .hh-admission-detail-title {
  padding: 12px 20px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-primary);
  background: #F8FAFF;
}

#hh-portal .hh-admission-detail-table th,
#hh-portal .hh-admission-detail-table td {
  white-space: normal;
  border: 1px solid #3a3a3a;
  text-align: center;
  vertical-align: middle;
  padding: 8px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

#hh-portal .hh-admission-detail-table {
  border: 1px solid #3a3a3a;
}

#hh-portal .hh-admission-detail-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

#hh-portal .hh-admission-detail-table th,
#hh-portal .hh-admission-detail-table td {
  min-width: 52px;
}

#hh-portal .hh-admission-detail-table th:nth-child(2),
#hh-portal .hh-admission-detail-table td:nth-child(2) {
  min-width: 100px;
}

#hh-portal .hh-admission-detail-table th:first-child,
#hh-portal .hh-admission-detail-table td:first-child,
#hh-portal .hh-admission-detail-table th:nth-child(2),
#hh-portal .hh-admission-detail-table td:nth-child(2) {
  text-align: left;
}

#hh-portal .hh-admission-detail-table thead tr:first-child th {
  background: #107C51;
  color: #fff;
}

#hh-portal .hh-admission-detail-table thead tr:not(:first-child) th {
  background: #2A5F9E;
  color: #fff;
  font-size: .74rem;
  line-height: 1.35;
}

#hh-portal .hh-admission-detail-table tbody td {
  font-size: .77rem;
}

#hh-portal .hh-admission-total-row td {
  font-weight: 700;
  background: #F1F6FF !important;
}

/* ── DETAIL PAGE ── */
#hh-portal .hh-detail-hero {
  background: linear-gradient(135deg, var(--c-primary-d), var(--c-primary));
  padding: 48px 32px;
  text-align: center;
}

#hh-portal .hh-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 16px;
}

#hh-portal .hh-detail-icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

#hh-portal .hh-detail-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px !important;
}

#hh-portal .hh-detail-chip-wrap {
  margin: 10px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

#hh-portal .hh-detail-chip-wrap .hh-chip {
  color: #fff;
}

#hh-portal .hh-detail-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 0 32px;
  flex-wrap: wrap;
}

#hh-portal .hh-tab-btn {
  padding: 14px 20px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--c-muted);
  border: none;
  border-bottom: 2.5px solid transparent;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .18s;
  position: relative;
  top: 1px;
}

#hh-portal .hh-tab-btn.hh-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  font-weight: 600;
}

#hh-portal .hh-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 24px;
  align-items: start;
}

#hh-portal .hh-detail-info-card--fit {
  width: fit-content;
  max-width: 100%;
}

#hh-portal .hh-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#hh-portal .hh-split-2> :nth-child(2) {
  border-left: 1px solid var(--c-border);
  padding-left: 16px;
}

@media (max-width: 720px) {
  #hh-portal .hh-split-2 {
    grid-template-columns: 1fr;
  }

  #hh-portal .hh-split-2> :nth-child(2) {
    border-left: none;
    padding-left: 0;
  }
}

#hh-portal .hh-detail-info-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  overflow: hidden;
  margin-bottom: 16px;
}

#hh-portal .hh-detail-info-hd {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--c-primary);
  border-bottom: 1px solid var(--c-border);
  font-size: .9rem;
}

#hh-portal .hh-detail-row {
  display: flex;
  padding: 13px 20px;
  border-bottom: 1px solid var(--c-border);
  font-size: .84rem;
}

#hh-portal .hh-detail-row:last-child {
  border-bottom: none;
}

#hh-portal .hh-detail-lbl {
  width: 140px;
  font-weight: 600;
  color: var(--c-muted);
  flex-shrink: 0;
}

/* Gallery grid dùng trong trang chi tiết trường (dùng chung cho các page chi tiết) */
#hh-portal .hh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ── FORM ── */
#hh-portal .hh-form-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  padding: 36px;
}

#hh-portal .hh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#hh-portal .hh-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#hh-portal .hh-form-group.hh-full {
  grid-column: 1/-1;
}

#hh-portal .hh-form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text);
}

#hh-portal .hh-form-label span {
  color: var(--c-red);
}

#hh-portal .hh-form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1.5px solid rgba(0, 0, 0, .12) !important;
  font-family: var(--font-body) !important;
  font-size: .85rem !important;
  color: var(--c-text) !important;
  background: var(--c-bg) !important;
  transition: border-color .18s;
  outline: none !important;
  box-shadow: none !important;
}

#hh-portal .hh-form-control:focus {
  border-color: var(--c-primary) !important;
  background: #fff !important;
}

#hh-portal .hh-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6580' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

#hh-portal .hh-steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
}

#hh-portal .hh-steps>*:not(.hh-step) {
  display: none !important;
}

#hh-portal .hh-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#hh-portal .hh-step::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-border);
  z-index: 0;
}

#hh-portal .hh-step:last-child::after,
#hh-portal .hh-step:last-of-type::after {
  display: none !important;
}

#hh-portal .hh-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  color: var(--c-muted);
}

#hh-portal .hh-step-circle.hh-done {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

#hh-portal .hh-step-circle.hh-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

#hh-portal .hh-step-label {
  font-size: .72rem;
  color: var(--c-muted);
  margin-top: 6px;
  font-weight: 500;
  text-align: center;
}

/* ── REGISTER FORM STEPS (page5) ── */
#hh-portal .hh-form-step {
  display: none;
}

#hh-portal .hh-form-step.hh-active {
  display: block;
}

/* Validation helpers */
#hh-portal .hh-input-error {
  border-color: var(--c-red) !important;
}

#hh-portal .hh-form-message {
  margin-top: 14px;
  font-size: .84rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(27, 79, 140, .18);
}



/* ── POLICY / CHIPS ── */
#hh-portal .hh-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

#hh-portal .hh-policy-card {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--c-border);
  padding: 24px;
  transition: box-shadow .2s;
}

#hh-portal .hh-policy-card:hover {
  box-shadow: var(--shadow-h);
}

#hh-portal .hh-policy-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(27, 79, 140, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

#hh-portal .hh-policy-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-primary);
  margin-bottom: 8px;
}

#hh-portal .hh-policy-desc {
  font-size: .82rem;
  color: var(--c-muted);
  line-height: 1.65;
}

#hh-portal .hh-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
}

#hh-portal .hh-chip-blue {
  background: rgba(27, 79, 140, .1);
  color: var(--c-primary);
}

#hh-portal .hh-chip-green {
  background: rgba(26, 122, 74, .1);
  color: var(--c-green);
}

#hh-portal .hh-chip-orange {
  background: rgba(232, 160, 32, .15);
  color: var(--c-accent-d);
}

/* ── HOTLINE ── */
#hh-portal .hh-hotline {
  background: var(--c-primary);
  border-radius: var(--radius-l);
  padding: 28px;
  color: #fff;
  text-align: center;
}

#hh-portal .hh-hotline h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff !important;
}

#hh-portal .hh-hotline-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-accent);
  margin: 8px 0;
}

#hh-portal .hh-hotline-sub {
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
}

/* ── FOOTER ── */
#hh-portal .hh-footer {
  background: var(--c-primary-d);
  color: rgba(255, 255, 255, .7);
  padding: 48px 32px 24px;
}

#hh-portal .hh-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

#hh-portal .hh-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

#hh-portal .hh-footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

#hh-portal .hh-footer-name {
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
}

#hh-portal .hh-footer-desc {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 280px;
}

#hh-portal .hh-footer-col-title {
  font-weight: 700;
  color: #fff;
  font-size: .85rem;
  margin-bottom: 14px;
}

#hh-portal .hh-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#hh-portal .hh-footer-links a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .82rem;
  transition: color .18s;
  cursor: pointer;
}

#hh-portal .hh-footer-links span,
#hh-portal .hh-footer-links li {
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
}

#hh-portal .hh-footer-links a:hover {
  color: #fff;
}

#hh-portal .hh-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* Trường hợp footer custom HTML không nằm trong #hh-portal
   => nới selector để footer vẫn ăn CSS */
.hh-footer {
  background: var(--c-primary-d);
  color: rgba(255, 255, 255, .7);
  padding: 48px 32px 24px;
}

.hh-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.hh-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hh-footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hh-footer-name {
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
}

.hh-footer-desc {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 280px;
}

.hh-footer-col-title {
  font-weight: 700;
  color: #fff;
  font-size: .85rem;
  margin-bottom: 14px;
}

.hh-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hh-footer-links a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .82rem;
  transition: color .18s;
  cursor: pointer;
}

.hh-footer-links span,
.hh-footer-links li {
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
}

.hh-footer-links a:hover {
  color: #fff;
}

.hh-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── DIVIDER ── */
#hh-portal .hh-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 20px;
}

#hh-portal .hh-divider-line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

#hh-portal .hh-divider-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}


/* ── RESPONSIVE ── */
@media (min-width: 1200px) {

  #hh-portal .hh-section-inner,
  #hh-portal .hh-hero-inner,
  #hh-portal .hh-stats-inner,
  #hh-portal .hh-footer-grid {
    max-width: 1200px;
  }
}

@media (max-width: 900px) {

  #hh-portal .hh-topbar,
  .hh-topbar {
    display: none !important;
  }

  /* Layout hero 1 cột, giữ card "Truy cập nhanh" bên dưới nội dung */
  #hh-portal .hh-hero-inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  #hh-portal .hh-hero-card {
    margin-top: 8px;
  }

  /* Header dùng hamburger, menu xổ xuống */
  #hh-portal .hh-navbar {
    padding: 6px 16px;
    height: var(--nav-h);
    position: relative;
    /* anchor cho panel xổ xuống */
  }

  #hh-portal .hh-nav-toggle {
    display: inline-flex;
  }

  /* Ẩn menu & CTA khi chưa mở */
  #hh-portal .hh-nav-menu {
    display: none !important;
  }

  /* Khi mở menu */
  #hh-portal.hh-nav-open .hh-nav-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    gap: 8px;
  }

  /* Panel xổ xuống dưới navbar để không bị “lộ chữ mờ/đè” như ảnh */
  #hh-portal.hh-nav-open .hh-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 12px 28px rgba(27, 79, 140, .18);
    padding: 10px 12px 12px;
    z-index: 260;
  }

  #hh-portal.hh-nav-open .hh-nav-links {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  #hh-portal.hh-nav-open .hh-nav-links a {
    width: 100%;
    padding: 10px 12px;
  }

  #hh-portal.hh-nav-open .hh-nav-cta {
    width: 100%;
    align-items: stretch;
    gap: 8px;
    padding-top: 4px;
    flex-direction: column;
  }

  #hh-portal.hh-nav-open .hh-nav-cta .hh-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: .8rem;
  }

  /* Header fallback (custom HTML không nằm trong #hh-portal) */
  .hh-navbar {
    padding: 6px 16px;
    height: var(--nav-h);
    position: relative;
    /* anchor cho panel xổ xuống */
  }

  .hh-nav-toggle {
    display: inline-flex;
  }

  .hh-nav-menu {
    display: none !important;
  }

  .hh-nav-open .hh-nav-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    gap: 8px;
  }

  .hh-nav-open .hh-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 12px 28px rgba(27, 79, 140, .18);
    padding: 10px 12px 12px;
    z-index: 260;
  }

  .hh-nav-open .hh-nav-links {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .hh-nav-open .hh-nav-links a {
    width: 100%;
    padding: 10px 12px;
  }

  .hh-nav-open .hh-nav-cta {
    width: 100%;
    align-items: stretch;
    gap: 8px;
    padding-top: 4px;
    flex-direction: column;
  }

  .hh-nav-open .hh-nav-cta .hh-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: .8rem;
  }

  #hh-portal .hh-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  #hh-portal .hh-news-grid {
    grid-template-columns: 1fr;
  }

  #hh-portal .hh-detail-grid {
    grid-template-columns: 1fr;
  }

  #hh-portal .hh-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #hh-portal .hh-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  #hh-portal .hh-detail-hero {
    padding: 40px 24px;
  }

  #hh-portal .hh-detail-tabs {
    padding: 0 20px;
  }

  #hh-portal .hh-ts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #hh-portal .hh-navbar {
    padding: 6px 12px;
  }

  #hh-portal.hh-nav-open .hh-nav-cta .hh-btn {
    padding: 6px 10px !important;
    font-size: .75rem !important;
  }

  /* Topbar vẫn hiển thị trên mobile (co giãn / xuống dòng) */
  #hh-portal .hh-topbar {
    display: flex;
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
  }

  #hh-portal .hh-topbar-left,
  #hh-portal .hh-topbar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Ẩn dấu '|' cho gọn trên màn hình nhỏ */
  #hh-portal .hh-topbar-left>span:nth-child(2) {
    display: none;
  }

  /* Header fallback (custom HTML không nằm trong #hh-portal) */
  .hh-navbar {
    padding: 6px 12px;
  }

  .hh-nav-open .hh-nav-cta .hh-btn {
    padding: 6px 10px !important;
    font-size: .75rem !important;
  }

  .hh-topbar {
    display: flex;
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
  }

  .hh-topbar-left,
  .hh-topbar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hh-topbar-left>span:nth-child(2) {
    display: none;
  }

  #hh-portal .hh-section {
    padding: 32px 14px;
  }

  #hh-portal .hh-hero {
    padding: 40px 16px 32px;
  }

  #hh-portal .hh-form-grid {
    grid-template-columns: 1fr;
  }

  #hh-portal .hh-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  #hh-portal .hh-page-hero {
    padding: 28px 14px;
  }

  #hh-portal .hh-detail-name {
    font-size: 1.4rem;
  }

  #hh-portal .hh-detail-hero {
    padding: 32px 16px;
  }

  #hh-portal .hh-detail-tabs {
    padding: 0 12px;
  }

  #hh-portal .hh-detail-chip-wrap {
    max-width: 100%;
    padding: 0 8px;
  }

  /* Chi tiết trường: hàng thông tin xếp dọc để không bị chật trên mobile */
  #hh-portal .hh-detail-row {
    flex-direction: column;
    gap: 6px;
  }

  #hh-portal .hh-detail-lbl {
    width: auto;
  }

  /* Gallery trong card: từ 3 cột -> 2 cột trên mobile */
  #hh-portal .hh-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card chi tiết dạng "fit" trên mobile: giới hạn khung ~300px và cho text tự xuống hàng */
  #hh-portal .hh-detail-info-card.hh-detail-info-card--fit {
    max-width: 300px;
    width: 100%;
    /* Đặt card ở chính giữa khung mobile */
    margin: 0 auto 16px;
  }

  #hh-portal .hh-detail-info-card.hh-detail-info-card--fit,
  #hh-portal .hh-detail-info-card.hh-detail-info-card--fit * {
    word-wrap: break-word;
    word-break: break-word;
  }

  /* Chỉ thu hẹp section chi tiết trường trên mobile, luôn căn giữa.
     max-width: 300px nhưng khi màn nhỏ hơn 300px thì card tự co theo width:100%,
     tránh bị lệch sang phải. */
  #hh-portal .hh-section.hh-section-detail .hh-section-inner {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
  }

  #hh-portal .hh-admission-quota-controls {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  #hh-portal .hh-admission-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  #hh-portal .hh-admission-table thead {
    display: none;
  }

  #hh-portal .hh-admission-table,
  #hh-portal .hh-admission-table tbody,
  #hh-portal .hh-admission-table tr,
  #hh-portal .hh-admission-table td {
    display: block;
    width: 100%;
  }

  #hh-portal .hh-admission-table tr {
    margin: 12px 12px 0;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  #hh-portal .hh-admission-table tbody tr:last-child {
    margin-bottom: 12px;
  }

  #hh-portal .hh-admission-table td {
    border-bottom: 1px solid var(--c-border);
    padding: 10px 12px;
    white-space: normal;
    font-size: .8rem;
  }

  #hh-portal .hh-admission-table td:last-child {
    border-bottom: none;
  }

  #hh-portal .hh-admission-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: .72rem;
    color: var(--c-primary);
    margin-bottom: 2px;
  }

  #hh-portal .hh-admission-detail-title {
    padding: 10px 12px;
    font-size: .78rem;
  }

  #hh-portal .hh-admission-detail-table th,
  #hh-portal .hh-admission-detail-table td {
    padding: 6px;
    font-size: .72rem;
    min-width: 46px;
  }

  #hh-portal .hh-admission-detail-table th:nth-child(2),
  #hh-portal .hh-admission-detail-table td:nth-child(2) {
    min-width: 92px;
  }

  /* Footer responsive (footer có thể là custom HTML không nằm trong #hh-portal) */
  #hh-portal .hh-footer {
    padding: 32px 14px 18px;
  }

  #hh-portal .hh-footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }

  #hh-portal .hh-footer-col-title {
    margin-bottom: 10px;
  }

  #hh-portal .hh-footer-links {
    gap: 6px;
  }

  #hh-portal .hh-footer-bottom {
    justify-content: flex-start;
  }

  #hh-portal .hh-footer-desc {
    max-width: none;
  }

  .hh-footer {
    padding: 32px 14px 18px;
  }

  .hh-footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }

  .hh-footer-col-title {
    margin-bottom: 10px;
  }

  .hh-footer-links {
    gap: 6px;
  }

  .hh-footer-bottom {
    justify-content: flex-start;
  }

  .hh-footer-desc {
    max-width: none;
  }
}

/* Màn hình rất nhỏ: gallery 1 cột */
@media (max-width: 420px) {
  #hh-portal .hh-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.pt-cv-readmore {
  color: #ffffff !important;
  background-color: #1a76c6 !important;
  border: none !important;
}