/*
Theme Name: BaoXinViec Pro Max
Theme URI: https://baoxinviec.net
Author: Cline Builder
Description: Theme phien ban 2.0 - thiet ke chuyen nghiep theo mau baoxinviec.shop: mau do thuong hieu #d91700, navy #272d6b, header trang, hero landing, grid tin tuc badge ngay, footer toi 4 cot, nut lien he noi.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: bxv
Tags: blog, news, education, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --bxv-red: #d91700;
  --bxv-red-dark: #b01200;
  --bxv-navy: #272d6b;
  --bxv-navy-dark: #1c2150;
  --bxv-gold: #f5a623;
  --bxv-bg: #f5f6fa;
  --bxv-surface: #ffffff;
  --bxv-text: #222;
  --bxv-text-muted: #666;
  --bxv-border: #e5e7eb;
  --bxv-radius: 10px;
  --bxv-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  --bxv-shadow-lg: 0 10px 32px rgba(39, 45, 107, .16);
  --bxv-font: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--bxv-font);
  background: var(--bxv-bg);
  color: var(--bxv-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bxv-navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bxv-red); }

/* ===== TOPBAR ===== */
.bxv-topbar {
  background: var(--bxv-navy);
  color: #cdd3f0;
  font-size: 13px;
}
.bxv-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.bxv-topbar a { color: #fff; font-weight: 600; }
.bxv-topbar a:hover { color: var(--bxv-gold); }

/* ===== HEADER ===== */
.bxv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.bxv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bxv-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bxv-logo img { max-height: 52px; width: auto; }
.bxv-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--bxv-navy);
  letter-spacing: -.5px;
  line-height: 1.1;
}
.bxv-logo-text span { color: var(--bxv-red); }

.bxv-nav ul { list-style: none; display: flex; gap: 2px; flex-wrap: wrap; }
.bxv-nav a {
  display: block;
  padding: 9px 13px;
  color: var(--bxv-navy);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 6px;
}
.bxv-nav a:hover, .bxv-nav .current-menu-item > a {
  background: var(--bxv-red);
  color: #fff;
}
/* dropdown */
.bxv-nav ul ul { display: none; }
.bxv-nav li { position: relative; }
.bxv-nav li:hover > ul {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: var(--bxv-shadow-lg);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 99;
}
.bxv-nav ul ul li { width: 100%; }
.bxv-nav ul ul a {
  text-transform: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 0;
}
.bxv-nav ul ul a:hover { background: #f5f6fa; color: var(--bxv-red); }

.bxv-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bxv-red), #ff4d2e);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(217, 23, 0, .35);
  white-space: nowrap;
  flex-shrink: 0;
}
.bxv-header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(217, 23, 0, .45); color: #fff; }

/* ===== HERO ===== */
.bxv-hero {
  background:
    linear-gradient(rgba(28, 33, 80, .88), rgba(28, 33, 80, .92)),
    radial-gradient(circle at 20% 30%, #3a4290 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #d91700 0%, transparent 45%),
    var(--bxv-navy-dark);
  color: #fff;
  padding: 64px 20px 72px;
  text-align: center;
}
.bxv-hero h1 {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.bxv-hero h1 .hl { color: #ffd23f; }
.bxv-hero-desc {
  font-size: clamp(15px, 2vw, 17.5px);
  opacity: .95;
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.8;
}
.bxv-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.bxv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15.5px;
  transition: transform .2s, box-shadow .2s;
}
.bxv-btn-red {
  background: linear-gradient(135deg, var(--bxv-red), #ff4d2e);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(217, 23, 0, .45);
}
.bxv-btn-gold {
  background: linear-gradient(135deg, #ffd23f, var(--bxv-gold));
  color: #5a3800 !important;
  box-shadow: 0 8px 24px rgba(245, 166, 35, .4);
}
.bxv-btn:hover { transform: translateY(-3px); }

.bxv-hero-badges {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bxv-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e8ebff;
}
.bxv-hero-badge b { font-size: 20px; color: #ffd23f; }

/* ===== SEARCH ===== */
.bxv-search-wrap {
  max-width: 760px;
  margin: -30px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}
.bxv-search {
  display: flex;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--bxv-shadow-lg);
  overflow: hidden;
  border: 1px solid var(--bxv-border);
}
.bxv-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 17px 26px;
  font-size: 15.5px;
  font-family: inherit;
}
.bxv-search button {
  border: 0;
  background: var(--bxv-red);
  color: #fff;
  padding: 0 34px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s;
}
.bxv-search button:hover { background: var(--bxv-red-dark); }

/* ===== SECTION COMMON ===== */
.bxv-section { padding: 52px 0; }
.bxv-section-alt { background: #fff; }
.bxv-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.bxv-section-head { text-align: center; margin-bottom: 36px; }
.bxv-section-head h2 {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  color: var(--bxv-navy);
  letter-spacing: -.4px;
  text-transform: uppercase;
  line-height: 1.3;
}
.bxv-section-head .sub {
  display: inline-block;
  margin-top: 10px;
  color: var(--bxv-red);
  font-weight: 700;
  font-size: 15px;
}
.bxv-section-head .line {
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bxv-red), var(--bxv-gold));
  margin: 14px auto 0;
}

/* ===== SERVICES GRID ===== */
.bxv-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.bxv-service {
  background: #fff;
  border: 1px solid var(--bxv-border);
  border-radius: var(--bxv-radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: block;
}
.bxv-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--bxv-shadow-lg);
  border-color: var(--bxv-red);
}
.bxv-service .ico {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217, 23, 0, .1), rgba(245, 166, 35, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.bxv-service h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--bxv-navy);
  line-height: 1.4;
}
.bxv-service:hover h3 { color: var(--bxv-red); }

