/* ============================================================
   BaoNL HUB — Stylesheet
   Anh KHÔNG cần sửa file này khi thay đổi nội dung.
   Muốn đổi màu thương hiệu: sửa các biến trong :root bên dưới.
   ============================================================ */

:root {
  /* Màu thương hiệu */
  --navy-900: #081426;
  --navy-800: #0b1f3a;
  --navy-700: #10294c;
  --navy-600: #16365f;
  --blue-500: #1b6fd8;
  --blue-400: #3d8bee;
  --blue-100: #e3eefc;
  --orange-500: #f7941e;
  --orange-600: #e07f0a;
  --orange-100: #fdeed9;

  /* Màu trung tính */
  --text-900: #16202e;
  --text-600: #4a5568;
  --text-400: #8494a7;
  --bg-body: #f6f8fb;
  --bg-card: #ffffff;
  --border: #e4e9f0;

  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 6px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 31, 58, 0.16);

  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-900);
  background: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-400); }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 20, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: #cdd8e6;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #ffffff; }

.nav-cta {
  background: var(--orange-500);
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--orange-600); transform: translateY(-1px); }

/* Nút menu mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(27, 111, 216, 0.35), transparent 60%),
    radial-gradient(700px 380px at -5% 110%, rgba(247, 148, 30, 0.18), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #ffffff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

/* Lưới trang trí mờ kiểu network */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(247, 148, 30, 0.14);
  border: 1px solid rgba(247, 148, 30, 0.45);
  color: #ffc477;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
  letter-spacing: 0.02em;
}

.hero-logo {
  height: 74px;
  width: auto;
  margin: 0 auto 26px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--orange-500); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #b9c7d9;
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange-500);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(247, 148, 30, 0.35);
}
.btn-primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}
.btn-outline:hover { border-color: #ffffff; color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* Trust points */
.trust {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 64px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #d7e1ee;
}

.trust-item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--orange-500); }

/* ---------- Section chung ---------- */
.section { padding: 84px 0; }
.section.alt { background: #ffffff; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--orange-600);
  background: var(--orange-100);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-600); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: center;
}

.about-photo {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-photo img.portrait { width: 100%; height: 100%; object-fit: cover; }
.about-photo img.logo-fallback { width: 70%; height: auto; opacity: 0.95; }

.about-text h3 {
  font-size: 1.25rem;
  color: var(--navy-800);
  font-weight: 700;
  margin-bottom: 14px;
}
.about-text p { color: var(--text-600); margin-bottom: 14px; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.value-card {
  background: var(--blue-100);
  border-radius: 12px;
  padding: 16px;
}
.value-card h4 {
  color: var(--blue-500);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.value-card p { font-size: 0.85rem; color: var(--text-600); margin: 0; }

/* ---------- Card grid (expertise / services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 111, 216, 0.35);
}

.card-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--blue-500), var(--navy-600));
  color: #ffffff;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card.service .card-icon {
  background: linear-gradient(140deg, var(--orange-500), #d97706);
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.card p { font-size: 0.93rem; color: var(--text-600); }

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Thumbnail video + nút play (bấm mới phát, tránh lỗi YouTube khi xem local) */
.video-thumb { cursor: pointer; }

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.25s, opacity 0.25s;
}
.video-thumb:hover img { transform: scale(1.04); opacity: 0.85; }

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(247, 148, 30, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-thumb:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--orange-500);
}

.video-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-800);
  padding: 16px 18px;
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--blue-500);
  color: var(--blue-500);
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-more:hover { background: var(--blue-500); color: #ffffff; transform: translateY(-2px); }
.btn-more svg { width: 18px; height: 18px; }

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(247, 148, 30, 0.5);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.post-category {
  background: var(--orange-100);
  color: var(--orange-600);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

.post-date { color: var(--text-400); }

.post-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
.post-card h3 a { color: var(--navy-800); }
.post-card h3 a:hover { color: var(--blue-500); }

.post-card p { font-size: 0.9rem; color: var(--text-600); flex-grow: 1; }

.post-readmore {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-500);
}
.post-readmore::after { content: " →"; }

/* Bộ lọc chuyên mục (trang blog) */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-600);
  font-family: var(--font);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--blue-500); color: var(--blue-500); }
.filter-btn.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #ffffff;
}

/* ---------- Contact ---------- */
.contact-section {
  background:
    radial-gradient(700px 350px at 90% 0%, rgba(27, 111, 216, 0.30), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #ffffff;
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-section > p {
  color: #b9c7d9;
  max-width: 560px;
  margin: 0 auto 30px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-500);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(247, 148, 30, 0.4);
  transition: background 0.2s, transform 0.15s;
}
.contact-email:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); }

.socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.social-link:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #ffffff;
  transform: translateY(-3px);
}
.social-link svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #8fa2b8;
  text-align: center;
  padding: 40px 0 34px;
  margin-top: 84px;
  font-size: 0.9rem;
}

.site-footer img { height: 34px; width: auto; margin: 0 auto 16px; }
.site-footer .slogan { color: #b9c7d9; margin-bottom: 8px; }

/* ---------- Trang bài viết (posts/*.html) ---------- */
.post-page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 820px;
  margin: 50px auto;
  padding: 50px clamp(22px, 5vw, 60px);
}

.post-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-800);
  line-height: 1.35;
  margin-bottom: 12px;
}

.post-page .post-meta { margin-bottom: 28px; }

.post-page h2 { color: var(--navy-800); font-size: 1.3rem; margin: 32px 0 12px; }
.post-page h3 { color: var(--navy-700); font-size: 1.1rem; margin: 24px 0 10px; }
.post-page p { color: var(--text-600); margin-bottom: 16px; }
.post-page ul, .post-page ol { color: var(--text-600); margin: 0 0 16px 24px; }
.post-page li { margin-bottom: 6px; }

.post-page pre {
  background: var(--navy-900);
  color: #dce7f5;
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.post-page code {
  font-family: Consolas, "Courier New", monospace;
}

.post-page p code, .post-page li code {
  background: var(--blue-100);
  color: var(--navy-700);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.87em;
}

.post-page img { border-radius: 10px; margin: 10px 0 18px; }

.post-page blockquote {
  border-left: 4px solid var(--orange-500);
  background: var(--orange-100);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin-bottom: 18px;
  color: var(--text-600);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-photo { max-width: 340px; margin: 0 auto; }
  .about-values { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 50px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    padding: 10px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-links .nav-cta { margin: 8px 24px 0; display: block; }
}
