/* Tudien.com.vn Lookup Theme CSS */
:root{
  --cmh-brand:#2563eb;
  --cmh-brand-light:#eff6ff;
  --cmh-brand-mid:#dbeafe;
  --cmh-accent:#0ea5e9;
  --cmh-green:#10b981;
  --cmh-orange:#f59e0b;
  --cmh-red:#ef4444;
  --cmh-purple:#8b5cf6;
  --cmh-pink:#ec4899;
  --cmh-text-primary:#0f172a;
  --cmh-text-secondary:#475569;
  --cmh-text-muted:#94a3b8;
  --cmh-border:#e2e8f0;
  --cmh-surface:#ffffff;
  --cmh-bg:#f8fafc;
  --cmh-radius:12px;
  --cmh-radius-sm:8px;
  --av-topbar-h:56px;
}

body{
  background:var(--cmh-bg);
  color:var(--cmh-text-primary);
  font-family:'Inter',sans-serif;
}

/* TOPBAR */
.topbar{
  background:var(--cmh-surface);
  border-bottom:1px solid var(--cmh-border);
  padding:0 24px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  position:sticky;
  top:0;
  z-index:100;
}
.topbar-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:15px;
  color:var(--cmh-text-primary);
  text-decoration:none !important;
  flex-shrink:0;
}
.topbar-logo .dot{
  width:28px;height:28px;border-radius:8px;
  background:var(--cmh-brand);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;
}
.topbar-nav{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  flex:1;
  justify-content:center;
}
.topbar-nav > a,
.cmh-nav-list > li > a{
  padding:6px 14px;
  border-radius:var(--cmh-radius-sm);
  font-size:13px;
  font-weight:500;
  color:var(--cmh-text-secondary);
  text-decoration:none !important;
  transition:all .15s ease;
}
.topbar-nav > a:hover,
.topbar-nav > a.active,
.cmh-nav-list > li.active > a,
.cmh-nav-list > li > a:hover{
  background:var(--cmh-brand-light);
  color:var(--cmh-brand);
}
.cmh-nav-list{
  list-style:none;
  display:flex;
  gap:4px;
  align-items:center;
  margin:0;padding:0;
}
.cmh-menu-item{position:relative; list-style:none;}
.cmh-menu-link{display:inline-flex;align-items:center;gap:6px;}
.cmh-menu-arrow{font-size:10px;}
.cmh-dropdown-menu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:200px;
  background:#fff;
  border:1px solid var(--cmh-border);
  border-radius:10px;
  box-shadow:0 18px 36px rgba(15,23,42,.12);
  padding:6px;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:all .18s ease;
  z-index:120;
  margin:0;
}
.cmh-menu-item:hover > .cmh-dropdown-menu{
  opacity:1;visibility:visible;pointer-events:auto;
  transform:translateX(-50%) translateY(4px);
}
.cmh-dropdown-menu li{list-style:none;}
.cmh-dropdown-menu a{
  display:flex;
  width:100%;
  border-radius:8px;
  padding:8px 10px;
  font-size:13px;
  color:var(--cmh-text-secondary);
}
.cmh-dropdown-menu a:hover{
  background:var(--cmh-brand-light);
  color:var(--cmh-brand);
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.btn-primary{
  background:var(--cmh-brand);
  color:#fff !important;
  border:none;
  padding:8px 18px;
  border-radius:var(--cmh-radius-sm);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none !important;
  transition:background .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-primary:hover{background:#1d4ed8;}
.btn-ghost{
  background:transparent;
  color:var(--cmh-text-secondary) !important;
  border:1px solid var(--cmh-border);
  padding:7px 16px;
  border-radius:var(--cmh-radius-sm);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  text-decoration:none !important;
  transition:all .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-ghost:hover{border-color:var(--cmh-brand); color:var(--cmh-brand) !important;}

.cmh-topbar-search-wrap{position:relative;}
.cmh-topbar-search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid var(--cmh-border);
  border-radius:8px;
  background:#fff;
  width:240px;
}
.cmh-topbar-search i{color:var(--cmh-text-muted);font-size:13px;}
.cmh-topbar-search input{
  width:100%;
  border:none;
  background:transparent;
  outline:none;
  font-size:13px;
  color:var(--cmh-text-primary);
}
.cmh-live-results{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  width:320px;
  max-height:340px;
  overflow:auto;
  background:#fff;
  border:1px solid var(--cmh-border);
  border-radius:12px;
  box-shadow:0 18px 40px rgba(15,23,42,.14);
  z-index:150;
}
.cmh-live-result-item{
  display:flex;
  gap:10px;
  padding:12px 14px;
  text-decoration:none !important;
  color:var(--cmh-text-primary);
  border-bottom:1px solid #f1f5f9;
}
.cmh-live-result-item:last-child{border-bottom:none;}
.cmh-live-result-item:hover{background:#f8fafc;}
.cmh-live-result-title{font-size:13px;font-weight:600;line-height:1.35;}
.cmh-live-result-type{font-size:11px;color:var(--cmh-text-muted);margin-top:2px;}

.cmh-mobile-menu-btn{
  display:none;
  width:38px;height:38px;
  border:1px solid var(--cmh-border);
  border-radius:10px;
  background:#fff;
  padding:8px;
  flex-direction:column;
  justify-content:space-between;
}
.cmh-mobile-menu-btn span{
  height:2px;
  background:var(--cmh-text-primary);
  border-radius:2px;
  display:block;
}
.cmh-mobile-drawer{
  position:fixed;
  top:0;left:0;bottom:0;
  width:300px;
  background:#fff;
  z-index:180;
  transform:translateX(-100%);
  transition:transform .2s ease;
  box-shadow:10px 0 28px rgba(15,23,42,.16);
  padding:18px;
}
.cmh-mobile-drawer.open{transform:translateX(0);}
.cmh-mobile-drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;
}
.cmh-mobile-drawer-close{
  background:none;border:none;font-size:20px;cursor:pointer;color:#64748b;
}
.cmh-mobile-search input{
  width:100%;padding:12px 14px;border:1px solid var(--cmh-border);border-radius:10px;font-size:14px;
}
.cmh-mobile-nav{display:flex;flex-direction:column;gap:6px;margin-top:16px;}
.cmh-mobile-nav a{
  text-decoration:none !important;
  color:var(--cmh-text-secondary);
  padding:12px 10px;border-radius:10px;font-size:14px;font-weight:500;
}
.cmh-mobile-nav a:hover{background:var(--cmh-brand-light);color:var(--cmh-brand);}
.cmh-drawer-overlay{
  position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:170;display:none;
}

/* FOOTER */
.cmh-footer{
  border-top:1px solid var(--cmh-border);
  background:var(--cmh-surface);
  padding:20px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.footer-left{font-size:12px;color:var(--cmh-text-muted);}
.footer-left strong{color:var(--cmh-text-primary);font-weight:600;}
.footer-links{display:flex;gap:20px;flex-wrap:wrap;}
.footer-links a{
  font-size:12px;color:var(--cmh-text-muted);text-decoration:none !important;transition:color .15s ease;
}
.footer-links a:hover{color:var(--cmh-brand);}

/* SOME LEGACY AV BUTTON/FORM FIXES */
.av-btn-primary{
  background:var(--cmh-brand);
  color:#fff !important;
  border:none;
  border-radius:10px;
  padding:10px 18px;
  font-weight:600;
  text-decoration:none !important;
}
.av-btn-primary:hover{background:#1d4ed8;}
.av-btn-ghost{
  border:1px solid var(--cmh-border);
  border-radius:10px;
  color:var(--cmh-text-secondary) !important;
}
.av-btn-block{display:inline-flex;justify-content:center;}
.av-site-main{min-height:calc(100vh - 120px);}

@media (max-width: 1100px){
  .cmh-topbar-search-wrap{display:none;}
}
@media (max-width: 860px){
  .topbar{padding:0 16px;}
  .topbar-nav{display:none;}
  .topbar-right .btn-ghost,
  .topbar-right .btn-primary{display:none;}
  .cmh-mobile-menu-btn{display:flex;}
  .cmh-footer{padding:18px 16px;flex-direction:column;align-items:flex-start;}
}
