/* =====================================================================
   Yen Tung - Main stylesheet
   Brand tokens: xanh navy #145580, xanh duong #2d7da6, vang dong #f5a623
   (trich tu logo Yen Tung - "UY TIN - CHAT LUONG - PHAT TRIEN")
   ===================================================================== */

:root {
  --color-primary: #145580; /* Yen Tung Navy */
  --color-accent: #f5a623; /* Yen Tung Gold */
  --color-purple: #2d7da6; /* Yen Tung Mid Blue */
  --color-ink: #101b2e; /* Van ban chinh */
  --color-slate: #5b6b85; /* Van ban phu */
  --color-line: #e4eaf3; /* Vien, divider */
  --color-mist: #f5f8fd; /* Nen section nhat */
  --color-cloud: #ffffff; /* Nen card */
  --gradient-brand: linear-gradient(
    120deg,
    #0e3b5c 0%,
    #145580 45%,
    #2d7da6 100%
  );
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 6px 24px rgba(16, 27, 46, 0.08);
  --shadow-hover: 0 12px 32px rgba(16, 27, 46, 0.14);
  --container-w: 1180px;
  --font-main:
    "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-ink);
  background: var(--color-cloud);
  font-size: 16px;
  line-height: 1.6;
  /* An toan cho mobile: chan moi truong hop lech 1-2px gay scroll ngang
     (vd hieu ung transform/marquee cua .slogan-text, hover translateY...). */
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0 0 12px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}
.section--mist {
  background: var(--color-mist);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-ink);
}
.section-desc {
  color: var(--color-slate);
  font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-primary);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-mist);
}
.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  transform: translateY(-2px);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #145580 0%, #2d7da6 55%, #f5a623 100%);
}
.topbar {
  background: var(--color-cloud);
  color: #cfd8ea;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a {
  color: #cfd8ea;
}
.topbar-links {
  display: flex;
  gap: 18px;
}
.topbar-social {
  display: flex;
  gap: 12px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 46px;
  width: auto;
}

/* Logo rieng cho thanh menu mobile (topbar chinh, co logo desktop, bi an het o mobile) */
.brand-mobile {
  display: none;
}
.brand-mobile img {
  height: 34px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.main-nav {
  display: flex;
  padding-left: 20px;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  display: block;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14.1px;
  color: var(--color-cloud);
  border-radius: var(--radius-sm);
  /* Chot chan quan trong nhat: du menu co chat het khong gian den dau,
     trinh duyet cung khong con duoc phep tach 1 nhan menu ra nhieu dong
     nua (vd "Trang" / "chủ") - toi da chi tran nhe ra ngoai thay vi vo
     chu giua dong. */
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-active > a {
  color: var(--color-primary);
  background: var(--color-mist);
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 10px;
  z-index: 120;
}
.has-dropdown:hover > .dropdown {
  display: block;
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--color-slate);
}
.dropdown li a:hover {
  background: var(--color-mist);
  color: var(--color-primary);
}

/* Cap 2: flyout submenu (vd System and Network > Bao tri he thong...) */
.dropdown li.has-subdropdown {
  position: relative;
}
.dropdown .subdropdown {
  display: none;
  position: absolute;
  top: -10px;
  left: 100%;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 10px;
  z-index: 130;
}
.dropdown li.has-subdropdown:hover > .subdropdown {
  display: block;
}
.subdropdown li a {
  color: var(--color-slate);
}
.subdropdown li a:hover {
  background: var(--color-mist);
  color: var(--color-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-cta .phone {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--color-slate);
  line-height: 1.3;
}
.header-cta .phone strong {
  color: var(--color-primary);
  font-size: 16px;
}

/* Nut chuyen ngon ngu VI/EN tren header - dat canh nut ☰, hien o moi kich
   thuoc man hinh (khong an tren mobile nhu .phone). */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}
.lang-switch a {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover {
  color: #fff;
}
.lang-switch a.is-active {
  background: #fff;
  color: var(--color-primary);
}

/* Ban VI/EN thu 2, nam trong panel menu mobile (duoi "Tuyển dụng") - mac
   dinh an, chi hien trong @media (max-width: 768px) ben duoi. */
.mobile-nav-lang {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

/* =====================================================================
   HERO / SLIDER
   ===================================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
}
.hero-slide {
  display: none;
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  align-items: center;
}
.hero-slide.is-active {
  display: flex;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 59, 92, 0.93) 0%,
    rgba(20, 85, 128, 0.90) 55%,
    rgba(45, 125, 166, 0.85) 100%
  );
}
.hero-slide .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 640px;
  color: #fff;
}
.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}
.hero-arrow.prev {
  left: 18px;
}
.hero-arrow.next {
  right: 18px;
}

/* =====================================================================
   CARDS / GRIDS
   ===================================================================== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--color-cloud);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mist);
  font-size: 26px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  color: var(--color-slate);
  font-size: 14.5px;
  margin-bottom: 14px;
}
.card-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
}
.card-link:hover {
  text-decoration: underline;
}

/* =====================================================================
   LUOI "DICH VU NOI BAT" O TRANG CHU (8 the tuong ung menu dieu huong)
   Lam noi bat hon: moi cot 1 mau nhan (tint) lay theo dung 4 diem dung
   tren dai gradient thuong hieu (xanh -> tim -> hong), lap lai cho hang
   thu 2 (8 the = 4 cot x 2 hang) de tao nhip mau dong bo voi logo, thay
   vi tat ca deu dung 1 mau xam nhat nhu truoc.
   ===================================================================== */
.menu-cards .card {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  padding-top: 30px;
}
.menu-cards .card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tint-fg, var(--color-primary));
}
.menu-cards .card:hover {
  border-color: var(--tint-fg, var(--color-primary));
}
.menu-cards .card-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--tint-bg, var(--color-mist));
  color: var(--tint-fg, var(--color-primary));
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(16, 27, 46, 0.05);
}
.menu-cards .card h3 {
  font-size: 17px;
}
.menu-cards .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint-bg, var(--color-mist));
  color: var(--tint-fg, var(--color-primary));
  transition:
    gap 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.menu-cards .card-link:hover {
  text-decoration: none;
  gap: 8px;
  background: var(--tint-fg, var(--color-primary));
  color: #fff;
}

