/* Thanh trên cùng, logo + banner, menu chính (dính khi cuộn), tin nóng, ngăn kéo mobile, ô tìm kiếm */

.site-topbar { background: var(--c-bg-soft); height: 33px; font-size: 12.5px; font-weight: 700; color: var(--c-text); }
.site-topbar__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-topbar__date { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 500; }
.site-topbar__date .ico { width: 15px; height: 15px; color: var(--c-brand); }
.site-topbar__links a { transition: color var(--t-fast) ease; }
.site-topbar__links a:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }

.site-header__inner { display: flex; align-items: center; gap: 24px; height: 105px; }
.site-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.site-logo__img { width: 158px; height: auto; transition: transform var(--t-base) var(--ease); }
.site-logo:hover .site-logo__img { transform: scale(1.04); }
.site-logo__tag { max-width: 118px; font: 700 12.5px/1.3 var(--font-heading); text-transform: uppercase; letter-spacing: .02em; color: var(--c-royal); }

/* menu chính */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--c-navy); height: 46px; transition: box-shadow var(--t-base) ease; }
.site-nav.is-stuck { box-shadow: 0 6px 18px rgba(0, 20, 60, .28); }
.site-nav__inner { display: flex; align-items: stretch; height: 100%; }
.site-menu { display: flex; flex: 1; align-items: stretch; justify-content: space-between; min-width: 0; }
.menu-item { display: flex; }
.menu-item > a { position: relative; display: flex; align-items: center; padding: 0 14px; color: #fff; font: 600 var(--text-nav)/1 var(--font-heading); white-space: nowrap; transition: background-color var(--t-fast) ease; }
.menu-item > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--c-gold); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform var(--t-base) var(--ease); }
.menu-item > a:hover, .menu-item > a.is-hover { background: rgba(255, 255, 255, .14); }
.menu-item.is-current > a { background: rgba(255, 255, 255, .12); }
.menu-item.is-current > a::after { transform: scaleX(1); }
.menu-item--home > a { padding: 0; width: 48px; justify-content: center; background: #0a4fa3; border-radius: 0; }
.menu-item--home > a::after { left: 0; right: 0; }
.menu-item--home .ico { width: 22px; height: 22px; }
.menu-item--home .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.menu-close, .nav-toggle { display: none; }
.nav-search { width: 47px; margin-left: 12px; display: grid; place-items: center; background: #0c53a6; color: #fff; transition: background-color var(--t-fast) ease; }
.nav-search .ico { width: 21px; height: 21px; }
.nav-search:hover { background: #1269c9; }
.site-menu a:focus-visible, .nav-search:focus-visible, .nav-toggle:focus-visible { outline-color: var(--c-gold); outline-offset: -3px; }

/* tin nóng */
.ticker-wrap { padding: 10px 0 26px; }
.ticker { display: flex; align-items: center; gap: 14px; }
.ticker__label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 8px; background: linear-gradient(180deg, #f8383c, #e8232a); color: #fff; font: 700 12px/1 var(--font-heading); text-transform: uppercase; flex: none; box-shadow: 0 2px 6px rgba(242, 46, 50, .35); }
.ticker__label .ico { width: 16px; height: 16px; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.ticker__list { display: flex; gap: 0; transition: transform .5s var(--ease); will-change: transform; }
.ticker__item { flex: none; max-width: 400px; display: flex; align-items: center; font-size: 13px; font-weight: 500; }
.ticker__item::before { content: ""; flex: none; width: 5px; height: 5px; margin: 0 14px 0 14px; border-radius: 50%; background: var(--c-red); }
.ticker__item:first-child::before { margin-left: 0; }
.ticker__item a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--t-fast) ease; }
.ticker__item a:hover { color: var(--c-brand); }
.ticker__btns { display: flex; gap: 8px; flex: none; }
.ticker__btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #c9d8f2; background: #f5f9ff; color: var(--c-royal); display: grid; place-items: center; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.ticker__btn .ico { width: 16px; height: 16px; }
.ticker__btn:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }

/* ngăn kéo + lớp phủ */
.drawer-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(0, 12, 40, .55); opacity: 0; transition: opacity var(--t-base) ease; }
.drawer-overlay[hidden] { display: none; }
.drawer-overlay.is-open { opacity: 1; }

/* ô tìm kiếm toàn màn hình */
.search-overlay { position: fixed; inset: 0; z-index: 200; display: grid; align-content: start; justify-items: center; padding: 18vh 16px 0; background: rgba(0, 20, 60, .78); backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--t-base) ease; }
.search-overlay[hidden] { display: none; }
.search-overlay.is-open { opacity: 1; }
.search-overlay__form { position: relative; display: flex; gap: 10px; width: min(680px, 100%); padding: 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); transform: translateY(-16px); transition: transform var(--t-base) var(--ease); }
.search-overlay.is-open .search-overlay__form { transform: none; }
.search-overlay__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #cdd8ee; border-radius: 8px; font-size: 16px; }
.search-overlay__form input:focus-visible { outline: 0; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(11, 94, 215, .2); }
.search-overlay__form .btn { height: 46px; }
.search-overlay__close { position: absolute; right: -10px; top: -46px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; transition: background-color var(--t-fast) ease; }
.search-overlay__close:hover { background: rgba(255, 255, 255, .35); }
.search-overlay__close .ico { width: 20px; height: 20px; }
