/* ============================================================
   THG Careers — Main Theme CSS
   Màu: CHỈ var(--thg-*) / var(--color-*) — CẤMHEX raw
   Mobile-first: 375 → 768 → 1200
   Phase 1 — visual foundation
   ============================================================ */

/* ══ 1. RESET + BASE ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Override GeneratePress defaults */
.generate-columns-container { display: block !important; }
#secondary { display: none !important; }
#primary { width: 100% !important; float: none !important; }
.inside-article { padding: 0; }
.entry-header, .entry-footer { display: none; }

/* ══ 2. TYPOGRAPHY ══ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }

.text-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-bold); }
.text-small   { font-size: var(--fs-small);   line-height: var(--lh-small); }
.text-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.text-muted   { color: var(--color-text-muted); }
.text-subtle  { color: var(--color-text-subtle); }
.text-accent  { color: var(--color-accent); }
.text-center  { text-align: center; }
.fw-medium    { font-weight: var(--fw-medium); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-bold      { font-weight: var(--fw-bold); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}
.rule {
  display: block;
  width: 36px; height: 2px;
  background: var(--color-accent);
  margin: var(--space-2) 0 var(--space-5);
  border-radius: 2px;
}
.text-center .rule { margin-left: auto; margin-right: auto; }

/* ══ 3. LAYOUT ══ */

/* Override GeneratePress parent: .site-content is flex by default → breaks section stacking */
.site-content,
.thg-content {
  display: block;
  width: 100%;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Sections stack vertically, always full-width */
.section,
.hero-bg,
section {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.section    { padding: var(--space-8) 0; }
.section-lg { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-6) 0; }
.section-alt   { background: var(--color-bg-alt); }
.section-dark  { background: var(--color-dark);    color: var(--color-on-dark); }
.section-navy  { background: var(--color-primary);  color: var(--color-on-primary); }
.section-title { margin-bottom: var(--space-7); }

.grid-2 { display: grid; gap: var(--space-5); }
.grid-3 { display: grid; gap: var(--space-5); }
.grid-4 { display: grid; gap: var(--space-5); }

/* ══ 4. HEADER ══ */
.site-header {
  background: var(--thg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0; z-index: 100;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.has-shadow {
  box-shadow: 0 2px 16px rgba(18,23,42,.08);
  border-bottom-color: transparent;
}

.thg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-5);
}

.thg-logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
  flex-shrink: 0;
}
.thg-logo-mark {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: .08em;
  line-height: 1;
}
.thg-logo-dot { color: var(--color-border); font-size: .9rem; }
.thg-logo-careers {
  font-size: .78rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Desktop nav — hidden on mobile */
.thg-nav { display: none; }
.thg-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.thg-nav-list li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  transition: color .2s, background .2s;
}
.thg-nav-list li a:hover,
.thg-nav-list .current-menu-item a {
  color: var(--color-accent);
  background: rgba(184,147,90,.08);
}

.thg-header-actions { display: flex; align-items: center; gap: var(--space-3); }

.thg-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1.25rem;
  transition: background .2s, color .2s;
}
.thg-hamburger:hover,
.thg-hamburger[aria-expanded="true"] {
  background: rgba(184,147,90,.1);
  color: var(--color-accent);
}

/* Mobile nav drawer */
.thg-mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 200;
}
.thg-mobile-nav.is-open { display: block; }
.thg-mobile-nav-overlay {
  position: absolute; inset: 0;
  background: rgba(14,14,16,.65);
  backdrop-filter: blur(4px);
}
.thg-mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(300px, 88vw);
  background: var(--thg-navy-900);
  padding: var(--space-7) var(--space-5) var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-4);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.thg-mobile-nav.is-open .thg-mobile-nav-panel { transform: none; }
.thg-mobile-nav-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--thg-gold-300); font-size: 1.5rem;
  border-radius: var(--radius-md);
  transition: background .2s;
}
.thg-mobile-nav-close:hover { background: rgba(255,255,255,.1); }
.thg-mobile-nav-list { display: flex; flex-direction: column; gap: var(--space-1); }
.thg-mobile-nav-list li a {
  display: flex; align-items: center;
  padding: var(--space-3) var(--space-4);
  color: var(--thg-gold-300);
  font-size: 1rem; font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  transition: background .2s, color .2s;
  min-height: 44px;
}
.thg-mobile-nav-list li a:hover { background: rgba(184,147,90,.12); color: var(--color-accent); }