.menu-cards .card:nth-child(4n + 1) {
  --tint-bg: #eaf1fd;
  --tint-fg: #145580;
}
.menu-cards .card:nth-child(4n + 2) {
  --tint-bg: #e8f3fa;
  --tint-fg: #2d7da6;
}
.menu-cards .card:nth-child(4n + 3) {
  --tint-bg: #fff3e0;
  --tint-fg: #d98324;
}
.menu-cards .card:nth-child(4n) {
  --tint-bg: #fff8e6;
  --tint-fg: #f5a623;
}

/* Nen gradient thuong hieu cho section "Dich vu noi bat" - dung dung dai
   mau nguoi dung yeu cau (giong het overlay cua hero-slide, tao cam giac
   dong bo xuyen suot trang chu thay vi nen xam nhat .section--mist mac
   dinh). Rieng section nay doi chu tieu de/mo ta sang mau trang vi chu
   mac dinh (mau toi, eyebrow mau magenta) se rat kho doc tren nen co
   doan cung mang mau magenta. */
.section--brand {
  background: linear-gradient(
    90deg,
    rgba(14, 59, 92, 0.93) 0%,
    rgba(20, 85, 128, 0.90) 55%,
    rgba(45, 125, 166, 0.85) 100%
  );
}
.section--brand .section-eyebrow {
  color: #fff;
  opacity: 0.85;
}
.section--brand .section-title {
  color: #fff;
}
.section--brand .section-desc {
  color: rgba(255, 255, 255, 0.85);
}
/* The van giu nen trang de chu/icon ben trong khong doi, nhung tang do
   do bong len ro rang de "noi" tren nen mau ruc thay vi chim vao nen. */
.menu-cards .card {
  box-shadow: 0 16px 36px rgba(8, 14, 28, 0.24);
}
.menu-cards .card:hover {
  box-shadow: 0 22px 46px rgba(8, 14, 28, 0.32);
}

@media (max-width: 768px) {
  .menu-cards .card:nth-child(odd) {
    --tint-bg: #eaf1fd;
    --tint-fg: #145580;
  }
  .menu-cards .card:nth-child(even) {
    --tint-bg: #fff3e0;
    --tint-fg: #d98324;
  }
}

/* Danh sach dich vu con dang TABS (danh-muc.php) - thay cho list xep chong
   truoc day: hang nut tab can giua, bam tab nao hien noi dung tab do, chi 1
   panel hien tai 1 thoi diem thay vi don het cac nhom xuong duoi gay
   trang qua dai / nhieu khoang trong khi 1 nhom chi co it noi dung. */
