/* ======================== */
/* CSS Custom Properties    */
/* ======================== */
:root {
  --primary: #00DC82;
  --primary-dark: #00a85e;
  --primary-darker: #008a4d;
  --primary-light: rgba(0, 220, 130, 0.1);
  --primary-glow: rgba(0, 220, 130, 0.25);

  --navy: #080f1a;
  --navy-2: #0f1c2d;
  --slate: #1e293b;

  --text-dark: #0f172a;
  --text: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f9fafb;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --shadow-green: 0 6px 28px rgba(0, 220, 130, 0.28);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
}

/* ======== */
/* Reset    */
/* ======== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

/* =========== */
/* Layout      */
/* =========== */
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* =========== */
/* Navbar      */
/* =========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.navbar__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 8px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 16px;
}
.navbar__logo img { height: 34px; width: auto; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.navbar__link {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.navbar__link:hover, .navbar__link.active {
  background: var(--primary-light);
  color: var(--primary-darker);
}
.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}
.search-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-darker);
}
.navbar__cta {
  background: var(--primary);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}
.navbar__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-dark);
  margin-left: 8px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu .navbar__link { padding: 10px 14px; }
.mobile-menu__label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-light); padding: 10px 14px 2px;
}
.mobile-menu__sub { padding-left: 12px; }

/* ── Navbar dropdown ── */
.navbar__dropdown { position: relative; display: flex; align-items: center; }
.navbar__dropdown-toggle {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition-fast); white-space: nowrap;
  display: flex; align-items: center; gap: 4px; font-family: var(--font);
}
.navbar__dropdown-toggle:hover, .navbar__dropdown-toggle.active {
  background: var(--primary-light); color: var(--primary-darker);
}
.dd-arrow { font-size: 0.6rem; transition: transform 0.2s; display: inline-block; }
.navbar__dropdown:hover .dd-arrow { transform: rotate(180deg); }

.navbar__dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
  min-width: 220px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 6px 0; z-index: 200;
}
.navbar__dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.navbar__dropdown:hover .navbar__dropdown-menu { display: block; }

.navbar__dropdown-item {
  display: block; padding: 9px 16px; font-size: 0.85rem; color: var(--text);
  text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.navbar__dropdown-item:hover { background: var(--off-white); color: var(--primary); }

/* =========== */
/* Buttons     */
/* =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  line-height: 1;
}
.btn--primary { background: var(--primary); color: var(--navy); }
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ============== */
/* Page Header    */
/* ============== */
.page-header {
  background: var(--navy);
  padding: 110px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,220,130,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--primary);
  margin-bottom: 10px;
}
.page-header__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.page-header__desc {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.58);
  max-width: 460px;
  line-height: 1.72;
}

/* ============== */
/* Filter Bar     */
/* ============== */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 100;
}
.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.filter-bar__inner::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  background: none;
  white-space: nowrap;
}
.filter-tab:hover { background: var(--off-white); color: var(--text); }
.filter-tab.active {
  background: var(--primary);
  color: var(--navy);
  font-weight: 700;
  border-color: var(--primary);
}

/* ============== */
/* Blog Controls  */
/* ============== */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-controls__count { font-size: 0.88rem; color: var(--text-muted); }
.blog-controls__count strong { color: var(--text-dark); font-weight: 700; }
.blog-controls__right { display: flex; gap: 10px; align-items: center; }
.select {
  padding: 8px 32px 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white) 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='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.select:focus { border-color: var(--primary); }

