/* =====================================================================
   Docean Solution - Main stylesheet
   Brand tokens lay tu style_brand.json
   ===================================================================== */

:root {
  --color-primary: #004aad; /* Docean Blue */
  --color-accent: #cc1db9; /* Magenta */
  --color-purple: #7a22c4; /* Purple */
  --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,
    #004aad 0%,
    #7a22c4 55%,
    #cc1db9 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;
}
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, #004aad 0%, #7a22c4 55%, #cc1db9 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: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 40px;
  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: 30px;
  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;
  align-items: center;
  gap: 4px;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a {
  display: block;
  padding: 11px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-cloud);
  border-radius: var(--radius-sm);
}
.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;
}

.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(0, 74, 173, 0.92) 0%,
    rgba(122, 34, 196, 0.88) 55%,
    rgba(204, 29, 185, 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;
}

/* Danh sach dich vu con (khi chua co du lieu/bai dang) */
.service-item-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 40px;
}
.service-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 18px;
}
.service-item-icon {
  font-size: 20px;
  line-height: 1;
}
.service-item-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate);
}
.service-item--simple {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-mist);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-ink);
}
.service-item--simple .tick {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
}

/* 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-fill, 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;
}

/* News filter tabs (su-kien.php) */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.news-filter a {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate);
  background: #fff;
}
.news-filter a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.news-filter a.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}
.news-filter a .count {
  opacity: 0.75;
  font-weight: 500;
}

/* 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 {
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.8;
}
.news-article-body p {
  margin: 0 0 16px;
}
.news-article-body h2,
.news-article-body h3 {
  margin: 28px 0 12px;
}

/* 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: 38px;
  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: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.footer-social a:hover {
  background: var(--color-primary);
}
.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;
}

/* =====================================================================
   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: 28px;
    padding-right: 28px;
  }
  .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;
  }
  /* .main-nav > ul > li > a {
    color: black;
  } */
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    display: none;
    border: none;
    padding-left: 12px;
  }
  .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;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .related-cats {
    grid-template-columns: 1fr 1fr;
  }
  .nav-overlay.is-open {
    display: block;
  }
}

.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;
  }
}