/* ===== FEATURES (why us) ===== */
.bxv-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.bxv-feature {
  background: #fff;
  border-radius: var(--bxv-radius);
  border: 1px solid var(--bxv-border);
  padding: 28px 24px;
  box-shadow: var(--bxv-shadow);
  transition: transform .25s, box-shadow .25s;
}
.bxv-feature:hover { transform: translateY(-5px); box-shadow: var(--bxv-shadow-lg); }
.bxv-feature .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bxv-navy);
  color: #ffd23f;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}
.bxv-feature h3 { font-size: 17px; font-weight: 800; color: var(--bxv-navy); margin-bottom: 8px; }
.bxv-feature p { font-size: 14.5px; color: var(--bxv-text-muted); }

/* ===== STEPS ===== */
.bxv-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.bxv-step {
  background: #fff;
  border-radius: var(--bxv-radius);
  border: 1px solid var(--bxv-border);
  border-top: 4px solid var(--bxv-red);
  padding: 24px 20px;
  position: relative;
}
.bxv-step .step-no {
  position: absolute;
  top: -18px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bxv-red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 23, 0, .4);
}
.bxv-step h3 { font-size: 15.5px; font-weight: 800; color: var(--bxv-navy); margin: 10px 0 8px; }
.bxv-step p { font-size: 13.5px; color: var(--bxv-text-muted); }

/* ===== NEWS GRID (giong goc: badge ngay do) ===== */
.bxv-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.bxv-post-card {
  background: #fff;
  border-radius: var(--bxv-radius);
  overflow: hidden;
  border: 1px solid var(--bxv-border);
  box-shadow: var(--bxv-shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.bxv-post-card:hover { transform: translateY(-6px); box-shadow: var(--bxv-shadow-lg); }
.bxv-post-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8ebf7, #fdeae6);
  position: relative;
}
.bxv-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.bxv-post-card:hover .bxv-post-thumb img { transform: scale(1.07); }
.bxv-post-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bxv-red);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 6px 10px;
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(217, 23, 0, .4);
}
.bxv-post-date .d { display: block; font-size: 20px; font-weight: 800; }
.bxv-post-date .m { display: block; font-size: 11px; text-transform: uppercase; opacity: .92; }
.bxv-post-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.bxv-post-cat {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--bxv-red);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.bxv-post-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
}
.bxv-post-title a { color: var(--bxv-navy); }
.bxv-post-title a:hover { color: var(--bxv-red); }
.bxv-post-divider {
  height: 3px;
  width: 44px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bxv-red), var(--bxv-gold));
  margin: 12px 0;
}
.bxv-post-excerpt {
  font-size: 14px;
  color: var(--bxv-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bxv-post-more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bxv-red);
}
.bxv-post-more:hover { color: var(--bxv-red-dark); }

.bxv-view-all { text-align: center; margin-top: 36px; }
.bxv-btn-navy {
  background: var(--bxv-navy);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(39, 45, 107, .35);
}
.bxv-btn-navy:hover { background: var(--bxv-navy-dark); }

/* ===== CTA BANNER ===== */
.bxv-cta-banner {
  background:
    linear-gradient(115deg, rgba(217, 23, 0, .92), rgba(217, 23, 0, .78)),
    radial-gradient(circle at 85% 20%, rgba(255, 210, 63, .35) 0%, transparent 45%),
    var(--bxv-red-dark);
  border-radius: 18px;
  color: #fff;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 14px 40px rgba(217, 23, 0, .3);
}
.bxv-cta-banner h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.3px;
  margin-bottom: 6px;
}
.bxv-cta-banner p { opacity: .93; font-size: 15.5px; }
.bxv-cta-banner .bxv-btn {
  background: #fff;
  color: var(--bxv-red) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-size: 16px;
}

/* ===== LAYOUT (archive / single) ===== */
.bxv-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 44px 0 60px;
  align-items: start;
}
@media (max-width: 960px) {
  .bxv-main { grid-template-columns: 1fr; }
  .bxv-nav { display: none; }
  .bxv-topbar { font-size: 12px; }
}

.bxv-section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 22px;
  color: var(--bxv-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.bxv-section-title::before {
  content: "";
  width: 5px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--bxv-red), var(--bxv-gold));
}