/* =================== */
/* Blog List Layout    */
/* =================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition-fast);
}
.post-item:first-child { padding-top: 4px; }
.post-item:last-child { border-bottom: none; }
.post-item__thumb {
  flex-shrink: 0;
  width: 128px; min-height: 86px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
}
.post-item__thumb img {
  flex: 1; width: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-item:hover .post-item__thumb img { transform: scale(1.07); }
.post-item__body { flex: 1; min-width: 0; }
.post-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.post-item__cat {
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--primary-darker);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.post-item__read {
  font-size: 0.72rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.post-item__title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.42;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.post-item:hover .post-item__title { color: var(--primary-darker); }
.post-item__excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.post-item__meta-dot { opacity: 0.5; }

/* Blog sidebar */
.blog-sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bs-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.bs-card__title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.fp-item {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition-fast);
}
.fp-item:first-of-type { padding-top: 0; }
.fp-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.fp-item__img {
  flex-shrink: 0;
  width: 68px; height: 52px;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.fp-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.fp-item:hover .fp-item__img img { transform: scale(1.08); }
.fp-item__cat {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--primary-darker);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.fp-item__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.fp-item:hover .fp-item__title { color: var(--primary-darker); }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition-fast);
  margin: 0 4px 6px 0;
}
.cat-chip:hover {
  background: var(--primary-light);
  border-color: rgba(0,220,130,0.3);
  color: var(--primary-darker);
}
.cat-chip__count { font-size: 0.7rem; color: var(--text-light); font-weight: 400; }

/* ============== */
/* Pagination     */
/* ============== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 56px;
  padding-bottom: 10px;
}
.pagination__btn {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
}
.pagination__btn:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
  background: var(--primary-light);
}
.pagination__btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--navy);
}
.pagination__btn.disabled { opacity: 0.4; pointer-events: none; }
.pagination__dots { color: var(--text-light); font-size: 0.87rem; padding: 0 4px; }

/* ============ */
/* Blog Cards   */
/* (used in article related posts) */
/* ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  flex-shrink: 0;
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.07); }
.blog-card__cat {
  position: absolute;
  top: 11px; left: 11px;
  background: var(--primary);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card__title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 9px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card:hover .blog-card__title { color: var(--primary-darker); }
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.blog-card__read { display: flex; align-items: center; gap: 4px; }

/* ============== */
/* Article Page   */
/* ============== */
.article-hero {
  background: var(--navy);
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(0,220,130,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.article-hero__inner { position: relative; z-index: 2; padding-bottom: 40px; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.article-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb__sep { opacity: 0.4; }
.article-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.article-cat {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.16);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.article-cat:hover {
  background: var(--primary-light);
  color: var(--primary-darker);
  border-color: rgba(0,220,130,0.3);
}
.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.18;
  margin-bottom: 22px;
  max-width: 820px;
  letter-spacing: -0.5px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.article-author img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,220,130,0.4);
}
.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin-top: 20px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}
.article-content { min-width: 0; }
.article-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 40px 0 16px;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--text-dark);
}
.article-content p { margin-bottom: 20px; line-height: 1.82; color: var(--text); }
.article-content img { border-radius: var(--radius); margin: 28px 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 22px;
  margin: 28px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.03rem;
}
.article-content ul, .article-content ol {
  margin: 16px 0 20px 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; line-height: 1.75; color: var(--text); }
.article-content a { color: var(--primary-darker); text-decoration: underline; }

/* ── Bảng trong bài viết ── */
.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
}
.article-content thead th {
  background: var(--off-white);
  color: var(--text-dark);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.article-content th,
.article-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border-light);
  line-height: 1.65;
  vertical-align: top;
  color: var(--text);
}
.article-content th:last-child,
.article-content td:last-child { border-right: none; }
.article-content tbody tr:last-child th,
.article-content tbody tr:last-child td { border-bottom: none; }
.article-content tbody tr:nth-child(even) { background: var(--gray-50); }
/* Cột đầu của bảng so sánh thường là nhãn hàng */
.article-content tbody th { background: var(--off-white); font-weight: 600; text-align: left; }
.article-content table p { margin-bottom: 0; }

/* Bảng của block Gutenberg cũng dùng chung viền */
.article-content figure.wp-block-table { margin: 28px 0; overflow-x: auto; }
.article-content figure.wp-block-table table { border: 1px solid var(--border); border-radius: var(--radius); }

@media (max-width: 640px) {
  .article-content table { font-size: 0.84rem; }
  .article-content th, .article-content td { padding: 9px 11px; }
}
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 32px 0; }