/* ══ 5. HERO ══ */
.hero-bg {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18,23,42,.88) 0%,
    rgba(18,23,42,.60) 55%,
    rgba(14,14,16,.35) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: var(--space-8) 0;
}
.hero-title {
  color: var(--thg-white);
  font-weight: var(--fw-bold);
  max-width: 580px;
}
.hero-sub {
  color: var(--thg-gold-300);
  font-size: var(--fs-body-lg);
  max-width: 520px;
  margin: var(--space-4) 0 var(--space-6);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ══ 6. BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: scale(.98); }
.btn i { font-size: 1.1em; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-accent); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
  font-weight: var(--fw-semibold);
}
.btn-accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-ghost-light {
  background: transparent;
  color: var(--thg-white);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost-light:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-small); }
.btn-lg { padding: var(--space-4) var(--space-7); font-size: var(--fs-body-lg); }
.btn-full { width: 100%; }

/* ══ 7. BADGES (trạng thái vị trí) ══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-open   { background: var(--thg-success-bg); color: var(--thg-success); }
.badge-closed { background: var(--thg-navy-100);   color: var(--thg-slate-600); }

/* ══ 8. JOB TYPE LABELS ══ */
.jtype {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.8;
}
/* full_time */
.jtype-full, .t-ct { background: var(--thg-gold-100);   color: var(--thg-gold-700); }
/* casual */
.jtype-casual, .t-tv { background: var(--thg-navy-100); color: var(--thg-navy-700); }
/* part_time */
.jtype-part, .t-bt { background: var(--thg-success-bg); color: var(--thg-success); }
/* internship */
.jtype-intern, .t-tt { background: var(--thg-gold-100); color: var(--thg-gold-700); }

/* ══ 9. JOB CARDS ══ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1),
              border-color .3s ease,
              transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}
.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-pill {
  position: absolute;
  top: var(--space-3); left: var(--space-3);
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.card-body {
  padding: var(--space-5);
  flex: 1; display: flex; flex-direction: column; gap: var(--space-3);
}
.card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.3; margin: 0;
  transition: color .2s;
}
.card:hover .card-title { color: var(--color-primary); }
.card-meta {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2); margin-top: auto;
}

/* ══ 10. META PILLS ══ */
.meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption); font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.meta-pill i { font-size: .9em; color: var(--color-accent); }

/* ══ 11. FORM FIELDS ══ */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--color-text); }
.field label .required { color: var(--thg-danger); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-subtle); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}
.field input:hover:not(:focus),
.field select:hover:not(:focus),
.field textarea:hover:not(:focus) { border-color: var(--thg-gold-300); }
.field textarea { resize: vertical; min-height: 100px; }
.field-checkbox {
  display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer;
}
.field-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; margin-top: 2px;
  border-radius: var(--radius-sm);
  accent-color: var(--color-accent); cursor: pointer;
}
.field-hint  { font-size: var(--fs-caption); color: var(--color-text-subtle); }
.field-error { font-size: var(--fs-caption); color: var(--thg-danger); }

