/* ═══════════════════════════════════════════════════════════
   MarketingBDS.Lab — Style v2.0
   Design: Chuyen nghiep, sang trang, bao tai chinh
   Font: Be Vietnam Pro (dep, hien dai, Viet Nam)
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');
@import url('themes.css');

/* ── RESET & BASE ── */
:root {
  --font: 'Be Vietnam Pro', sans-serif;
  --r: 12px;
  --max: 1260px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* Noise texture — chi hien o dark theme */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: .4;
}

/* ════════════════════════════════════
   NAV
   ════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
nav.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 36px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 3px 10px var(--red-glow);
  flex-shrink: 0;
  letter-spacing: -.3px;
}
.nav-logo-text {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -.2px;
}
.nav-logo-text em { font-style: normal; color: var(--red); }
.nav-menu {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
}
.nav-item {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text2);
  transition: all .18s;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--bg2);
  color: var(--text);
}
.nav-item.active {
  background: var(--bg2);
  color: var(--text);
  font-weight: 600;
}

/* ── NAV DROPDOWN GROUP ── */
.nav-group {
  position: relative;
}
/* Mở dropdown khi hover — không cần click */
.nav-group:hover .nav-drop {
  display: block;
  animation: dropFadeIn .15s ease;
}
.nav-group:hover .nav-group-btn {
  background: var(--bg2);
  color: var(--text);
}
.nav-group:hover .nav-group-chevron {
  transform: rotate(180deg);
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-group-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  font-family: var(--font);
  color: var(--text2);
  transition: all .18s;
}
.nav-group-btn.has-active {
  color: var(--text);
  font-weight: 600;
  background: var(--bg2);
}
.nav-group-chevron {
  font-size: 9px;
  color: var(--text3);
  transition: transform .2s;
}
.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 600;
  /* Cầu nối vô hình để chuột di chuyển từ button xuống dropdown không bị mất hover */
  padding-top: 10px;
  margin-top: -4px;
}
/* Giữ dropdown mở khi hover vào chính nó */
.nav-group:hover > .nav-drop {
  display: block;
}
.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.nav-drop-item:hover {
  background: var(--bg2);
  color: var(--text);
}
.nav-drop-item.active {
  background: var(--bg2);
  color: var(--text);
  font-weight: 600;
}
.nav-drop-item .ndi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-drop-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}
.nav-drop-label {
  padding: 6px 12px 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: all .2s;
  white-space: nowrap;
}

/* ════════════════════════════════════
   TICKER
   ════════════════════════════════════ */
.ticker {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  animation: tickMove 40s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  border-right: 1px solid var(--border);
}
.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.ticker-val { font-weight: 700; }
@keyframes tickMove { 0%{ transform:translateX(0) } 100%{ transform:translateX(-50%) } }

/* ════════════════════════════════════
   PAGE HEADER (trang noi)
   ════════════════════════════════════ */
.page-header {
  padding: 104px 40px 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
  opacity: .3;
}
.ph-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ph-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 16px;
}
.ph-breadcrumb span { color: var(--red); }
.ph-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--red);
  background: rgba(204,0,0,.06);
  border: 1px solid rgba(204,0,0,.14);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.ph-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  line-height: 1.1;
}
.ph-desc {
  font-size: 15px;
  line-height: 1.75;
  max-width: 520px;
}
.ph-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.ph-stat { font-size: 13px; }
.ph-stat strong { font-weight: 700; }
.ph-divider { color: var(--border2); }

/* ════════════════════════════════════
   SECTIONS
   ════════════════════════════════════ */
.section { padding: 72px 40px; }
.section.alt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sec-inner { max-width: var(--max); margin: 0 auto; }
.sec-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}
.sec-eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  display: block;
}
.sec-title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -.3px;
  margin-bottom: 6px;
  line-height: 1.2;
}
.sec-sub {
  font-size: 14px;
  line-height: 1.75;
  max-width: 500px;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all .2s;
  white-space: nowrap;
}

/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  transition: all .22s;
  cursor: pointer;
  border: none;
  letter-spacing: -.1px;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 6px 20px var(--red-glow); }
.btn-outline { border: 1.5px solid var(--border2); }
.btn-outline:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 7px; }

/* ════════════════════════════════════
   TAGS
   ════════════════════════════════════ */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .1px;
}

/* ════════════════════════════════════
   CARDS
   ════════════════════════════════════ */