/* ── Khối chia sẻ bài viết ── */
.share-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 44px 0 8px;
  padding: 22px 24px;
  background: var(--primary-light);
  border: 1px solid rgba(0, 220, 130, 0.35);
  border-radius: var(--radius-lg);
}
.share-box__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.share-box__desc {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 44ch;
}
.share-box__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}
.share-btn--fb {
  background: #1877F2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.28);
}
.share-btn--fb:hover { background: #0F63D6; transform: translateY(-1px); }
.share-btn--copy {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--border);
}
.share-btn--copy:hover { border-color: var(--primary); color: var(--primary-darker); }
.share-btn--copy.is-copied {
  background: var(--primary);
  border-color: var(--primary);
  color: #06281a;
}
.share-box__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .share-box { padding: 18px; }
  .share-box__btns { width: 100%; }
  .share-btn { flex: 1; justify-content: center; }
}


/* Tag */
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gray-50);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.tag:hover {
  background: var(--primary-light);
  color: var(--primary-darker);
  border-color: rgba(0,220,130,0.3);
}

/* Sidebar */
.sidebar__sticky { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebar-card__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover .sidebar-post__title { color: var(--primary-darker); }
.sidebar-post__img {
  flex-shrink: 0;
  width: 64px; height: 52px;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.sidebar-post__img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.sidebar-post__meta { font-size: 0.74rem; color: var(--text-light); margin-top: 5px; }

/* =========== */
/* Footer      */
/* =========== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.055);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  text-decoration: none;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(
    90deg,
    #ffffff 0%, #00DC82 30%, #ffffff 50%, #00DC82 70%, #ffffff 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brand-shimmer 4s linear infinite;
  position: relative;
}
.footer-brand::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(12px);
  opacity: 0.35;
  animation: brand-shimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes brand-shimmer {
  0%   { background-position: 250% center; }
  100% { background-position: 0% center; }
}
.footer__desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: 22px;
}
.footer__social { display: flex; gap: 9px; }
.footer__social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}
.footer__social-link:hover { background: var(--primary); color: var(--navy); }
.footer__col-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__link { font-size: 0.86rem; color: rgba(255,255,255,0.48); transition: color 0.2s; }
.footer__link:hover { color: var(--primary); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.055);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer__copy { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer__bottom-links { display: flex; gap: 22px; }
.footer__bottom-link { font-size: 0.82rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer__bottom-link:hover { color: var(--primary); }

/* ============ */
/* Scrollbar    */
/* ============ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============ */
/* Responsive   */
/* ============ */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr 260px; gap: 32px; }
  .blog-layout { grid-template-columns: 1fr 260px; gap: 28px; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .navbar__nav { display: none; }
  .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .search-btn span { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar__sticky { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: none; }
  .post-item__thumb { width: 96px; min-height: 68px; }
  .post-item__excerpt { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ======================== */
/* Review / Location Page   */
/* ======================== */

/* ── Location grid ── */
.loc-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .loc-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .loc-list { grid-template-columns: 1fr 1fr 1fr; } }

.loc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column; gap: 5px;
}
.loc-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }

.loc-card__r1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.loc-card__name { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.loc-card__r2 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.loc-card__loc { font-size: 0.73rem; color: var(--text-muted); }
.loc-card__cnt { font-size: 0.7rem; color: var(--text-light); white-space: nowrap; }

/* ── Stars ── */
.stars { color: #f59e0b; letter-spacing: 0.5px; }
.stars-num { font-size: 0.76rem; font-weight: 700; color: var(--text-dark); }
.stars-none { font-size: 0.72rem; color: var(--text-light); }

/* ── Modal backdrop ── */
.rv-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 300; }
.rv-backdrop.open { display: block; }

/* ── Modal panel ── */
.rv-modal { display: none; position: fixed; z-index: 301; background: var(--white); flex-direction: column; overflow: hidden; }
.rv-modal.open { display: flex; }

@media (min-width: 769px) {
  .rv-modal { top: 0; right: 0; bottom: 0; width: min(500px, 92vw); border-radius: var(--radius-lg) 0 0 var(--radius-lg); box-shadow: -8px 0 48px rgba(0,0,0,0.18); animation: rvRight 0.25s ease; }
  @keyframes rvRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
}
@media (max-width: 768px) {
  .rv-modal { bottom: 0; left: 0; right: 0; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,0.18); animation: rvUp 0.25s ease; }
  @keyframes rvUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
}

.rv-modal__hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 18px 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); z-index: 1; flex-shrink: 0; }
.rv-modal__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 2px; }
.rv-modal__sub { font-size: 0.72rem; color: var(--text-muted); }
.rv-modal__close { width: 28px; height: 28px; border: none; background: var(--off-white); border-radius: 50%; cursor: pointer; font-size: 0.8rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rv-modal__body { overflow-y: auto; padding: 16px 18px; flex: 1; }

/* ── Overall rating ── */
.rv-overall { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--off-white); border-radius: var(--radius-sm); margin-bottom: 16px; }
.rv-overall__big { font-size: 2.4rem; font-weight: 800; color: #f59e0b; line-height: 1; }
.rv-overall__stars { font-size: 1.1rem; margin-bottom: 3px; }
.rv-overall__cnt { font-size: 0.73rem; color: var(--text-muted); }

/* ── Sections ── */
.rv-sec { margin-bottom: 18px; }
.rv-sec__title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 9px; }