.service-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 36px;
}
.service-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-cloud);
  color: var(--color-slate);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.service-tab-btn .service-tab-icon {
  font-size: 16px;
  line-height: 1;
}
.service-tab-btn .service-tab-count {
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  opacity: 0.7;
}
.service-tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.service-tab-btn.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-card);
}
.service-tab-btn.is-active .service-tab-count {
  opacity: 0.85;
}

.service-tab-panel {
  display: none;
  scroll-margin-top: 90px;
}
.service-tab-panel.is-active {
  display: block;
  animation: service-tab-fade 0.25s ease;
}
@keyframes service-tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-tab-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: var(--color-mist);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-ink);
}
.service-tab-empty .tick {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
}

@media (max-width: 640px) {
  .service-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .service-tab-btn {
    flex: none;
  }
}

/* The card noi dung dich vu (bai dang) - dung chung o danh-muc.php,
   dich-vu.php (xem tat ca) va dich-vu-chi-tiet.php (lien quan) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-cloud);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.post-card-thumb {
  display: block;
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  object-fit: cover;
}
.post-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 32px;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 6px;
  line-height: 1.35;
}
.post-card-desc {
  font-size: 13.5px;
  color: var(--color-slate);
  line-height: 1.55;
}
.post-card--viewall {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-brand);
  border: none;
  color: #fff;
}
.post-card-viewall-icon {
  font-size: 26px;
  margin-bottom: 8px;
}
.post-card-viewall-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* Stats */
.stats-bar {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-bar .stat-num {
  font-size: 34px;
  font-weight: 800;
}
.stats-bar .stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Client logos */
.client-slider {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.client-track {
  overflow: hidden;
}

.client-track {
  display: flex;
  transition: transform .45s ease;
}

.client-page {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
  justify-content: center;
}

/* Khung cố định cho tất cả logo - đồng bộ kích cỡ, to & rõ hơn */
.client-logo {
  width: 100%;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  padding: 12px;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Logo tự co theo tỷ lệ, không méo */
.client-logo img {
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Link */
.client-page a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.client-page a:hover .client-logo,
.client-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}
.client-page a:hover img,
.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Điều hướng slider (mũi tên + dot) */
.client-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}
.client-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e5ee;
  background: #fff;
  color: #1f2a44;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.client-arrow:hover {
  background: var(--gradient-brand, #d6006c);
  color: #fff;
  border-color: transparent;
}
.client-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #d7dae4;
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}
.client-dot.is-active {
  width: 24px;
  border-radius: 5px;
  background: #d6006c;
}

/* Mobile / tablet: giảm số cột nhưng vẫn đồng bộ kích cỡ */
@media (max-width: 992px) {
  .client-page {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .client-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .client-logo {
    height: 92px;
  }
  .client-logo img {
    max-height: 64px;
  }
}

/* News cards */
.news-card {
  display: flex;
  flex-direction: column;
}
.news-thumb {
  height: 170px;
  border-radius: var(--radius-md);
  background: var(--color-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate);
  font-size: 13px;
  margin-bottom: 16px;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-meta {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.news-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.news-card .excerpt {
  color: var(--color-slate);
  font-size: 14px;
  flex: 1;
}
.news-date {
  color: var(--color-slate);
  font-size: 13px;
  margin-top: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pagination a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-ink);
}
.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pagination a.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

/* Single news article (tin-tuc.php) */
.news-article {
  max-width: 780px;
  margin: 0 auto;
}
.news-article h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 10px 0 6px;
}
.news-article .news-meta {
  margin-bottom: 0;
}
.news-article .news-date {
  margin-bottom: 22px;
}
.news-article-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--color-mist);
  max-height: 420px;
}
.news-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-article-body,
.project-content {
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.8;
}
.news-article-body p,
.project-content p {
  margin: 0 0 16px;
}
.news-article-body h2,
.news-article-body h3,
.project-content h2,
.project-content h3 {
  margin: 28px 0 12px;
}

/* Noi dung soan tu trinh soan thao (TinyMCE) co the co bang, anh, danh sach -
   style chung de hien thi hop ly tren trang chi tiet tin tuc / du an. */
.news-article-body img,
.project-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 8px 0;
}
.news-article-body table,
.project-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.news-article-body table th,
.news-article-body table td,
.project-content table th,
.project-content table td {
  border: 1px solid var(--color-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.news-article-body table th,
.project-content table th {
  background: var(--color-mist);
  font-weight: 700;
}
.news-article-body ul,
.news-article-body ol,
.project-content ul,
.project-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.news-article-body li,
.project-content li {
  margin-bottom: 6px;
}
.news-article-body blockquote,
.project-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-mist);
  color: var(--color-slate);
}