.card {
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-hover { transition: transform .25s, box-shadow .25s, border-color .25s; }

/* ════════════════════════════════════
   STATS BAND
   ════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sr-item {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.sr-item:last-child { border-right: none; }
.sr-val {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -.5px;
}
.sr-lbl {
  font-size: 11px;
  font-weight: 500;
}

/* ════════════════════════════════════
   ARTICLE CARD
   ════════════════════════════════════ */
.ac { text-decoration: none; color: inherit; display: block; }
.ac-thumb { width: 100%; overflow: hidden; }
.ac-thumb-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.ac-thumb-placeholder.sm {
  aspect-ratio: 21/9;
  font-size: 28px;
}
.ac-body { padding: 18px 20px 16px; }
.ac-cat { margin-bottom: 10px; display: block; }
.ac-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}
.ac-title.lg { font-size: 20px; line-height: 1.35; }
.ac-excerpt {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-foot { display: flex; align-items: center; gap: 8px; }
.ac-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ac-by { font-size: 12px; }
.ac-by strong { font-weight: 600; }
.ac-read {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
}

/* ════════════════════════════════════
   PROJECT CARD
   ════════════════════════════════════ */
.pc { text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
.pc-top-bar { height: 3px; width: 100%; }
.pc-body { padding: 20px; }
.pc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pc-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.pc-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.pc-loc { font-size: 11px; }
.pc-desc { font-size: 12px; line-height: 1.65; margin-bottom: 13px; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.pcs { border: 1px solid var(--border); border-radius: 7px; padding: 8px 6px; text-align: center; }
.pcs-val { font-size: 14px; font-weight: 800; line-height: 1; }
.pcs-lbl { font-size: 9px; margin-top: 2px; }
.pc-score { position: absolute; top: 13px; right: 13px; }
.pc-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ════════════════════════════════════
   AUTHOR CARD
   ════════════════════════════════════ */
.author-card { padding: 24px; text-align: center; transition: all .25s; }
.author-av {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  position: relative;
}
.author-badge {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.author-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.author-role { font-size: 12px; margin-bottom: 12px; }
.author-stats { display: flex; justify-content: center; gap: 20px; }
.as-item { text-align: center; }
.as-val { font-size: 17px; font-weight: 800; line-height: 1; }
.as-lbl { font-size: 10px; margin-top: 2px; }

/* ════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════ */
.filter-bar { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  transition: all .18s;
  letter-spacing: -.1px;
}

/* ════════════════════════════════════
   SEARCH
   ════════════════════════════════════ */
.search-wrap { position: relative; max-width: 380px; }
.search-wrap input {
  width: 100%;
  border-radius: 9px;
  padding: 9px 14px 9px 38px;
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { box-shadow: 0 0 0 3px var(--red-glow); }
.search-wrap .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .45; }

/* ════════════════════════════════════
   PAGINATION
   ════════════════════════════════════ */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pg-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

/* ════════════════════════════════════
   NEWSLETTER
   ════════════════════════════════════ */
.nl-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  text-align: center;
}
.nl-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.nl-box p { font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.nl-form { display: flex; gap: 7px; max-width: 340px; margin: 0 auto; }
.nl-input {
  flex: 1;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.nl-btn {
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .2s;
}

/* ════════════════════════════════════
   MARKET CARD
   ════════════════════════════════════ */
.mc {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  transition: all .22s;
}
.mc-region {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.mc-name { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.mc-price { font-size: 24px; font-weight: 900; line-height: 1; margin-bottom: 4px; letter-spacing: -.5px; }
.mc-price span { font-size: 12px; font-weight: 400; }
.mc-ch { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.mc-bars { height: 36px; display: flex; align-items: flex-end; gap: 3px; }
.mcb { flex: 1; border-radius: 2px; min-height: 3px; }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px 28px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.fb-logo .lm {
  width: 32px; height: 32px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.fb-logo span { font-size: 15px; font-weight: 800; }
.fb-logo em { font-style: normal; color: var(--red); }
.footer-about p { font-size: 13px; line-height: 1.75; max-width: 270px; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 7px; }
.footer-socials a {
  width: 32px; height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.footer-socials a:hover { border-color: var(--border2); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13px; margin-bottom: 9px; transition: color .18s; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 11px; }
.footer-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.fc { font-size: 10px; font-weight: 600; border: 1px solid var(--border); padding: 3px 9px; border-radius: 5px; }

/* ════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════
   DIVIDER
   ════════════════════════════════════ */
.divider { height: 1px; background: var(--border); }

/* ════════════════════════════════════
   UP/DOWN colors
   ════════════════════════════════════ */
.up   { color: var(--green); }
.down { color: #dc2626; }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media(max-width: 1024px) {
  nav { padding: 0 24px; }
  .section { padding: 56px 24px; }
  .page-header { padding: 100px 24px 48px; }
  footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
  .nav-pill { display: none; }
  .section { padding: 48px 20px; }
  .ph-title { font-size: 26px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 16px; }
}