/* ── Rent table ── */
.rv-table { width: 100%; border-collapse: collapse; font-size: 0.81rem; }
.rv-table th { text-align: left; padding: 5px 10px; background: var(--off-white); color: var(--text-muted); font-weight: 600; }
.rv-table td { padding: 6px 10px; border-bottom: 1px solid var(--border-light); font-weight: 500; }

/* ── Star input ── */
.star-input { display: flex; align-items: center; gap: 3px; margin-bottom: 10px; }
.star-input .s { font-size: 1.7rem; color: var(--border); cursor: pointer; transition: color 0.1s; line-height: 1; user-select: none; }
.star-input .s.on, .star-input .s:hover, .star-input .s:hover ~ .s { color: initial; }
.star-input:not(:hover) .s.on { color: #f59e0b; }
.star-input:hover .s { color: #f59e0b; }
.star-input .s:hover ~ .s { color: var(--border); }
.star-lbl { font-size: 0.78rem; color: var(--text-muted); margin-left: 8px; }

/* ── Review form ── */
.rv-form { padding: 14px; background: var(--off-white); border-radius: var(--radius-sm); margin-bottom: 16px; }
.rv-form__title { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.rv-form input, .rv-form textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-xs);
  font-size: 0.83rem; font-family: var(--font); color: var(--text-dark);
  background: var(--white); box-sizing: border-box; margin-bottom: 8px; outline: none; transition: border-color 0.2s;
}
.rv-form input:focus, .rv-form textarea:focus { border-color: var(--primary); }
.rv-form textarea { height: 80px; resize: none; }

/* ── Reviews list ── */
.rv-rev { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.rv-rev__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rv-rev__name { font-size: 0.82rem; font-weight: 600; }
.rv-rev__stars { color: #f59e0b; font-size: 0.75rem; margin: 2px 0; }
.rv-rev__text { font-size: 0.81rem; color: var(--text); line-height: 1.5; margin-bottom: 3px; }
.rv-rev__time { font-size: 0.7rem; color: var(--text-light); }

/* ======================== */
/* Tips / Mindmap Pages     */
/* ======================== */

/* ── Hub (center node) ── */
.mm-hub {
  text-align: center; padding: 28px 24px;
  border: 2px solid var(--primary); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,220,130,0.08), rgba(0,220,130,0.03));
  margin-bottom: 0; position: relative;
}
.mm-hub__icon { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; }
.mm-hub__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.mm-hub__sub { font-size: 0.85rem; color: var(--text-muted); }
.mm-hub::after { content: ''; display: block; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); width: 2px; height: 18px; background: var(--primary); }

/* ── Branch connector ── */
.mm-connector { position: relative; height: 18px; margin-bottom: 0; }
.mm-connector::before { content: ''; position: absolute; top: 0; left: 12.5%; right: 12.5%; border-top: 2px solid var(--primary); }

/* ── Grid ── */
.mm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 860px) { .mm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mm-grid { grid-template-columns: 1fr; } }