/* ===== SIDEBAR ===== */
.bxv-sidebar .widget {
  background: #fff;
  border: 1px solid var(--bxv-border);
  border-radius: var(--bxv-radius);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--bxv-shadow);
}
.bxv-sidebar .widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--bxv-navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--bxv-red);
  display: inline-block;
}
.bxv-sidebar ul { list-style: none; }
.bxv-sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--bxv-border); font-size: 14.5px; }
.bxv-sidebar li:last-child { border-bottom: 0; }
.bxv-sidebar li a { color: #333; font-weight: 600; }
.bxv-sidebar li a:hover { color: var(--bxv-red); }

/* ===== SINGLE POST ===== */
.bxv-single {
  background: #fff;
  border-radius: var(--bxv-radius);
  border: 1px solid var(--bxv-border);
  box-shadow: var(--bxv-shadow);
  padding: clamp(22px, 4vw, 44px);
}
.bxv-single-header { margin-bottom: 26px; }
.bxv-single-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.6px;
  color: var(--bxv-navy);
  margin: 10px 0 14px;
}
.bxv-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--bxv-text-muted);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--bxv-border);
}
.bxv-single-thumb { border-radius: var(--bxv-radius); margin: 22px 0; }
.bxv-content { font-size: 16.5px; }
.bxv-content h2, .bxv-content h3, .bxv-content h4 {
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 30px 0 14px;
  line-height: 1.35;
  color: var(--bxv-navy);
}
.bxv-content h2 {
  font-size: 24px;
  padding: 8px 0 8px 16px;
  border-left: 5px solid var(--bxv-red);
  background: linear-gradient(90deg, rgba(217, 23, 0, .05), transparent 70%);
}
.bxv-content h3 { font-size: 20px; }
.bxv-content p { margin-bottom: 16px; }
.bxv-content ul, .bxv-content ol { margin: 0 0 16px 24px; }
.bxv-content li { margin-bottom: 6px; }
.bxv-content img { border-radius: var(--bxv-radius); margin: 18px auto; }
.bxv-content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: rgba(217, 23, 0, .04);
  border-left: 4px solid var(--bxv-red);
  border-radius: 0 var(--bxv-radius) var(--bxv-radius) 0;
  font-style: italic;
  color: #444;
}
.bxv-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.bxv-content th, .bxv-content td {
  border: 1px solid var(--bxv-border);
  padding: 10px 14px;
  text-align: left;
}
.bxv-content th { background: var(--bxv-navy); color: #fff; font-weight: 700; }
.bxv-content tr:nth-child(even) td { background: #f8f9fd; }

/* ===== PAGINATION ===== */
.bxv-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.bxv-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--bxv-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--bxv-navy);
}
.bxv-pagination .page-numbers.current, .bxv-pagination .page-numbers:hover {
  background: var(--bxv-red);
  color: #fff;
  border-color: var(--bxv-red);
}

/* ===== FOOTER (giong goc: toi, 4 cot) ===== */
.bxv-footer {
  background: #272727;
  color: #b9b9b9;
  padding: 54px 20px 0;
  margin-top: 0;
}
.bxv-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .bxv-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bxv-footer-grid { grid-template-columns: 1fr; } }
.bxv-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}
.bxv-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--bxv-red);
  border-radius: 2px;
}
.bxv-footer ul { list-style: none; }
.bxv-footer li { margin-bottom: 9px; font-size: 14px; }
.bxv-footer a { color: #b9b9b9; }
.bxv-footer a:hover { color: #fff; }
.bxv-footer .about-text { font-size: 14px; line-height: 1.85; }
.bxv-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: #1f1f1f;
  padding: 18px 20px;
  text-align: center;
  font-size: 13.5px;
  color: #8a8a8a;
}
.bxv-footer-bottom a { color: #cfcfcf; }

/* ===== FLOATING CONTACTS (giong goc: cot nut ben phai) ===== */
.bxv-float {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 98;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bxv-float a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.bxv-float a:hover { transform: scale(1.1); }
.bxv-float .f-phone { background: linear-gradient(135deg, #25d366, #128c7e); }
.bxv-float .f-zalo { background: #0068ff; font-size: 15px; font-weight: 800; }
.bxv-float .f-mess { background: linear-gradient(135deg, #00b2ff, #006aff); }
.bxv-float-hotline {
  position: fixed;
  left: 16px;
  bottom: 22px;
  z-index: 98;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bxv-red), #ff4d2e);
  color: #fff !important;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(217, 23, 0, .4);
  font-size: 15px;
}

/* ===== MISC ===== */
.bxv-breadcrumb { font-size: 13px; color: var(--bxv-text-muted); margin-bottom: 14px; }
.bxv-breadcrumb a { color: var(--bxv-red); font-weight: 600; }

/* mobile menu toggle */
.bxv-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--bxv-navy);
  cursor: pointer;
}
@media (max-width: 960px) {
  .bxv-menu-toggle { display: block; }
  .bxv-header-cta span.txt { display: none; }
  .bxv-header-cta { padding: 10px 14px; }
}