/* ══ 12. FOOTER ══ */
.site-footer {
  background: var(--thg-navy-900);
  color: var(--thg-white);
  padding: var(--space-8) 0 0;
}
.footer-top {
  display: grid; gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .thg-logo-mark { font-size: 1.75rem; }
.footer-brand .thg-logo-dot { color: rgba(255,255,255,.25); }
.footer-brand .thg-logo-careers { font-size: .9rem; letter-spacing: .14em; color: var(--thg-gold-300); }
.footer-tagline {
  color: var(--thg-gold-300); font-size: var(--fs-small);
  font-style: italic; margin-top: var(--space-2);
}
.footer-desc {
  color: var(--thg-navy-100); font-size: var(--fs-small);
  line-height: 1.7; margin-top: var(--space-3); max-width: 320px;
}
.footer-nav-title {
  font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-4);
}
.footer-nav-list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav-list a { color: var(--thg-navy-100); font-size: var(--fs-small); transition: color .2s; }
.footer-nav-list a:hover { color: var(--color-accent); }
.footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--fs-small); color: var(--thg-navy-100);
}
.footer-contact-item i { color: var(--color-accent); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.footer-contact-item a { color: inherit; transition: color .2s; }
.footer-contact-item a:hover { color: var(--color-accent); }
.footer-bottom {
  padding: var(--space-5) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-caption); color: var(--thg-slate-400);
}
.footer-bottom a { color: inherit; transition: color .2s; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ══ 13. MOBILE ZALO/CALL BAR (mobile-only) ══ */
.mobile-cta { display: none; }

/* ══ 14. ANIMATIONS ══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card-img img { transition: none; }
}

/* ══ 15. UTILITIES ══ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.flex            { display: flex; }
.flex-wrap       { flex-wrap: wrap; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.mt-4  { margin-top: var(--space-4); }
.mt-5  { margin-top: var(--space-5); }
.mt-6  { margin-top: var(--space-6); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-5  { margin-bottom: var(--space-5); }
.mb-6  { margin-bottom: var(--space-6); }

/* ══ 16. RESPONSIVE ── 768px ══ */
@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
  .thg-header-inner { height: 72px; }
  .thg-nav { display: flex; align-items: center; gap: var(--space-3); }
  .thg-hamburger { display: none; }
  .hero-bg { min-height: 70vh; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ══ 17. RESPONSIVE ── 1200px ══ */
@media (min-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

/* ══ 18. MOBILE-ONLY ══ */
@media (max-width: 767px) {
  .mobile-cta {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: var(--thg-navy-900);
    border-top: 1px solid rgba(184,147,90,.2);
    padding: var(--space-2) 0;
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  }
  .mobile-cta-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: var(--space-2) var(--space-3);
    color: var(--thg-navy-100);
    font-size: 11px; font-weight: var(--fw-medium);
    text-decoration: none; min-height: 44px;
    transition: color .2s;
  }
  .mobile-cta-btn i { font-size: 1.3rem; }
  .mobile-cta-btn:hover { color: var(--color-accent); }
  .mobile-cta-zalo { border-left: 1px solid rgba(255,255,255,.1); }
  .mobile-cta-zalo, .mobile-cta-zalo i { color: var(--thg-gold-300); }
  .thg-content { padding-bottom: 72px; }
}

/* ══ PHASE 3 — TEMPLATE COMPONENTS ══ */

/* Image box (gallery, cards, fields) */
.imgbox { overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-alt); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.imgbox:hover img { transform: scale(1.05); }

/* Section heading */
.section-eyebrow { margin-bottom: var(--space-2); }
.section-h  { font-size: var(--fs-h1); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); letter-spacing: -.01em; }
.section-sub { color: var(--color-text-muted); font-size: var(--fs-body); margin-bottom: var(--space-6); font-weight: 300; }
.section-head { margin-bottom: var(--space-7); }

/* Card row (salary + button) */
.card-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--color-border); padding-top: var(--space-4); margin-top: auto; flex-wrap: wrap; gap: var(--space-3); }
.card-salary { font-weight: var(--fw-semibold); color: var(--thg-gold-700); font-size: var(--fs-body); }
.card-salary-tbd { color: var(--color-text-subtle); font-weight: 400; }
.card-img-link { display: block; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat-item { padding: var(--space-6) var(--space-4); text-align: center; border-right: 1px solid var(--color-border); }
.stat-item:last-child { border-right: none; }
.stat-number { display: block; font-size: 2.25rem; font-weight: var(--fw-bold); color: var(--thg-gold-700); letter-spacing: -.02em; line-height: 1; }
.stat-label  { color: var(--color-text-muted); font-size: var(--fs-small); margin-top: 4px; }

/* Hero filter bar */
.filter-bar { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-3); box-shadow: 0 8px 24px rgba(18,23,42,.15); margin-top: var(--space-5); }
.filter-bar select { font: inherit; font-size: var(--fs-small); padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); flex: 1 1 140px; color: var(--color-text); background: var(--color-bg); transition: border-color .2s; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8935A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.filter-bar select:focus { outline: none; border-color: var(--color-accent); }