/* ── Cards ── */
.mm-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
.mm-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.mm-card__head {
  display: flex; align-items: center; gap: 9px; padding: 12px 13px;
  border-left: 4px solid var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 8%, white);
}
.mm-card__icon { font-size: 1.25rem; flex-shrink: 0; }
.mm-card__title { flex: 1; font-size: 0.86rem; font-weight: 700; margin: 0; line-height: 1.3; color: var(--text-dark); }
.mm-card__arr { font-size: 0.58rem; color: var(--text-muted); transition: transform 0.22s; flex-shrink: 0; }
.mm-card.open .mm-card__arr { transform: rotate(180deg); }

.mm-card__body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.mm-card.open .mm-card__body { max-height: 1000px; }

/* ── Items inside card ── */
.mm-item { display: flex; gap: 8px; padding: 8px 13px; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.mm-item:last-child { border-bottom: none; }
.mm-item__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--primary)); flex-shrink: 0; margin-top: 5px; }
.mm-item__text { font-size: 0.8rem; color: var(--text); line-height: 1.55; }
.mm-item__text strong { color: var(--text-dark); font-weight: 600; }
.mm-item__text em { font-style: normal; color: var(--text-muted); font-size: 0.74rem; }

/* ── Important badge ── */
.mm-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; margin-left: 5px;
  background: #fef3c7; color: #92400e; vertical-align: middle;
}
.mm-badge--red { background: #fee2e2; color: #991b1b; }
.mm-badge--green { background: #d1fae5; color: #065f46; }

/* ======================== */
/* WordPress overrides      */
/* ======================== */

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 88px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  background: white; border-radius: 20px; width: 100%; max-width: 640px;
  margin: 0 24px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  transform: translateY(-16px); transition: transform 0.25s;
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-box__header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid #e2e8f0;
}
.search-box__header .search-form { flex: 1; display: flex; }
.search-box__header .search-field {
  flex: 1; border: none; outline: none;
  font-size: 1rem; font-family: var(--font); color: #0f172a;
}
.search-box__header .search-submit { display: none; }
.search-esc {
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 3px 8px; font-size: 0.75rem; color: #64748b; cursor: pointer;
}
.search-box__quick { padding: 16px 20px; }
.search-box__quick-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #94a3b8; margin-bottom: 10px;
}

/* WP pagination adjustments */
.pagination .page-numbers { /* fallback */ }

/* TOC link styles */
.toc-link {
  display: block; padding: 9px 0; font-size: 0.83rem;
  color: var(--text-muted); border-bottom: 1px solid var(--border-light);
  transition: color 0.2s, padding-left 0.2s; text-decoration: none;
}
.toc-link:hover { color: var(--primary-darker); padding-left: 4px; }
.toc-link.active { color: var(--primary-darker); font-weight: 700; padding-left: 4px; }

.toc-drawer-link {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border-radius: 10px; font-size: 0.9rem; color: var(--text-dark);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.toc-drawer-link:hover, .toc-drawer-link.active {
  background: var(--primary-light); color: var(--primary-darker); font-weight: 600;
}
.toc-drawer-link .toc-num {
  flex-shrink: 0; width: 24px; height: 24px; background: var(--border-light);
  border-radius: 6px; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.toc-drawer-link.active .toc-num { background: var(--primary); color: var(--navy); }

#toc-fab { display: none; }
@media (max-width: 768px) {
  #toc-fab { display: flex !important; }
  .toc-sidebar-card { display: none; }
}

/* WP generated content */
.wp-post-image { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 28px auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ============== */
/* Contact form   */
/* ============== */
.contact-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea { resize: vertical; line-height: 1.7; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 220, 130, 0.16);
}
.contact-form__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.contact-form__submit { align-self: flex-start; }
.contact-form__submit[disabled] { opacity: 0.6; cursor: progress; }
/* Bẫy bot — ẩn với người thật, bot vẫn thấy trong DOM. */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__msg {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.contact-form__msg.is-ok {
  color: var(--primary-darker);
  font-weight: 600;
}
.contact-form__msg.is-error { color: #c0392b; font-weight: 600; }
@media (max-width: 600px) {
  .contact-form { padding: 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
}
