/* Chrome công khai: nav + footer + back-to-top (đồng bộ mọi trang trừ login/dashboard) */
:root {
  --sc-thuy: #082F4B;
  --sc-thuy-2: #0E4A6E;
  --sc-gold: linear-gradient(155deg, #FFF9E6, #FFE9A8, #F5D060, #E8C040, #D4AF37, #E8C858, #FFF3C8);
  --sc-gold-solid: #E8C040;
  --sc-kim: #F0F3F5;
  --sc-kim-2: rgba(8, 47, 75, 0.08);
  --sc-t1: #0F1720;
  --sc-t2: #4A5560;
  --sc-t3: #8A949E;
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 0 28px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.28s, border-color 0.28s, box-shadow 0.28s, height 0.28s;
}
.navbar.is-solid {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--sc-kim-2);
  box-shadow: 0 4px 24px rgba(8, 47, 75, 0.08);
  height: 60px;
}

/* Anchor dưới navbar cố định (mobile menu → #giam-doc) */
#giam-doc,
#ban-lanh-dao,
#chung-toi,
#doi-tuong,
#noi-dau,
#3-sieu,
#sap-ra-mat,
#bang-gia,
#lien-he {
  scroll-margin-top: 76px;
}
.navbar .nav-links a { color: rgba(255, 255, 255, 0.82); }
.navbar .nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.navbar .nav-links a.on { color: #fff; }
.navbar .btn-nav-login {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(168, 180, 192, 0.45);
}
.navbar .btn-nav-login:hover { color: #fff; border-color: #fff; }
.navbar .nav-mobile-toggle { color: #fff; background: none; border: none; cursor: pointer; padding: 6px; }
.navbar .nav-mobile-toggle svg { width: 22px; height: 22px; fill: currentColor; display: block; }

.navbar.is-solid .nav-links a { color: var(--sc-t2); }
.navbar.is-solid .nav-links a:hover { background: var(--sc-kim); color: var(--sc-thuy); }
.navbar.is-solid .nav-links a.on { color: var(--sc-thuy); font-weight: 700; }
.navbar.is-solid .btn-nav-login {
  color: var(--sc-t2); border-color: var(--sc-kim-2);
}
.navbar.is-solid .btn-nav-login:hover { color: var(--sc-thuy); border-color: #A8B4C0; }
.navbar.is-solid .nav-mobile-toggle { color: var(--sc-thuy); }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.nav-brand img { height: 42px; width: auto; object-fit: contain; display: block; }
.navbar.is-solid .nav-brand img { height: 36px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 6px 12px; border-radius: 2px;
  font-size: 13px; font-weight: 600; transition: all 0.18s;
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-cta {
  padding: 8px 16px; border-radius: 2px;
  background-image: var(--sc-gold);
  background-color: var(--sc-gold-solid);
  color: #082F4B;
  font-size: 13px; font-weight: 800; font-family: inherit;
  border: 1px solid rgba(255, 243, 200, 0.55);
  cursor: pointer; transition: all 0.18s;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(140, 100, 20, 0.22),
    0 3px 14px rgba(200, 150, 40, 0.35);
  text-decoration: none; display: inline-block;
}
.btn-nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-nav-login {
  padding: 7px 14px; border-radius: 2px;
  background: transparent;
  font-size: 13px; font-weight: 700; font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45); cursor: pointer; transition: all 0.18s;
  text-decoration: none; display: inline-block;
  white-space: nowrap;
}
.nav-mobile-toggle { display: none; }

#siteMobileMenu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
  padding: 16px 24px 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
#siteMobileMenu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
#siteMobileMenu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: #636366; text-decoration: none;
}
#siteMobileMenu a:hover { background: var(--sc-kim); color: var(--sc-thuy); }

.site-footer {
  background: linear-gradient(180deg, #071F33 0%, #082F4B 100%);
  color: rgba(255, 255, 255, 0.55);
  padding: 52px 24px 28px;
}
.site-footer .footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer .footer-top {
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); margin-bottom: 24px;
}
.site-footer .footer-brand { max-width: 320px; }
.site-footer .footer-brand img { height: 52px; width: auto; object-fit: contain; display: block; }
.site-footer .footer-brand .co-name {
  margin-top: 14px; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.2px;
}
.site-footer .footer-brand p {
  font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.4); margin-top: 8px;
}
.site-footer .footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 14px; }
.site-footer .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.site-footer .footer-col a { font-size: 13.5px; color: rgba(255, 255, 255, 0.4); transition: color 0.18s; text-decoration: none; }
.site-footer .footer-col a:hover { color: white; }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.site-footer .footer-bottom span { font-size: 12.5px; color: rgba(255, 255, 255, 0.25); }

.back-to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 10050;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(232, 192, 64, 0.35);
  background: rgba(8, 47, 75, 0.42);
  color: rgba(255, 243, 200, 0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.28s, visibility 0.28s, transform 0.28s, background 0.2s, color 0.2s;
  box-shadow: 0 4px 16px rgba(8, 47, 75, 0.18);
}
.back-to-top.visible {
  opacity: 0.55; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.back-to-top:hover {
  opacity: 1; background: rgba(8, 47, 75, 0.88); color: #FFF6D6;
  border-color: rgba(232, 192, 64, 0.7); transform: translateY(-2px);
}
.back-to-top svg { width: 18px; height: 18px; }

/* Ẩn nút âm lượng trên controls (video luôn mute) */
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-volume-control-container {
  display: none !important;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  /* Giữ Đăng nhập góc phải trên mobile */
  .nav-actions .btn-nav-login { display: inline-block; padding: 7px 12px; font-size: 12.5px; }
  .site-footer .footer-top { flex-direction: column; gap: 32px; }
}
@media (max-width: 480px) {
  .back-to-top { right: 16px; bottom: 28px; width: 40px; height: 40px; }
}