/* Trust chips (hero dark) */
.trust-list { display: flex; flex-wrap: wrap; gap: var(--space-5); color: var(--thg-gold-300); font-size: var(--fs-small); margin-top: var(--space-5); }
.trust-list span { display: inline-flex; align-items: center; gap: 6px; }
.trust-list i { font-size: 1rem; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px; gap: var(--space-3); }
.gallery-grid .imgbox { height: 100%; border-radius: var(--radius-lg); }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.why-item { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: transform .3s ease, box-shadow .3s ease; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--thg-gold-100); color: var(--thg-gold-700); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: var(--space-4); }
.why-title { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.why-desc  { color: var(--color-text-muted); font-size: var(--fs-small); margin-top: var(--space-2); }

/* Field cards (6 ops) */
.fields-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); }
.field-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.field-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.field-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg-alt); }
.field-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.field-card:hover .field-card-img img { transform: scale(1.06); }
.field-card-body { padding: var(--space-5); }
.field-card-key   { font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--thg-gold-700); }
.field-card-title { font-size: var(--fs-h4); font-weight: var(--fw-semibold); margin: var(--space-2) 0; }
.field-card-desc  { color: var(--color-text-muted); font-size: var(--fs-small); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.step-item  { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color .3s; }
.step-item:hover { border-color: var(--thg-gold-300); }
.step-num  { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--color-accent); color: var(--thg-gold-700); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-semibold); font-size: var(--fs-small); margin-bottom: var(--space-4); transition: background .3s, color .3s; }
.step-item:hover .step-num { background: var(--color-accent); color: var(--thg-navy-900); }
.step-title { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.step-desc  { color: var(--color-text-muted); font-size: var(--fs-small); margin-top: var(--space-2); }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 900px; }
details.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); overflow: hidden; }
details.faq-item > summary { list-style: none; cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: var(--fw-semibold); font-size: var(--fs-body); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); transition: background .2s; }
details.faq-item > summary:hover { background: var(--color-bg-alt); }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after { content: "+"; color: var(--thg-gold-700); font-size: 1.25rem; flex-shrink: 0; font-weight: 300; }
details.faq-item[open] > summary::after { content: "–"; }
.faq-body { padding: 0 var(--space-5) var(--space-5); color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.75; }
.faq-body ul  { padding-left: var(--space-5); margin-top: var(--space-2); }
.faq-body li  { margin-bottom: var(--space-2); }

/* Regulation accordion */
details.reg-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); overflow: hidden; margin-bottom: var(--space-2); }
details.reg-item > summary { list-style: none; cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: var(--fw-semibold); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); transition: background .2s; }
details.reg-item > summary:hover { background: var(--color-bg-alt); }
details.reg-item > summary::-webkit-details-marker { display: none; }
details.reg-item > summary::after { content: "+"; color: var(--thg-gold-700); font-size: 1.25rem; flex-shrink: 0; font-weight: 300; }
details.reg-item[open] > summary::after { content: "–"; }
.reg-body { padding: 0 var(--space-5) var(--space-5); color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.75; }
.reg-body ul, .reg-body ol { padding-left: var(--space-5); margin: var(--space-2) 0; }
.reg-body li { margin-bottom: var(--space-2); }
.reg-body table { width: 100%; border-collapse: collapse; font-size: 12px; margin: var(--space-3) 0; }
.reg-body table th, .reg-body table td { border: 1px solid var(--color-border); padding: 6px 10px; text-align: center; }
.reg-body table th { background: var(--color-bg-alt); color: var(--color-text-muted); font-weight: var(--fw-semibold); }
.reg-body table td:first-child, .reg-body table th:first-child { text-align: left; }
.reg-body strong, .reg-body b { color: var(--color-text); }
.reg-note { background: var(--thg-gold-100); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--fs-caption); color: var(--thg-gold-700); margin-top: var(--space-3); }

/* Single job detail layout */
.detail-layout  { display: grid; gap: var(--space-6); }
.detail-sidebar { }

/* Job summary box */
.job-summary { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4); }
.job-title { font-size: var(--fs-h1); font-weight: var(--fw-semibold); line-height: 1.2; }
.job-kv { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--fs-caption); color: var(--thg-gold-700); margin-top: var(--space-4); font-weight: var(--fw-medium); }
.job-kv span { display: inline-flex; align-items: center; gap: 5px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 3px 10px; }
.job-salary { margin-top: var(--space-4); color: var(--thg-gold-700); font-weight: var(--fw-semibold); font-size: var(--fs-body-lg); }

/* Job content block */
.job-block { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4); }
.job-block h2 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--thg-gold-100); }
.job-block ul, .job-block ol { padding-left: var(--space-5); }
.job-block li { margin-bottom: var(--space-2); color: var(--color-text-muted); font-size: var(--fs-small); }
.job-block p  { color: var(--color-text-muted); font-size: var(--fs-small); }
.job-block a  { color: var(--thg-gold-700); }