/* Tag noi dung (tin tuc / dich vu / tuyen dung) - hien o cuoi trang chi tiet,
   trang tag.php va khoi "Tu khoa noi bat" o footer. Dat ten rieng .content-tag*
   de khong trung voi .job-tag (chip thong tin nhanh tren the vi tri tuyen dung). */
.content-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}
.content-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-slate);
  margin-right: 4px;
}
.content-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-mist);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.content-tag:hover {
  color: #fff;
  background: var(--gradient-brand);
  border-color: transparent;
}

/* Khoi "Tu khoa noi bat" (tag cloud) - dung o footer va trang tag.php */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud .content-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.tag-cloud .content-tag:hover {
  background: var(--gradient-brand);
  border-color: transparent;
}

/* Trang tag.php - danh sach noi dung theo 1 tag */
.tag-archive-head {
  text-align: center;
  margin-bottom: 40px;
}
.tag-archive-head .eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-result-type {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-purple);
  background: var(--color-mist);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* Job cards (tuyen-dung.php) */
.job-card {
  display: flex;
  flex-direction: column;
}
.job-card-title {
  font-size: 17px;
  margin-bottom: 10px;
}
.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.job-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-slate);
  background: var(--color-mist);
  border-radius: 999px;
  padding: 5px 12px;
}
.job-card-desc {
  color: var(--color-slate);
  font-size: 14px;
  flex: 1;
  margin-bottom: 10px;
}
.job-card-deadline {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
}

/* Job detail (tuyen-dung-chi-tiet.php) */
.job-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  background: var(--color-mist);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 18px 0;
  font-size: 14.5px;
}
.job-info-grid .ic {
  margin-right: 4px;
}

/* Form ung tuyen CV (tuyen-dung-chi-tiet.php) */
.job-apply-panel {
  max-width: 780px;
  margin: 56px auto 0;
  padding: 32px;
  background: var(--color-cloud);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 90px;
}
.job-apply-panel .section-head {
  margin-bottom: 22px;
}
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--color-slate);
}

