/* ============================================================
   HẢI VŨ PIANO ACADEMY — PUBLIC IDENTITY SYSTEM V97.2
   Scope: six major public tabs only.
   Base: V96 responsive hero + V97 visual balance + V97.1 achievement hero.
   Goals:
   - one canonical header/brand rhythm across public tabs
   - one logo size / brand name / value-line / nav / login treatment
   - one active-tab treatment
   - one quiet philosophy quote treatment
   - remove the exposed left edge on Achievement hero
   ============================================================ */

:root{
  --hv972-header-h:88px;
  --hv972-header-max:1320px;
  --hv972-navy:#103754;
  --hv972-muted:#6f8290;
  --hv972-gold:#ad7635;
  --hv972-line:rgba(18,55,84,.10);
}

/* ---------- 1. Canonical public header ---------- */
header.hv972-public-header{
  position:relative!important;
  z-index:60!important;
  width:100%!important;
  min-height:var(--hv972-header-h)!important;
  height:var(--hv972-header-h)!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid var(--hv972-line)!important;
  box-shadow:none!important;
}

header.hv972-public-header > :is(.wrap.nav,.hv67-header-inner){
  width:min(var(--hv972-header-max),calc(100% - 48px))!important;
  max-width:var(--hv972-header-max)!important;
  min-width:0!important;
  height:var(--hv972-header-h)!important;
  min-height:var(--hv972-header-h)!important;
  margin-inline:auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  overflow:visible!important;
}

header.hv972-public-header :is(.brand,.hv67-brand){
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-width:286px!important;
  max-width:320px!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  color:var(--hv972-navy)!important;
  text-decoration:none!important;
}

header.hv972-public-header :is(.brand,.hv67-brand) img{
  display:block!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  flex:0 0 50px!important;
  object-fit:contain!important;
  margin:0!important;
}

header.hv972-public-header :is(.brand,.hv67-brand) > div{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:4px!important;
}

header.hv972-public-header :is(.brand,.hv67-brand) strong{
  display:block!important;
  margin:0!important;
  color:var(--hv972-navy)!important;
  font-family:"Be Vietnam Pro",Arial,sans-serif!important;
  font-size:16.5px!important;
  line-height:1.16!important;
  font-weight:650!important;
  letter-spacing:.018em!important;
  white-space:nowrap!important;
}

/* This is the short value-line under the brand, not a competing headline. */
header.hv972-public-header :is(.brand,.hv67-brand) span{
  display:block!important;
  margin:0!important;
  color:var(--hv972-muted)!important;
  font-family:"Be Vietnam Pro",Arial,sans-serif!important;
  font-size:11.8px!important;
  line-height:1.25!important;
  font-weight:400!important;
  letter-spacing:.018em!important;
  white-space:nowrap!important;
}

header.hv972-public-header :is(.links,.hv67-nav){
  min-width:0!important;
  margin-left:auto!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:clamp(10px,1.05vw,18px)!important;
  overflow:visible!important;
  white-space:nowrap!important;
  color:var(--hv972-navy)!important;
  font-family:"Be Vietnam Pro",Arial,sans-serif!important;
}