/* Apply box (sidebar) */
.apply-box { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.apply-box h3 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); margin-bottom: var(--space-5); }
.apply-form { display: flex; flex-direction: column; gap: var(--space-4); }
.reg-summary { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--fs-caption); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.reg-summary strong { color: var(--color-text); }
.reg-summary ul { padding-left: var(--space-4); margin-top: var(--space-2); }
.reg-summary li { margin-bottom: 3px; }
.field-checkbox { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-size: var(--fs-caption); line-height: 1.5; }
.field-checkbox input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 1px; accent-color: var(--color-accent); cursor: pointer; flex-shrink: 0; }
.field-checkbox-label { color: var(--color-text-muted); }
.form-msg { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--fs-small); font-weight: var(--fw-medium); margin-top: var(--space-2); display: none; }
.form-msg.is-visible { display: block; }
.form-msg-success { background: var(--thg-success-bg); color: var(--thg-success); }
.form-msg-error   { background: var(--thg-danger-bg);  color: var(--thg-danger); }

/* Closed job notify box */
.notify-box { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; }
.notify-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--thg-gold-100); color: var(--thg-gold-700); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto var(--space-4); }
.notify-box h3 { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.notify-box p  { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: var(--space-5); }

/* Filter chips (taxonomy, regulations page) */
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-chip { display: inline-flex; align-items: center; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: var(--fw-medium); text-decoration: none; border: 1.5px solid var(--color-border); color: var(--color-text-muted); transition: all .2s; }
.filter-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--thg-navy-900); }

/* Contact grid */
.contact-layout { display: grid; gap: var(--space-8); }
.info-row { display: flex; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.info-row .info-icon { color: var(--thg-gold-700); font-size: 1.2rem; flex-shrink: 0; width: 24px; text-align: center; margin-top: 2px; }
.info-row strong { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.info-row span, .info-row a { color: var(--color-text-muted); font-size: var(--fs-small); }
.info-row a:hover { color: var(--color-accent); }

/* Matrix table (regulations) */
.matrix-table { width: 100%; border-collapse: collapse; font-size: var(--fs-caption); margin: var(--space-4) 0; }
.matrix-table th, .matrix-table td { border: 1px solid var(--color-border); padding: var(--space-2) var(--space-3); text-align: center; }
.matrix-table th { background: var(--color-bg-alt); color: var(--color-text-muted); font-weight: var(--fw-semibold); font-size: 11px; }
.matrix-table td:first-child, .matrix-table th:first-child { text-align: left; min-width: 160px; }
.v-ok  { background: var(--thg-success-bg); color: var(--thg-success);  padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: var(--fw-semibold); white-space: nowrap; }
.v-no  { background: var(--thg-danger-bg);  color: var(--thg-danger);   padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: var(--fw-semibold); white-space: nowrap; }
.v-na  { color: var(--color-text-subtle); font-size: 11px; }

/* Thanks page */
.thanks-wrap { max-width: 540px; margin: var(--space-9) auto; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-9) var(--space-7); text-align: center; box-shadow: var(--shadow-md); }
.thanks-check { width: 72px; height: 72px; border-radius: 50%; background: var(--thg-gold-100); color: var(--thg-gold-700); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto var(--space-5); }
.thanks-title { font-size: var(--fs-h1); font-weight: var(--fw-semibold); }
.thanks-sub   { color: var(--color-text-muted); margin: var(--space-3) 0 var(--space-6); font-size: var(--fs-body); line-height: 1.7; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* Privacy / doc pages */
.doc-content { max-width: 860px; }
.doc-content h2 { font-size: var(--fs-h3); border-bottom: 2px solid var(--thg-gold-100); padding-bottom: var(--space-3); margin: var(--space-7) 0 var(--space-4); }
.doc-content h2:first-child { margin-top: 0; }
.doc-content ul { padding-left: var(--space-6); margin: var(--space-3) 0; }
.doc-content li { margin-bottom: var(--space-2); color: var(--color-text-muted); }
.doc-content p  { color: var(--color-text-muted); }
.doc-content strong { color: var(--color-text); }
.info-box { background: var(--thg-gold-100); border-left: 4px solid var(--color-accent); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); margin: var(--space-4) 0; color: var(--thg-gold-700); font-size: var(--fs-small); }

/* About page */
.about-lead { max-width: 840px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.value-item  { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.value-mark  { font-size: 1.5rem; margin-bottom: var(--space-3); }
.value-title { font-weight: var(--fw-semibold); }
.value-desc  { color: var(--color-text-muted); font-size: var(--fs-small); margin-top: var(--space-2); }

/* Navy dark section (about quality) */
.section-navy { background: var(--thg-navy-700); color: var(--thg-white); }
.section-navy .eyebrow { color: var(--thg-gold-300); }
.section-navy .section-h { color: var(--thg-white); }
.section-navy p { color: var(--thg-navy-100); }
.section-navy b, .section-navy strong { color: var(--thg-white); }

/* Jobs count tag */
.jobs-count { color: var(--color-text-subtle); font-weight: 300; font-size: var(--fs-body); }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: var(--space-5); transition: color .2s; }
.back-link:hover { color: var(--color-accent); }

/* ── Phase 3 Responsive ── */
@media (min-width: 768px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
  .gallery-grid .gallery-g1 { grid-row: 1 / 3; }
  .why-grid   { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-layout { grid-template-columns: 1fr 360px; align-items: start; }
  .apply-box { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--color-border); }
  .gallery-grid { grid-template-rows: 160px 160px; }
  .job-title { font-size: var(--fs-h2); }
  .thanks-wrap { margin: var(--space-7) var(--space-4); padding: var(--space-7) var(--space-5); }
}

/* ══ PHASE 4 FIX — Form 2-col, compact content, mobile sticky ══ */

/* Form 2-col grid on desktop */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field-full { grid-column: 1 / -1; }

/* Inline checkboxes */
.field-checkboxes { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2) 0; }
.field-checkbox-inline { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); cursor: pointer; }
.field-checkbox-inline input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-accent); flex-shrink: 0; }

