/* Cùng logo, màu và header cho trang chủ và trang luyện thi. */
:root {
  --brand-blue: #1d4fc4;
  --brand-blue-dark: #12338a;
  --brand-red: #c8281e;
  --brand-ink: #14213d;
  --brand-muted: #5b6785;
  --brand-bg: #f4f7fc;
}
.brand-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 2px 12px #0b4aa21a;
  padding: 0;
  border: 0;
  font-family: Inter, Arial, system-ui, sans-serif;
}
.brand-header .brand-bar {
  max-width: 1180px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-blue);
  font-size: 1.18rem;
  line-height: 1.1;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-header .logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}
.brand-header .logo b {
  color: var(--brand-red);
}
.brand-header .logo small {
  display: block;
  font-size: 0.6rem;
  color: var(--brand-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-header nav {
  margin: 0 auto;
  display: flex;
  gap: 4px;
  position: static;
  width: auto;
  order: initial;
  padding: 0;
  background: #fff;
  box-shadow: none;
  flex-direction: row;
  flex-wrap: nowrap;
}
.brand-header nav a {
  color: var(--brand-ink);
  padding: 8px 9px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.75;
  border: 0;
}
.brand-header nav a:hover {
  background: var(--brand-bg);
}
.brand-header nav a.on {
  background: #edf2ff;
  color: var(--brand-blue);
  border: 0;
}
.brand-header .hotline {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.75;
}
.brand-header .hotline:hover {
  background: #a82018;
}
.brand-header #burger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  color: var(--brand-blue);
  padding: 4px 10px;
  width: auto;
  cursor: pointer;
  line-height: 1.3;
  margin: 0;
  box-shadow: none;
}
@media (max-width: 1280px) {
  .brand-header nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 8px 16px #0002;
    margin: 0;
    width: auto;
    gap: 4px;
  }
  .brand-header nav.open {
    display: flex;
  }
  .brand-header #burger {
    display: block;
    margin-left: auto;
  }
  .brand-header .hotline {
    margin-left: auto;
    font-size: 0.85rem;
    padding: 9px 12px;
  }
  .brand-header .logo {
    font-size: 1.1rem;
  }
}
@media (max-width: 640px) {
  .brand-header .brand-bar {
    padding: 0 18px;
    gap: 10px;
  }
  .brand-header .logo small {
    display: none;
  }
  .brand-header .hotline {
    font-size: 0.78rem;
    padding: 10px;
  }
  .brand-header .logo {
    font-size: 1.05rem;
  }
  .brand-header #burger {
    margin-left: 0;
    padding: 4px 6px;
  }
}
@media (max-width: 360px) {
  .brand-header .logo img {
    width: 44px;
    height: 44px;
  }
  .brand-header .logo {
    gap: 6px;
    font-size: 0.95rem;
  }
  .brand-header .hotline {
    font-size: 0.7rem;
    padding: 8px;
  }
  .brand-header .brand-bar {
    padding: 0 10px;
    gap: 6px;
  }
}