header.hv972-public-header :is(.links,.hv67-nav) > a{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-bottom:0!important;
  color:var(--hv972-navy)!important;
  background:transparent!important;
  font-size:13.3px!important;
  line-height:1.2!important;
  font-weight:500!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

header.hv972-public-header :is(.links,.hv67-nav) > a.hv972-active{
  font-weight:650!important;
}
header.hv972-public-header :is(.links,.hv67-nav) > a.hv972-active:not(.login-btn):not(.hv67-login)::after{
  content:"";
  position:absolute;
  left:14%;
  right:14%;
  bottom:1px;
  height:1.5px;
  border-radius:999px;
  background:var(--hv972-gold);
}

header.hv972-public-header :is(.login-btn,.hv67-login){
  min-width:116px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 19px!important;
  border:1px solid #b9ccda!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--hv972-navy)!important;
  font-size:13.3px!important;
  font-weight:650!important;
}

/* Existing mobile menu button remains owned by the existing menu system. */
header.hv972-public-header .mobile-toggle{
  flex:0 0 auto!important;
}

/* ---------- 2. Philosophy / value quote = one quiet editorial module ---------- */
.hv97-value-quote{
  margin:0!important;
  padding:clamp(38px,4.6vw,62px) 0!important;
  background:#fff!important;
  border:0!important;
  color:inherit!important;
}
.hv97-value-quote .hv97-value-inner{
  width:min(900px,calc(100% - 48px))!important;
  max-width:900px!important;
  margin-inline:auto!important;
  padding:0!important;
  text-align:center!important;
}
.hv97-value-quote .hv97-value-rule{
  display:block!important;
  width:42px!important;
  height:1px!important;
  margin:0 auto 15px!important;
  background:#d6dde3!important;
}
.hv97-value-quote blockquote{
  margin:0 auto!important;
  max-width:860px!important;
  color:#536877!important;
  font-family:"Noto Serif",Georgia,"Times New Roman",serif!important;
  font-size:clamp(17.5px,1.38vw,21px)!important;
  line-height:1.72!important;
  font-style:italic!important;
  font-weight:400!important;
  letter-spacing:.002em!important;
  text-wrap:balance!important;
}
.hv97-value-quote .hv97-value-label{
  display:block!important;
  margin-top:13px!important;
  color:#8996a0!important;
  font-family:"Be Vietnam Pro",Arial,sans-serif!important;
  font-size:10.5px!important;
  line-height:1.3!important;
  font-style:normal!important;
  font-weight:600!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}

/* ---------- 3. Achievement hero — completely cover the exposed left image edge ---------- */
body.hv-achievements .hv75-achievement-intro[data-hv971-achievement-hero]{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  overflow:hidden!important;
}
body.hv-achievements .hv75-achievement-intro .hv971-achievement-media{
  inset:0!important;
  width:100%!important;
  max-width:none!important;
}
body.hv-achievements .hv75-achievement-intro .hv971-achievement-overlay{
  left:-3px!important;
  right:-3px!important;
  top:-2px!important;
  bottom:-2px!important;
  width:auto!important;
  background:linear-gradient(90deg,
    #fff 0%,
    #fff 5%,
    rgba(255,255,255,.985) 19%,
    rgba(255,255,255,.94) 34%,
    rgba(255,255,255,.70) 47%,
    rgba(255,255,255,.24) 64%,
    rgba(255,255,255,.03) 82%,
    rgba(255,255,255,0) 100%)!important;
}
/* Belt-and-suspenders cover for legacy left-side decoration/slivers. */
body.hv-achievements .hv75-achievement-intro[data-hv971-achievement-hero]::after{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  inset:0 auto 0 0!important;
  width:6px!important;
  background:#fff!important;
  pointer-events:none!important;
}

/* ---------- 4. Laptop normalization ---------- */
@media(max-width:1366px){
  :root{--hv972-header-h:84px;}
  header.hv972-public-header > :is(.wrap.nav,.hv67-header-inner){
    width:min(1288px,calc(100% - 36px))!important;
    max-width:1288px!important;
    gap:18px!important;
  }
  header.hv972-public-header :is(.brand,.hv67-brand){
    min-width:270px!important;
    max-width:292px!important;
    gap:11px!important;
  }
  header.hv972-public-header :is(.brand,.hv67-brand) img{
    width:47px!important;height:47px!important;min-width:47px!important;flex-basis:47px!important;
  }
  header.hv972-public-header :is(.brand,.hv67-brand) strong{font-size:15.6px!important;}
  header.hv972-public-header :is(.brand,.hv67-brand) span{font-size:11.3px!important;}
  header.hv972-public-header :is(.links,.hv67-nav){gap:clamp(8px,.82vw,13px)!important;}
  header.hv972-public-header :is(.links,.hv67-nav) > a{font-size:12.7px!important;}
  header.hv972-public-header :is(.login-btn,.hv67-login){min-width:108px!important;height:42px!important;min-height:42px!important;padding-inline:16px!important;}
}

/* Existing sites already have their own mobile navigation. At compact widths,
   V97.2 stops fighting those rules and only keeps the brand visually canonical. */
@media(max-width:1180px){
  header.hv972-public-header{
    height:auto!important;
    min-height:76px!important;
  }
  header.hv972-public-header > :is(.wrap.nav,.hv67-header-inner){
    height:auto!important;
    min-height:76px!important;
  }
  header.hv972-public-header :is(.brand,.hv67-brand){min-width:0!important;}
  header.hv972-public-header :is(.brand,.hv67-brand) img{width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important;}
  header.hv972-public-header :is(.brand,.hv67-brand) strong{font-size:14.6px!important;}
  header.hv972-public-header :is(.brand,.hv67-brand) span{font-size:10.8px!important;}
}

@media(max-width:768px){
  header.hv972-public-header > :is(.wrap.nav,.hv67-header-inner){width:calc(100% - 28px)!important;}
  .hv97-value-quote{padding:34px 0!important;}
  .hv97-value-quote .hv97-value-inner{width:calc(100% - 30px)!important;}
  .hv97-value-quote blockquote{font-size:17px!important;line-height:1.65!important;}
  body.hv-achievements .hv75-achievement-intro .hv971-achievement-overlay{
    background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.96) 48%,rgba(255,255,255,.78) 76%,rgba(255,255,255,.42) 100%)!important;
  }
}
