/* =========================================================
   eBaohiem UI - variables, reset, buttons, header, footer
   Load on ALL pages (home / news / page / amp-fallback)
   ========================================================= */
:root{
  --eb-blue:#1380C7;
  --eb-blue-deep:#0A3D62;
  --eb-blue-ink:#0E2F4A;
  --eb-orange:#F7941D;
  --eb-orange-soft:#FFEFDB;
  --eb-green:#1AA260;
  --eb-ink:#16273C;
  --eb-grey:#5E7081;
  --eb-bg:#F5F8FB;
  --eb-border:#E3EAF1;
  --font-display:'Manrope',sans-serif;
  --font-body:'Inter',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden}
body{font-family:var(--font-body);color:var(--eb-ink);background:var(--eb-bg);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden;max-width:100vw}
img,svg{display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.2;color:var(--eb-blue-ink);font-weight:800}
:focus-visible{outline:3px solid var(--eb-orange);outline-offset:2px}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-body);font-weight:700;font-size:15px;padding:13px 26px;border-radius:10px;border:1.5px solid transparent;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--eb-orange);color:#fff;box-shadow:0 8px 20px rgba(247,148,29,.35)}
.btn-primary:hover{background:#e8830a}
.btn-secondary{background:#fff;color:var(--eb-blue-deep);border-color:#fff}
.btn-secondary:hover{background:rgba(255,255,255,.85)}
.btn-danger{background:#D24B4B;color:#fff;box-shadow:0 8px 20px rgba(210,75,75,.35)}
.btn-danger:hover{background:#c03d3d}
.btn-outline{background:transparent;color:var(--eb-blue);border-color:var(--eb-blue)}
.btn-outline:hover{background:var(--eb-blue);color:#fff}
.btn-block{width:100%}

.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--eb-orange);margin-bottom:12px}
.eyebrow::before{content:"";width:18px;height:2px;background:var(--eb-orange);display:block}
.section-head{max-width:640px;margin-bottom:40px}
.section-head p{color:var(--eb-grey);font-size:16px;margin-top:10px}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}

.section{padding:76px 0}
.section.alt{background:#fff}

/* =========================================================
   HEADER
   ========================================================= */
.eb-header{position:sticky;top:0;z-index:200;background:#fff;border-bottom:1px solid var(--eb-border)}
.eb-header__inner{display:flex;align-items:center;justify-content:space-between;height:84px;gap:24px}

.eb-logo{font-family:var(--font-display);font-weight:800;font-size:32px;letter-spacing:-.01em;display:flex;align-items:center;gap:2px}
.eb-logo .e{color:var(--eb-orange)}
.eb-logo .rest{color:var(--eb-blue)}
.eb-logo img{height:46px;width:auto}

/* Generic styling for the CMS main menu output inside .eb-nav */
.eb-nav{display:flex;align-items:center;gap:26px}
.eb-nav ul{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}
.eb-nav li{position:relative;list-style:none;margin:0}
.eb-nav li > a{display:flex;align-items:center;gap:5px;padding:28px 0!important}
.eb-nav a{font-weight:600;font-size:14.5px;color:var(--eb-ink)!important;transition:color .15s;text-decoration:none!important;background:none!important}
.eb-nav a:hover{color:var(--eb-blue)!important}
/* hide any caret/dropdown icons injected by the old menu module - thay bằng caret riêng */
.eb-nav .caret,.eb-nav .glyphicon{display:none!important}

/* Submenu desktop: hiện dạng dropdown khi hover vào mục cha */
/* caret nằm TRONG <a> (flex) để không bị tự xuống dòng */
.eb-nav li:has(> ul) > a::after{content:"";flex:0 0 auto;display:inline-block;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(45deg);opacity:.6}
.eb-nav ul ul{
  display:none;
  position:absolute;top:100%;left:0;
  flex-direction:column;align-items:stretch;gap:0;
  min-width:230px;
  background:#fff;border:1px solid var(--eb-border);border-radius:12px;
  box-shadow:0 16px 36px rgba(10,61,98,.14);
  padding:8px;margin:0;z-index:300;
}
.eb-nav li:hover > ul{display:flex}
.eb-nav ul ul li{width:100%}
.eb-nav ul ul li > a{padding:10px 14px!important;border-radius:8px;width:100%;font-size:14px}
.eb-nav ul ul li > a:hover{background:var(--eb-bg)}
.eb-nav ul ul li:has(> ul) > a::after{display:none}
.eb-nav ul ul ul{left:100%;top:0;margin-left:6px}

.eb-header__actions{display:flex;align-items:center;gap:18px}
.eb-hotline{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--eb-blue-deep);font-size:15px}
.eb-hotline svg{flex:0 0 auto;stroke:var(--eb-blue-deep)}

.eb-hamburger{display:none;background:none;border:none;cursor:pointer;padding:8px}
.eb-hamburger span{display:block;width:24px;height:2px;background:var(--eb-blue-ink);margin:5px 0;border-radius:2px}

/* Mobile nav - fixed + display:none so it never blocks clicks (see redesign skill #14) */
.eb-mobile-nav{
  display:none!important;
  position:fixed!important;
  top:84px;left:0;right:0;
  z-index:999;
  background:#fff;
  border-top:1px solid var(--eb-border);
  box-shadow:0 12px 24px rgba(10,61,98,.08);
  flex-direction:column;gap:4px;padding:12px 24px 20px;
  max-height:calc(100vh - 74px);
  overflow-y:auto;
}
.eb-mobile-nav.open{display:flex!important}
.eb-mobile-nav > ul{display:flex;flex-direction:column;width:100%}
.eb-mobile-nav li{display:flex;flex-wrap:wrap;align-items:center;width:100%;border-bottom:1px solid var(--eb-border)}
.eb-mobile-nav > ul > li{border-bottom:1px solid var(--eb-border)}
.eb-mobile-nav li > a{flex:1;display:block;padding:13px 0!important;font-weight:600;font-size:15px;color:var(--eb-ink)!important;text-decoration:none!important;background:none!important;border-bottom:none!important}

/* Nút mũi tên mở/đóng menu phụ */
.eb-submenu-toggle{flex:0 0 auto;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:var(--eb-blue-deep);padding:0}
.eb-submenu-toggle svg{transition:transform .2s ease}
.eb-submenu-open > .eb-submenu-toggle svg{transform:rotate(180deg)}

/* Menu phụ - thu nhỏ, lùi vào, có viền trái để phân biệt với menu chính */
.eb-mobile-nav ul.eb-submenu{display:none;flex-direction:column;width:100%;padding-left:18px;margin:0 0 8px;border-left:2px solid var(--eb-border)}
.eb-mobile-nav ul.eb-submenu.open{display:flex}
.eb-mobile-nav ul.eb-submenu li{border-bottom:none;padding:0}
.eb-mobile-nav ul.eb-submenu li > a{font-size:13.5px!important;font-weight:500!important;padding:9px 0!important;color:var(--eb-grey)!important}

/* 2 link tĩnh (Hotline, Đặt lịch tư vấn) nằm ngoài <ul> menu CMS */
.eb-mobile-nav > a{display:block;padding:13px 0!important;font-weight:700!important;font-size:15px;color:var(--eb-blue)!important;border-bottom:1px solid var(--eb-border);text-decoration:none!important;background:none!important}
.eb-mobile-nav > a:last-child{border-bottom:none}

/* =========================================================
   FOOTER
   ========================================================= */
#eb-footer{background:var(--eb-blue-ink);color:rgba(255,255,255,.8);padding-top:64px}
#eb-footer .eb-footer__top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1fr;gap:32px;padding-bottom:48px;border-bottom:1px solid rgba(255,255,255,.1)}
#eb-footer .eb-footer__brand .eb-logo .rest{color:#fff}
#eb-footer .eb-footer__brand p{font-size:13.5px;color:rgba(255,255,255,.6);margin:14px 0 18px;max-width:280px}
#eb-footer .eb-hotline{color:#fff}
#eb-footer .eb-hotline svg{stroke:#fff}
#eb-footer .eb-footer__contact{display:flex;flex-direction:column;gap:10px;font-size:13.5px;margin-top:14px}
#eb-footer .eb-footer__contact li{display:flex;align-items:flex-start;gap:10px}
#eb-footer .eb-footer__contact svg{stroke:var(--eb-orange);flex:0 0 auto;margin-top:2px}
#eb-footer h4{font-family:var(--font-display);color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:16px}
#eb-footer .eb-footer__col ul{display:flex;flex-direction:column;gap:10px}
#eb-footer .eb-footer__col a{font-size:13.5px;color:rgba(255,255,255,.65);transition:color .15s}
#eb-footer .eb-footer__col a:hover{color:var(--eb-orange)}
#eb-footer .eb-footer__bottom{display:flex;justify-content:space-between;align-items:center;padding:24px 0;font-size:13px;color:rgba(255,255,255,.5);flex-wrap:wrap;gap:12px}
#eb-footer .eb-footer__social{display:flex;gap:10px}
#eb-footer .eb-footer__social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;transition:.15s}
#eb-footer .eb-footer__social a:hover{background:var(--eb-orange)}

/* Mobile footer (built/removed via JS - see footer.php) */
#eb-footer-mobile{display:none}

/* =========================================================
   RESPONSIVE - shared
   ========================================================= */
@media (max-width:1024px){
  #eb-footer .eb-footer__top{grid-template-columns:1fr 1fr;row-gap:36px}
  #eb-footer .eb-footer__brand{grid-column:1 / -1}
}
@media (max-width:760px){
  .eb-nav,.eb-header__actions .eb-hotline{display:none!important}
  .eb-hamburger{display:block}
  .section{padding:52px 0}
  #eb-footer .eb-footer__top{grid-template-columns:1fr 1fr;row-gap:28px;column-gap:20px}
  #eb-footer .eb-footer__brand{grid-column:1 / -1;padding-bottom:24px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.12)}
  /* 2 cột danh mục, có vạch chia giữa giống Visamon */
  #eb-footer .eb-footer__top > .eb-footer__col:nth-child(even){padding-right:16px;border-right:1px solid rgba(255,255,255,.12)}
  #eb-footer .eb-footer__top > .eb-footer__col:nth-child(odd):not(.eb-footer__brand){padding-left:16px}
  /* chỉ giữ 1 dòng 2 cột đầu (giống Visamon), ẩn 2 cột còn lại */
  #eb-footer .eb-footer__top > .eb-footer__col:nth-child(4),
  #eb-footer .eb-footer__top > .eb-footer__col:nth-child(5){display:none}
}