/* CTA band */
.cta-band {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-size: 24px;
  margin-bottom: 4px;
}
.cta-band p {
  opacity: 0.9;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--color-mist);
  padding: 16px 0;
  font-size: 14px;
  color: var(--color-slate);
}
.breadcrumb a {
  color: var(--color-primary);
}
.breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* Page hero (trang con) */
.page-hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero .icon {
  font-size: 44px;
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero p {
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 15.5px;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.related-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related-cats a {
  display: block;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
}
.related-cats a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.related-cats .ic {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

/* Contact form */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  height: fit-content;
}
.contact-info-card h3 {
  font-size: 20px;
  margin-bottom: 18px;
}
.contact-info-card .row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14.5px;
}
.contact-info-card .row .ic {
  font-size: 18px;
}
.contact-info-card .row a {
  color: #fff;
}

.form-group {
  margin-bottom: 16px;
}

/* Fanpage Facebook & Ban do cong ty (trang chu, ngay truoc footer) */
.connect-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.connect-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.connect-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 16px;
  word-break: break-word;
}
.connect-address {
  color: var(--color-slate);
  font-weight: 500;
  cursor: default;
}
.connect-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-mist);
  line-height: 0;
}
.connect-embed iframe {
  display: block;
  width: 100%;
  height: 360px;
}
@media (max-width: 480px) {
  .connect-embed iframe {
    height: 280px;
  }
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14.5px;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.alert-success {
  background: #e7f7ee;
  color: #16794b;
  border: 1px solid #b7ead0;
}
.alert-error {
  background: #fdebee;
  color: #b3243b;
  border: 1px solid #f6c4ce;
}

.social-floating {
    position: fixed;

    right: 25px;
    bottom: 100px;

    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Nút chung */

.social-btn {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
    border: 3px solid rgba(255,255,255,.55);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
    opacity: 0;
    animation: socialPopIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
}

/* Xuất hiện lần lượt từng nút */
.social-btn:nth-child(1) { animation-delay: .1s; }
.social-btn:nth-child(2) { animation-delay: .25s; }
.social-btn:nth-child(3) { animation-delay: .4s; }

@keyframes socialPopIn {
    0%   { opacity: 0; transform: translateX(40px) scale(.4); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Vòng sóng lan toả (pulse) phía sau mỗi nút, lấy màu nền của chính nút đó */
.social-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: inherit;
    z-index: -1;
    animation: socialPulse 2.2s ease-out infinite;
}
.social-btn:nth-child(2)::before { animation-delay: .35s; }
.social-btn:nth-child(3)::before { animation-delay: .7s; }

@keyframes socialPulse {
    0%   { transform: scale(1);    opacity: .55; }
    70%  { transform: scale(1.8);  opacity: 0; }
    100% { transform: scale(1.8);  opacity: 0; }
}

/* Tooltip hiện tên khi hover */
.social-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(20,20,20,.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

/* Hover */
.social-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.social-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Messenger */
.social-btn.messenger {
    background: linear-gradient(135deg, #00c6ff, #0068ff);
}

.social-btn.messenger svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Zalo */

.social-btn.zalo {
    background: #ffffff;
    border-color: #0068ff;
}

.social-btn.zalo svg {
    width: 38px;
    height: 38px;
}

.social-btn.phone {
    background: #16794b;
}

.social-btn.phone svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Rung nhẹ định kỳ để thu hút chú ý - áp dụng cho icon (svg) bên trong,
   tách riêng khỏi transform hover/pulse của .social-btn nên không bị xung đột */
.social-btn svg {
    transform-origin: 50% 50%;
    animation: socialShake 4.5s ease-in-out infinite;
}
.social-btn:nth-child(1) svg { animation-delay: 1.2s; }
.social-btn:nth-child(2) svg { animation-delay: 2.1s; }
.social-btn:nth-child(3) svg { animation-delay: 3s; }

/* Tạm dừng rung khi đang hover để không rối mắt */
.social-btn:hover svg {
    animation-play-state: paused;
}

@keyframes socialShake {
    0%, 62%, 100% { transform: rotate(0deg); }
    66%  { transform: rotate(-16deg); }
    70%  { transform: rotate(13deg); }
    74%  { transform: rotate(-10deg); }
    78%  { transform: rotate(7deg); }
    82%  { transform: rotate(-4deg); }
    86%  { transform: rotate(0deg); }
}

/* Mobile */

@media (max-width: 768px) {
    .social-floating {
        right: 15px;
        bottom: 80px;
        gap: 12px;
    }
    .social-btn {
        width: 56px;
        height: 56px;
    }
    .social-btn.messenger svg {
        width: 26px;
        height: 26px;
    }
    .social-btn.phone svg {
        width: 26px;
        height: 26px;
    }
    .social-btn.zalo svg {
        width: 32px;
        height: 32px;
    }
    .social-btn::after {
        right: 68px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Người dùng thích chuyển động ít hơn */
@media (prefers-reduced-motion: reduce) {
    .social-btn {
        opacity: 1;
        animation: none;
    }
    .social-btn::before {
        animation: none;
        display: none;
    }
    .social-icon {
        animation: none;
    }
    .social-btn svg {
        animation: none;
    }
}

/* Icon rung nhẹ định kỳ để thu hút chú ý (tách riêng khỏi transform của .social-btn) */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 80%;
    animation: socialShake 4.2s ease-in-out infinite;
}

.social-btn:nth-child(1) .social-icon { animation-delay: .8s; }
.social-btn:nth-child(2) .social-icon { animation-delay: 1.8s; }
.social-btn:nth-child(3) .social-icon { animation-delay: 2.8s; }

@keyframes socialShake {
    0%, 74%   { transform: rotate(0deg); }
    76%       { transform: rotate(-16deg); }
    79%       { transform: rotate(13deg); }
    82%       { transform: rotate(-10deg); }
    85%       { transform: rotate(7deg); }
    88%       { transform: rotate(-5deg); }
    91%       { transform: rotate(3deg); }
    94%       { transform: rotate(-1deg); }
    97%, 100% { transform: rotate(0deg); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--gradient-brand);
  color: #cfd8ea;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-grid li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-brand .brand {
  display: inline-flex;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 0;
}
.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  overflow: hidden;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a svg {
  width: 24px;
  height: 24px;
}
.footer-social a:hover {
  color: #fff;
}
/* Hover doi mau theo dung mau thuong hieu cua tung nen tang, thay vi chung
   1 mau xanh thuong hieu website nhu truoc. */
.footer-social a.fb:hover {
  background: #1877f2;
}
.footer-social a.linkedin:hover {
  background: #0a66c2;
}
.footer-social a.youtube:hover {
  background: #ff0000;
}
.footer-social a.zalo:hover {
  background: #0068ff;
}
.footer-tags {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
}
.footer-tags h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}
.footer-legal-name {
  margin: 0 0 6px;
  opacity: 0.9;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .related-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .topbar {
    display: none;
  }
  .header-main {
    position: relative;
    justify-content: flex-end;
  }
  .header-main.container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-mobile {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transition: right 0.25s ease;
    overflow-y: auto;
    z-index: 200;
  }
  .main-nav.is-open {
    right: 0;
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  
  /* Panel mobile co nen trang (xem .main-nav o tren) nen chu menu phai doi
     sang mau toi - truoc day bi comment lai nen chu trang tren nen trang,
     gan nhu khong doc duoc khi mo menu tren dien thoai. */
  .main-nav > ul > li > a {
    color: var(--color-ink);
    padding: 14px 6px;
    font-size: 15px;
    border-radius: 0;
  }
  .main-nav > ul > li {
    border-bottom: 1px solid var(--color-line);
  }
  .main-nav > ul > li:last-child {
    border-bottom: none;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li.is-active > a {
    background: var(--color-mist);
  }
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    display: none;
    border: none;
    padding-left: 12px;
    /* Panel menu mobile hep hon 280px o nhieu dien thoai (vd man 320px) -
       khong bo min-width nay se lam menu con rong hon ca panel cha, gay
       tran ngang/scroll ngang xau xi khi mo dropdown. */
    min-width: 0;
  }
  .has-dropdown.is-open > .dropdown {
    display: block;
  }
  .dropdown .subdropdown {
    position: static;
    box-shadow: none;
    display: none;
    border: none;
    padding-left: 12px;
    min-width: 0;
  }
  .dropdown li.has-subdropdown.is-open > .subdropdown {
    display: block;
  }
  .header-cta .phone {
    display: none;
  }
  /* Ban VI/EN tren thanh header chi danh cho desktop - tren mobile da
     chuyen xuong nam trong panel menu (duoi muc "Tuyển dụng"), xem
     .mobile-nav-lang ngay ben duoi. */
  .header-cta .lang-switch {
    display: none;
  }
  .mobile-nav-lang {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-line);
  }
  .mobile-nav-lang a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-slate);
    background: var(--color-mist);
    text-align: center;
  }
  .mobile-nav-lang a.is-active {
    background: var(--gradient-brand);
    color: #fff;
  }
  /* Nut mo menu (☰) - tang vung cham cho du lon (toi thieu ~44px) de bam
     tren dien thoai khong bi truot ra ngoai. */
  .nav-toggle {
    padding: 8px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-slide {
    min-height: 420px;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .hero-content p {
    font-size: 15.5px;
  }
  .section {
    padding: 44px 0;
  }
  .section-title {
    font-size: 24px;
  }
  .cta-band {
    padding: 28px;
    text-align: center;
    justify-content: center;
  }
  .job-apply-panel {
    margin-top: 36px;
    padding: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .related-cats {
    grid-template-columns: 1fr 1fr;
  }
  .nav-overlay.is-open {
    display: block;
  }
}

/* Man hinh rat hep (dien thoai nho, vd iPhone SE ~320-375px) */
@media (max-width: 420px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .header-main.container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-content h1 {
    font-size: 25px;
  }
  .hero-slide {
    min-height: 380px;
  }
  .page-hero {
    padding: 40px 0;
  }
  .page-hero h1 {
    font-size: 26px;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 24px 16px;
    gap: 14px;
  }
  .stats-bar .stat-num {
    font-size: 26px;
  }
  .job-info-grid {
    grid-template-columns: 1fr;
  }
  .related-cats {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 22px;
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 27, 46, 0.5);
  z-index: 150;
}

.topbar-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  overflow: hidden;
}

.topbar-slogan {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 650px;
  overflow: hidden;
}

.slogan-icon {
  flex: 0 0 auto;
  font-size: 16px;
  animation: sloganPulse 1.8s ease-in-out infinite;
}

.slogan-track {
  position: relative;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.slogan-text {
  display: inline-block;
  padding-left: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: black;

  animation: sloganMove 18s linear infinite;
}

@keyframes sloganMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes sloganPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .topbar-slogan {
    max-width: 100%;
  }

  .slogan-text {
    font-size: 12px;
    animation-duration: 14s;
  }
}
