/* ==========================================================
   Hoàng Gia – hoang-gia.css
   Giao diện máy tính + phần dùng chung cho mọi trang.
   Nạp đầu tiên. Phần lớn style chi tiết vẫn nằm inline trong HTML.
   ========================================================== */
body{margin:0;font-family:'Be Vietnam Pro',system-ui,sans-serif;color:#1E2633;background:#ffffff}
a{color:#0C4A6E;text-decoration:none}
a:hover{color:#C8102E}
*{box-sizing:border-box}
.hg-dd{position:relative}
.hg-menu{display:none;position:absolute;top:100%;left:0;z-index:40;width:max-content;min-width:200px;margin-top:6px;background:#ffffff;border:1px solid #D5DEE8;border-radius:14px;box-shadow:0 20px 44px rgba(12,74,110,.20),0 4px 12px rgba(12,74,110,.08);padding:6px}
.hg-menu::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
.hg-dd:hover>.hg-menu,.hg-dd:focus-within>.hg-menu{display:block}
.hg-dd:hover>a,.hg-dd:focus-within>a{background:rgba(255,255,255,.12)}
.hg-menu a{display:block;white-space:nowrap;padding:13px 16px;color:#0C4A6E;font-size:15px;font-weight:600;border-bottom:1px solid #EEF2F6}
.hg-menu>a:last-child,.hg-item:last-child>a,.hg-fly a:last-child{border-bottom:0}
.hg-menu a.hg-l1{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 12px 13px 16px}
.hg-menu a.hg-l1 svg{color:#9AA8B8;flex:0 0 auto}
.hg-fly{display:none;position:absolute;left:100%;top:-1px;width:max-content;min-width:180px;margin-left:6px;background:#ffffff;border:1px solid #D5DEE8;border-radius:14px;box-shadow:0 20px 44px rgba(12,74,110,.20),0 4px 12px rgba(12,74,110,.08);padding:6px}
.hg-fly::before{content:"";position:absolute;top:0;bottom:0;left:-8px;width:8px}
.hg-item:hover>.hg-fly,.hg-item:focus-within>.hg-fly{display:block}
.hg-fly a{font-weight:500}
.hg-nav a:hover{color:#fff}
.hg-nav .hg-menu a:hover,.hg-nav .hg-menu a:focus,.hg-nav .hg-item:hover>a.hg-l1,.hg-nav .hg-item:focus-within>a.hg-l1{color:#C8102E;background:#FFF1F2}
.hg-nav .hg-item:hover>a.hg-l1 svg{color:#C8102E}
.hg-nav>div>a,.hg-nav .hg-dd>a{text-transform:uppercase;letter-spacing:.03em;font-size:14px}
.hg-track{animation:hg-scroll 45s linear infinite}
.hg-marquee:hover .hg-track{animation-play-state:paused}
@keyframes hg-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){
  .hg-track{animation:none}
}
.hg-rail{position:fixed;left:8px;top:50%;transform:translateY(-50%);z-index:60;display:flex;flex-direction:column;gap:12px}
.hg-rail-btn{position:relative;width:52px;height:52px;border-radius:50%;border:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 20px rgba(8,47,73,.28);font-family:inherit}
.hg-rail-btn .hg-tip{position:absolute;left:62px;top:50%;transform:translateY(-50%) translateX(-6px);white-space:nowrap;background:#082F49;color:#ffffff;font-size:13px;font-weight:700;padding:8px 12px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.hg-rail-btn:hover .hg-tip,.hg-rail-btn:focus-visible .hg-tip{opacity:1;transform:translateY(-50%)}
.hg-ring::before{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 rgba(220,41,47,.55);animation:hg-ring 2s ease-out infinite}
@keyframes hg-ring{0%{box-shadow:0 0 0 0 rgba(220,41,47,.55)}70%{box-shadow:0 0 0 14px rgba(220,41,47,0)}100%{box-shadow:0 0 0 0 rgba(220,41,47,0)}}
.hg-totop{position:fixed;right:24px;bottom:24px;z-index:60;width:52px;height:52px;border-radius:50%;background:#0C4A6E;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(8,47,73,.3);transition:background .2s,transform .2s}
.hg-totop:hover{background:#C8102E;transform:translateY(-3px)}
@media (prefers-reduced-motion: reduce){
  .hg-ring::before{animation:none}
}
body{margin:0;font-family:'Be Vietnam Pro',system-ui,sans-serif;color:#1E2633}
.hg-dw-ov{animation:hg-dw-fade .3s ease both}
.hg-dw{animation:hg-dw-in .38s cubic-bezier(.22,.8,.26,1) both}
.hg-dw > *{animation:hg-dw-item .5s cubic-bezier(.22,.8,.26,1) both}
.hg-dw > :nth-child(1){animation-delay:.08s}
.hg-dw > :nth-child(2){animation-delay:.16s}
.hg-dw > :nth-child(3){animation-delay:.26s}
.hg-dw > :nth-child(4){animation-delay:.34s}
@keyframes hg-dw-fade{from{opacity:0}to{opacity:1}}
@keyframes hg-dw-in{from{transform:translateX(100%)}to{transform:none}}
@keyframes hg-dw-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes hg-dw-item{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){
  .hg-dw-ov,.hg-dw,.hg-dw > *{animation:none !important}
}
.hg-desktop,.hg-mobile{container-type:inline-size}
.hg-desktop{overflow-x:clip}
.hg-desktop img{max-width:100%}
[hidden]{display:none !important}
html{scroll-behavior:smooth}