/* Bold salary on card */
.card-salary-bold { font-weight: var(--fw-semibold); color: var(--thg-gold-700); }

/* Compact job blocks — less vertical whitespace */
.job-block { padding: var(--space-4) var(--space-5); margin-bottom: var(--space-3); }
.job-block h2 { margin-bottom: var(--space-3); padding-bottom: var(--space-2); }
.job-block li { margin-bottom: var(--space-1); }

/* Mobile sticky "Ứng tuyển" button — shown only on mobile */
.mobile-apply-sticky { display: none; }

/* Quy định matrix table */
.v-ok   { color: var(--thg-success); font-weight: var(--fw-bold); }
.v-no   { color: var(--color-text-subtle); }
.v-na   { color: var(--thg-gold-700); font-style: italic; }

/* Form apply-box: smaller apply button top */
.apply-box h3 { margin-bottom: var(--space-4); font-size: var(--fs-body-lg); }

@media (max-width: 767px) {
  /* 2-col form → 1 col on mobile */
  .form-row-2col { grid-template-columns: 1fr; }

  /* Mobile sticky apply bar */
  .mobile-apply-sticky {
    display: block;
    margin-bottom: var(--space-4);
  }

  /* Compact sections on mobile */
  .job-block { padding: var(--space-4); }
  .section { padding: var(--space-6) 0; }
  .detail-main .job-block:first-child { margin-top: 0; }
}

/* ══ STYLE GUIDE (internal tool) ══ */
.sg-section   { padding: var(--space-7) 0; }
.sg-section:nth-child(even) { background: var(--color-bg-alt); }
.sg-title {
  font-size: var(--fs-h3); font-weight: var(--fw-bold);
  color: var(--color-primary);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-accent);
  display: flex; align-items: center; gap: var(--space-3);
}
.sg-subtitle { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-4); }
.sg-row  { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.sg-note { font-size: var(--fs-caption); color: var(--color-text-subtle); margin-top: var(--space-2); font-style: italic; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-3); }
.sg-swatch { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.sg-swatch-block { height: 56px; }
.sg-swatch-info { padding: 6px 10px; background: var(--color-bg); }
.sg-swatch-name { font-size: 11px; font-weight: var(--fw-semibold); color: var(--color-text); }
.sg-swatch-val  { font-size: 10px; color: var(--color-text-subtle); font-family: monospace; }
.sg-type-row { display: flex; flex-direction: column; gap: var(--space-3); }
.sg-type-item { display: flex; align-items: baseline; gap: var(--space-4); }
.sg-type-label { font-size: 10px; font-weight: var(--fw-semibold); color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: .08em; min-width: 80px; }
.sg-type-sample { line-height: 1.2; }
.sg-toc {
  position: sticky; top: 80px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-small);
}
.sg-toc a { display: block; padding: 4px 0; color: var(--color-text-muted); transition: color .15s; }
.sg-toc a:hover { color: var(--color-accent); }
.sg-toc-title { font-weight: var(--fw-semibold); color: var(--color-text); margin-bottom: var(--space-3); font-size: var(--fs-body); }
.sg-layout { display: grid; gap: var(--space-6); }
@media (min-width: 900px) {
  .sg-layout { grid-template-columns: 180px 1fr; align-items: start; }
}
